WO2016179913A1 - Home gateway and operation method thereof - Google Patents

Home gateway and operation method thereof Download PDF

Info

Publication number
WO2016179913A1
WO2016179913A1 PCT/CN2015/086402 CN2015086402W WO2016179913A1 WO 2016179913 A1 WO2016179913 A1 WO 2016179913A1 CN 2015086402 W CN2015086402 W CN 2015086402W WO 2016179913 A1 WO2016179913 A1 WO 2016179913A1
Authority
WO
WIPO (PCT)
Prior art keywords
smart home
priority
home terminal
task
terminal control
Prior art date
Application number
PCT/CN2015/086402
Other languages
French (fr)
Chinese (zh)
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 WO2016179913A1 publication Critical patent/WO2016179913A1/en

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]
    • 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
    • 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, but is not limited to, the field of communications.
  • the intelligent home gateway is a centrally established component of the smart home system, which mainly completes the connection and control of multiple smart home terminals.
  • Smart home terminals and smart home gateways are connected through a variety of wireless interconnection technologies, including smart lights, televisions, air conditioners, water heaters and many other smart home devices.
  • the smart home gateway must also be connected to a variety of control terminals, such as mobile phones, IPAD and other smart terminals and wireless switches.
  • the control terminal can issue control commands at any time to connect to and operate the smart home terminal through the smart home gateway.
  • the smart home gateway processes the control commands of the control terminal, the received control commands are processed in a random order.
  • the air conditioner may be turned on first, and then the light may be turned on; in actual operation, after the user waits for a few seconds, the light is turned on again, but according to the general user.
  • the habit of all is to wait for the first light, and then turn on the air conditioner.
  • the waiting effect of this situation causes the actual user experience to be poor. Therefore, the mechanism of the random processing control command of the related art smart home gateway is poor in controllability, resulting in poor user experience satisfaction.
  • This paper provides a home gateway and its working method, which solves the problem that the related technology home gateway random processing control task leads to controllability and poor user experience satisfaction.
  • a working method of a home gateway comprising:
  • the home gateway obtains a smart home terminal control task to be executed
  • the home gateway performs the smart home terminal control task in an order of execution priority from high to low.
  • the home gateway determines that the acquired execution priority of each smart home terminal control task includes:
  • the home gateway obtains a priority of each smart home terminal
  • the home gateway determines an execution priority of each smart home terminal control task according to a priority of each smart home terminal.
  • the determining, by the home gateway, the execution priority of each smart home terminal control task according to the priority of each smart home terminal includes:
  • the home gateway determines a smart home terminal corresponding to the smart home terminal control task
  • the home gateway sets the execution priority of the smart home terminal control task to be the same as the priority of the corresponding smart home terminal.
  • the home gateway determines that the acquired execution priority of each smart home terminal control task includes:
  • the home gateway determines an execution priority of each smart home terminal control task according to a task type of each smart home terminal control task.
  • the performing, by the home gateway, the smart home terminal control tasks in an order of execution priority from high to low includes:
  • Smart home terminal control tasks When there are multiple smart home terminal control tasks with the same priority, when performing the same level of execution priority, the chronological order of the tasks is sent or the chronological order of the tasks is obtained or randomly executed. Smart home terminal control tasks.
  • a home gateway includes a task acquisition module, a processing module, and a task execution module:
  • the task acquisition module is configured to: acquire a smart home terminal control task to be executed
  • the processing module is configured to: determine an execution priority of each smart home terminal control task acquired;
  • the task execution module is configured to execute the smart home terminal control task in an order from highest to lowest in accordance with an execution priority.
  • the processing module includes an information acquiring submodule and a determining submodule
  • the information acquisition submodule is configured to: obtain a priority of each smart home terminal;
  • the determining submodule is configured to: determine an execution priority of each corresponding smart home terminal control task according to a priority of each smart home terminal.
  • the determining submodule includes a first determining subunit and a second determining subunit
  • the first determining subunit is configured to: determine a smart home terminal corresponding to the smart home terminal control task;
  • the second determining subunit is configured to set an execution priority of the smart home terminal control task to be the same as a priority of the corresponding smart home terminal.
  • the processing module includes a type analysis submodule and a priority setting submodule;
  • the type analysis submodule is configured to: determine a task type of each smart home terminal control task;
  • the priority setting sub-module is configured to: set an execution priority of each smart home terminal control task according to a priority of each smart home terminal.
  • the task execution module includes a determination submodule and a sequence determination submodule
  • the determining sub-module is configured to: determine whether there are multiple smart home terminal control tasks with the same priority;
  • the sequence determining sub-module is configured to: when the judgment result of the determining sub-module is YES, when performing the same level of execution priority, according to the chronological order issued by the task or the chronological order of obtaining the task Or the manner of random selection determines the execution order of each smart home terminal control task of the level.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the home gateway and the working method thereof are provided by the embodiment of the present invention. After the home gateway obtains the smart home terminal control task to be executed, the home gateway determines the execution priority of each smart home terminal control task, and then follows the determined execution priority. The high-end sequence performs each smart home terminal control task. In this way, the control task that the user wants to perform preferentially is preferentially executed, and the method of random processing of the related technology home gateway is more controllable, and the satisfaction of the user experience can be improved to a large extent.
  • FIG. 1 is a schematic flowchart of a working method of a home gateway according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of determining an execution priority according to a priority of a smart home terminal according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic flowchart of determining an execution priority according to a task type of a smart home terminal control task according to Embodiment 1 of the present invention
  • FIG. 4 is a schematic structural diagram of a home gateway according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic flowchart of a working method of a home gateway according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic structural diagram of a smart home according to Embodiment 3 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 For the working method of the home gateway provided in this embodiment, refer to FIG. 1 , which includes:
  • Step 101 The home gateway obtains a smart home terminal control task to be executed.
  • Step 102 The home gateway determines that the acquired execution priority of each smart home terminal control task is prioritized. level;
  • Step 103 The home gateway performs each smart home terminal control task in order from the highest priority to the execution priority.
  • the home gateway may obtain the smart home terminal control task from the control terminal (for example, a smart mobile terminal or a wireless switch, etc.); the smart home terminal control task in this embodiment includes controlling the task initiated by the terminal to connect to the smart home terminal. And the task of performing various operations on the smart home terminal, such as turning on, off, or adjusting the state.
  • the control terminal for example, a smart mobile terminal or a wireless switch, etc.
  • the smart home terminal control task in this embodiment includes controlling the task initiated by the terminal to connect to the smart home terminal.
  • the task of performing various operations on the smart home terminal such as turning on, off, or adjusting the state.
  • the home gateway may determine the execution priority of each task according to the task type of the smart home terminal control task, and may also determine the execution priority of each task according to the priority of each smart home terminal itself.
  • the home gateway may determine the execution priority of each task according to the task type of the smart home terminal control task, and may also determine the execution priority of each task according to the priority of each smart home terminal itself.
  • Step 201 The home gateway obtains a priority of each smart home terminal.
  • Step 202 The home gateway determines an execution priority of the corresponding smart home terminal control task according to the priority of each smart home terminal.
  • the above step 201 may be performed before the above step 101, or may be performed after the above step 101.
  • the home gateway can set the priority of each smart home terminal according to the usage habits of the user, for example, setting the priority of the lighting terminal to be higher than that of the television terminal, and the priority of the television terminal is higher than that of the air conditioner.
  • the priority of each smart home terminal is obtained; the setting of the priority of each smart home terminal may also be sent to the home gateway after the other devices (for example, the control terminal) are set.
  • the home gateway determines, according to the priority of each smart home terminal, the execution priority of each smart home terminal control task, including:
  • the home gateway determines the smart home terminal corresponding to the smart home terminal control task
  • the home gateway sets the execution priority of the smart home terminal control task to be the same as the priority of the corresponding smart home terminal; for example, it is assumed that the smart home terminal has a lighting terminal, a television terminal, an air conditioner, and the lighting terminal has the highest priority, and the television terminal has the highest priority.
  • the air conditioner is the lowest, the execution priority of the lighting terminal control task is the highest, and the execution priority of the TV terminal control task is second.
  • the execution priority is the lowest.
  • a task ID may be set for each smart home terminal task to indicate its execution priority. For example, the smaller the value of the ID, the higher the priority, the ID of the lighting terminal control task is 0. Indicates that its execution priority is the highest, and the ID of the TV terminal control task is 1, indicating that its execution priority is second.
  • the ID of the air conditioning control task is 2, indicating that the execution priority is the lowest; the value with the largest ID is the lowest. .
  • Step 301 The home gateway determines a task type of each smart home terminal control task.
  • Step 302 The home gateway determines an execution priority of each smart home terminal control task according to a task type of each smart home terminal control task.
  • the task types of the control tasks in this embodiment may be divided according to different standards.
  • the functions that are implemented according to the functions may be divided into: a connected task, a startup task, an operation task, a closed task, and a connected task may be set.
  • the priority of the startup task, the operation task, and the shutdown task is 0, 1, 2, and 3 (the smaller the value, the higher the priority).
  • the execution priority is set to the priority corresponding to the above type of task.
  • the home gateway performs the smart home terminal control tasks in the order of execution priority from high to low, including:
  • each smart of the level when performing the level, each smart of the level can be executed according to the chronological order of the tasks or the chronological order or the random order of the tasks.
  • Home terminal control tasks For example, when there are two control tasks with a priority of 0, the chronological order of the two control tasks or the manner of random selection may be obtained according to the order of the delivery time of the two control tasks, or the home gateway. Execute.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • This embodiment provides a home gateway 1.
  • the task acquisition module 11, the processing module 12, and the task execution module 13 are included:
  • the task obtaining module 11 is configured to: acquire a smart home terminal control task to be executed;
  • the processing module 12 is configured to: determine an execution priority of each acquired smart home terminal control task;
  • the task execution module 13 is configured to execute the smart home terminal control task in order from the highest priority to the execution priority.
  • the task acquisition module 11 can obtain the smart home terminal control task from the control terminal (for example, a smart mobile terminal or a wireless switch, etc.); the smart home terminal control task in this embodiment includes controlling the task initiated by the terminal to connect the smart home terminal and the smart The home terminal performs tasks for each type of operation (such as turning on, off, or adjusting the status, etc.).
  • the control terminal for example, a smart mobile terminal or a wireless switch, etc.
  • the smart home terminal control task in this embodiment includes controlling the task initiated by the terminal to connect the smart home terminal and the smart The home terminal performs tasks for each type of operation (such as turning on, off, or adjusting the status, etc.).
  • the processing module 12 includes an information acquiring submodule and a determining submodule
  • the information acquisition sub-module is set to: obtain the priority of each smart home terminal; the information acquisition sub-module can set the priority of each smart home terminal according to the usage habits of the user, for example, setting the priority of the lighting terminal to be higher than the television terminal
  • the priority of the television terminal is higher than that of the air conditioner, and the priority of each smart home terminal is obtained; the setting of the priority of each smart home terminal may also be sent to the information acquisition device after the other device (for example, the control terminal) is set. Module.
  • the determining submodule is configured to: determine an execution priority of each smart home terminal control task according to a priority of each smart home terminal.
  • the determining submodule includes a first determining subunit and a second determining subunit;
  • the first determining subunit is configured to: determine a smart home terminal corresponding to the smart home terminal control task;
  • the second determining subunit is configured to set the execution priority of the smart home terminal control task to be the same as the priority of the corresponding smart home terminal. For example, if the smart home terminal has a lighting terminal, a television terminal, an air conditioner, and the lighting terminal has the highest priority, the television terminal is the second, and the air conditioner is the lowest, the lighting terminal control task has the highest execution priority, and the television terminal controls the task execution priority.
  • the air conditioning control task has the lowest execution priority.
  • the processing module 12 includes a type analysis sub-module and a priority setting sub-module;
  • the type analysis sub-module is configured to: determine a task type of each smart home terminal control task;
  • the priority setting sub-module is configured to: set an execution priority of each smart home terminal control task according to a priority of each smart home terminal.
  • the task types of the control tasks in this embodiment may be divided according to different standards.
  • the functions that are implemented according to the functions may be divided into: a connected task, a startup task, an operation task, a closed task, and a connected task may be set.
  • the priority of the startup task, the operation task, and the shutdown task is 0, 1, 2, and 3 (the smaller the value, the higher the priority).
  • the smart home terminal controls the task as the above type of task, the priority is given.
  • the level setting sub-module sets its execution priority to the priority corresponding to the above type of task.
  • the task execution module 13 includes a determination submodule and a sequence determination submodule
  • the determining sub-module is configured to: determine whether there are multiple smart home terminal control tasks with the same execution priority; the sequence determining sub-module is set to: when the judgment result of the determining sub-module is yes, when executing the execution priority to the level
  • the execution order of each smart home terminal control task of the level is determined according to the chronological order of the tasks or the chronological order of the tasks or the manner of random selection. For example, when there are two control tasks with a priority of 0, the sequence determining sub-module may obtain the chronological order of the two control tasks according to the order in which the two control tasks are issued, or the home gateway obtains the chronological order of the two control tasks, or Randomly choose to determine the order of execution.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • the home gateway sets different priorities according to the characteristics of each smart home terminal, and sets the execution priority of each smart home terminal based on the smart home terminal.
  • the task ID is used to represent; then, according to the execution priority, the execution of the task with high priority is executed, and after the execution, the task of the lower level is executed until all the tasks are completed.
  • the execution process is shown in Figure 5 and includes:
  • Step 501 Initialize the smart home gateway after starting, and set all access to the gateway. The priority of the device, assign a task ID to each device, and obtain the maximum task ID value tasks (the task ID value represents the lowest execution priority);
  • Step 502 When an event triggers a control task, the smart home gateway acquires a control task.
  • Step 503 The smart home gateway obtains the IDs of all current control tasks, and places them in the task queue to facilitate subsequent execution of the tasks in order;
  • Step 506 Perform the next level control task in sequence
  • Step 509 End, waiting for a new task to arrive.
  • the user can uniformly manage the intelligent terminals that require different timeliness in an orderly manner, and improve the user experience effect of the smart home.
  • the smart home block diagram shown in FIG. 6 includes a home gateway 61, a first control terminal 621 and a second control terminal 622 connected to the home gateway 61, and a first smart home terminal 631, a second smart home terminal 632, and a third smart home.
  • the terminal 633, the first smart home terminal 631 has the highest priority, the task ID is 0; the second smart home terminal 632 has the lower priority, the task ID is 1, the third smart home terminal 633 has the lowest priority, and the task ID is 2;
  • the home gateway 61 receives three execution tasks, the maximum task ID is 2, and the home gateway 61 performs the highest priority first.
  • the task that is, the first smart home terminal 631, after the execution is completed, performs the priority task 1, that is, operates the second smart home terminal 632, and finally executes the task 2 with the lowest priority, that is, operates the third smart home terminal. 633.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the home gateway and the working method thereof are provided by the embodiment of the present invention. After the home gateway obtains the smart home terminal control task to be executed, the home gateway determines the execution priority of each smart home terminal control task, and then follows the determined execution priority. The high-end sequence performs each smart home terminal control task. In this way, the control task that the user wants to perform preferentially is preferentially executed, and the method of random processing of the related technology home gateway is more controllable, and the satisfaction of the user experience can be improved to a large extent.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Disclosed are a home gateway and operation method thereof. The method comprises: acquiring, by the home gateway, smart home terminal control tasks to be executed; determining an execution priority for each of the acquired smart home terminal control tasks; and executing each smart home terminal control task according to the determined execution priorities from high to low.

Description

家庭网关及其工作方法Home gateway and its working method 技术领域Technical field
本申请涉及但不限于通信领域。This application relates to, but is not limited to, the field of communications.
背景技术Background technique
智能家庭网关是智能家居***中处于中心地位的组建,主要完成多个智能家居终端的连接与控制。智能家居终端和智能家居网关通过多种无线互联技术连接,智能家居终端包括电灯,电视,空调,热水器等等多种智能家庭设备。智能家居网关同时要和多种控制终端连接,如手机,IPAD等智能终端以及无线开关等等。控制终端可以随时发出控制指令通过智能家庭网关连接到并操作智能家居终端。智能家居网关处理控制终端的控制命令时,则是按照随机的顺序处理接收到的控制命令。上述***中,存在一个问题,智能家居网关在同时接受到多个控制命令去操作或者连接多个智能家居终端时,例如同一时刻,需要同时打开电灯与空调或者其他很多的任务。按照当前智能家居网关的处理任务的方式,按照随机处理模式,可能出现先开空调,后开电灯的情况;在实际操作中,出现用户等待几秒钟后,电灯再亮起,但按照一般用户的习惯都是希望等先亮,再开启空调,这种情况的等待效果造成实际用户体验差。因此相关技术的智能家居网关的这种随机处理控制命令的机制可控性差,导致用户体验的满意度差。The intelligent home gateway is a centrally established component of the smart home system, which mainly completes the connection and control of multiple smart home terminals. Smart home terminals and smart home gateways are connected through a variety of wireless interconnection technologies, including smart lights, televisions, air conditioners, water heaters and many other smart home devices. The smart home gateway must also be connected to a variety of control terminals, such as mobile phones, IPAD and other smart terminals and wireless switches. The control terminal can issue control commands at any time to connect to and operate the smart home terminal through the smart home gateway. When the smart home gateway processes the control commands of the control terminal, the received control commands are processed in a random order. In the above system, there is a problem that when the smart home gateway receives multiple control commands to operate or connect multiple smart home terminals at the same time, for example, at the same time, it is necessary to turn on the lights and the air conditioner or many other tasks at the same time. According to the current processing method of the smart home gateway, according to the random processing mode, the air conditioner may be turned on first, and then the light may be turned on; in actual operation, after the user waits for a few seconds, the light is turned on again, but according to the general user. The habit of all is to wait for the first light, and then turn on the air conditioner. The waiting effect of this situation causes the actual user experience to be poor. Therefore, the mechanism of the random processing control command of the related art smart home gateway is poor in controllability, resulting in poor user experience satisfaction.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供一种家庭网关及其工作方法,解决相关技术家庭网关随机处理控制任务导致可控性以及用户体验的满意度差的问题。This paper provides a home gateway and its working method, which solves the problem that the related technology home gateway random processing control task leads to controllability and poor user experience satisfaction.
一种家庭网关工作方法,包括:A working method of a home gateway, comprising:
家庭网关获取待执行的智能家居终端控制任务; The home gateway obtains a smart home terminal control task to be executed;
所述家庭网关确定获取的每个智能家居终端控制任务的执行优先级;Determining, by the home gateway, an execution priority of each smart home terminal control task acquired;
所述家庭网关按照执行优先级从高到底的顺序执行所述智能家居终端控制任务。The home gateway performs the smart home terminal control task in an order of execution priority from high to low.
在本发明的一种实施例中,所述家庭网关确定获取的每个智能家居终端控制任务的执行优先级包括:In an embodiment of the present invention, the home gateway determines that the acquired execution priority of each smart home terminal control task includes:
所述家庭网关获取每个智能家居终端的优先级;The home gateway obtains a priority of each smart home terminal;
所述家庭网关根据每个智能家居终端的优先级确定对应的每个智能家居终端控制任务的执行优先级。The home gateway determines an execution priority of each smart home terminal control task according to a priority of each smart home terminal.
在本发明的一种实施例中,所述家庭网关根据每个智能家居终端的优先级确定每个智能家居终端控制任务的执行优先级包括:In an embodiment of the present invention, the determining, by the home gateway, the execution priority of each smart home terminal control task according to the priority of each smart home terminal includes:
所述家庭网关确定智能家居终端控制任务对应的智能家居终端;The home gateway determines a smart home terminal corresponding to the smart home terminal control task;
所述家庭网关将该智能家居终端控制任务的执行优先级设置为与对应的智能家居终端的优先级相同。The home gateway sets the execution priority of the smart home terminal control task to be the same as the priority of the corresponding smart home terminal.
在本发明的一种实施例中,所述家庭网关确定获取的每个智能家居终端控制任务的执行优先级包括:In an embodiment of the present invention, the home gateway determines that the acquired execution priority of each smart home terminal control task includes:
所述家庭网关确定每个智能家居终端控制任务的任务类型;Determining, by the home gateway, a task type of each smart home terminal control task;
所述家庭网关根据每个智能家居终端控制任务的任务类型确定每个智能家居终端控制任务的执行优先级。The home gateway determines an execution priority of each smart home terminal control task according to a task type of each smart home terminal control task.
在本发明的一种实施例中,所述家庭网关按照执行优先级从高到底的顺序执行所述智能家居终端控制任务包括:In an embodiment of the present invention, the performing, by the home gateway, the smart home terminal control tasks in an order of execution priority from high to low includes:
当存在执行优先级相同的多个智能家居终端控制任务时,执行到该执行优先级相同的等级时,按照任务下发的时间先后顺序或获取到任务的时间先后顺序或随机执行该等级的每个智能家居终端控制任务。When there are multiple smart home terminal control tasks with the same priority, when performing the same level of execution priority, the chronological order of the tasks is sent or the chronological order of the tasks is obtained or randomly executed. Smart home terminal control tasks.
一种家庭网关,包括任务获取模块、处理模块和任务执行模块:A home gateway includes a task acquisition module, a processing module, and a task execution module:
所述任务获取模块设置为:获取待执行的智能家居终端控制任务;The task acquisition module is configured to: acquire a smart home terminal control task to be executed;
所述处理模块设置为:确定获取的每个智能家居终端控制任务的执行优先级; The processing module is configured to: determine an execution priority of each smart home terminal control task acquired;
所述任务执行模块设置为:按照执行优先级从高到底的顺序执行所述智能家居终端控制任务。The task execution module is configured to execute the smart home terminal control task in an order from highest to lowest in accordance with an execution priority.
在本发明的一种实施例中,所述处理模块包括信息获取子模块和确定子模块;In an embodiment of the present invention, the processing module includes an information acquiring submodule and a determining submodule;
所述信息获取子模块设置为:获取每个智能家居终端的优先级;The information acquisition submodule is configured to: obtain a priority of each smart home terminal;
所述确定子模块设置为:根据每个智能家居终端的优先级确定对应的每个智能家居终端控制任务的执行优先级。The determining submodule is configured to: determine an execution priority of each corresponding smart home terminal control task according to a priority of each smart home terminal.
在本发明的一种实施例中,所述确定子模块包括第一确定子单元和第二确定子单元;In an embodiment of the present invention, the determining submodule includes a first determining subunit and a second determining subunit;
所述第一确定子单元设置为:确定智能家居终端控制任务对应的智能家居终端;The first determining subunit is configured to: determine a smart home terminal corresponding to the smart home terminal control task;
所述第二确定子单元设置为:将该智能家居终端控制任务的执行优先级设置为与对应的智能家居终端的优先级相同。The second determining subunit is configured to set an execution priority of the smart home terminal control task to be the same as a priority of the corresponding smart home terminal.
在本发明的一种实施例中,所述处理模块包括类型分析子模块和优先级设定子模块;In an embodiment of the present invention, the processing module includes a type analysis submodule and a priority setting submodule;
所述类型分析子模块设置为:确定每个智能家居终端控制任务的任务类型;The type analysis submodule is configured to: determine a task type of each smart home terminal control task;
所述优先级设定子模块设置为:根据每个智能家居终端的优先级设定对应的每个智能家居终端控制任务的执行优先级。The priority setting sub-module is configured to: set an execution priority of each smart home terminal control task according to a priority of each smart home terminal.
在本发明的一种实施例中,所述任务执行模块包括判断子模块和顺序确定子模块;In an embodiment of the present invention, the task execution module includes a determination submodule and a sequence determination submodule;
所述判断子模块设置为:判断是否存在执行优先级相同的多个智能家居终端控制任务;The determining sub-module is configured to: determine whether there are multiple smart home terminal control tasks with the same priority;
所述顺序确定子模块设置为:在所述判断子模块的判断结果为是时,在执行到该执行优先级相同的等级时,按照任务下发的时间先后顺序或获取到任务的时间先后顺序或随机选择的方式确定该等级的每个智能家居终端控制任务的执行顺序。 The sequence determining sub-module is configured to: when the judgment result of the determining sub-module is YES, when performing the same level of execution priority, according to the chronological order issued by the task or the chronological order of obtaining the task Or the manner of random selection determines the execution order of each smart home terminal control task of the level.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。A computer readable storage medium storing computer executable instructions for performing the method of any of the above.
本发明实施例提供的家庭网关及其工作方法,家庭网关获取待执行的智能家居终端控制任务后,先确定获取的每个智能家居终端控制任务的执行优先级,然后按照确定的执行优先级从高到底的顺序执行每个智能家居终端控制任务。这样可以保证用户想优先执行的控制任务优先执行,相对相关技术家庭网关随机处理的方式,可控性更好,能较大程度上提升用户体验的满意度。The home gateway and the working method thereof are provided by the embodiment of the present invention. After the home gateway obtains the smart home terminal control task to be executed, the home gateway determines the execution priority of each smart home terminal control task, and then follows the determined execution priority. The high-end sequence performs each smart home terminal control task. In this way, the control task that the user wants to perform preferentially is preferentially executed, and the method of random processing of the related technology home gateway is more controllable, and the satisfaction of the user experience can be improved to a large extent.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例一提供的家庭网关工作方法流程示意图;1 is a schematic flowchart of a working method of a home gateway according to Embodiment 1 of the present invention;
图2为本发明实施例一中提供的根据智能家居终端的优先级确定执行优先级的流程示意图;2 is a schematic flowchart of determining an execution priority according to a priority of a smart home terminal according to Embodiment 1 of the present invention;
图3为本发明实施例一中提供的根据智能家居终端控制任务的任务类型确定执行优先级的流程示意图;FIG. 3 is a schematic flowchart of determining an execution priority according to a task type of a smart home terminal control task according to Embodiment 1 of the present invention;
图4本发明实施例二提供的家庭网关结构示意图;4 is a schematic structural diagram of a home gateway according to Embodiment 2 of the present invention;
图5为本发明实施例三提供的家庭网关工作方法流程示意图;FIG. 5 is a schematic flowchart of a working method of a home gateway according to Embodiment 3 of the present invention; FIG.
图6为本发明实施例三提供的智能家居结构示意图。FIG. 6 is a schematic structural diagram of a smart home according to Embodiment 3 of the present invention.
本发明的实施方式Embodiments of the invention
下面结合附图对本发明的实施方式进行详细说明。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
本实施例提供的家庭网关工作方法请参见图1所示,其包括:For the working method of the home gateway provided in this embodiment, refer to FIG. 1 , which includes:
步骤101:家庭网关获取待执行的智能家居终端控制任务;Step 101: The home gateway obtains a smart home terminal control task to be executed.
步骤102:家庭网关确定获取的每个智能家居终端控制任务的执行优先 级;Step 102: The home gateway determines that the acquired execution priority of each smart home terminal control task is prioritized. level;
步骤103:家庭网关按照执行优先级从高到底的顺序执行每个智能家居终端控制任务。Step 103: The home gateway performs each smart home terminal control task in order from the highest priority to the execution priority.
上述步骤101中,家庭网关可从控制终端(例如智能移动终端或者无线开关等)获取该智能家居终端控制任务;本实施例中的智能家居终端控制任务包括控制终端发起的连接智能家居终端的任务以及对智能家居终端进行多种操作(例如开启、关闭或调节状态等)的任务。In the above step 101, the home gateway may obtain the smart home terminal control task from the control terminal (for example, a smart mobile terminal or a wireless switch, etc.); the smart home terminal control task in this embodiment includes controlling the task initiated by the terminal to connect to the smart home terminal. And the task of performing various operations on the smart home terminal, such as turning on, off, or adjusting the state.
上述步骤102中,家庭网关可根据智能家居终端控制任务的任务类型确定每个任务的执行优先级,也可以根据每个智能家居终端自身的优先级确定每个任务的执行优先级。当然,并不限于上述两种确定方式,下面仅以上述两种确定方式进行示例性的说明。In the above step 102, the home gateway may determine the execution priority of each task according to the task type of the smart home terminal control task, and may also determine the execution priority of each task according to the priority of each smart home terminal itself. Of course, it is not limited to the above two determination manners, and the following is merely exemplified in the above two determination manners.
根据智能家居终端的优先级确定的过程请参见图2所示,包括:The process of determining the priority according to the smart home terminal is shown in Figure 2, including:
步骤201:家庭网关获取每个智能家居终端的优先级;Step 201: The home gateway obtains a priority of each smart home terminal.
步骤202:家庭网关根据每个智能家居终端的优先级确定对应的每个智能家居终端控制任务的执行优先级。Step 202: The home gateway determines an execution priority of the corresponding smart home terminal control task according to the priority of each smart home terminal.
上述步骤201可以在上述步骤101之前执行,也可以在上述步骤101之后执行。且在上述步骤201中,家庭网关可以根据用户的使用习惯等特点设置每个智能家居终端的优先级,例如设置照明终端的优先级高于电视终端,电视终端的优先级高于空调等,进而得到每个智能家居终端的优先级;每个智能家居终端优先级的设定也可以是其他设备(例如控制终端)设置好之后发给家庭网关。The above step 201 may be performed before the above step 101, or may be performed after the above step 101. In the above step 201, the home gateway can set the priority of each smart home terminal according to the usage habits of the user, for example, setting the priority of the lighting terminal to be higher than that of the television terminal, and the priority of the television terminal is higher than that of the air conditioner. The priority of each smart home terminal is obtained; the setting of the priority of each smart home terminal may also be sent to the home gateway after the other devices (for example, the control terminal) are set.
上述步骤202中,家庭网关根据每个智能家居终端的优先级确定每个智能家居终端控制任务的执行优先级包括:In the foregoing step 202, the home gateway determines, according to the priority of each smart home terminal, the execution priority of each smart home terminal control task, including:
家庭网关确定智能家居终端控制任务对应的智能家居终端;The home gateway determines the smart home terminal corresponding to the smart home terminal control task;
家庭网关将该智能家居终端控制任务的执行优先级设置为与对应的智能家居终端的优先级相同;例如假设智能家居终端有照明终端、电视终端、空调,且照明终端的优先级最高,电视终端次之,空调最低,则照明终端控制任务的执行优先级最高,电视终端控制任务的执行优先级次之,空调控制任 务的执行优先级最低。本实施例中可以为每个智能家居终端的任务设定一个任务ID,用于表示其执行优先级,例如可以设置ID的值越小,优先级越高,则照明终端控制任务的ID=0,表示其执行优先级最高,电视终端控制任务的ID=1,表示其执行优先级次之,空调控制任务的ID=2,表示执行优先级最低;ID最大的值对应的任务执行优先级最低。The home gateway sets the execution priority of the smart home terminal control task to be the same as the priority of the corresponding smart home terminal; for example, it is assumed that the smart home terminal has a lighting terminal, a television terminal, an air conditioner, and the lighting terminal has the highest priority, and the television terminal has the highest priority. Secondly, if the air conditioner is the lowest, the execution priority of the lighting terminal control task is the highest, and the execution priority of the TV terminal control task is second. The execution priority is the lowest. In this embodiment, a task ID may be set for each smart home terminal task to indicate its execution priority. For example, the smaller the value of the ID, the higher the priority, the ID of the lighting terminal control task is 0. Indicates that its execution priority is the highest, and the ID of the TV terminal control task is 1, indicating that its execution priority is second. The ID of the air conditioning control task is 2, indicating that the execution priority is the lowest; the value with the largest ID is the lowest. .
根据智能家居终端控制任务的任务类型确定的过程请参见图3所示,包括:The process of determining the task type according to the smart home terminal control task is shown in Figure 3, including:
步骤301:家庭网关确定每个智能家居终端控制任务的任务类型;Step 301: The home gateway determines a task type of each smart home terminal control task.
步骤302:家庭网关根据每个智能家居终端控制任务的任务类型确定每个智能家居终端控制任务的执行优先级。Step 302: The home gateway determines an execution priority of each smart home terminal control task according to a task type of each smart home terminal control task.
本实施例中控制任务的任务类型可以根据不同的标准进行划分,例如可以根据其实现的功能划分为:连接型任务、启动型任务、操作型任务、关闭型任务,且可设置连接型任务、启动型任务、操作型任务、关闭型任务的优先级依次为0、1、2、3(值越小优先级越高),对应的,当智能家居终端控制任务为上述类型的任务时,其执行优先级则设为与上述类型任务对应的优先级。The task types of the control tasks in this embodiment may be divided according to different standards. For example, the functions that are implemented according to the functions may be divided into: a connected task, a startup task, an operation task, a closed task, and a connected task may be set. The priority of the startup task, the operation task, and the shutdown task is 0, 1, 2, and 3 (the smaller the value, the higher the priority). Correspondingly, when the smart home terminal controls the task as the above type of task, The execution priority is set to the priority corresponding to the above type of task.
在上述步骤103中,家庭网关按照执行优先级从高到底的顺序执行智能家居终端控制任务包括:In the foregoing step 103, the home gateway performs the smart home terminal control tasks in the order of execution priority from high to low, including:
当存在执行优先级相同的多个智能家居终端控制任务时,执行到该等级时,可按照任务下发的时间先后顺序或获取到任务的时间先后顺序或随机的顺序执行该等级的每个智能家居终端控制任务。例如当执行优先级为0的控制任务存在2个时,可以按照这两个控制任务的下发时间的先后顺序,或家庭网关获取到这两个控制任务的时间先后顺序,或随机选择的方式进行执行。When there are multiple smart home terminal control tasks with the same priority, when performing the level, each smart of the level can be executed according to the chronological order of the tasks or the chronological order or the random order of the tasks. Home terminal control tasks. For example, when there are two control tasks with a priority of 0, the chronological order of the two control tasks or the manner of random selection may be obtained according to the order of the delivery time of the two control tasks, or the home gateway. Execute.
实施例二:Embodiment 2:
本实施例提供了一种家庭网关1,请参见图4所示,包括任务获取模块11、处理模块12和任务执行模块13: This embodiment provides a home gateway 1. Referring to FIG. 4, the task acquisition module 11, the processing module 12, and the task execution module 13 are included:
任务获取模块11设置为:获取待执行的智能家居终端控制任务;The task obtaining module 11 is configured to: acquire a smart home terminal control task to be executed;
处理模块12设置为:确定获取的每个智能家居终端控制任务的执行优先级;The processing module 12 is configured to: determine an execution priority of each acquired smart home terminal control task;
任务执行模块13设置为:按照执行优先级从高到底的顺序执行智能家居终端控制任务。The task execution module 13 is configured to execute the smart home terminal control task in order from the highest priority to the execution priority.
任务获取模块11可从控制终端(例如智能移动终端或者无线开关等)获取该智能家居终端控制任务;本实施例中的智能家居终端控制任务包括控制终端发起的连接智能家居终端的任务以及对智能家居终端进行每种操作(例如开启、关闭或调节状态等)的任务。The task acquisition module 11 can obtain the smart home terminal control task from the control terminal (for example, a smart mobile terminal or a wireless switch, etc.); the smart home terminal control task in this embodiment includes controlling the task initiated by the terminal to connect the smart home terminal and the smart The home terminal performs tasks for each type of operation (such as turning on, off, or adjusting the status, etc.).
本实施例中的一种示例中,处理模块12包括信息获取子模块和确定子模块;In an example in this embodiment, the processing module 12 includes an information acquiring submodule and a determining submodule;
信息获取子模块设置为:获取每个智能家居终端的优先级;信息获取子模块可以根据用户的使用习惯等特点设置每个智能家居终端的优先级,例如设置照明终端的优先级高于电视终端,电视终端的优先级高于空调等,进而得到每个智能家居终端的优先级;每个智能家居终端优先级的设定也可以是其他设备(例如控制终端)设置好之后发给信息获取子模块。The information acquisition sub-module is set to: obtain the priority of each smart home terminal; the information acquisition sub-module can set the priority of each smart home terminal according to the usage habits of the user, for example, setting the priority of the lighting terminal to be higher than the television terminal The priority of the television terminal is higher than that of the air conditioner, and the priority of each smart home terminal is obtained; the setting of the priority of each smart home terminal may also be sent to the information acquisition device after the other device (for example, the control terminal) is set. Module.
确定子模块设置为:根据每个智能家居终端的优先级确定对应的每个智能家居终端控制任务的执行优先级。其中,确定子模块包括第一确定子单元和第二确定子单元;The determining submodule is configured to: determine an execution priority of each smart home terminal control task according to a priority of each smart home terminal. The determining submodule includes a first determining subunit and a second determining subunit;
第一确定子单元设置为:确定智能家居终端控制任务对应的智能家居终端;The first determining subunit is configured to: determine a smart home terminal corresponding to the smart home terminal control task;
第二确定子单元设置为:将该智能家居终端控制任务的执行优先级设置为与对应的智能家居终端的优先级相同。例如假设智能家居终端有照明终端、电视终端、空调,且照明终端的优先级最高,电视终端次之,空调最低,则照明终端控制任务的执行优先级最高,电视终端控制任务的执行优先级次之,空调控制任务的执行优先级最低。本实施例中可以为每个智能家居终端的任务设定一个任务ID,用于表示其执行优先级,例如可以设置ID的值越小,优先级越高,则照明终端控制任务的ID=0,表示其执行优先级最 高,电视终端控制任务的ID=1,表示其执行优先级次之,空调控制任务的ID=2,表示执行优先级最低;ID最大的值对应的任务执行优先级最低。The second determining subunit is configured to set the execution priority of the smart home terminal control task to be the same as the priority of the corresponding smart home terminal. For example, if the smart home terminal has a lighting terminal, a television terminal, an air conditioner, and the lighting terminal has the highest priority, the television terminal is the second, and the air conditioner is the lowest, the lighting terminal control task has the highest execution priority, and the television terminal controls the task execution priority. The air conditioning control task has the lowest execution priority. In this embodiment, a task ID may be set for each smart home terminal task to indicate its execution priority. For example, the smaller the value of the ID, the higher the priority, the ID of the lighting terminal control task is 0. , indicating that it has the highest execution priority High, the TV terminal control task ID=1, indicating that its execution priority is second, the air conditioning control task ID=2, indicating that the execution priority is the lowest; the ID maximum value corresponding to the task execution priority is the lowest.
本实施例中的另一种示例中,处理模块12包括类型分析子模块和优先级设定子模块;In another example in this embodiment, the processing module 12 includes a type analysis sub-module and a priority setting sub-module;
类型分析子模块设置为:确定每个智能家居终端控制任务的任务类型;The type analysis sub-module is configured to: determine a task type of each smart home terminal control task;
优先级设定子模块设置为:根据每个智能家居终端的优先级设定对应的每个智能家居终端控制任务的执行优先级。本实施例中控制任务的任务类型可以根据不同的标准进行划分,例如可以根据其实现的功能划分为:连接型任务、启动型任务、操作型任务、关闭型任务,且可设置连接型任务、启动型任务、操作型任务、关闭型任务的优先级依次为0、1、2、3(值越小优先级越高),对应的,当智能家居终端控制任务为上述类型的任务时,优先级设定子模块设定其执行优先级则设为与上述类型任务对应的优先级。The priority setting sub-module is configured to: set an execution priority of each smart home terminal control task according to a priority of each smart home terminal. The task types of the control tasks in this embodiment may be divided according to different standards. For example, the functions that are implemented according to the functions may be divided into: a connected task, a startup task, an operation task, a closed task, and a connected task may be set. The priority of the startup task, the operation task, and the shutdown task is 0, 1, 2, and 3 (the smaller the value, the higher the priority). Correspondingly, when the smart home terminal controls the task as the above type of task, the priority is given. The level setting sub-module sets its execution priority to the priority corresponding to the above type of task.
本实施例中,任务执行模块13包括判断子模块和顺序确定子模块;In this embodiment, the task execution module 13 includes a determination submodule and a sequence determination submodule;
判断子模块设置为:判断是否存在执行优先级相同的多个智能家居终端控制任务;顺序确定子模块设置为:在判断子模块的判断结果为是时,在执行到该等级的执行优先级时,按照任务下发的时间先后顺序或获取到任务的时间先后顺序或随机选择的方式确定该等级的每个智能家居终端控制任务的执行顺序。例如当执行优先级为0的控制任务存在2个时,顺序确定子模块可以按照这两个控制任务的下发时间的先后顺序,或家庭网关获取到这两个控制任务的时间先后顺序,或随机选择确定执行顺序。The determining sub-module is configured to: determine whether there are multiple smart home terminal control tasks with the same execution priority; the sequence determining sub-module is set to: when the judgment result of the determining sub-module is yes, when executing the execution priority to the level The execution order of each smart home terminal control task of the level is determined according to the chronological order of the tasks or the chronological order of the tasks or the manner of random selection. For example, when there are two control tasks with a priority of 0, the sequence determining sub-module may obtain the chronological order of the two control tasks according to the order in which the two control tasks are issued, or the home gateway obtains the chronological order of the two control tasks, or Randomly choose to determine the order of execution.
实施例三:Embodiment 3:
在本实施例中,以家庭网关根据每种智能家居终端的特点,分别设置不同级别的优先级,并以此为依据设置每个智能家居终端的执行优先级,可通过给个智能家居终端一个任务ID来表征;然后根据执行优先级的不同,分别从执行优先级高的任务执行,执行完后再执行低一级别的任务,直到所有任务执行完成。该执行过程如图5所示,包括:In this embodiment, the home gateway sets different priorities according to the characteristics of each smart home terminal, and sets the execution priority of each smart home terminal based on the smart home terminal. The task ID is used to represent; then, according to the execution priority, the execution of the task with high priority is executed, and after the execution, the task of the lower level is executed until all the tasks are completed. The execution process is shown in Figure 5 and includes:
步骤501:智能家庭网关启动后先进行初始化,设置接入到网关中所有 设备的优先级,给每个设备分配一个任务ID,获得最大任务ID值tasks(该任务ID值表征最低执行优先级);Step 501: Initialize the smart home gateway after starting, and set all access to the gateway. The priority of the device, assign a task ID to each device, and obtain the maximum task ID value tasks (the task ID value represents the lowest execution priority);
步骤502:当有事件触发控制任务,智能家庭网关获取控制任务;Step 502: When an event triggers a control task, the smart home gateway acquires a control task.
步骤503:智能家庭网关获取当前所有控制任务的ID,放在任务队列后以方便后续按次序执行任务;Step 503: The smart home gateway obtains the IDs of all current control tasks, and places them in the task queue to facilitate subsequent execution of the tasks in order;
步骤504:智能家庭网关从优先级(ID=0)最大的任务开始执行,判断ID=0的控制任务是否执行完,如否,转至步骤505;否则,转至步骤506;Step 504: The smart home gateway starts from the task with the highest priority (ID=0), determines whether the control task with ID=0 is executed, if not, go to step 505; otherwise, go to step 506;
步骤505:继续执行ID=0的控制任务;Step 505: Continue to execute the control task with ID=0;
步骤506:依次执行下一级控制任务;Step 506: Perform the next level control task in sequence;
步骤507:判断ID=tasks的控制任务是否执行完,如否,转至步骤508,否则,转至步骤509;Step 507: Determine whether the control task of ID=tasks is executed, if no, go to step 508, otherwise, go to step 509;
步骤508:继续执行ID=tasks的控制任务。Step 508: Continue to execute the control task of ID=tasks.
步骤509:结束,等待新任务到来。Step 509: End, waiting for a new task to arrive.
通过上述的管理过程,可以把用户对时效性需要不同的智能终端有序的统一管理起来,提高智能家居的用户体验效果。Through the above-mentioned management process, the user can uniformly manage the intelligent terminals that require different timeliness in an orderly manner, and improve the user experience effect of the smart home.
下面再结合如图6所示的应用场景对本发明实施例进行说明:The embodiments of the present invention are described below in conjunction with the application scenario shown in FIG. 6:
图6所示的智能家居框图包括家庭网关61,与家庭网关61连接的第一控制终端621和第二控制终端622,以及第一智能家居终端631、第二智能家居终端632和第三智能家居终端633,第一智能家居终端631优先级最高,任务ID为0;第二智能家居终端632优先级次之,任务ID为1,第三智能家居终端633优先级最低,任务ID为2;当某一时刻,用户通过第一控制终端621或第二控制终端622控制三个智能家居终端时,家庭网关61会收到三个执行任务,最大任务ID为2,家庭网关61先执行优先级最高的任务,即第一智能家居终端631,执行完成后,再执行优先级次之的任务1,即操作第二智能家居终端632,最后执行优先级最低的任务2,即操作第三智能家居终端633。 The smart home block diagram shown in FIG. 6 includes a home gateway 61, a first control terminal 621 and a second control terminal 622 connected to the home gateway 61, and a first smart home terminal 631, a second smart home terminal 632, and a third smart home. The terminal 633, the first smart home terminal 631 has the highest priority, the task ID is 0; the second smart home terminal 632 has the lower priority, the task ID is 1, the third smart home terminal 633 has the lowest priority, and the task ID is 2; At a certain time, when the user controls three smart home terminals through the first control terminal 621 or the second control terminal 622, the home gateway 61 receives three execution tasks, the maximum task ID is 2, and the home gateway 61 performs the highest priority first. The task, that is, the first smart home terminal 631, after the execution is completed, performs the priority task 1, that is, operates the second smart home terminal 632, and finally executes the task 2 with the lowest priority, that is, operates the third smart home terminal. 633.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如***、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例提供的家庭网关及其工作方法,家庭网关获取待执行的智能家居终端控制任务后,先确定获取的每个智能家居终端控制任务的执行优先级,然后按照确定的执行优先级从高到底的顺序执行每个智能家居终端控制任务。这样可以保证用户想优先执行的控制任务优先执行,相对相关技术家庭网关随机处理的方式,可控性更好,能较大程度上提升用户体验的满意度。 The home gateway and the working method thereof are provided by the embodiment of the present invention. After the home gateway obtains the smart home terminal control task to be executed, the home gateway determines the execution priority of each smart home terminal control task, and then follows the determined execution priority. The high-end sequence performs each smart home terminal control task. In this way, the control task that the user wants to perform preferentially is preferentially executed, and the method of random processing of the related technology home gateway is more controllable, and the satisfaction of the user experience can be improved to a large extent.

Claims (11)

  1. 一种家庭网关工作方法,包括:A working method of a home gateway, comprising:
    家庭网关获取待执行的智能家居终端控制任务;The home gateway obtains a smart home terminal control task to be executed;
    所述家庭网关确定获取的每个智能家居终端控制任务的执行优先级;Determining, by the home gateway, an execution priority of each smart home terminal control task acquired;
    所述家庭网关按照执行优先级从高到底的顺序执行所述智能家居终端控制任务。The home gateway performs the smart home terminal control task in an order of execution priority from high to low.
  2. 如权利要求1所述的家庭网关工作方法,其中,所述家庭网关确定获取的每个智能家居终端控制任务的执行优先级包括:The home gateway working method according to claim 1, wherein the home gateway determines that the acquired execution priority of each smart home terminal control task comprises:
    所述家庭网关获取每个智能家居终端的优先级;The home gateway obtains a priority of each smart home terminal;
    所述家庭网关根据每个智能家居终端的优先级确定对应的每个智能家居终端控制任务的执行优先级。The home gateway determines an execution priority of each smart home terminal control task according to a priority of each smart home terminal.
  3. 如权利要求2所述的家庭网关工作方法,其中,所述家庭网关根据每个智能家居终端的优先级确定每个智能家居终端控制任务的执行优先级包括:The home gateway working method according to claim 2, wherein the determining, by the home gateway, the execution priority of each smart home terminal control task according to the priority of each smart home terminal comprises:
    所述家庭网关确定智能家居终端控制任务对应的智能家居终端;The home gateway determines a smart home terminal corresponding to the smart home terminal control task;
    所述家庭网关将该智能家居终端控制任务的执行优先级设置为与对应的智能家居终端的优先级相同。The home gateway sets the execution priority of the smart home terminal control task to be the same as the priority of the corresponding smart home terminal.
  4. 如权利要求1所述的家庭网关工作方法,其中,所述家庭网关确定获取的每个智能家居终端控制任务的执行优先级包括:The home gateway working method according to claim 1, wherein the home gateway determines that the acquired execution priority of each smart home terminal control task comprises:
    所述家庭网关确定每个智能家居终端控制任务的任务类型;Determining, by the home gateway, a task type of each smart home terminal control task;
    所述家庭网关根据每个智能家居终端控制任务的任务类型确定每个智能家居终端控制任务的执行优先级。The home gateway determines an execution priority of each smart home terminal control task according to a task type of each smart home terminal control task.
  5. 如权利要求1-4任一项所述的家庭网关工作方法,其中,所述家庭网关按照执行优先级从高到底的顺序执行所述智能家居终端控制任务包括:The home gateway working method according to any one of claims 1 to 4, wherein the execution of the smart home terminal control task by the home gateway in order of execution priority from high to low includes:
    当存在执行优先级相同的多个智能家居终端控制任务时,执行到该执行优先级相同的等级时,按照任务下发的时间先后顺序或获取到任务的时间先后顺序或随机执行该等级的每个智能家居终端控制任务。 When there are multiple smart home terminal control tasks with the same priority, when performing the same level of execution priority, the chronological order of the tasks is sent or the chronological order of the tasks is obtained or randomly executed. Smart home terminal control tasks.
  6. 一种家庭网关,包括任务获取模块、处理模块和任务执行模块:A home gateway includes a task acquisition module, a processing module, and a task execution module:
    所述任务获取模块设置为:获取待执行的智能家居终端控制任务;The task acquisition module is configured to: acquire a smart home terminal control task to be executed;
    所述处理模块设置为:确定获取的每个智能家居终端控制任务的执行优先级;The processing module is configured to: determine an execution priority of each smart home terminal control task acquired;
    所述任务执行模块设置为:按照执行优先级从高到底的顺序执行所述智能家居终端控制任务。The task execution module is configured to execute the smart home terminal control task in an order from highest to lowest in accordance with an execution priority.
  7. 如权利要求6所述的家庭网关,其中,所述处理模块包括信息获取子模块和确定子模块;The home gateway of claim 6, wherein the processing module comprises an information acquisition sub-module and a determination sub-module;
    所述信息获取子模块设置为:获取每个智能家居终端的优先级;The information acquisition submodule is configured to: obtain a priority of each smart home terminal;
    所述确定子模块设置为:根据每个智能家居终端的优先级确定对应的每个智能家居终端控制任务的执行优先级。The determining submodule is configured to: determine an execution priority of each corresponding smart home terminal control task according to a priority of each smart home terminal.
  8. 如权利要求7所述的家庭网关,其中,所述确定子模块包括第一确定子单元和第二确定子单元;The home gateway of claim 7, wherein the determining sub-module comprises a first determining sub-unit and a second determining sub-unit;
    所述第一确定子单元设置为:确定智能家居终端控制任务对应的智能家居终端;The first determining subunit is configured to: determine a smart home terminal corresponding to the smart home terminal control task;
    所述第二确定子单元设置为:将该智能家居终端控制任务的执行优先级设置为与对应的智能家居终端的优先级相同。The second determining subunit is configured to set an execution priority of the smart home terminal control task to be the same as a priority of the corresponding smart home terminal.
  9. 如权利要求6所述的家庭网关,其中,所述处理模块包括类型分析子模块和优先级设定子模块;The home gateway of claim 6, wherein the processing module comprises a type analysis sub-module and a priority setting sub-module;
    所述类型分析子模块设置为:确定每个智能家居终端控制任务的任务类型;The type analysis submodule is configured to: determine a task type of each smart home terminal control task;
    所述优先级设定子模块设置为:根据每个智能家居终端的优先级设定对应的每个智能家居终端控制任务的执行优先级。The priority setting sub-module is configured to: set an execution priority of each smart home terminal control task according to a priority of each smart home terminal.
  10. 如权利要求6-9任一项所述的家庭网关,其中,所述任务执行模块包括判断子模块和顺序确定子模块;The home gateway according to any one of claims 6-9, wherein the task execution module comprises a determination sub-module and a sequence determination sub-module;
    所述判断子模块设置为:判断是否存在执行优先级相同的多个智能家居终端控制任务; The determining sub-module is configured to: determine whether there are multiple smart home terminal control tasks with the same priority;
    所述顺序确定子模块设置为:在所述判断子模块的判断结果为是时,在执行到该执行优先级相同的等级时,按照任务下发的时间先后顺序或获取到任务的时间先后顺序或随机选择的方式确定该等级的每个智能家居终端控制任务的执行顺序。The sequence determining sub-module is configured to: when the judgment result of the determining sub-module is YES, when performing the same level of execution priority, according to the chronological order issued by the task or the chronological order of obtaining the task Or the manner of random selection determines the execution order of each smart home terminal control task of the level.
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-5.
PCT/CN2015/086402 2015-05-12 2015-08-07 Home gateway and operation method thereof WO2016179913A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510240492.6 2015-05-12
CN201510240492.6A CN106292299A (en) 2015-05-12 2015-05-12 Home gateway and method of work thereof

Publications (1)

Publication Number Publication Date
WO2016179913A1 true WO2016179913A1 (en) 2016-11-17

Family

ID=57247680

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/086402 WO2016179913A1 (en) 2015-05-12 2015-08-07 Home gateway and operation method thereof

Country Status (2)

Country Link
CN (1) CN106292299A (en)
WO (1) WO2016179913A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107146395B (en) * 2017-06-13 2020-05-08 珠海慧信微电子有限公司 Meter reading system and meter reading method based on broadband carrier communication
CN107272427B (en) * 2017-06-16 2021-01-05 北京小米移动软件有限公司 Control method and device of intelligent equipment
CN107370639A (en) * 2017-08-14 2017-11-21 苏州众天力信息科技有限公司 A kind of more scenery control methods of gateway based on trapezoidal temporal algorithm
CN111752183B (en) * 2020-05-18 2024-03-29 深圳市东微智能科技股份有限公司 Environment equipment control method, equipment and readable storage medium
CN115499258B (en) * 2022-08-03 2023-10-03 深圳市宇创兴业科技有限公司 Control method, device, medium and computer equipment of intelligent home central control system
CN115278902B (en) * 2022-09-27 2022-12-06 广东海洋大学 Data transmission method, data transmission device, computer equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007208416A (en) * 2006-01-31 2007-08-16 Kddi Corp Priority communication method and system of power line network
CN101510965A (en) * 2009-03-11 2009-08-19 深圳市融创天下科技发展有限公司 Classification access system and method for multiple mobile terminals of digital television set-top box
CN102265564A (en) * 2008-12-23 2011-11-30 爱立信电话股份有限公司 Method and arrangement for enabling user traffic classification configuration
WO2014192214A1 (en) * 2013-05-30 2014-12-04 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Advice provision method for user using household appliance while viewing terminal screen

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101736900B1 (en) * 2010-09-29 2017-05-17 삼성전자주식회사 Electrical instrument, power management system having electrical instrument, and method for controlling the same
CN102854847A (en) * 2011-06-30 2013-01-02 杭州三花研究院有限公司 Electrical appliance management system and electrical appliance management method thereof
CN102707698B (en) * 2012-06-19 2014-08-13 张家港市鸿嘉数字科技有限公司 Household appliance control method
US9720391B2 (en) * 2012-08-07 2017-08-01 Panasonic Intellectual Property Management Co., Ltd. Coordination processing execution method and coordination processing execution system
TW201440364A (en) * 2013-01-11 2014-10-16 日東電工股份有限公司 On-demand power control system, on-demand power control system program, and computer-readable recording medium on which this program is recorded
CN103281357A (en) * 2013-05-07 2013-09-04 深圳辉锐天眼科技有限公司 Mobile remote control device, system and method of household equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007208416A (en) * 2006-01-31 2007-08-16 Kddi Corp Priority communication method and system of power line network
CN102265564A (en) * 2008-12-23 2011-11-30 爱立信电话股份有限公司 Method and arrangement for enabling user traffic classification configuration
CN101510965A (en) * 2009-03-11 2009-08-19 深圳市融创天下科技发展有限公司 Classification access system and method for multiple mobile terminals of digital television set-top box
WO2014192214A1 (en) * 2013-05-30 2014-12-04 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Advice provision method for user using household appliance while viewing terminal screen

Also Published As

Publication number Publication date
CN106292299A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2016179913A1 (en) Home gateway and operation method thereof
RU2617330C2 (en) Method and for scenario mode recommendation device for smart devices
WO2016065813A1 (en) Method and apparatus for customising smart device scenario mode
WO2016065812A1 (en) Scenario mode setting-based smart device control method and apparatus
CN109600285B (en) Method and device for dynamically constructing environment regulation rule list in smart home
US10742778B2 (en) Device and method for controlling multi-protocol IOT operations
CN110687820B (en) Control method and device of intelligent household equipment, terminal equipment and storage medium
US9471053B2 (en) Notification method, notification device, notification system, storage medium, information exchange networking service providing server, and mobile terminal
WO2020228041A1 (en) Scenario operating method and apparatus, electronic device, and computer readable medium
CN107463441B (en) Thread quantity control method and equipment
WO2017166674A1 (en) Instruction set switching method and device
CN103941871A (en) Method and equipment for controlling hardware operating state of intelligent terminal
CN107726539B (en) Terminal operation parameter adjusting method and device and computer readable storage medium
WO2020107698A1 (en) Air-conditioning device control method and air-conditioning device
WO2015144067A1 (en) Method for controlling smart television based on android system
US20160202676A1 (en) Apparatus controller and apparatus control method
CN112415902A (en) Method and device for controlling intelligent household appliance and intelligent household appliance
CN109219028B (en) Equivalent device Bluetooth communication method and device based on cloud
US9560167B2 (en) Network system, communication method, server, and terminal
CN106502705A (en) Method and its device of application program theme are set
CN110830334A (en) Household appliance control method, device, system, server and household appliance
CN103544039A (en) Plug-in loading processing method and device
CN104796782A (en) Method and device for controlling smart television
US20150119999A1 (en) Communication Apparatus, Communication System and Communication Method
CN109974232B (en) Rapid control method and terminal of air conditioner system, air conditioner system and medium

Legal Events

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

Ref document number: 15891616

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

Country of ref document: EP

Kind code of ref document: A1