WO2021036512A1 - 一种智能家居设备的控制方法及装置 - Google Patents

一种智能家居设备的控制方法及装置 Download PDF

Info

Publication number
WO2021036512A1
WO2021036512A1 PCT/CN2020/100446 CN2020100446W WO2021036512A1 WO 2021036512 A1 WO2021036512 A1 WO 2021036512A1 CN 2020100446 W CN2020100446 W CN 2020100446W WO 2021036512 A1 WO2021036512 A1 WO 2021036512A1
Authority
WO
WIPO (PCT)
Prior art keywords
instruction
server
smart home
status information
home device
Prior art date
Application number
PCT/CN2020/100446
Other languages
English (en)
French (fr)
Inventor
程万里
甄志坚
王沅召
赵慧子
张家琪
Original Assignee
珠海格力电器股份有限公司
珠海联云科技有限公司
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 珠海格力电器股份有限公司, 珠海联云科技有限公司 filed Critical 珠海格力电器股份有限公司
Publication of WO2021036512A1 publication Critical patent/WO2021036512A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Definitions

  • the present disclosure relates to the field of smart home technology, and in particular to a method and device for controlling smart home equipment.
  • control through APP Take control through APP as an example.
  • the terminal running the APP needs to first send the control instructions to the server on the network side, and then forward the control instructions to the corresponding Smart home equipment.
  • a smart home device when a smart home device receives a control instruction from an APP, it does not immediately execute the control instruction every time. In some cases, the smart home device ignores or discards the control instruction, and the APP does not execute the control instruction immediately. When the feedback from the smart home device is not received, new control instructions will be sent continuously, which will cause the server to continuously forward control instructions to the smart home device, consume server resources, and cause unnecessary operation through the terminal and server running the APP load.
  • the smart TV After the smart TV receives the control command A, it is performing the operation of recording program A, but the user sends the control command B of recording program B to the smart TV again through the APP. At this time, the smart TV may ignore or discard the control command B.
  • the APP will continuously re-send the new control command B to the server because it has not received the feedback from the smart TV, which will cause the server to continuously send the control command B to the smart TV, which will cause the server's resource consumption.
  • the present disclosure provides a method and a device to solve the problem that the server continuously forwards control instructions to smart home equipment in related technologies, which in turn causes the server resource consumption.
  • a control method of smart home equipment includes:
  • the server receives the first instruction sent by the terminal, where the first instruction carries identification information of the smart home device;
  • the server triggers a mutually exclusive comparison of the first instruction and the working state information, and when it is determined that the first instruction and the working state information are not mutually exclusive, sends the first instruction to the
  • the smart home device triggers the smart home to execute the first instruction.
  • triggering the server to perform a mutually exclusive comparison of the first instruction and the working status information includes:
  • the server directly performs a mutually exclusive comparison between the first instruction and the working status information; or,
  • the server sends the first instruction and the work status information to a designated analysis platform, and triggers the analysis platform to perform a mutually exclusive comparison between the first instruction and the work status information.
  • the server directly compares the first instruction with the work status information for mutual exclusion, including:
  • the server analyzes the instruction content of the first instruction to obtain a first analysis result
  • the server analyzes the work status information to obtain a second analysis result
  • the server compares the first analysis result with the second analysis result, and judges whether there is execution content that is not allowed to exist at the same time, and if so, it determines that the first instruction and the working status information are mutually exclusive, otherwise , It is determined that the first instruction and the working status information are non-mutually exclusive.
  • it further includes:
  • the server compares the priority of the first instruction and the second instruction corresponding to the working status information
  • it further includes:
  • the first instruction and the second instruction are sent to the server backend, and the execution is triggered according to the administrator's instruction Corresponding operation; or sending the first instruction and the second instruction to the terminal, and triggering the execution of the corresponding operation according to the user's instruction.
  • a control device for smart home equipment includes:
  • the receiving unit is configured to receive a first instruction sent by the terminal, where the first instruction carries identification information of the smart home device;
  • An acquiring unit configured to acquire current working state information of the smart home device according to the identification information, the working state information being generated after the smart home device executes a second instruction
  • the processing unit is configured to trigger a mutually exclusive comparison of the first instruction and the working state information, and when it is determined that the first instruction and the working state information are not mutually exclusive, compare the first instruction to the working state information.
  • the instruction is sent to the smart home device to trigger the smart home device to execute the first instruction.
  • the processing unit when the mutually exclusive comparison between the first instruction and the working status information is triggered, the processing unit is specifically set to:
  • the first instruction and the work status information are sent to a designated analysis platform, and the analysis platform is triggered to perform a mutually exclusive comparison between the first instruction and the work status information.
  • the processing unit when directly comparing the first instruction and the working status information for mutual exclusion, the processing unit is specifically set to:
  • the first analysis result and the second analysis result are compared to determine whether there are execution contents that are not allowed to exist at the same time. If so, it is determined that the first instruction and the working status information are mutually exclusive; otherwise, it is determined that all execution contents are mutually exclusive.
  • the first instruction and the working status information are non-mutually exclusive.
  • the processing unit is further configured to:
  • the processing unit is further configured to:
  • the first instruction and the second instruction are sent to the server backend, and the execution is triggered according to the administrator's instruction Corresponding operation; or, sending the first instruction and the second instruction to the terminal, and triggering the execution of the corresponding operation according to the user's instruction.
  • a server that includes:
  • the memory is set to store executable instructions
  • the processor is configured to read and execute the executable instructions stored in the memory, so as to implement the smart home device control method described in any one of the above.
  • a storage medium when the instructions in the storage medium are executed by a processor, so that the processor can execute the method for controlling a smart home device as described in any one of the above.
  • the server receives the first instruction sent by the terminal, obtains the current working state information of the smart home device according to the identification information, triggers a mutually exclusive comparison of the first instruction and the working state information, and determines the first instruction and the working state
  • the smart home device is triggered to stop executing the second instruction and start executing the first instruction.
  • FIG. 1 is a schematic structural diagram of a smart home system in an embodiment of the disclosure
  • FIG. 2 is a schematic diagram of a control flow of a smart home device in an embodiment of the disclosure
  • FIG. 3 is a schematic structural diagram of a control device for smart home equipment provided by an embodiment of the disclosure.
  • FIG. 4 is a schematic structural diagram of a server provided by an embodiment of the disclosure.
  • the smart home system at least includes:
  • Terminals servers and smart home equipment.
  • the terminal is configured to receive user control instructions and forward the control instructions to the server via the network;
  • the terminal includes, but is not limited to, smart phones, notebook computers, personal computers, personal digital assistants, mobile Internet devices, smart wearables Equipment (such as smart watches, smart bracelets) and other types of user terminals.
  • the smart home device is configured to receive control instructions sent by the server, and execute corresponding operations in accordance with the received control instructions.
  • smart home devices include, but are not limited to, various smart homes such as air conditioners, washing machines, refrigerators, water heaters, electric rice cookers, and lights.
  • the server is configured to receive the control instruction of the terminal, and perform mutual exclusion judgment, and when it is determined that there is no mutual exclusion, the control instruction is sent to the smart home device.
  • the entity that is set to perform mutual exclusion judgment is called the decision-making judgment center.
  • the decision-making judgment center may be a functional module in the server or a functional module in the background. , It can also be an independent service device.
  • Step S201 The server receives the first instruction sent by the terminal, where the first instruction carries the identification information of the smart home device.
  • the user can select the control instruction for the smart home device on the terminal through an application (APP), applet, etc., and the terminal generates the first instruction according to the user's operation behavior, and the first instruction
  • the instruction carries the identification information of the smart home device, and then the terminal sends the first instruction to the server.
  • the user can select control instructions such as temperature adjustment, timing, and wind direction adjustment through APP, etc., assuming that the user instructs to lower the temperature, the terminal will send the first instruction set to represent the lowering of the temperature to the server. And the identification information of the smart air conditioner is carried in the first instruction.
  • control instructions such as temperature adjustment, timing, and wind direction adjustment through APP, etc.
  • Step S202 The server obtains the current working state information of the smart home device according to the identification information, and the working state information is generated after the smart home device executes a second instruction.
  • the first instruction received by the server from the terminal includes identification information of the smart home device, and the server can identify the smart home device according to the identification information.
  • the server also needs to obtain the current working status information of the smart home device from the smart home device. This is because the smart home device may be executing the second command received earlier at this time, or the smart home device The home device has already executed the second instruction. Therefore, the server will determine whether the current working state information of the smart home device is mutually exclusive with the first instruction according to the current working state information after the smart home device executes the second instruction.
  • the current working status information of the smart air conditioner indicates that the smart air conditioner is currently in automatic mode, that is, the smart air conditioner can automatically increase or decrease the temperature according to the indoor temperature
  • the server can identify the smart air conditioner according to the identification information carried in the first instruction, and obtain from the smart air conditioner the working state information indicating that the smart air conditioner is currently in the automatic mode, so that the smart air conditioner can execute the second instruction according to the current
  • the working status information determines whether the current working status information of the smart air conditioner is mutually exclusive with the first command.
  • the server can identify the smart air conditioner according to the identification information carried in the first instruction.
  • the server cannot obtain the working status information from the smart air conditioner. After the server waits for a certain period of time and the smart air conditioner does not respond, it determines that the current working status information of the smart air conditioner indicates that the smart air conditioner is currently off.
  • Step S203 The server triggers a mutual exclusion comparison between the first instruction and the working status information, and judges whether they are mutually exclusive. If so, execute step S204, otherwise, execute step S205.
  • the server may adopt but not limited to the following two ways to perform step 203:
  • the first method is: the server performs a local mutual exclusion comparison.
  • the server analyzes the instruction content of the first instruction to obtain the first analysis result.
  • the server analyzes the work status information to obtain a second analysis result.
  • the server compares the first analysis result with the second analysis result, and judges whether there are execution contents that are not allowed to exist at the same time. If so, it determines that the first instruction and the working status information are mutually exclusive, otherwise , It is determined that the first instruction and the working status information are non-mutually exclusive.
  • the server After the server receives the first instruction sent by the terminal, it determines the first analysis result by analyzing the first instruction, and the first analysis result represents the first instruction for instructing the smart TV to record in real time Program 1.
  • the server obtains the current working status information of the smart TV, and determines the second analysis result by analyzing the working status information, and the second analysis result indicates that the smart TV is currently recording program 2 in real time.
  • the first analysis result parsed by the server indicates that the terminal instructs the smart TV to record real-time program 1, and the second analysis result indicates that the smart TV is currently recording program 2 in real time. Obviously, these two operations are not allowed to exist at the same time. Therefore, the first A command and work status information are mutually exclusive.
  • the server After the server receives the first instruction sent by the terminal, it determines the first analysis result by analyzing the first instruction, and the first analysis result indicates that the first instruction is used to instruct the smart TV Adjust the volume.
  • the server obtains the current working status information of the smart TV, and determines the second analysis result by analyzing the working status information, and the second analysis result indicates that the smart TV is currently in the shutdown state.
  • the first analysis result parsed by the server indicates that the terminal instructs the smart TV to adjust the volume
  • the second analysis result indicates that the smart TV is currently off. Obviously, these two operations are not allowed to exist at the same time. Therefore, the first instruction and work Status information is mutually exclusive.
  • the second way is: the server sends the first instruction and the work status information to a designated analysis platform, that is, the decision and judgment center, and the decision and judgment center mutually exclusives the first instruction and the work status information. And obtain the comparison result returned by the decision-making judgment center.
  • the decision-making judgment center receives the first instruction forwarded by the server, and analyzes the instruction content of the first instruction to obtain the first analysis result.
  • the decision and judgment center receives the work status information forwarded by the server, and analyzes the work status information to obtain a second analysis result.
  • the decision-making judgment center compares the first analysis result with the second analysis result, and judges whether there are execution contents that are not allowed to exist at the same time, and if so, it determines that the first instruction and the working status information are mutually exclusive , Otherwise, it is determined that the first instruction and the working status information are non-mutually exclusive.
  • the decision-making judgment center determines the first analysis result by analyzing the first instruction, and the first analysis result indicates that the first instruction is used to instruct the smart refrigerator to reduce temperature.
  • the decision-making judgment center receives the current working status information of the smart refrigerator sent by the server. It is assumed that the working status information indicates that the smart refrigerator is currently in an automatic mode, that is, the smart refrigerator can automatically increase or decrease the temperature according to the factory settings.
  • the decision-making judgment center determines the second analysis result by analyzing the working status information, and the second analysis result indicates that the smart refrigerator is currently in the automatic mode.
  • the first analysis result indicates that the terminal instructs the smart refrigerator to lower the temperature
  • the second analysis result indicates that the smart refrigerator is currently in automatic mode. Obviously, these two operations are not allowed to exist at the same time. Therefore, the first instruction and the working status information are mutually exclusive. Reprimanded.
  • the decision-making judgment center determines the first analysis result by analyzing the first instruction.
  • the first analysis result represents the first instruction for instructing smart The refrigerator is turned on.
  • the decision-making judgment center receives the current working state information of the smart refrigerator sent by the server, and it is assumed that the working state information indicates that the smart refrigerator is currently in a shutdown state.
  • the decision-making judgment center determines the second analysis result by analyzing the working status information, and the second analysis result indicates that the smart refrigerator is currently in the shutdown state.
  • the first analysis result indicates that the terminal instructs the smart refrigerator to turn on
  • the second analysis result indicates that the smart refrigerator is currently in the shutdown state. Obviously, these two operations are allowed to exist at the same time. Therefore, the first instruction and the working status information are not mutually exclusive. .
  • Step S204 The server compares the priority of the first instruction and the second instruction corresponding to the work status information, and triggers the execution of a corresponding operation according to the comparison result.
  • the server compares the priority of the first instruction and the second instruction corresponding to the working state information, and the comparison result may be divided For the following situations:
  • the first situation if the priority of the first instruction is higher than the priority of the second instruction, the smart home device is triggered to start executing the first instruction.
  • the server sends the first instruction to the smart washing machine, so that the smart washing machine starts to execute the first instruction.
  • the second case if the priority of the first instruction is lower than the priority of the second instruction, a failure response is sent to the terminal.
  • the smart washing machine For example, still taking a smart washing machine as an example, suppose that the current working status information of the smart washing machine indicates that the smart washing machine is using the conventional washing mode based on the second instruction, and the first instruction is used to instruct the smart washing machine to clean the tub. Obviously, the first instruction The priority is lower than the second instruction. At this time, the smart washing machine continues to execute the second instruction and sends a failure response to the terminal, prompting the user that the operation has failed.
  • the server refuses to execute the first command.
  • the third case if the priority of the first instruction and the priority of the second instruction are the same, the first instruction and the second instruction are sent to the server backend, according to the administrator
  • the instruction of the user triggers the execution of the corresponding operation; or the first instruction and the second instruction are sent to the terminal, and the execution of the corresponding operation is triggered according to the user's instruction.
  • the current working status information of the smart washing machine indicates that the smart washing machine is using the regular washing mode based on the second instruction
  • the first instruction is used to instruct the smart washing machine to use the fast washing mode.
  • the first instruction If the priority is the same as the second command, the first command and the second command are sent to the server backend, and the back-end administrator makes a decision to determine which command the washing machine executes; or, send the first command and the second command to the terminal , The user makes a decision to determine which instruction the washing machine executes.
  • Step S205 The server sends the first instruction to the smart home device to trigger the smart home device to execute the first instruction.
  • the server will send the first instruction to the smart home device.
  • the server compares the first instruction with the work status information, and obviously, the first instruction and the work status information are not mutually exclusive. At this time, the server sends the first instruction to the smart speaker so that the smart speaker starts to execute the first instruction.
  • the server compares the first instruction with the work status information, and obviously, the first instruction and the work status information are not mutually exclusive. At this time, the server sends the first instruction to the smart air conditioner, so that the smart air conditioner executes the first instruction, that is, the smart air conditioner is turned on.
  • Fig. 3 is a schematic structural diagram showing a control device of a smart home device according to an exemplary embodiment.
  • the device includes a receiving unit 301, an acquiring unit 302, and a processing unit 303.
  • the receiving unit 301 is configured to receive a first instruction sent by the terminal, where the first instruction carries identification information of the smart home device;
  • the obtaining unit 302 is configured to obtain current working state information of the smart home device according to the identification information, where the working state information is generated after the smart home device executes a second instruction;
  • the processing unit 303 is configured to trigger a mutually exclusive comparison of the first instruction and the working state information, and when it is determined that the first instruction and the working state information are not mutually exclusive, compare the first instruction to the working state information.
  • the instruction is sent to the smart home device to trigger the smart home device to execute the first instruction.
  • the processing unit 303 when a mutually exclusive comparison between the first instruction and the working status information is triggered, the processing unit 303 is specifically set to:
  • the first instruction and the work status information are sent to a designated analysis platform, and the analysis platform is triggered to perform a mutually exclusive comparison between the first instruction and the work status information.
  • the processing unit 303 when the first instruction and the working status information are directly compared for mutual exclusion, the processing unit 303 is specifically configured to:
  • the first analysis result and the second analysis result are compared to determine whether there are execution contents that are not allowed to exist at the same time. If so, it is determined that the first instruction and the working status information are mutually exclusive; otherwise, it is determined that all execution contents are mutually exclusive.
  • the first instruction and the working status information are non-mutually exclusive.
  • the processing unit 303 is further configured to:
  • the processing unit 303 is further configured to:
  • the first instruction and the second instruction are sent to the server backend, and the execution is triggered according to the administrator's instruction Corresponding operation; or, sending the first instruction and the second instruction to the terminal, and triggering the execution of the corresponding operation according to the user's instruction.
  • the physical device may include: a processor 401, a memory 402, a transceiver 403, and a bus interface 404;
  • the processor 401 is configured to read computer instructions in the memory 402 and execute any one of the methods executed by the above-mentioned control device of the smart home device.
  • the processor 401 is responsible for managing the bus architecture and general processing, and the memory 402 can store data used by the processor 401 when performing operations.
  • the transceiver 403 is configured to receive and transmit data under the control of the processor 401.
  • the bus architecture may include any number of interconnected buses and bridges. Specifically, one or more processors represented by the processor 401 and various circuits of the memory represented by the memory 402 are linked together.
  • the bus architecture can also link various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein.
  • the bus interface provides the interface.
  • the processor 401 is responsible for managing the bus architecture and general processing, and the memory 402 can store data used by the processor 401 when performing operations.
  • embodiments of the present disclosure provide a storage medium that stores computer-executable instructions, and the computer-executable instructions are configured to make the computer execute the control of the smart home device in the above-mentioned embodiments
  • the method executed by the device ie, the server.
  • the server receives the first instruction sent by the terminal, and the first instruction carries the identification information of the smart home device, and then obtains the current working status information of the smart home device according to the identification information, and then triggers the first instruction
  • the instruction and the working state information are mutually exclusive compared, and when it is determined that the first instruction and the working state information are not mutually exclusive, the smart home device is triggered to stop executing the second instruction and start executing the first instruction.
  • the server triggers a mutually exclusive comparison between the first instruction and the current working status information of the smart home device, and when it is determined that the smart home device is not mutually exclusive, the smart home device is executed immediately
  • the first instruction that is, the server triggers the mutual exclusion comparison between the first instruction and the working status information, which improves the system's instruction processing efficiency, reduces unnecessary requests on the server side, and improves the resource utilization of the server.
  • the smart home device can immediately execute the first instruction, thereby ensuring that the smart home device responds quickly to the control instruction, thereby improving the user's satisfaction with the smart home device Enhance the user experience.
  • the embodiments of the present disclosure can be provided as a method, a system, or a computer program product. Therefore, the present disclosure may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Manufacturing & Machinery (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本公开公开了一种智能家居设备的控制方法及装置,针对相关技术中服务器不断向智能家居设备转发控制指令,进而导致服务器资源消耗的问题,该方法包括:服务器接收终端发送的第一指令,所述第一指令中携带智能家居设备的标识信息;根据所述标识信息获取所述智能家居设备当前的工作状态信息;触发对所述第一指令和所述工作状态信息进行互斥性比较;根据比较结果确定所述第一指令和所述工作状态信息非互斥时,将所述第一指令发送给所述智能家居设备,触发所述智能家居设备响应。本公开中服务器触发第一指令和工作状态信息进行互斥性比较,提高系统的指令处理效率,减少服务器端不必要的请求量,提高服务器的资源利用率。

Description

一种智能家居设备的控制方法及装置
本公开要求于2019年08月26日提交中国专利局、申请号为201910790330.8、发明名称为“一种智能家居设备的控制方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及智能家居技术领域,尤其涉及一种智能家居设备的控制方法及装置。
背景技术
随着智能家居技术的快速发展,对智能家居设备的控制已由传统的按键操作、遥控器操作,逐渐发展到现在的通过应用程序(Application,APP)、小程序终端或者语音等进行操作。
以通过APP进行控制为例,相关技术下,当通过APP向智能家居设备发送控制指令时,需要运行所述APP的终端,先将控制指令发往网络侧的服务器,再由服务器转发至相应的智能家居设备。
然而,目前,智能家居设备在接收到来自于APP的控制指令时,并非每次都会立即执行所述控制指令,在某些情况下,智能家居设备会忽略或丢弃所述控制指令,而APP在未接收到智能家居设备的反馈时,会不断发送新的控制指令,这会使服务器不断向智能家居设备转发控制指令,消耗服务器资源,从而经运行APP的终端以及服务器,带来不必要的运行负荷。
例如:
智能电视接收到控制指令A后,正在执行录制节目A的操作,然而用户通过APP向智能电视再次发送录制节目B的控制指令B,此时,智能电视可能会忽略或丢弃控制指令B。而APP会由于未接收到智能电视的反馈,而不断 向服务器重新发送新的控制指令B,从而导致服务器会持续向智能电视发送控制指令B,进而导致服务器的资源消耗。
由此可见,需要设计一种新的方案,以克服上述缺陷。
发明内容
本公开提供了一种方法及装置,用以解决相关技术中服务器不断向智能家居设备转发控制指令,进而导致服务器资源消耗的问题。
本公开实施例提供的技术方案如下:
一种智能家居设备的控制方法,包括:
服务器接收终端发送的第一指令,所述第一指令中携带智能家居设备的标识信息;
所述服务器根据所述标识信息获取所述智能家居设备当前的工作状态信息,所述工作状态信息是所述智能家居设备执行第二指令后产生的;
所述服务器触发对所述第一指令和所述工作状态信息进行互斥性比较,并在确定所述第一指令和所述工作状态信息非互斥时,将所述第一指令发送给所述智能家居设备,触发所述智能家居执行所述第一指令。
在一些实施方式中,所述服务器触发对所述第一指令和所述工作状态信息进行互斥性比较,包括:
所述服务器直接对所述第一指令和所述工作状态信息进行互斥性比较;或者,
所述服务器将所述第一指令和所述工作状态信息发往指定的分析平台,触发所述分析平台对所述第一指令和所述工作状态信息进行互斥性比较。
在一些实施方式中,所述服务器直接对所述第一指令和所述工作状态信息进行互斥性比较,包括:
所述服务器对所述第一指令的指令内容进行解析,获得第一解析结果;
所述服务器对所述工作状态信息进行解析,获得第二解析结果;
所述服务器对所述第一解析结果和第二解析结果进行比较,判断是否存在不允许同时存在的执行内容,若是,则确定所述第一指令和所述工作状态信息是互斥的,否则,确定所述第一指令和所述工作状态信息是非互斥的。
在一些实施方式中,进一步包括:
若所述服务器根据所述比较结果确定所述第一指令和所述工作状态信息互斥,则执行以下操作:
所述服务器对所述第一指令和所述工作状态信息对应的第二指令的优先级进行比较,
若所述第一指令的优先级高于所述第二指令的优先级,则触发所述智能家居设备开始执行所述第一指令;
若所述第一指令的优先级低于所述第二指令的优先级,则向所述终端发送失败响应。
在一些实施方式中,进一步包括:
若所述第一指令的优先级和所述第二指令的优先级优先级相同,则将所述第一指令和所述第二指令发送给所述服务器后台,根据管理员的指令,触发执行相应操作;或者将所述第一指令和所述第二指令发送给所述终端,根据用户的指令,触发执行相应操作。
一种智能家居设备的控制装置,包括:
接收单元,被设置为接收终端发送的第一指令,所述第一指令中携带智能家居设备的标识信息;
获取单元,被设置为根据所述标识信息获取所述智能家居设备当前的工作状态信息,所述工作状态信息是所述智能家居设备执行第二指令后产生的;
处理单元,被设置为触发对所述第一指令和所述工作状态信息进行互斥性比较,,并在确定所述第一指令和所述工作状态信息非互斥时,将所述第一指令发送给所述智能家居设备,触发所述智能家居设备执行所述第一指令。
在一些实施方式中,触发对所述第一指令和所述工作状态信息进行互斥性 比较时,所述处理单元具体被设置为:
直接对所述第一指令和所述工作状态信息进行互斥性比较;或者,
将所述第一指令和所述工作状态信息发往指定的分析平台,触发所述分析平台对所述第一指令和所述工作状态信息进行互斥性比较。
在一些实施方式中,直接对所述第一指令和所述工作状态信息进行互斥性比较时,所述处理单元具体被设置为:
对所述第一指令的指令内容进行解析,获得第一解析结果;
对所述工作状态信息进行解析,获得第二解析结果;
对所述第一解析结果和第二解析结果进行比较,判断是否存在不允许同时存在的执行内容,若是,则确定所述第一指令和所述工作状态信息是互斥的,否则,确定所述第一指令和所述工作状态信息是非互斥的。
在一些实施方式中,所述处理单元进一步被设置为:
若所述比较结果确定所述第一指令和所述工作状态信息互斥,则执行以下操作:
对所述第一指令和所述工作状态信息对应的第二指令的优先级进行比较,
若所述第一指令的优先级高于所述第二指令的优先级,则触发所述智能家居设备开始执行所述第一指令;
若所述第一指令的优先级低于所述第二指令的优先级,则向所述终端发送失败响应。
在一些实施方式中,所述处理单元进一步被设置为:
若所述第一指令的优先级和所述第二指令的优先级优先级相同,则将所述第一指令和所述第二指令发送给所述服务器后台,根据管理员的指令,触发执行相应操作;或者,将所述第一指令和所述第二指令发送给所述终端,根据用户的指令,触发执行相应操作。
一种服务器,包括:
存储器,被设置为存储可执行指令;
处理器,被设置为读取并执行所述存储器中存储的可执行指令,以实现如上述任一项所述的智能家居设备的控制方法。
一种存储介质,当所述存储介质中的指令由处理器执行时,使得所述处理器能够执行如上述任一项所述的智能家居设备的控制方法。
本公开实施例中,服务器接收终端发送的第一指令,根据标识信息获取智能家居设备当前的工作状态信息,触发对第一指令和工作状态信息进行互斥性比较,确定第一指令和工作状态信息非互斥时,触发智能家居设备停止执行第二指令,并开始执行第一指令。这样,可以提高系统的指令处理效率,减少服务器端不必要的请求量,提高服务器的资源利用率,保证智能家居设备对控制指令的快速响应,进而,提高用户的对智能家居设备的满意度,增强用户体验。
附图说明
为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例中智能家居系统的结构示意图;
图2为本公开实施例中对智能家居设备的控制流程示意图;
图3为本公开实施例提供的一种智能家居设备的控制装置的结构示意图;
图4为本公开实施例提供的一种服务器的结构示意图。
具体实施方式
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。 应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
下面结合附图对本公开优先的实施方式作出进一步详细说明。
参阅图1所示,本公开实施例中,智能家居系统中至少包括:
终端、服务器及智能家居设备。
所述终端,被设置为接收用户的控制指令,并将控制指令通过网络转发给服务器;所述终端包含但不限于智能手机、笔记本电脑、个人计算机、个人数字助理、移动互联网设备、智能可穿戴设备(如智能手表、智能手环)等等各类用户终端。
所述智能家居设备,被设置为接收服务器发送的控制指令,按照接收的控制指令,执行相应的操作。本公开实施例中,智能家居设备包含但不限于空调、洗衣机、冰箱、热水器、电饭煲、灯等等各类智能家居。
所述服务器,被设置为接收终端的控制指令,并进行互斥性判断,确定不存在互斥情况时,将控制指令发送至智能家居设备。
如图1所示,本公开实施例中,被设置为执行互斥性判断的实体称为决策判断中心,所述决策判断中心,可以是服务器中的功能模块,也可以是后台中的功能模块,还可以是独立的服务装置。
本公开实施例中,参阅图2所示,对智能家居设备进行控制的详细流程如下:
步骤S201:服务器接收终端发送的第一指令,所述第一指令中携带智能家居设备的标识信息。
具体的,本公开实施例中,用户可以通过应用程序(Application,APP)、小程序等在终端上选择对智能家居设备的控制指令,终端根据用户的操作行为 产生第一指令,并在第一指令中携带有智能家居设备的标识信息,然后终端将第一指令发送给服务器。
例如,以智能空调为例,用户可以通过APP等方式选择调整温度、定时、调整风向等控制指令,假设,用户指示降低温度,终端会将被设置为表征降低温度的第一指令发送给服务器,并在第一指令中携带智能空调的标识信息。
步骤S202:服务器根据所述标识信息获取所述智能家居设备当前的工作状态信息,所述工作状态信息是所述智能家居设备执行第二指令后产生的。
具体的,本公开实施例中,服务器从终端接收的第一指令中包含智能家居设备的标识信息,服务器根据标识信息可以识别出智能家居设备。
具体的,服务器还需要从所述智能家居设备上,获取所述智能家居设备当前的工作状态信息,这是因为,所述智能家居设备此时可能正在执行之前接收的第二指令,或者,智能家居设备已经执行了第二指令,因此,服务器会根据智能家居设备执行第二指令后的当前的工作状态信息,判断智能家居设备当前的工作状态信息是否与第一指令互斥。
例如,仍以智能空调为例,假设,智能空调执行第二指令后,智能空调当前的工作状态信息表征智能空调当前处于自动模式,即智能空调可以根据室内温度,自动进行温度升高或温度降低,则服务器可以根据第一指令中携带的标识信息识别出智能空调,并从智能空调上获取表征智能空调当前处于自动模式的工作状态信息,从而,可以根据智能空调执行第二指令后的当前的工作状态信息,判断智能空调当前的工作状态信息是否与第一指令互斥。
又例如,仍以智能空调为例,假设,智能空调执行表征智能空调关机的第二指令后,服务器可以根据第一指令中携带的标识信息识别出智能空调,然而,由于智能空调执行了第二指令,服务器无法从智能空调上获取工作状态信息,服务器在等待一定时间且智能空调都无响应后,确定智能空调当前的工作状态信息表征智能空调当前处于关机状态。
步骤S203:服务器触发对所述第一指令和所述工作状态信息进行互斥性比 较,判断是否互斥,若是,则执行步骤S204,否则,执行步骤S205。
具体的,本公开实施例中,服务器可以采用但不限于以下两种方式执行步骤203:
第一种方式为:服务器在本地进行互斥性比较。
具体包括以下步骤:
A1、服务器对第一指令的指令内容进行解析,获得第一解析结果。
B1、服务器对工作状态信息进行解析,获得第二解析结果。
C1、服务器对所述第一解析结果和第二解析结果进行比较,判断是否存在不允许同时存在的执行内容,若是,则确定所述第一指令和所述工作状态信息是互斥的,否则,确定所述第一指令和所述工作状态信息是非互斥的。
例如,以智能电视为例,服务器接收到终端发送的第一指令后,通过对第一指令进行解析,确定第一解析结果,所述第一解析结果表征第一指令用于指示智能电视实时录制节目1。
接着,服务器获取智能电视当前的工作状态信息,通过对工作状态信息进行解析,确定第二解析结果,所述第二解析结果表征智能电视当前正在实时录制节目2。
那么,服务器解析出的第一解析结果表征终端指示智能电视录制实时节目1,第二解析结果表征智能电视当前正在实时录制节目2,显然,这两种操作是不允许同时存在的,因此,第一指令和工作状态信息是互斥的。
又例如,仍以智能电视为例,服务器接收到终端发送的第一指令后,通过对第一指令进行解析,确定第一解析结果,所述第一解析结果表征第一指令用于指示智能电视调整音量。
接着,服务器获取智能电视当前的工作状态信息,通过对工作状态信息进行解析,确定第二解析结果,所述第二解析结果表征智能电视当前处于关机状态。
那么,服务器解析出的第一解析结果表征终端指示智能电视调整音量,第 二解析结果表征智能电视当前处于关机状态,显然,这两种操作是不允许同时存在的,因此,第一指令和工作状态信息是互斥的。
第二种方式为:服务器将所述第一指令和所述工作状态信息发往指定的分析平台,即决策判断中心,由决策判断中心对所述第一指令和所述工作状态信息进行互斥性比较,并获得决策判断中心返回的比较结果。
具体包括以下步骤:
A2、决策判断中心接收服务器转发的第一指令,并对第一指令的指令内容进行解析,获得第一解析结果。
B2、决策判断中心接收服务器转发的工作状态信息,并对工作状态信息进行解析,获得第二解析结果。
C2、决策判断中心对所述第一解析结果和第二解析结果进行比较,判断是否存在不允许同时存在的执行内容,若是,则确定所述第一指令和所述工作状态信息是互斥的,否则,确定所述第一指令和所述工作状态信息是非互斥的。
例如,以智能冰箱为例,决策判断中心接收服务器发送的第一指令后,通过对第一指令进行解析,确定第一解析结果,所述第一解析结果表征第一指令用于指示智能冰箱降低温度。
接着,决策判断中心接收服务器发送的智能冰箱当前的工作状态信息,假设,工作状态信息表征智能冰箱当前处于自动模式,即智能冰箱可以根据出厂设置,自动进行温度升高或温度降低。决策判断中心通过对工作状态信息进行解析,确定第二解析结果,所述第二解析结果表征智能冰箱当前处于自动模式。
那么,第一解析结果表征终端指示智能冰箱降低温度,第二解析结果表征智能冰箱当前处于自动模式,显然,这两种操作是不允许同时存在的,因此,第一指令和工作状态信息是互斥的。
又例如,仍以智能冰箱为例,决策判断中心接收服务器发送的第一指令后,通过对第一指令进行解析,确定第一解析结果,所述第一解析结果表征第一指令用于指示智能冰箱开机。
接着,决策判断中心接收服务器发送的智能冰箱当前的工作状态信息,假设,工作状态信息表征智能冰箱当前处于关机状态。决策判断中心通过对工作状态信息进行解析,确定第二解析结果,所述第二解析结果表征智能冰箱当前处于关机状态。
那么,第一解析结果表征终端指示智能冰箱开机,第二解析结果表征智能冰箱当前处于关机状态,显然,这两种操作是允许同时存在的,因此,第一指令和工作状态信息是非互斥的。
步骤S204:服务器对所述第一指令和所述工作状态信息对应的第二指令的优先级进行比较,根据比较结果触发执行相应操作。
具体的,当第一指令和所述工作状态信息之间是互斥状态时,服务器会对所述第一指令和所述工作状态信息对应的第二指令的优先级进行比较,比较结果可能分为以下几种情况:
第一种情况:若所述第一指令的优先级高于所述第二指令的优先级,则触发所述智能家居设备开始执行所述第一指令。
例如,以智能洗衣机为例,假设,智能洗衣机当前的工作状态信息表征智能洗衣机基于第二指令正在使用常规洗涤模式,而第一指令用于指示智能洗衣机暂停运行,显然,第一指令的优先级高于第二指令。此时,服务器会将第一指令发送至智能洗衣机,使智能洗衣机开始执行第一指令。
第二种情况:若所述第一指令的优先级低于所述第二指令的优先级,则向所述终端发送失败响应。
例如,仍以智能洗衣机为例,假设,智能洗衣机当前的工作状态信息表征智能洗衣机基于第二指令正在使用常规洗涤模式,而第一指令用于指示智能洗衣机进行桶清洁,显然,第一指令的优先级低于第二指令。此时,智能洗衣机继续执行所述第二指令,并向终端发送失败响应,提示用户操作失败。
又例如,以智能空调为例,假设,智能空调当前的工作状态信息表征智能空调基于第二指令进行了关机,而第一指令用于指示智能空调调整风速,显然, 第一指令的优先级低于第二指令的优先级,此时,服务器拒绝执行第一指令。
第三种情况:若所述第一指令的优先级和所述第二指令的优先级优先级相同,则将所述第一指令和所述第二指令发送给所述服务器后台,根据管理员的指令,触发执行相应操作;或者将所述第一指令和所述第二指令发送给所述终端,根据用户的指令,触发执行相应操作。
例如,仍以智能洗衣机为例,假设,智能洗衣机当前的工作状态信息表征智能洗衣机基于第二指令正在使用常规洗涤模式,而第一指令用于指示智能洗衣机使用快速洗涤模式,此时第一指令和第二指令的优先级相同,则将第一指令和第二指令发送至服务器后台,由后台管理员进行决策,确定洗衣机执行哪条指令;或者,将第一指令和第二指令发送至终端,由用户进行决策,确定洗衣机执行哪条指令。
步骤S205:服务器将所述第一指令发送给所述智能家居设备,触发所述智能家居设备执行所述第一指令。
具体的,当第一指令和所述工作状态信息之间是非互斥状态时,服务器会将第一指令发送至智能家居设备。
例如,以智能音响为例,假设,智能音响当前的工作状态信息表征智能音响当前正在播放歌曲1,第一指令表征智能音响播放歌曲2。由服务器对第一指令和工作状态信息进行比较,显然,第一指令和工作状态信息是非互斥的。此时,服务器将第一指令发送给智能音响,使智能音响开始执行第一指令。
又例如,以智能空调为例,假设,智能空调当前的工作状态信息表征智能空调当前处于关机状态,而第一指令用于指示智能空调开机。由服务器对第一指令和工作状态信息进行比较,显然,第一指令和工作状态信息是非互斥的。此时,服务器将第一指令发送给智能空调,使智能空调执行第一指令,即,智能空调开机。
图3是根据一示例性实施例示出的智能家居设备的控制装置的结构示意图。参阅图3所示,该装置包括接收单元301、获取单元302、处理单元303。
接收单元301,被设置为接收终端发送的第一指令,所述第一指令中携带智能家居设备的标识信息;
获取单元302,被设置为根据所述标识信息获取所述智能家居设备当前的工作状态信息,所述工作状态信息是所述智能家居设备执行第二指令后产生的;
处理单元303,被设置为触发对所述第一指令和所述工作状态信息进行互斥性比较,并在确定所述第一指令和所述工作状态信息非互斥时,将所述第一指令发送给所述智能家居设备,触发所述智能家居设备执行所述第一指令。
在一些实施方式中,触发对所述第一指令和所述工作状态信息进行互斥性比较时,所述处理单元303具体被设置为:
直接对所述第一指令和所述工作状态信息进行互斥性比较;或者,
将所述第一指令和所述工作状态信息发往指定的分析平台,触发所述分析平台对所述第一指令和所述工作状态信息进行互斥性比较。
在一些实施方式中,直接对所述第一指令和所述工作状态信息进行互斥性比较时,所述处理单元303具体被设置为:
对所述第一指令的指令内容进行解析,获得第一解析结果;
对所述工作状态信息进行解析,获得第二解析结果;
对所述第一解析结果和第二解析结果进行比较,判断是否存在不允许同时存在的执行内容,若是,则确定所述第一指令和所述工作状态信息是互斥的,否则,确定所述第一指令和所述工作状态信息是非互斥的。
在一些实施方式中,所述处理单元303进一步被设置为:
若所述比较结果确定所述第一指令和所述工作状态信息互斥,则执行以下操作:
对所述第一指令和所述工作状态信息对应的第二指令的优先级进行比较,
若所述第一指令的优先级高于所述第二指令的优先级,则触发所述智能家居设备开始执行所述第一指令;
若所述第一指令的优先级低于所述第二指令的优先级,则向所述终端发送 失败响应。
在一些实施方式中,所述处理单元303进一步被设置为:
若所述第一指令的优先级和所述第二指令的优先级优先级相同,则将所述第一指令和所述第二指令发送给所述服务器后台,根据管理员的指令,触发执行相应操作;或者,将所述第一指令和所述第二指令发送给所述终端,根据用户的指令,触发执行相应操作。
参阅图4所示,基于同一发明构思,本公开实施例提供一种服务器的结构示意图。如图所示,该实体装置可包括:处理器401、存储器402、收发机403以及总线接口404;
所述处理器401,被设置为读取所述存储器402中的计算机指令,执行上述智能家居设备的控制装置所执行的任意一种方法。
处理器401负责管理总线架构和通常的处理,存储器402可以存储处理器401在执行操作时所使用的数据。收发机403被设置为在处理器401的控制下接收和发送数据。
总线架构可以包括任意数量的互联的总线和桥,具体由处理器401代表的一个或多个处理器和存储器402代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。处理器401负责管理总线架构和通常的处理,存储器402可以存储处理器401在执行操作时所使用的数据。
基于同一发明构思,本公开实施例提供了一种存储介质,所述存储介质存储有计算机可执行指令,所述计算机可执行指令被设置为使所述计算机执行上述实施例中智能家居设备的控制装置(即服务器)所执行的方法。
本公开实施例中,首先,服务器接收终端发送的第一指令,第一指令中携带智能家居设备的标识信息,然后,根据标识信息获取智能家居设备当前的工作状态信息,接着,触发对第一指令和工作状态信息进行互斥性比较,确定第 一指令和工作状态信息非互斥时,触发智能家居设备停止执行所述第二指令,并开始执行所述第一指令。这样,本公开的实施例提供的技术方案至少带来以下有益效果:服务器触发对第一指令与智能家居设备当前的工作状态信息进行互斥性比较,确定非互斥时使智能家居设备立即执行第一指令,即,服务器触发对第一指令与工作状态信息进行互斥性比较,提高系统的指令处理效率,减少服务器端不必要的请求量,提高服务器的资源利用率,并且,当第一指令与智能家居设备当前的工作状态信息非互斥时,能够使智能家居设备立即执行第一指令,从而,保证智能家居设备对控制指令的快速响应,进而,提高用户的对智能家居设备的满意度,增强用户体验。
本领域内的技术人员应明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本公开是参照根据本公开实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使 得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本公开的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本公开范围的所有变更和修改。
显然,本领域的技术人员可以对本公开进行各种改动和变型而不脱离本公开的精神和范围。这样,倘若本公开的这些修改和变型属于本公开权利要求及其等同技术的范围之内,则本公开也意图包含这些改动和变型在内。

Claims (12)

  1. 一种智能家居设备的控制方法,包括:
    服务器接收终端发送的第一指令,所述第一指令中携带智能家居设备的标识信息;
    所述服务器根据所述标识信息获取所述智能家居设备当前的工作状态信息,所述工作状态信息是所述智能家居设备执行第二指令后产生的;
    所述服务器触发对所述第一指令和所述工作状态信息进行互斥性比较,并在确定所述第一指令和所述工作状态信息非互斥时,将所述第一指令发送给所述智能家居设备,触发所述智能家居设备执行所述第一指令。
  2. 如权利要求1所述的方法,其中,所述服务器触发对所述第一指令和所述工作状态信息进行互斥性比较,包括:
    所述服务器直接对所述第一指令和所述工作状态信息进行互斥性比较;或者,
    所述服务器将所述第一指令和所述工作状态信息发往指定的分析平台,触发所述分析平台对所述第一指令和所述工作状态信息进行互斥性比较。
  3. 如权利要求2所述的方法,其中,所述服务器直接对所述第一指令和所述工作状态信息进行互斥性比较,包括:
    所述服务器对所述第一指令的指令内容进行解析,获得第一解析结果;
    所述服务器对所述工作状态信息进行解析,获得第二解析结果;
    所述服务器对所述第一解析结果和第二解析结果进行比较,判断是否存在不允许同时存在的执行内容,若是,则确定所述第一指令和所述工作状态信息是互斥的,否则,确定所述第一指令和所述工作状态信息是非互斥的。
  4. 如权利要求1、2或3所述的方法,其中,进一步包括:
    若所述服务器根据所述比较结果确定所述第一指令和所述工作状态信息互斥,则执行以下操作:
    所述服务器对所述第一指令和所述工作状态信息对应的第二指令的优先 级进行比较,
    若所述第一指令的优先级高于所述第二指令的优先级,则触发所述智能家居设备开始执行所述第一指令;
    若所述第一指令的优先级低于所述第二指令的优先级,则向所述终端发送失败响应。
  5. 如权利要求4所述的方法,其中,进一步包括:
    若所述第一指令的优先级和所述第二指令的优先级优先级相同,则将所述第一指令和所述第二指令发送给所述服务器后台,根据管理员的指令,触发执行相应操作;或者,将所述第一指令和所述第二指令发送给所述终端,根据用户的指令,触发执行相应操作。
  6. 一种智能家居设备的控制装置,包括:
    接收单元,被设置为接收终端发送的第一指令,所述第一指令中携带智能家居设备的标识信息;
    获取单元,被设置为根据所述标识信息获取所述智能家居设备当前的工作状态信息,所述工作状态信息是所述智能家居设备执行第二指令后产生的;
    处理单元,被设置为触发对所述第一指令和所述工作状态信息进行互斥性比较,并在确定所述第一指令和所述工作状态信息非互斥时,将所述第一指令发送给所述智能家居设备,触发所述智能家居设备执行所述第一指令。
  7. 如权利要求6所述的装置,其中,触发对所述第一指令和所述工作状态信息进行互斥性比较时,所述处理单元具体被设置为:
    直接对所述第一指令和所述工作状态信息进行互斥性比较;或者,
    将所述第一指令和所述工作状态信息发往指定的分析平台,触发所述分析平台对所述第一指令和所述工作状态信息进行互斥性比较。
  8. 如权利要求7所述的装置,其中,直接对所述第一指令和所述工作状态信息进行互斥性比较时,所述处理单元具体被设置为:
    对所述第一指令的指令内容进行解析,获得第一解析结果;
    对所述工作状态信息进行解析,获得第二解析结果;
    对所述第一解析结果和第二解析结果进行比较,判断是否存在不允许同时存在的执行内容,若是,则确定所述第一指令和所述工作状态信息是互斥的,否则,确定所述第一指令和所述工作状态信息是非互斥的。
  9. 如权利要求6、7或8所述的装置,其中,所述处理单元进一步被设置为:
    若所述比较结果确定所述第一指令和所述工作状态信息互斥,则执行以下操作:
    对所述第一指令和所述工作状态信息对应的第二指令的优先级进行比较,
    若所述第一指令的优先级高于所述第二指令的优先级,则触发所述智能家居设备开始执行所述第一指令;
    若所述第一指令的优先级低于所述第二指令的优先级,则向所述终端发送失败响应。
  10. 如权利要求9所述的装置,其中,所述处理单元进一步被设置为:
    若所述第一指令的优先级和所述第二指令的优先级优先级相同,则将所述第一指令和所述第二指令发送给所述服务器后台,根据管理员的指令,触发执行相应操作;或者,将所述第一指令和所述第二指令发送给所述终端,根据用户的指令,触发执行相应操作。
  11. 一种服务器,包括:
    存储器,被设置为存储可执行指令;
    处理器,被设置为读取并执行所述存储器中存储的可执行指令,以实现如权利要求1至5中任一项所述的智能家居设备的控制方法。
  12. 一种存储介质,当所述存储介质中的指令由处理器执行时,使得所述处理器能够执行如权利要求1至5中任一项所述的智能家居设备的控制方法。
PCT/CN2020/100446 2019-08-26 2020-07-06 一种智能家居设备的控制方法及装置 WO2021036512A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910790330.8 2019-08-26
CN201910790330.8A CN110493091A (zh) 2019-08-26 2019-08-26 一种智能家居设备的控制方法及装置

Publications (1)

Publication Number Publication Date
WO2021036512A1 true WO2021036512A1 (zh) 2021-03-04

Family

ID=68554142

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/100446 WO2021036512A1 (zh) 2019-08-26 2020-07-06 一种智能家居设备的控制方法及装置

Country Status (2)

Country Link
CN (1) CN110493091A (zh)
WO (1) WO2021036512A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112785268A (zh) * 2021-01-22 2021-05-11 广州富港万嘉智能科技有限公司 智能家居服务方法、装置、电子设备及存储介质
CN113254077A (zh) * 2021-06-18 2021-08-13 深圳市欧瑞博科技股份有限公司 智能设备的状态控制方法、装置、电子设备及存储介质
CN113703844A (zh) * 2021-07-27 2021-11-26 厦门市思芯微科技有限公司 一种指令下发方法、系统、装置及计算机可读存储介质
CN114137844A (zh) * 2021-11-16 2022-03-04 青岛海尔科技有限公司 智能家居设备的控制方法、控制装置与物联网系统
CN114780006A (zh) * 2022-04-06 2022-07-22 青岛海尔科技有限公司 命令下发的控制方法以及控制终端

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110501915A (zh) * 2019-08-12 2019-11-26 珠海格力电器股份有限公司 一种控制设备的方法及服务器
CN110493091A (zh) * 2019-08-26 2019-11-22 珠海格力电器股份有限公司 一种智能家居设备的控制方法及装置
CN111141015A (zh) * 2019-12-31 2020-05-12 宁波奥克斯电气股份有限公司 一种远程空调控制方法
CN111263188B (zh) * 2020-02-17 2021-10-08 腾讯科技(深圳)有限公司 一种视频画质调整方法、装置、电子设备和存储介质
CN112631243B (zh) * 2020-12-07 2022-06-24 青岛海尔科技有限公司 安全控制方法和装置、存储介质及电子装置
CN112526892B (zh) * 2020-12-18 2022-08-05 青岛海尔科技有限公司 用于控制智能家居设备的方法及装置、电子设备
CN113485134A (zh) * 2021-06-25 2021-10-08 青岛海尔科技有限公司 设备控制方法和装置、存储介质及电子设备
CN113359500A (zh) * 2021-07-02 2021-09-07 佛山市淇特科技有限公司 智能家居设备状态同步方法、装置、设备和存储介质
CN113703330B (zh) * 2021-08-25 2023-10-27 珠海格力电器股份有限公司 跨平台控制设备的方法、装置、系统与处理器
CN114019817A (zh) * 2021-11-16 2022-02-08 青岛海尔科技有限公司 智能家居设备的控制方法、控制装置与物联网系统
CN114374681B (zh) * 2021-12-09 2023-08-22 达闼机器人股份有限公司 任务执行方法、装置、设备和存储介质
CN114244642B (zh) * 2021-12-10 2022-10-28 珠海格力电器股份有限公司 设备的控制方法及其装置、计算机可读存储介质、处理器

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959187A (zh) * 2016-05-19 2016-09-21 青岛海信传媒网络技术有限公司 一种远程定时任务的控制方法和系统
US9537662B2 (en) * 2014-10-08 2017-01-03 Google Inc. Certificates for low-power or low-memory devices
CN110493091A (zh) * 2019-08-26 2019-11-22 珠海格力电器股份有限公司 一种智能家居设备的控制方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282140B (zh) * 2015-09-07 2018-12-18 北京幻腾科技有限公司 一种智能家居系统的控制方法、设备及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9537662B2 (en) * 2014-10-08 2017-01-03 Google Inc. Certificates for low-power or low-memory devices
CN105959187A (zh) * 2016-05-19 2016-09-21 青岛海信传媒网络技术有限公司 一种远程定时任务的控制方法和系统
CN110493091A (zh) * 2019-08-26 2019-11-22 珠海格力电器股份有限公司 一种智能家居设备的控制方法及装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112785268A (zh) * 2021-01-22 2021-05-11 广州富港万嘉智能科技有限公司 智能家居服务方法、装置、电子设备及存储介质
CN113254077A (zh) * 2021-06-18 2021-08-13 深圳市欧瑞博科技股份有限公司 智能设备的状态控制方法、装置、电子设备及存储介质
CN113703844A (zh) * 2021-07-27 2021-11-26 厦门市思芯微科技有限公司 一种指令下发方法、系统、装置及计算机可读存储介质
CN114137844A (zh) * 2021-11-16 2022-03-04 青岛海尔科技有限公司 智能家居设备的控制方法、控制装置与物联网系统
CN114780006A (zh) * 2022-04-06 2022-07-22 青岛海尔科技有限公司 命令下发的控制方法以及控制终端
CN114780006B (zh) * 2022-04-06 2023-06-09 青岛海尔科技有限公司 命令下发的控制方法以及控制终端

Also Published As

Publication number Publication date
CN110493091A (zh) 2019-11-22

Similar Documents

Publication Publication Date Title
WO2021036512A1 (zh) 一种智能家居设备的控制方法及装置
US11314308B2 (en) Control method for mobile terminal and controlled device, apparatus and system
RU2639353C2 (ru) Способ и устройство для отправки подсказки в виде сообщения
TWI592802B (zh) 熱調適服務品質等級
EP3091537B1 (en) Noise cancellation for voice activation
US8973005B2 (en) Information processing apparatus, information processing method, recording medium and information processing system
CN106487928B (zh) 消息推送方法及装置
US9585049B2 (en) Method for multipath scheduling based on a lookup table
WO2022127741A1 (zh) 指令执行方法、系统、网络设备及存储介质
CN102402454B (zh) 一种调节内存运行频率的方法及电子设备
KR20160089145A (ko) 음성 인식 방법 및 음성 인식 장치
WO2020135487A1 (zh) 一种智能家居中动态构建环境调节规则列表的方法及装置
WO2020259354A1 (zh) 队列调整方法、装置、设备及计算机可读存储介质
KR102081274B1 (ko) 블록체인망을 이용한 iot 가전 상태 관제 시스템
EP3531676B1 (en) Task processing apparatus, intelligent device, task processing method, and baseband processor
WO2014180295A1 (zh) 获取性能优化策略及终端性能优化的方法、服务器及终端
CN105260236A (zh) 一种移动终端及其处理器性能调整方法
WO2016197824A1 (zh) 一种语音指令处理方法、装置及智能网关
WO2016192579A1 (zh) 一种信息处理方法、云服务平台及信息处理系统
WO2022268068A1 (zh) 无线通信方法、装置、电子设备及可读存储介质
CN112463367A (zh) 一种存储系统性能优化方法、系统及电子设备和存储介质
WO2023103599A1 (zh) 投屏方法、装置、存储介质及电子设备
WO2021012795A1 (zh) 网络节点的调度方法、装置、电子设备和存储介质
US20220237044A1 (en) Dynamic client/server selection for machine learning execution
WO2023231894A1 (zh) 基于协同纠错的唤醒方法、装置及系统、介质、设备

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: 20856261

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: 20856261

Country of ref document: EP

Kind code of ref document: A1