WO2023173872A2 - Configuration method for multi-vendor integrated environment based on smart home client end - Google Patents

Configuration method for multi-vendor integrated environment based on smart home client end Download PDF

Info

Publication number
WO2023173872A2
WO2023173872A2 PCT/CN2022/141025 CN2022141025W WO2023173872A2 WO 2023173872 A2 WO2023173872 A2 WO 2023173872A2 CN 2022141025 W CN2022141025 W CN 2022141025W WO 2023173872 A2 WO2023173872 A2 WO 2023173872A2
Authority
WO
WIPO (PCT)
Prior art keywords
task
object model
sub
device set
data
Prior art date
Application number
PCT/CN2022/141025
Other languages
French (fr)
Chinese (zh)
Other versions
WO2023173872A3 (en
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 WO2023173872A2 publication Critical patent/WO2023173872A2/en
Publication of WO2023173872A3 publication Critical patent/WO2023173872A3/en

Links

Images

Classifications

    • 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/2807Exchanging configuration information on appliance services in a home automation network
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • 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/2866Architectures; Arrangements
    • H04L67/30Profiles

Definitions

  • the present invention relates to the field of smart home technology, and specifically relates to a configuration method based on a smart home client multi-vendor integration scenario.
  • Smart home is the embodiment of the Internet of Things under the influence of the Internet.
  • Smart homes use Internet of Things technology to connect various devices in the home (such as audio and video equipment, lighting systems, curtain controls, air conditioning controls, security systems, digital cinema systems, audio and video servers, movie cabinet systems, network appliances, etc.) to provide Various functions and methods include home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environmental monitoring, HVAC control, infrared forwarding and programmable timing control.
  • smart homes not only have traditional living functions, but also have construction, network communications, information appliances, and equipment automation, provide a full range of information interaction functions, and even save money on various energy costs.
  • Smart homes realize the intelligence of the whole house. After years of development, my country's smart home industry has entered the 2.0 smart interconnection stage. The industry market size shows a good growth trend. However, as more and more manufacturers join, the smart home industry is also facing Here comes a new challenge.
  • Each manufacturer is establishing and developing its own smart ecosystem, which has led to the following disadvantages: It is difficult or almost impossible for existing smart terminal products that do not go through the manufacturer to communicate with each other. Once the user selects a smart product, In the future, you will not be able to choose better products from other manufacturers, and the limitations are very large; the client cannot be configured for multi-vendor integration scenarios, and can only configure its own products. As a result, a home user often needs to download multiple clients to meet daily needs and has considerable control. Trouble is, different devices cannot be linked directly, which is far from the original intention of smart home.
  • the present invention provides a configuration method based on the smart home client multi-vendor integration scenario, which realizes the linkage and triggering of different work tasks of multiple devices of different manufacturers under current smart home users, and solves the traditional problem of It requires multiple clients or APPs to configure and control each manufacturer's equipment one by one, which is cumbersome and solves the technical problem that different devices from different manufacturers cannot be directly linked.
  • a configuration method for smart home client multi-vendor integration scenarios, applied to the client including:
  • Create a fusion scenario add execution tasks, obtain equipment that meets the task conditions by traversing the data logical relationship, and establish a task equipment set;
  • the task equipment set includes an execution task ID and a task equipment list; for the task equipment set
  • the device assigns different execution tasks and generates fusion scene data;
  • the method of obtaining equipment that meets task conditions and establishing a task equipment set includes:
  • Display devices that meet the task conditions receive user selections, and establish a task device set based on the devices selected by the user for the task conditions.
  • the device set information obtained by the analysis is used to establish data logical relationships under different resource applications for each device in the device set, including:
  • the first child object model DeviceModel is a child object of the parent object model GatewayModel; the second child object model DevicePointModel is a child object of the first child object model DeviceModel.
  • the device set information obtained by the analysis is used to establish a data logical relationship under different resource applications for each device in the device set, and further includes:
  • GatewayModel Initialize the parent object model GatewayModel, which is used to store gateway attribute data
  • the second sub-object model DevicePointModel stores different resource node attribute data of the corresponding device and is added to the first sub-object model DeviceModel in the form of a collection.
  • the fusion scenario is created, execution tasks are added, and devices that meet the task conditions are obtained by traversing the logical relationships of the data, including:
  • To generate an execution task traverse all the device models of the parent object model GatewayModel, select the devices that meet the conditions for executing the task, store the pre-created execution device collection, and display it.
  • the task triggering conditions include: triggering the execution of the task according to the user's manual triggering information; and/or setting the trigger time to trigger the execution of the task when a certain trigger time is reached; and/or setting the first device to reach a certain condition. , triggering the second device to perform the task.
  • allocating different execution tasks to the devices in the task device set and generating fusion scene data; transmitting the fusion scene data to the server includes:
  • the fusion scene data is encrypted and sent to the server.
  • the device set information acquisition request message In response to the device set information acquisition request message sent by the client, obtain the device set information and send it to the client; the device set information acquisition request message includes user identity information; the devices in the device set belong to different manufacturers;
  • the fusion scenario data is generated in the following ways: parsing the device set information and establishing data logical relationships under different resource applications for each device in the device set; creating a fusion scenario, adding execution tasks, and traversing the data logical relationships, Obtain devices that meet the task conditions and establish a task device set; the task device set includes an execution task ID and a task device list; assign different execution tasks to the devices in the task device set and generate fusion scene data.
  • an electronic device including a memory and a processor.
  • the memory stores instructions
  • the processor executes the instructions to implement the above method steps.
  • a storage medium stores a program; the program is loaded and executed by a processor to implement the method steps as described above.
  • the user device set information that conforms to the user's identity is obtained from the server; and the obtained device set information is parsed to obtain each device in the device set.
  • Figure 1 is a flow chart of a configuration method for a smart home client multi-vendor integration scenario according to Embodiment 1 of the present invention
  • Figure 2 is a flowchart showing a configuration method execution flow chart under manual triggering conditions in a multi-vendor integration scenario of a smart home client according to Embodiment 1 of the present invention
  • Figure 3 is a flowchart showing the execution flow chart of the configuration method under timing trigger conditions in a smart home client multi-vendor integration scenario according to Embodiment 1 of the present invention
  • Figure 4 is a flowchart showing the execution flow chart of the configuration method under device linkage triggering conditions in a smart home client multi-vendor integration scenario according to Embodiment 1 of the present invention.
  • this embodiment implements a configuration method for a smart home client multi-vendor integration scenario, which is applied to the client and includes:
  • S110 Send a device set information acquisition request message to the server, where the device set information acquisition request message includes user identity information; receive the user device set information returned by the server; the devices in the device set belong to different manufacturers;
  • the client architecture includes a user module, a device management module, and a scene configuration module.
  • the user module is responsible for user login, registration and other management;
  • the device management module uniformly manages the gateway devices of various manufacturers and outputs a unified device model;
  • the scene configuration module the scene configuration module will store the devices of each manufacturer selected by the user. It is transmitted to the backend server through certain protocol rules.
  • the user logs in through the account and password on the client, and sends a device set information acquisition request message to the server.
  • the device set information acquisition request message carries the user identity account information; after receiving the user identity information, the server obtains the device set corresponding to the user. ;
  • the user needs to add the devices under his own account in advance to form a device set under the user's identity; the devices in the device set belong to different manufacturers;
  • the client receives the user device set information returned by the server, and the device management module parses the device sets of all manufacturers obtained by the user.
  • the device management module parses the device sets of all manufacturers obtained by the user.
  • a data logical relationship under different resource applications is established for each device in the device set, and is saved in the cache.
  • a parent object model GatewayModel, a first sub-object model DeviceModel of the parent object model GatewayModel, and a second sub-object model DevicePointModel of the first sub-object model DeviceModel are established for each gateway information. Press The logical relationship is stored in the client memory;
  • the first sub-object model DeviceModel is a sub-object of the parent object model GatewayModel;
  • the second sub-object model DevicePointModel is a sub-object of the first sub-object model DeviceModel.
  • the switch device has three resource nodes.
  • the DeviceModel object becomes a sub-object of the GatewayModel object.
  • initialize the DevicePointModel object to store the attribute data of a single resource node of the switch device and use The collection form is added to the DeviceModel object.
  • the data structure is: DevicePointModel is a DeviceModel sub-object, and DeviceModel is a GatewayModel sub-object.
  • the device set information obtained by the analysis establishes data logical relationships under different resource applications for each device in the device set, and also includes: initializing a parent object model GatewayModel, and the parent object model GatewayModel is used to store gateway attribute data; Initialize the first sub-object model DeviceModel, which stores the attribute data of the corresponding device under the smart home gateway, and puts the first sub-object model DeviceModel into the parent object model GatewayModel; initialize the second sub-object model DevicePointModel, the second sub-object model DevicePointModel stores different resource node attribute data of the corresponding device, and is added to the first sub-object model DeviceModel in the form of a collection.
  • the attribute data of the smart home gateway includes gateway name, address and other information
  • the first sub-object model DeviceModel includes the name of the device, the mac address of the device, the uuid of the device, and the current status of the device (for example, for Light (whether the current status is on or off), the online status of the device; taking a light as an example, the second sub-object model DevicePointModel stores different resource node attribute data of the corresponding device, then for the sub-object model of the light, you can set Open, close, reverse (execute the control state opposite to the current state); then based on the description of different resource nodes of a three-way relay switch, the first resource node of the three-way relay switch can be allocated (1. Open ; 2. Close); The control of the second node is reversed to execute the control state opposite to the current state, etc.
  • this embodiment uses smart curtains from manufacturer A and smart lights from manufacturer B as examples.
  • the established three-level logical relationship of the parent object model GatewayModel, the first sub-object model DeviceModel, and the second sub-object model DevicePointModel corresponds to To the specific application, for example, the home gateway corresponds to the parent object model GatewayModel; the first sub-object model DeviceModel includes smart home equipment such as lights and curtains; the second sub-object model DevicePointModel, for lights, includes: open, close, Or reverse (representing the opposite operation to the current state); for curtains, the second sub-object model DevicePointModel can have opening, closing, opening to a specified percentage, and closing to a specified percentage. Therefore, based on the design of this hierarchical logical relationship, this application can subsequently create and set different scenarios to control different devices from different manufacturers to perform different task operation controls.
  • the task device set includes an execution task ID and a task device list; different execution tasks are assigned to the devices in the task device set to generate fusion scene data.
  • the scenario configuration module will provide a concise and easy-to-understand page (Page A) to the user.
  • the page includes: scenario name, trigger conditions, execution tasks, scenario icons, Appear on the home page, etc. Click to add a trigger condition, enter page B, select manual click and return to page A. At this time, the trigger condition changes to manual click, indicating that after the creation of this fusion scene is completed, the user must manually click or control the voice speaker to execute it.
  • the step of creating a fusion scenario, adding an execution task, and traversing the data logical relationship to obtain devices that meet task conditions includes: creating a scenario in which the fusion device concentrates devices, setting task trigger conditions; creating a scenario to execute the task, and traversing the All device models of the parent object model GatewayModel display the devices that meet the conditions for executing the task, and according to the user's selection, save the mapping relationship between the scene execution task ID and the device set selected by the user; to generate an execution task, all device models of the parent object model GatewayModel are traversed, Select the equipment that meets the conditions for executing the task, save the pre-created execution equipment set, and display it.
  • the scene configuration module will take out the device set from the device management module, and loop the device set, traverse all device models under GatewayModel, and find the device that meets the conditions for executing the task ( Sensor devices such as smart door magnets and smart smoke alarms cannot be used to perform tasks; smart door locks, which are highly secure devices, cannot be used as execution devices). Save the pre-created execution device collection (ActionDeviceList) and list it by manufacturer. The UUID (VenderUuid) category is displayed to the user.
  • the method of obtaining devices that meet the task conditions and establishing a task device set includes: displaying devices that meet the task conditions, receiving user selections, and establishing a task device set based on the devices selected by the user for the task conditions.
  • the user selects the device set he wants to execute and clicks the completion button to return to page A.
  • the selected device set will appear in the execution task; for example, the user selects the first position of a three-way relay switch from manufacturer A. Resource node, smart curtains from manufacturer B. Click on a single execution device to enter page D and assign specific execution tasks to each execution device.
  • the scene configuration module will assign different execution tasks according to different manufacturers and devices. For example, curtains can be assigned (1. Open; 2. Close; 3. , open to the specified percentage; 4.
  • the first resource node of the three-way relay switch can be allocated (1. open; 2. closed). Assume that the user selects the first resource node of the three-way relay switch to open, closes the curtain, clicks Finish, returns to page A, and assembles the correct DevicePointModel under each execution device into a fusion scene according to certain rules (the user manually clicks this button displayed on the APP The scene will execute the first one of the three-way relay switch of manufacturer A to open, and the smart curtain of manufacturer B to close) to execute the task data.
  • a scene identifier and/or a scene name can be defined.
  • subsequent users can trigger the scenario startup as long as they meet certain trigger conditions, and the tasks corresponding to the scenario can be started, and then trigger The status of the device in the task list under the scenario is started.
  • scene M is executed every 6 p.m.
  • the implementation defines scene M to close the curtains to a percentage of 80% and then turn on the lights; therefore, as long as the time condition of 6 p.m.
  • the gateway of the system can automatically close the curtains of manufacturer A to 80%, and then the curtain controller feedbacks a completion signaling to the gateway, and the gateway further controls the indoor lights to turn on the lights and receives the completion command, thereby achieving one-time integration.
  • different execution tasks are assigned to the devices in the task device set, and fusion scenario data is generated; and the fusion scenario data is transmitted to the server, including: execution task data and task triggering assigned by the devices in the task device set.
  • the execution task data, trigger conditions, scene identifiers and other data are encrypted and then jointly transmitted to the server.
  • the task triggering conditions include: triggering the execution of the task according to the user's manual triggering information; and/or setting the trigger time to trigger the execution of the task when a certain trigger time is reached; and/or setting the first device to reach a certain condition, Trigger the second device to perform the task.
  • Figure 2 shows the execution flow chart of the configuration method under manual triggering conditions.
  • manual triggering can only be achieved through manual clicks, such as manual clicks or voice speaker control; specifically, the user Log in to the server through the account and password, and after verifying the user's identity, the server obtains the manufacturer's gateway and device under the user and returns it to the client.
  • Figure 3 shows the configuration method execution flow chart under scheduled trigger conditions. If scheduled trigger is selected, the user sets the trigger time. For example, the scene module determines whether the time is reasonable and is greater than three minutes of the current time. After completion, the trigger condition becomes has a scheduled trigger, indicating that after the creation of this integration scenario is completed, it will be executed when the time reaches the set trigger time; specifically, the user logs in to the server through the account and password, and after verifying the user's identity, the server obtains the manufacturer's gateway and device under the user.
  • the trigger condition becomes has a scheduled trigger, indicating that after the creation of this integration scenario is completed, it will be executed when the time reaches the set trigger time; specifically, the user logs in to the server through the account and password, and after verifying the user's identity, the server obtains the manufacturer's gateway and device under the user.
  • the device management module of the client parses and stores the device data of each manufacturer to obtain the device set; further, the user clicks to create a scheduled integration scenario, selects a scheduled trigger, and the user sets a specific time and sets the time through judgment Is it reasonable and greater than three minutes of the current time? If so, select the execution task, filter the qualified device set data through traversal analysis, use the ActionDeviceList collection to store, and display it according to the VenderUuid classification, and assign specific execution actions to the execution device to assemble it.
  • the fusion scene data is transmitted to the server.
  • Figure 4 shows the execution flow chart of the configuration method under device linkage triggering conditions.
  • the user logs in to the server through the account and password, and after verifying the user's identity, the server obtains the user
  • the manufacturer's gateways and devices under the command are returned to the client, and the device management module of the client parses and stores the device data of each manufacturer to obtain the device set; click Add trigger conditions, select device trigger, and the scene configuration module takes out all the device data from the device module.
  • Device sets for example, sensor devices and high-security devices can be used as trigger conditions
  • ConditionDeviceList After the user selects, they are stored using ConditionDeviceList; click on a single trigger device to assign specific trigger conditions and scene configuration to each trigger device.
  • the module will allocate different trigger conditions according to different manufacturers and devices, such as water immersion sensor allocation (1. Flood alarm; 2. Flood release). After clicking Finish, it will be judged whether all the selected condition devices support triggering at the same time or support Any trigger, if the triggers are met at the same time, a pop-up box will be provided for the user to choose between simultaneous trigger and any trigger.
  • the scene configuration module will be triggered from the device management Remove all device sets from the module, loop the device set through for loop, traverse all device models under GatewayModel, remove the device models that are the same as the trigger set (ConditionDeviceList), find out the devices that meet the conditions for executing the task, and store them in the pre-created execution device set.
  • ActionDeviceList for example, you can set up smart door sensors, smart smoke alarms and other sensor devices cannot be used as execution tasks; smart door locks and other highly secure devices cannot be used as execution devices), and display them to the manufacturer according to their UUID classification Users (displayed by VenderUuid classification) select the device set they want to execute and click Finish. The selected device set will appear in the execution task.
  • This embodiment also proposes a configuration method for a smart home client multi-vendor integration scenario, which is applied to the server and includes:
  • the device set information acquisition request message In response to the device set information acquisition request message sent by the client, obtain the device set information and send it to the client; the device set information acquisition request message includes user identity information; the devices in the device set belong to different manufacturers;
  • the fusion scene data is generated by parsing the device set information and establishing data logical relationships under different resource applications for each device in the device set;
  • Create a fusion scenario add execution tasks, obtain equipment that meets the task conditions by traversing the logical relationship of the data, and establish a task equipment set;
  • the task equipment set includes an execution task ID and a task equipment list;
  • Different execution tasks are assigned to the devices in the task device set to generate fusion scene data.
  • obtaining equipment that meets the task conditions and establishing a task equipment set include:
  • Display devices that meet the task conditions receive user selections, and establish a task device set based on the devices selected by the user for the task conditions.
  • the device set information obtained by the analysis establishes data logical relationships under different resource applications for each device in the device set, including:
  • the first child object model DeviceModel is a child object of the parent object model GatewayModel; the second child object model DevicePointModel is a child object of the first child object model DeviceModel.
  • the device set information obtained by the analysis establishes data logical relationships under different resource applications for each device in the device set, and also includes:
  • GatewayModel Initialize the parent object model GatewayModel, which is used to store gateway attribute data
  • the second sub-object model DevicePointModel stores different resource node attribute data of the corresponding device and is added to the first sub-object model DeviceModel in the form of a collection.
  • To generate an execution task traverse all the device models of the parent object model GatewayModel, select the devices that meet the conditions for executing the task, store the pre-created execution device collection, and display it.
  • the task triggering conditions include:
  • the fusion scene data is encrypted and sent to the server.
  • an electronic device which protects a memory and a processor.
  • the memory stores instructions
  • the processor executes the instructions to implement the method steps as described above.
  • a storage medium stores a program; the program is loaded and executed by a processor to implement the method steps as described above.
  • the present invention obtains user equipment set information that conforms to the user's identity from the server; and parses the obtained device set information to establish data logical relationships under different resource applications for each device in the device set. and save it to the cache; further, create a fusion scenario, add execution tasks, obtain devices that meet the task conditions by traversing the data logical relationship, and establish a task device set; the task device set includes an execution task ID and a task device list; Allocate different execution tasks to the devices in the task device set to generate fusion scene data; transmit the fusion scene data to the server to complete the configuration of the fusion scene of smart home devices from multiple manufacturers, so that during the client user operation process As long as the client is opened and the scene configured in the present invention is opened, the linkage and triggering of different work tasks of multiple devices of different manufacturers under the current smart home user can be realized, which solves the traditional problem of requiring multiple clients or The APP realizes the tedious configuration and control of each manufacturer's equipment one by one, and solves the problem that different devices from
  • each functional unit in various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
  • embodiments of the present invention may be provided as methods, systems, or computer program products.
  • the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
  • the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, etc.) embodying computer-usable program code therein.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Automation & Control Theory (AREA)
  • Architecture (AREA)
  • Accounting & Taxation (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides a configuration method for a multi-vendor integrated environment based on a smart home client end, the method comprising: obtaining, from a server, user device set information that matches the identity of a user; analyzing the acquired device set information, establishing a data logic relationship for each device in the device set under different resource applications, and storing the data logic relationships in a cache; creating an integrated environment, adding execution tasks, obtaining a device that meets a task condition by traversing the data logic relationships, and establishing a task-device set, the task device set comprising an execution task ID and a task-device list; allocating different execution tasks to devices in the task-device set to generate integrated environment data; and transmitting the integrated environment data to a server, thereby completing the configuration of the integrated environment for multi-vendor smart home devices.

Description

一种基于智能家居客户端多厂商融合场景的配置方法A configuration method based on smart home client multi-vendor integration scenarios 技术领域Technical field
本发明涉及智能家居技术领域,具体涉及一种基于智能家居客户端多厂商融合场景的配置方法。The present invention relates to the field of smart home technology, and specifically relates to a configuration method based on a smart home client multi-vendor integration scenario.
背景技术Background technique
智能家居是在互联网影响之下物联化的体现。智能家居通过物联网技术将家中的各种设备(如音视频设备、照明系统、窗帘控制、空调控制、安防系统、数字影院系统、影音服务器、影柜系统、网络家电等)连接到一起,提供家电控制、照明控制、电话远程控制、室内外遥控、防盗报警、环境监测、暖通控制、红外转发以及可编程定时控制等多种功能和手段。与普通家居相比,智能家居不仅具有传统的居住功能,兼备建筑、网络通信、信息家电、设备自动化,提供全方位的信息交互功能,甚至为各种能源费用节约资金。Smart home is the embodiment of the Internet of Things under the influence of the Internet. Smart homes use Internet of Things technology to connect various devices in the home (such as audio and video equipment, lighting systems, curtain controls, air conditioning controls, security systems, digital cinema systems, audio and video servers, movie cabinet systems, network appliances, etc.) to provide Various functions and methods include home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environmental monitoring, HVAC control, infrared forwarding and programmable timing control. Compared with ordinary homes, smart homes not only have traditional living functions, but also have construction, network communications, information appliances, and equipment automation, provide a full range of information interaction functions, and even save money on various energy costs.
智能家居通过实现全屋智能化,经过多年的发展,我国智能家居行业已经进入2.0智能互联阶段,行业市场规模呈现良好的增长态势,但是随着越来越多厂商的加入,智能家居行业也迎来了新的挑战。每个厂商都在建立和发展自己的智能生态圈,导致了以下弊端:现有技术中的不通过厂商的智能终端产品很难或者几乎无法相互之间进行通信,用户一旦选定一种智能产品后将无法选择其他厂商更优质的产品,局限性非常大;客户端无法配置多厂商的融合场景,只能配置自家的产品,导致一个家庭用户往往需要下载多个客户端才能满足日常需求控制相当麻烦,不同的设备直接也无法联动,和智能家居的初衷相差甚远。Smart homes realize the intelligence of the whole house. After years of development, my country's smart home industry has entered the 2.0 smart interconnection stage. The industry market size shows a good growth trend. However, as more and more manufacturers join, the smart home industry is also facing Here comes a new challenge. Each manufacturer is establishing and developing its own smart ecosystem, which has led to the following disadvantages: It is difficult or almost impossible for existing smart terminal products that do not go through the manufacturer to communicate with each other. Once the user selects a smart product, In the future, you will not be able to choose better products from other manufacturers, and the limitations are very large; the client cannot be configured for multi-vendor integration scenarios, and can only configure its own products. As a result, a home user often needs to download multiple clients to meet daily needs and has considerable control. Trouble is, different devices cannot be linked directly, which is far from the original intention of smart home.
发明内容Contents of the invention
有鉴于此,本发明提供了一种基于智能家居客户端多厂商融合场 景的配置方法,实现当前智能家居用户下的多个不同厂商的不同设备的不同工作任务的联动以及触发,解决了传统的需要多个客户端或者APP实现各自厂商设备逐一配置逐一操控使用的繁琐,以及解决了不同厂商的不同的设备直接也无法联动的技术问题。In view of this, the present invention provides a configuration method based on the smart home client multi-vendor integration scenario, which realizes the linkage and triggering of different work tasks of multiple devices of different manufacturers under current smart home users, and solves the traditional problem of It requires multiple clients or APPs to configure and control each manufacturer's equipment one by one, which is cumbersome and solves the technical problem that different devices from different manufacturers cannot be directly linked.
本发明的技术方案如下:The technical solution of the present invention is as follows:
一种智能家居客户端多厂商融合场景的配置方法,应用于客户端,包括:A configuration method for smart home client multi-vendor integration scenarios, applied to the client, including:
向所述服务器发送设备集信息获取请求消息,所述设备集信息获取请求消息包括用户身份信息;接收服务器返回的用户设备集信息;所述设备集中的设备分属于不同的厂商;Send a device set information acquisition request message to the server, where the device set information acquisition request message includes user identity information; receive user device set information returned by the server; devices in the device set belong to different manufacturers;
解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,并保存至缓存;Analyze the obtained device set information, establish data logical relationships under different resource applications for each device in the device set, and save it to the cache;
创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,建立任务设备集;所述任务设备集包括执行任务ID,以及任务设备列表;对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据;Create a fusion scenario, add execution tasks, obtain equipment that meets the task conditions by traversing the data logical relationship, and establish a task equipment set; the task equipment set includes an execution task ID and a task equipment list; for the task equipment set The device assigns different execution tasks and generates fusion scene data;
将所述融合场景数据传输至服务器。Transmit the fusion scene data to the server.
优选的,所述获取符合任务条件的设备,建立任务设备集,包括:Preferably, the method of obtaining equipment that meets task conditions and establishing a task equipment set includes:
显示符合任务条件的设备,接收用户选择,根据用户所选的任务条件的设备,建立任务设备集。Display devices that meet the task conditions, receive user selections, and establish a task device set based on the devices selected by the user for the task conditions.
优选的,所述解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,包括:Preferably, the device set information obtained by the analysis is used to establish data logical relationships under different resource applications for each device in the device set, including:
获取客户端的智能家居网关信息;对于每个网关信息建立父对象模型GatewayModel、父对象模型GatewayModel的第一子对象模型DeviceModel、第一子对象模型DeviceModel的第二子对象模型DevicePointModel;Obtain the client's smart home gateway information; for each gateway information, establish the parent object model GatewayModel, the first child object model DeviceModel of the parent object model GatewayModel, and the second child object model DevicePointModel of the first child object model DeviceModel;
所述第一子对象模型DeviceModel为父对象模型GatewayModel的子对象;所述第二子对象模型DevicePointModel为第一子对象模型DeviceModel的子对象。The first child object model DeviceModel is a child object of the parent object model GatewayModel; the second child object model DevicePointModel is a child object of the first child object model DeviceModel.
优选的,所述解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,还包括:Preferably, the device set information obtained by the analysis is used to establish a data logical relationship under different resource applications for each device in the device set, and further includes:
初始化父对象模型GatewayModel,所述父对象模型GatewayModel用于存放网关属性数据;Initialize the parent object model GatewayModel, which is used to store gateway attribute data;
初始化第一子对象模型DeviceModel,所述第一子对象模型DeviceModel存放智能家居网关下的对应设备的属性数据,并将第一子对象模型DeviceModel放入父对象模型GatewayModel中;Initialize the first sub-object model DeviceModel, which stores the attribute data of the corresponding device under the smart home gateway, and puts the first sub-object model DeviceModel into the parent object model GatewayModel;
初始化第二子对象模型DevicePointModel,所述第二子对象模型DevicePointModel存放对应设备的不同资源节点属性数据,并以集合形式加入到第一子对象模型DeviceModel中。Initialize the second sub-object model DevicePointModel. The second sub-object model DevicePointModel stores different resource node attribute data of the corresponding device and is added to the first sub-object model DeviceModel in the form of a collection.
优选的,所述创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,包括:Preferably, the fusion scenario is created, execution tasks are added, and devices that meet the task conditions are obtained by traversing the logical relationships of the data, including:
创建融合设备集中设备的场景,设置任务触发条件;Create a scenario of integrated equipment and centralized equipment, and set task trigger conditions;
创建场景执行任务,通过遍历父对象模型GatewayModel所有设备模型,显示符合执行任务条件的设备,并根据用户选择,保存场景 执行任务ID与用户所选设备集的映射关系;Create a scene execution task, traverse all device models of the parent object model GatewayModel, display devices that meet the conditions for executing the task, and save the mapping relationship between the scene execution task ID and the user-selected device set according to the user's selection;
生成执行任务,则遍历父对象模型GatewayModel所有设备模型,选择符合执行任务条件的设备,存入预先创建好的执行设备集合,并显示。To generate an execution task, traverse all the device models of the parent object model GatewayModel, select the devices that meet the conditions for executing the task, store the pre-created execution device collection, and display it.
优选的,所述任务触发条件,包括:根据用户手动触发信息,触发执行任务;和/或,设置触发时间,达到一定的触发时间,触发执行任务;和/或,设置第一设备达到一定条件,触发第二设备执行任务。Preferably, the task triggering conditions include: triggering the execution of the task according to the user's manual triggering information; and/or setting the trigger time to trigger the execution of the task when a certain trigger time is reached; and/or setting the first device to reach a certain condition. , triggering the second device to perform the task.
优选的,对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据;将所述融合场景数据传输至服务器,包括:Preferably, allocating different execution tasks to the devices in the task device set and generating fusion scene data; transmitting the fusion scene data to the server includes:
根据所述任务设备集中的设备分配的执行任务数据、任务触发条件以及场景标识,生成融合场景数据;Generate fusion scene data according to the execution task data, task triggering conditions and scene identifiers assigned by the equipment in the task equipment set;
将所述融合场景数据加密后发送至服务器。The fusion scene data is encrypted and sent to the server.
此外,还提出一种智能家居客户端多厂商融合场景的配置方法,应用于服务器,包括:In addition, a configuration method for smart home client multi-vendor integration scenarios is also proposed, which is applied to the server, including:
响应于客户端发送的设备集信息获取请求消息,获取设备集信息并发送至客户端;所述设备集信息获取请求消息包括用户身份信息;所述设备集中的设备分属于不同的厂商;In response to the device set information acquisition request message sent by the client, obtain the device set information and send it to the client; the device set information acquisition request message includes user identity information; the devices in the device set belong to different manufacturers;
接收客户端发送的融合场景数据,并保存;Receive the fusion scene data sent by the client and save it;
所述融合场景数据通过如下方式生成:解析所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系;创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务 条件的设备,建立任务设备集;所述任务设备集包括执行任务ID,以及任务设备列表;对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据。The fusion scenario data is generated in the following ways: parsing the device set information and establishing data logical relationships under different resource applications for each device in the device set; creating a fusion scenario, adding execution tasks, and traversing the data logical relationships, Obtain devices that meet the task conditions and establish a task device set; the task device set includes an execution task ID and a task device list; assign different execution tasks to the devices in the task device set and generate fusion scene data.
此外,还提出一种电子装置,包括存储器以及处理器,所述存储器存储有指令,所述处理器执行所述指令以实现如上所述的方法步骤。In addition, an electronic device is also proposed, including a memory and a processor. The memory stores instructions, and the processor executes the instructions to implement the above method steps.
此外,还提出一种存储介质,所述存储介质存储有程序;所述程序由处理器加载并执行以实现如上所述的方法步骤。In addition, a storage medium is also proposed, the storage medium stores a program; the program is loaded and executed by a processor to implement the method steps as described above.
在本发明的方案中,基于智能家居客户端多厂商融合场景的配置方法,通过向服务器获取符合用户身份的用户设备集信息;并解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,并保存至缓存;进一步,创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,建立任务设备集;所述任务设备集包括执行任务ID,以及任务设备列表;对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据;将所述融合场景数据传输至服务器,从而完成多厂商的智能家居设备的融合场景的配置,从而在客户端用户操作过程中,只要打开客户端选择本发明配置好的场景,即可联动实现当前智能家居用户下的多个不同厂商的不同设备的不同工作任务的联动以及触发,解决了传统的需要多个客户端或者APP实现各自厂商设备逐一配置逐一操控使用的繁琐,以及解决了不同厂商的不同的设备直接也无法联动。In the solution of the present invention, based on the configuration method of the smart home client multi-vendor integration scenario, the user device set information that conforms to the user's identity is obtained from the server; and the obtained device set information is parsed to obtain each device in the device set. Establish data logical relationships under different resource applications and save them to the cache; further, create a fusion scenario, add execution tasks, obtain devices that meet the task conditions by traversing the data logical relationships, and establish a task device set; the task device set Including execution task ID and task device list; assigning different execution tasks to the devices in the task device set to generate fusion scenario data; transmitting the fusion scenario data to the server to complete the fusion scenario of smart home devices from multiple manufacturers Configuration, so that during the operation process of the client user, as long as the client is opened and the scene configured in the present invention is selected, the linkage and triggering of different work tasks of multiple devices of different manufacturers under the current smart home user can be realized. It solves the traditional tedious problem of requiring multiple clients or APPs to configure and control each manufacturer's devices one by one, and also solves the problem that different devices from different manufacturers cannot be directly linked.
附图说明Description of the drawings
图1为本发明实施例一智能家居客户端多厂商融合场景的配置方法流程图;Figure 1 is a flow chart of a configuration method for a smart home client multi-vendor integration scenario according to Embodiment 1 of the present invention;
图2为本发明实施例一智能家居客户端多厂商融合场景在手动触发条件下的配置方法执行流程图;Figure 2 is a flowchart showing a configuration method execution flow chart under manual triggering conditions in a multi-vendor integration scenario of a smart home client according to Embodiment 1 of the present invention;
图3为本发明实施例一智能家居客户端多厂商融合场景在定时触发条件下的配置方法执行流程图;Figure 3 is a flowchart showing the execution flow chart of the configuration method under timing trigger conditions in a smart home client multi-vendor integration scenario according to Embodiment 1 of the present invention;
图4为本发明实施例一智能家居客户端多厂商融合场景在设备联动触发条件下的配置方法执行流程图。Figure 4 is a flowchart showing the execution flow chart of the configuration method under device linkage triggering conditions in a smart home client multi-vendor integration scenario according to Embodiment 1 of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
实施例一Embodiment 1
如图1所示,本实施例实施一种智能家居客户端多厂商融合场景的配置方法,应用于客户端,包括:As shown in Figure 1, this embodiment implements a configuration method for a smart home client multi-vendor integration scenario, which is applied to the client and includes:
S110、向所述服务器发送设备集信息获取请求消息,所述设备集信息获取请求消息包括用户身份信息;接收服务器返回的用户设备集信息;所述设备集中的设备分属于不同的厂商;S110. Send a device set information acquisition request message to the server, where the device set information acquisition request message includes user identity information; receive the user device set information returned by the server; the devices in the device set belong to different manufacturers;
具体地,本实施例,客户端构架包括用户模块,设备管理模块,以及场景配置模块。其中,用户模块负责用户的登录、注册等管理; 设备管理模块:对各个厂商的网关设备进行统一管理,并输出统一的设备模型;场景配置模块:场景配置模块会将用户选择的各个厂商的设备通过一定的协议规则传输给后台服务器。用户在客户端通过账号密码登录,向所述服务器发送设备集信息获取请求消息,所述设备集信息获取请求消息携带有用户身份账号信息;服务器接收到用户身份信息以后,获取对应用户的设备集;这里用户预先需要添加自身账号下面的设备形成属于用户身份下的设备集;所述设备集中的设备分属于不同的厂商;Specifically, in this embodiment, the client architecture includes a user module, a device management module, and a scene configuration module. Among them, the user module is responsible for user login, registration and other management; the device management module: uniformly manages the gateway devices of various manufacturers and outputs a unified device model; the scene configuration module: the scene configuration module will store the devices of each manufacturer selected by the user. It is transmitted to the backend server through certain protocol rules. The user logs in through the account and password on the client, and sends a device set information acquisition request message to the server. The device set information acquisition request message carries the user identity account information; after receiving the user identity information, the server obtains the device set corresponding to the user. ; Here the user needs to add the devices under his own account in advance to form a device set under the user's identity; the devices in the device set belong to different manufacturers;
S120、解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,并保存至缓存。S120. Parse the obtained device set information, establish a data logical relationship under different resource applications for each device in the device set, and save it to the cache.
进一步,客户端接收服务器返回的用户设备集信息,设备管理模块将用户获取到的所有厂商的设备集进行解析。通过解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,并保存至缓存。其中,解析获取的所述设备集信息后,对于每个网关信息建立父对象模型GatewayModel、父对象模型GatewayModel的第一子对象模型DeviceModel、第一子对象模型DeviceModel的第二子对象模型DevicePointModel,按逻辑关系存储在客户端内存中;所述第一子对象模型DeviceModel为父对象模型GatewayModel的子对象;所述第二子对象模型DevicePointModel为第一子对象模型DeviceModel的子对象。例如:以用户拥有一个智能家居网关,网关下有一个智能三路继电开关设备,该开关设备拥有三个资源节点,初始化GatewayModel对象,将智能家居网关的属性数 据存放进去;初始化DeviceModel对象,将智能三路继电开关的属性数据存放进去,并将DeviceModel对象放入GatewayModel对象中,此时DeviceModel对象成为GatewayModel对象的子对象,同理,初始化DevicePointModel对象存放开关设备的单个资源节点属性数据并以集合形式加入到DeviceModel对象中,此时数据结构为:DevicePointModel为DeviceModel子对象,DeviceModel为GatewayModel子对象。Further, the client receives the user device set information returned by the server, and the device management module parses the device sets of all manufacturers obtained by the user. By parsing the obtained device set information, a data logical relationship under different resource applications is established for each device in the device set, and is saved in the cache. After parsing the obtained device set information, a parent object model GatewayModel, a first sub-object model DeviceModel of the parent object model GatewayModel, and a second sub-object model DevicePointModel of the first sub-object model DeviceModel are established for each gateway information. Press The logical relationship is stored in the client memory; the first sub-object model DeviceModel is a sub-object of the parent object model GatewayModel; the second sub-object model DevicePointModel is a sub-object of the first sub-object model DeviceModel. For example: assume that the user owns a smart home gateway, and there is an intelligent three-way relay switch device under the gateway. The switch device has three resource nodes. Initialize the GatewayModel object and store the attribute data of the smart home gateway; initialize the DeviceModel object and store the attribute data of the smart home gateway in it. Store the attribute data of the intelligent three-way relay switch and put the DeviceModel object into the GatewayModel object. At this time, the DeviceModel object becomes a sub-object of the GatewayModel object. In the same way, initialize the DevicePointModel object to store the attribute data of a single resource node of the switch device and use The collection form is added to the DeviceModel object. At this time, the data structure is: DevicePointModel is a DeviceModel sub-object, and DeviceModel is a GatewayModel sub-object.
所述解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,还包括:初始化父对象模型GatewayModel,所述父对象模型GatewayModel用于存放网关属性数据;初始化第一子对象模型DeviceModel,所述第一子对象模型DeviceModel存放智能家居网关下的对应设备的属性数据,并将第一子对象模型DeviceModel放入父对象模型GatewayModel中;初始化第二子对象模型DevicePointModel,所述第二子对象模型DevicePointModel存放对应设备的不同资源节点属性数据,并以集合形式加入到第一子对象模型DeviceModel中。具体地,其中,智能家居网关的属性数据包括网关名字,地址等信息;第一子对象模型DeviceModel则包括设备的设备的名字,设备的mac地址,设备的uuid,设备的当前状态(比如,针对电灯,当前状态是打开还是关闭),设备的在线状态;用电灯来举例,所述第二子对象模型DevicePointModel存放对应设备的不同资源节点属性数据,那么对于电灯这一子对象模型,则可以设置打开,关闭,反转(执行与当前状 态相反的控制状态);那么可以基于一个三路继电开关的不同资源节点的描述,三路继电开关的第一位资源节点可以分配(1、打开;2、关闭);第二节点控制反转从而执行与当前状态相反的控制状态等。The device set information obtained by the analysis establishes data logical relationships under different resource applications for each device in the device set, and also includes: initializing a parent object model GatewayModel, and the parent object model GatewayModel is used to store gateway attribute data; Initialize the first sub-object model DeviceModel, which stores the attribute data of the corresponding device under the smart home gateway, and puts the first sub-object model DeviceModel into the parent object model GatewayModel; initialize the second sub-object model DevicePointModel, the second sub-object model DevicePointModel stores different resource node attribute data of the corresponding device, and is added to the first sub-object model DeviceModel in the form of a collection. Specifically, the attribute data of the smart home gateway includes gateway name, address and other information; the first sub-object model DeviceModel includes the name of the device, the mac address of the device, the uuid of the device, and the current status of the device (for example, for Light (whether the current status is on or off), the online status of the device; taking a light as an example, the second sub-object model DevicePointModel stores different resource node attribute data of the corresponding device, then for the sub-object model of the light, you can set Open, close, reverse (execute the control state opposite to the current state); then based on the description of different resource nodes of a three-way relay switch, the first resource node of the three-way relay switch can be allocated (1. Open ; 2. Close); The control of the second node is reversed to execute the control state opposite to the current state, etc.
进一步,本实施例用A厂商的智能窗帘,B厂商的智能电灯来举例,其中,建立的父对象模型GatewayModel、第一子对象模型DeviceModel、第二子对象模型DevicePointModel三个层次的逻辑关系,对应到该具体的应用,比如家庭网关对应的是父对象模型GatewayModel;第一子对象模型DeviceModel包括电灯,窗帘等智能家居的设备;第二子对象模型DevicePointModel,针对电灯,则包括:打开,关闭,或反转(代表与当前状态执行的相反操作);针对窗帘,第二子对象模型DevicePointModel则可以具有打开、关闭、打开到指定百分比、关闭到指定百分比。因此,基于该层次逻辑关系的设计,本申请可以后续创建设定不同的场景控制不同厂商的不同设备执行不同的任务操作控制。Furthermore, this embodiment uses smart curtains from manufacturer A and smart lights from manufacturer B as examples. Among them, the established three-level logical relationship of the parent object model GatewayModel, the first sub-object model DeviceModel, and the second sub-object model DevicePointModel corresponds to To the specific application, for example, the home gateway corresponds to the parent object model GatewayModel; the first sub-object model DeviceModel includes smart home equipment such as lights and curtains; the second sub-object model DevicePointModel, for lights, includes: open, close, Or reverse (representing the opposite operation to the current state); for curtains, the second sub-object model DevicePointModel can have opening, closing, opening to a specified percentage, and closing to a specified percentage. Therefore, based on the design of this hierarchical logical relationship, this application can subsequently create and set different scenarios to control different devices from different manufacturers to perform different task operation controls.
S130、创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,建立任务设备集;所述任务设备集包括执行任务ID,以及任务设备列表;对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据。S130. Create a fusion scenario, add execution tasks, obtain devices that meet task conditions by traversing the data logical relationship, and establish a task device set; the task device set includes execution task IDs and task device lists; for the task devices Centralized devices allocate different execution tasks and generate fusion scene data.
其中,所述任务设备集包括执行任务ID,以及任务设备列表;对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据。具体地,用户在配置融合场景过程中,可以点击创建融合场景,场景配置模块会提供一个简洁易懂的页面(页面A)给用户,页面包 括:场景名称,触发条件,执行任务,场景图标,出现在首页等。点击添加触发条件,进入页面B,选择手动点击后返回页面A,此时触发条件就变成了手动点击,表明此融合场景创建完成之后,用户须通过手动点击或者语音音箱的控制才能执行。The task device set includes an execution task ID and a task device list; different execution tasks are assigned to the devices in the task device set to generate fusion scene data. Specifically, during the process of configuring the fusion scenario, the user can click to create the fusion scenario. The scenario configuration module will provide a concise and easy-to-understand page (Page A) to the user. The page includes: scenario name, trigger conditions, execution tasks, scenario icons, Appear on the home page, etc. Click to add a trigger condition, enter page B, select manual click and return to page A. At this time, the trigger condition changes to manual click, indicating that after the creation of this fusion scene is completed, the user must manually click or control the voice speaker to execute it.
优选的,所述创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,包括:创建融合设备集中设备的场景,设置任务触发条件;创建场景执行任务,通过遍历父对象模型GatewayModel所有设备模型,显示符合执行任务条件的设备,并根据用户选择,保存场景执行任务ID与用户所选设备集的映射关系;生成执行任务,则遍历父对象模型GatewayModel所有设备模型,选择符合执行任务条件的设备,存入预先创建好的执行设备集合,并显示。Preferably, the step of creating a fusion scenario, adding an execution task, and traversing the data logical relationship to obtain devices that meet task conditions includes: creating a scenario in which the fusion device concentrates devices, setting task trigger conditions; creating a scenario to execute the task, and traversing the All device models of the parent object model GatewayModel display the devices that meet the conditions for executing the task, and according to the user's selection, save the mapping relationship between the scene execution task ID and the device set selected by the user; to generate an execution task, all device models of the parent object model GatewayModel are traversed, Select the equipment that meets the conditions for executing the task, save the pre-created execution equipment set, and display it.
具体地,通过点击添加执行任务,进入页面C,场景配置模块将会从设备管理模块中取出设备集,for循环该设备集,遍历GatewayModel下的所有设备模型,找出符合执行任务条件的设备(智能门磁,智能烟雾报警器这类传感器设备不能作为执行任务;智能门锁这种安全性很高的设备也不能作为执行设备)存入预先创建好的执行设备集合(ActionDeviceList),并按厂商的UUID(VenderUuid)分类展示给用户。Specifically, by clicking Add Execution Task and entering page C, the scene configuration module will take out the device set from the device management module, and loop the device set, traverse all device models under GatewayModel, and find the device that meets the conditions for executing the task ( Sensor devices such as smart door magnets and smart smoke alarms cannot be used to perform tasks; smart door locks, which are highly secure devices, cannot be used as execution devices). Save the pre-created execution device collection (ActionDeviceList) and list it by manufacturer. The UUID (VenderUuid) category is displayed to the user.
优选的,所述获取符合任务条件的设备,建立任务设备集,包括:显示符合任务条件的设备,接收用户选择,根据用户所选的任务条件的设备,建立任务设备集。具体地,用户选择想要执行的设备集点击 完成按钮,返回页面A,选择的设备集将会出现在执行任务中;例如,例如用户选择了一个厂商A的三路继电开关的第一位资源节点,厂商B的智能窗帘。点击单个执行设备,进入页面D,给每个执行设备分配具体的执行任务,场景配置模块会根据厂商和设备的不同分配不同的执行任务,例如窗帘可以分配(1、打开;2、关闭;3、打开到指定百分比;4、关闭到指定百分比),三路继电开关的第一位资源节点可以分配(1、打开;2、关闭)。假设用户选择三路继电开关第一位资源节点打开,窗帘关闭,点击完成,返回页面A,将每个执行设备下正确的DevicePointModel按一定规则组装成融合场景(用户手动点击APP上显示的此场景将会执行厂商A的三路继电开关的第一位打开,厂商B的智能窗帘关闭)执行任务数据。Preferably, the method of obtaining devices that meet the task conditions and establishing a task device set includes: displaying devices that meet the task conditions, receiving user selections, and establishing a task device set based on the devices selected by the user for the task conditions. Specifically, the user selects the device set he wants to execute and clicks the completion button to return to page A. The selected device set will appear in the execution task; for example, the user selects the first position of a three-way relay switch from manufacturer A. Resource node, smart curtains from manufacturer B. Click on a single execution device to enter page D and assign specific execution tasks to each execution device. The scene configuration module will assign different execution tasks according to different manufacturers and devices. For example, curtains can be assigned (1. Open; 2. Close; 3. , open to the specified percentage; 4. close to the specified percentage), the first resource node of the three-way relay switch can be allocated (1. open; 2. closed). Assume that the user selects the first resource node of the three-way relay switch to open, closes the curtain, clicks Finish, returns to page A, and assembles the correct DevicePointModel under each execution device into a fusion scene according to certain rules (the user manually clicks this button displayed on the APP The scene will execute the first one of the three-way relay switch of manufacturer A to open, and the smart curtain of manufacturer B to close) to execute the task data.
基于该融合场景,可以定义一个场景标识,和/或一个场景名称,那么基于该配置完成后,后续用户只要达到一定的触发条件,即可实现触发场景启动,实现场景对应的任务启动,继而触发场景下的任务列表中的设备的状态启动。比如,我们定义,每到下午6点,执行场景M,而实现定义了场景M是关闭窗帘至百分比80%,而后开灯;因此,只要达到6点的时间条件,基于本实施例的配置,系统的网关可以自动执行A厂商的窗帘关闭到百分比80%,而后窗帘控制器反馈一个完成信令至网关,则网关进一步控制将室内的灯执行开灯操作,并接收完成指令,从而实现一次融合场景的使用。Based on the fusion scenario, a scene identifier and/or a scene name can be defined. After the configuration is completed, subsequent users can trigger the scenario startup as long as they meet certain trigger conditions, and the tasks corresponding to the scenario can be started, and then trigger The status of the device in the task list under the scenario is started. For example, we define that scene M is executed every 6 p.m., and the implementation defines scene M to close the curtains to a percentage of 80% and then turn on the lights; therefore, as long as the time condition of 6 p.m. is reached, based on the configuration of this embodiment, The gateway of the system can automatically close the curtains of manufacturer A to 80%, and then the curtain controller feedbacks a completion signaling to the gateway, and the gateway further controls the indoor lights to turn on the lights and receives the completion command, thereby achieving one-time integration. The use of scenes.
S140、将所述融合场景数据传输至服务器。S140. Transmit the fusion scene data to the server.
优选的,对所述任务设备集中的设备分配不同的执行任务,生成 融合场景数据;将所述融合场景数据传输至服务器,包括:根据所述任务设备集中的设备分配的执行任务数据、任务触发条件以及场景标识,生成融合场景数据;将所述融合场景数据加密后发送至服务器。本实施例,通过,将执行任务数据与触发条件以及场景标识等数据加密后共同传输给服务器。Preferably, different execution tasks are assigned to the devices in the task device set, and fusion scenario data is generated; and the fusion scenario data is transmitted to the server, including: execution task data and task triggering assigned by the devices in the task device set. Conditions and scene identifiers to generate fusion scene data; the fusion scene data is encrypted and sent to the server. In this embodiment, the execution task data, trigger conditions, scene identifiers and other data are encrypted and then jointly transmitted to the server.
进一步,所述任务触发条件,包括:根据用户手动触发信息,触发执行任务;和/或,设置触发时间,达到一定的触发时间,触发执行任务;和/或,设置第一设备达到一定条件,触发第二设备执行任务。具体地,如图2所示为在手动触发条件下的配置方法执行流程图,在选择手动触发时,通过手动点击才能实现触发,比如通过手动点击或者语音音箱的控制才能执行;具体地,用户通过账号密码登录服务器,进行验证用户的身份后,服务器获取该用户下的厂商网关和设备,并返回至客户端,通过客户端的设备管理模块解析存储各个厂商设备数据,从而获取设备集;进一步,通过用户手动点击创建手动融合场景,选择手动执行,选择执行任务,通过遍历解析筛选符合条件的设备集数据,使用ActionDeviceList集合存储,并按VenderUuid分类进行展示,给予执行设备分配具体执行动作,从而组装成融合场景数据传输至服务器。Further, the task triggering conditions include: triggering the execution of the task according to the user's manual triggering information; and/or setting the trigger time to trigger the execution of the task when a certain trigger time is reached; and/or setting the first device to reach a certain condition, Trigger the second device to perform the task. Specifically, Figure 2 shows the execution flow chart of the configuration method under manual triggering conditions. When manual triggering is selected, triggering can only be achieved through manual clicks, such as manual clicks or voice speaker control; specifically, the user Log in to the server through the account and password, and after verifying the user's identity, the server obtains the manufacturer's gateway and device under the user and returns it to the client. It parses and stores each manufacturer's device data through the client's device management module to obtain the device set; further, Create manual fusion scenarios through manual user clicks, select manual execution, select execution tasks, filter qualified device set data through traversal analysis, use ActionDeviceList collection storage, and display by VenderUuid classification, assign specific execution actions to execution devices, and assemble The fusion scene data is transmitted to the server.
如图3所示为在定时触发条件下的配置方法执行流程图,若选择定时触发,用户设置触发时间,例如:场景模块判断时间是否合理并且大于当前时间三分钟,完成后触发条件就变成了定时触发,表明此融合场景创建完成之后,时间到达设置的触发时间就会执行;具体地, 用户通过账号密码登录服务器,进行验证用户的身份后,服务器获取该用户下的厂商网关和设备,并返回至客户端,通过客户端的设备管理模块解析存储各个厂商设备数据,从而获取设备集;进一步,通过用户点击创建定时融合场景,选择定时触发,用户设定具体的时间,通过判断设定时间是否合理且大于当前时间三分钟,若是则选择执行任务,并通过遍历解析筛选符合条件的设备集数据,使用ActionDeviceList集合存储,并按VenderUuid分类进行展示,给予执行设备分配具体执行动作,从而组装成融合场景数据传输至服务器。Figure 3 shows the configuration method execution flow chart under scheduled trigger conditions. If scheduled trigger is selected, the user sets the trigger time. For example, the scene module determines whether the time is reasonable and is greater than three minutes of the current time. After completion, the trigger condition becomes has a scheduled trigger, indicating that after the creation of this integration scenario is completed, it will be executed when the time reaches the set trigger time; specifically, the user logs in to the server through the account and password, and after verifying the user's identity, the server obtains the manufacturer's gateway and device under the user. And return to the client, the device management module of the client parses and stores the device data of each manufacturer to obtain the device set; further, the user clicks to create a scheduled integration scenario, selects a scheduled trigger, and the user sets a specific time and sets the time through judgment Is it reasonable and greater than three minutes of the current time? If so, select the execution task, filter the qualified device set data through traversal analysis, use the ActionDeviceList collection to store, and display it according to the VenderUuid classification, and assign specific execution actions to the execution device to assemble it. The fusion scene data is transmitted to the server.
此外,如图4所示为在设备联动触发条件下的配置方法执行流程图,通过设置设备联动融合场景配置,具体地,用户通过账号密码登录服务器,进行验证用户的身份后,服务器获取该用户下的厂商网关和设备,并返回至客户端,通过客户端的设备管理模块解析存储各个厂商设备数据,从而获取设备集;通过点击添加触发条件,选择设备触发,场景配置模块从设备模块中取出所有设备集(例如:可以包括传感器设备、高安全设备都能作为触发条件)供用户选择,用户选择完后用ConditionDeviceList存储起来;点击单个触发设备,给每个触发设备分配具体的触发条件,场景配置模块会根据厂商和设备的不同分配不同的触发条件,例如水浸传感器分配(1、水浸报警;2、水浸解除),点击完成后判断所选的所有条件设备是支持同时满足触发还是支持任一触发,如果是同时满足触发则提供用户同时触发和任一触发两种选择方式的弹出框,如果是任一触发,用户将不能选择;点击添加执行任务,场景配置模块将会从设备管理模块中取出所有设备 集,for循环该设备集,遍历GatewayModel下的所有设备模型,去除与触发集合(ConditionDeviceList)相同的设备模型,找出符合执行任务条件的设备存入预先创建好的执行设备集合(ActionDeviceList)(例如可以设置智能门磁,智能烟雾报警器这类传感器设备不能作为执行任务;智能门锁这种安全性很高的设备也不能作为执行设备),并按厂商的UUID分类展示给用户(按VenderUuid分类进行展示),选择想要执行的设备集点击完成,选择的设备集将会出现在执行任务中。In addition, Figure 4 shows the execution flow chart of the configuration method under device linkage triggering conditions. By setting the device linkage fusion scenario configuration, specifically, the user logs in to the server through the account and password, and after verifying the user's identity, the server obtains the user The manufacturer's gateways and devices under the command are returned to the client, and the device management module of the client parses and stores the device data of each manufacturer to obtain the device set; click Add trigger conditions, select device trigger, and the scene configuration module takes out all the device data from the device module. Device sets (for example, sensor devices and high-security devices can be used as trigger conditions) are available for users to select. After the user selects, they are stored using ConditionDeviceList; click on a single trigger device to assign specific trigger conditions and scene configuration to each trigger device. The module will allocate different trigger conditions according to different manufacturers and devices, such as water immersion sensor allocation (1. Flood alarm; 2. Flood release). After clicking Finish, it will be judged whether all the selected condition devices support triggering at the same time or support Any trigger, if the triggers are met at the same time, a pop-up box will be provided for the user to choose between simultaneous trigger and any trigger. If it is any trigger, the user will not be able to choose; click Add Execution Task, the scene configuration module will be triggered from the device management Remove all device sets from the module, loop the device set through for loop, traverse all device models under GatewayModel, remove the device models that are the same as the trigger set (ConditionDeviceList), find out the devices that meet the conditions for executing the task, and store them in the pre-created execution device set. (ActionDeviceList) (for example, you can set up smart door sensors, smart smoke alarms and other sensor devices cannot be used as execution tasks; smart door locks and other highly secure devices cannot be used as execution devices), and display them to the manufacturer according to their UUID classification Users (displayed by VenderUuid classification) select the device set they want to execute and click Finish. The selected device set will appear in the execution task.
实施例二Embodiment 2
本实施例还提出一种智能家居客户端多厂商融合场景的配置方法,应用于服务器,包括:This embodiment also proposes a configuration method for a smart home client multi-vendor integration scenario, which is applied to the server and includes:
响应于客户端发送的设备集信息获取请求消息,获取设备集信息并发送至客户端;所述设备集信息获取请求消息包括用户身份信息;所述设备集中的设备分属于不同的厂商;In response to the device set information acquisition request message sent by the client, obtain the device set information and send it to the client; the device set information acquisition request message includes user identity information; the devices in the device set belong to different manufacturers;
接收客户端发送的融合场景数据,并保存;Receive the fusion scene data sent by the client and save it;
所述融合场景数据通过如下方式生成:解析所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系;The fusion scene data is generated by parsing the device set information and establishing data logical relationships under different resource applications for each device in the device set;
创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,建立任务设备集;所述任务设备集包括执行任务ID,以及任务设备列表;Create a fusion scenario, add execution tasks, obtain equipment that meets the task conditions by traversing the logical relationship of the data, and establish a task equipment set; the task equipment set includes an execution task ID and a task equipment list;
对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据。Different execution tasks are assigned to the devices in the task device set to generate fusion scene data.
其中,所述获取符合任务条件的设备,建立任务设备集,包括:Among them, obtaining equipment that meets the task conditions and establishing a task equipment set include:
显示符合任务条件的设备,接收用户选择,根据用户所选的任务条件的设备,建立任务设备集。Display devices that meet the task conditions, receive user selections, and establish a task device set based on the devices selected by the user for the task conditions.
所述解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,包括:The device set information obtained by the analysis establishes data logical relationships under different resource applications for each device in the device set, including:
获取客户端的智能家居网关信息;对于每个网关信息建立父对象模型GatewayModel、父对象模型GatewayModel的第一子对象模型DeviceModel、第一子对象模型DeviceModel的第二子对象模型DevicePointModel;Obtain the client's smart home gateway information; for each gateway information, establish the parent object model GatewayModel, the first child object model DeviceModel of the parent object model GatewayModel, and the second child object model DevicePointModel of the first child object model DeviceModel;
所述第一子对象模型DeviceModel为父对象模型GatewayModel的子对象;所述第二子对象模型DevicePointModel为第一子对象模型DeviceModel的子对象。The first child object model DeviceModel is a child object of the parent object model GatewayModel; the second child object model DevicePointModel is a child object of the first child object model DeviceModel.
所述解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,还包括:The device set information obtained by the analysis establishes data logical relationships under different resource applications for each device in the device set, and also includes:
初始化父对象模型GatewayModel,所述父对象模型GatewayModel用于存放网关属性数据;Initialize the parent object model GatewayModel, which is used to store gateway attribute data;
初始化第一子对象模型DeviceModel,所述第一子对象模型DeviceModel存放智能家居网关下的对应设备的属性数据,并将第一子对象模型DeviceModel放入父对象模型GatewayModel中;Initialize the first sub-object model DeviceModel, which stores the attribute data of the corresponding device under the smart home gateway, and puts the first sub-object model DeviceModel into the parent object model GatewayModel;
初始化第二子对象模型DevicePointModel,所述第二子对象模型DevicePointModel存放对应设备的不同资源节点属性数据,并以集合形式加入到第一子对象模型DeviceModel中。Initialize the second sub-object model DevicePointModel. The second sub-object model DevicePointModel stores different resource node attribute data of the corresponding device and is added to the first sub-object model DeviceModel in the form of a collection.
所述创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,包括:Create a fusion scenario, add execution tasks, and obtain devices that meet the task conditions by traversing the logical relationships of the data, including:
创建融合设备集中设备的场景,设置任务触发条件;Create a scenario of integrated equipment and centralized equipment, and set task trigger conditions;
创建场景执行任务,通过遍历父对象模型GatewayModel所有设备模型,显示符合执行任务条件的设备,并根据用户选择,保存场景执行任务ID与用户所选设备集的映射关系;Create a scene execution task, traverse all device models of the parent object model GatewayModel, display devices that meet the conditions for executing the task, and save the mapping relationship between the scene execution task ID and the user-selected device set according to the user's selection;
生成执行任务,则遍历父对象模型GatewayModel所有设备模型,选择符合执行任务条件的设备,存入预先创建好的执行设备集合,并显示。To generate an execution task, traverse all the device models of the parent object model GatewayModel, select the devices that meet the conditions for executing the task, store the pre-created execution device collection, and display it.
所述任务触发条件,包括:The task triggering conditions include:
根据用户手动触发信息,触发执行任务;和/或,设置触发时间,达到一定的触发时间,触发执行任务;和/或,设置第一设备达到一定条件,触发第二设备执行任务。Trigger the execution of the task according to the user's manual trigger information; and/or set the trigger time to trigger the execution of the task when a certain trigger time is reached; and/or set the first device to reach a certain condition to trigger the second device to execute the task.
对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据;将所述融合场景数据传输至服务器,包括:Assign different execution tasks to the devices in the task device set and generate fusion scenario data; transmit the fusion scenario data to the server, including:
根据所述任务设备集中的设备分配的执行任务数据、任务触发条件以及场景标识,生成融合场景数据;Generate fusion scene data according to the execution task data, task triggering conditions and scene identifiers assigned by the equipment in the task equipment set;
将所述融合场景数据加密后发送至服务器。The fusion scene data is encrypted and sent to the server.
此外,还提出一种电子装置,保护存储器以及处理器,所述存储器存储有指令,所述处理器执行所述指令以实现如上所述的方法步骤。In addition, an electronic device is also proposed, which protects a memory and a processor. The memory stores instructions, and the processor executes the instructions to implement the method steps as described above.
此外,还提出一种存储介质,所述存储介质存储有程序;所述程 序由处理器加载并执行以实现如上所述的方法步骤。In addition, a storage medium is also proposed, the storage medium stores a program; the program is loaded and executed by a processor to implement the method steps as described above.
本发明,在基于上述实施例方案,通过向服务器获取符合用户身份的用户设备集信息;并解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,并保存至缓存;进一步,创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,建立任务设备集;所述任务设备集包括执行任务ID,以及任务设备列表;对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据;将所述融合场景数据传输至服务器,从而完成多厂商的智能家居设备的融合场景的配置,从而在客户端用户操作过程中,只要打开客户端选择本发明配置好的场景,即可联动实现当前智能家居用户下的多个不同厂商的不同设备的不同工作任务的联动以及触发,解决了传统的需要多个客户端或者APP实现各自厂商设备逐一配置逐一操控使用的繁琐,以及解决了不同厂商的不同的设备直接也无法联动。Based on the above embodiments, the present invention obtains user equipment set information that conforms to the user's identity from the server; and parses the obtained device set information to establish data logical relationships under different resource applications for each device in the device set. and save it to the cache; further, create a fusion scenario, add execution tasks, obtain devices that meet the task conditions by traversing the data logical relationship, and establish a task device set; the task device set includes an execution task ID and a task device list; Allocate different execution tasks to the devices in the task device set to generate fusion scene data; transmit the fusion scene data to the server to complete the configuration of the fusion scene of smart home devices from multiple manufacturers, so that during the client user operation process As long as the client is opened and the scene configured in the present invention is opened, the linkage and triggering of different work tasks of multiple devices of different manufacturers under the current smart home user can be realized, which solves the traditional problem of requiring multiple clients or The APP realizes the tedious configuration and control of each manufacturer's equipment one by one, and solves the problem that different devices from different manufacturers cannot be directly linked.
本领域普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps involved in implementing the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. When the program is executed, , including one of the steps of the method embodiment or a combination thereof.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软 件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, etc.) embodying computer-usable program code therein.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the invention. In this way, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims (8)

  1. 一种智能家居客户端多厂商融合场景的配置方法,应用于客户端,其特征在于,包括:A configuration method for smart home client multi-vendor integration scenarios, applied to the client, is characterized by including:
    向服务器发送设备集信息获取请求消息,所述设备集信息获取请求消息包括用户身份信息;接收服务器返回的用户设备集信息;所述设备集中的设备分属于不同的厂商;Send a device set information acquisition request message to the server, where the device set information acquisition request message includes user identity information; receive the user device set information returned by the server; the devices in the device set belong to different manufacturers;
    解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,并保存至缓存;Analyze the obtained device set information, establish data logical relationships under different resource applications for each device in the device set, and save it to the cache;
    创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,建立任务设备集;所述任务设备集包括执行任务ID,以及任务设备列表;对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据;Create a fusion scenario, add execution tasks, obtain equipment that meets the task conditions by traversing the data logical relationship, and establish a task equipment set; the task equipment set includes an execution task ID and a task equipment list; for the task equipment set The device assigns different execution tasks and generates fusion scene data;
    将所述融合场景数据传输至服务器;Transmit the fusion scene data to the server;
    所述解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,包括:获取客户端的智能家居网关信息;对于每个网关信息建立父对象模型GatewayModel、父对象模型GatewayModel的第一子对象模型DeviceModel、第一子对象模型DeviceModel的第二子对象模型DevicePointModel;所述第一子对象模型DeviceModel为父对象模型GatewayModel的子对象;所述第二子对象模型DevicePointModel为第一子对象模型DeviceModel的子对象;The device set information obtained by the analysis establishes data logical relationships under different resource applications for each device in the device set, including: obtaining the client's smart home gateway information; establishing a parent object model GatewayModel, parent The first sub-object model DeviceModel of the object model GatewayModel, and the second sub-object model DevicePointModel of the first sub-object model DeviceModel; the first sub-object model DeviceModel is a sub-object of the parent object model GatewayModel; the second sub-object model DevicePointModel It is the sub-object of the first sub-object model DeviceModel;
    初始化父对象模型GatewayModel,所述父对象模型GatewayModel用于存放网关属性数据;初始化第一子对象模型 DeviceModel,所述第一子对象模型DeviceModel存放智能家居网关下的对应设备的属性数据,并将第一子对象模型DeviceModel放入父对象模型GatewayModel中;初始化第二子对象模型DevicePointModel,所述第二子对象模型DevicePointModel存放对应设备的不同资源节点属性数据,并以集合形式加入到第一子对象模型DeviceModel中。Initialize the parent object model GatewayModel, which is used to store gateway attribute data; initialize the first child object model DeviceModel, which stores the attribute data of the corresponding device under the smart home gateway, and stores the attribute data of the corresponding device under the smart home gateway. A sub-object model DeviceModel is put into the parent object model GatewayModel; a second sub-object model DevicePointModel is initialized. The second sub-object model DevicePointModel stores different resource node attribute data of the corresponding device and is added to the first sub-object model in the form of a collection. DeviceModel.
  2. 根据权利要求1所述的智能家居客户端多厂商融合场景的配置方法,其特征在于,所述获取符合任务条件的设备,建立任务设备集,包括:The configuration method for multi-vendor integration scenarios of smart home clients according to claim 1, characterized in that said obtaining devices that meet task conditions and establishing a task device set includes:
    显示符合任务条件的设备,接收用户选择,根据用户所选的符合任务条件的设备,建立任务设备集。Display devices that meet the task conditions, receive user selections, and establish a task device set based on the devices selected by the user that meet the task conditions.
  3. 根据权利要求1所述的智能家居客户端多厂商融合场景的配置方法,其特征在于,所述创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,包括:The configuration method of a smart home client multi-vendor integration scenario according to claim 1, characterized in that the creation of the integration scenario, adding execution tasks, and obtaining devices that meet the task conditions by traversing the data logical relationships include:
    创建融合设备集中设备的场景,设置任务触发条件;Create a scenario of integrated equipment and centralized equipment, and set task trigger conditions;
    创建场景执行任务,通过遍历父对象模型GatewayModel所有设备模型,显示符合执行任务条件的设备,并根据用户选择,保存场景执行任务ID与用户所选设备集的映射关系;Create a scene execution task, traverse all device models of the parent object model GatewayModel, display devices that meet the conditions for executing the task, and save the mapping relationship between the scene execution task ID and the user-selected device set according to the user's selection;
    生成执行任务,则遍历父对象模型GatewayModel所有设备模型,选择符合执行任务条件的设备,存入预先创建好的执行设备集合,并显示。To generate an execution task, traverse all the device models of the parent object model GatewayModel, select the devices that meet the conditions for executing the task, store the pre-created execution device collection, and display it.
  4. 根据权利要求3所述的智能家居客户端多厂商融合场景的配 置方法,其特征在于,所述任务触发条件,包括:The configuration method of smart home client multi-vendor integration scenario according to claim 3, characterized in that the task triggering conditions include:
    根据用户手动触发信息,触发执行任务;和/或,设置触发时间,达到一定的触发时间,触发执行任务;和/或,设置第一设备达到一定条件,触发第二设备执行任务。Trigger the execution of the task according to the user's manual trigger information; and/or set the trigger time to trigger the execution of the task when a certain trigger time is reached; and/or set the first device to reach a certain condition to trigger the second device to execute the task.
  5. 根据权利要求4所述的智能家居客户端多厂商融合场景的配置方法,其特征在于,对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据;将所述融合场景数据传输至服务器,包括:The configuration method for a multi-vendor fusion scenario of a smart home client according to claim 4, characterized in that: allocating different execution tasks to the devices in the task device set to generate fusion scenario data; and transmitting the fusion scenario data to Servers, including:
    根据所述任务设备集中的设备分配的执行任务数据、任务触发条件以及场景标识,生成融合场景数据;Generate fusion scene data according to the execution task data, task triggering conditions and scene identifiers assigned by the equipment in the task equipment set;
    将所述融合场景数据加密后发送至服务器。The fusion scene data is encrypted and sent to the server.
  6. 一种智能家居客户端多厂商融合场景的配置方法,应用于服务器,其特征在于,包括:A configuration method for smart home client multi-vendor integration scenarios, applied to servers, is characterized by including:
    响应于客户端发送的设备集信息获取请求消息,获取设备集信息并发送至客户端;所述设备集信息获取请求消息包括用户身份信息;所述设备集中的设备分属于不同的厂商;In response to the device set information acquisition request message sent by the client, obtain the device set information and send it to the client; the device set information acquisition request message includes user identity information; the devices in the device set belong to different manufacturers;
    接收客户端发送的融合场景数据,并保存;Receive the fusion scene data sent by the client and save it;
    所述融合场景数据通过如下方式生成:解析所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系;创建融合场景,添加执行任务,通过遍历所述数据逻辑关系,获取符合任务条件的设备,建立任务设备集;所述任务设备集包括执行任务ID,以及任务设备列表;对所述任务设备集中的设备分配不同的执行任务,生成融合场景数据;The fusion scenario data is generated in the following ways: parsing the device set information and establishing data logical relationships under different resource applications for each device in the device set; creating a fusion scenario, adding execution tasks, and traversing the data logical relationships, Obtain devices that meet the task conditions and establish a task device set; the task device set includes an execution task ID and a task device list; assign different execution tasks to the devices in the task device set and generate fusion scenario data;
    所述解析获取的所述设备集信息,为设备集中的每个设备建立不同资源应用下的数据逻辑关系,包括:获取客户端的智能家居网关信息;对于每个网关信息建立父对象模型GatewayModel、父对象模型GatewayModel的第一子对象模型DeviceModel、第一子对象模型DeviceModel的第二子对象模型DevicePointModel;所述第一子对象模型DeviceModel为父对象模型GatewayModel的子对象;所述第二子对象模型DevicePointModel为第一子对象模型DeviceModel的子对象;The device set information obtained by the analysis establishes data logical relationships under different resource applications for each device in the device set, including: obtaining the client's smart home gateway information; establishing a parent object model GatewayModel, parent The first sub-object model DeviceModel of the object model GatewayModel, and the second sub-object model DevicePointModel of the first sub-object model DeviceModel; the first sub-object model DeviceModel is a sub-object of the parent object model GatewayModel; the second sub-object model DevicePointModel It is the sub-object of the first sub-object model DeviceModel;
    初始化父对象模型GatewayModel,所述父对象模型GatewayModel用于存放网关属性数据;初始化第一子对象模型DeviceModel,所述第一子对象模型DeviceModel存放智能家居网关下的对应设备的属性数据,并将第一子对象模型DeviceModel放入父对象模型GatewayModel中;初始化第二子对象模型DevicePointModel,所述第二子对象模型DevicePointModel存放对应设备的不同资源节点属性数据,并以集合形式加入到第一子对象模型DeviceModel中。Initialize the parent object model GatewayModel, which is used to store gateway attribute data; initialize the first child object model DeviceModel, which stores the attribute data of the corresponding device under the smart home gateway, and stores the attribute data of the corresponding device under the smart home gateway. A sub-object model DeviceModel is put into the parent object model GatewayModel; a second sub-object model DevicePointModel is initialized. The second sub-object model DevicePointModel stores different resource node attribute data of the corresponding device and is added to the first sub-object model in the form of a collection. DeviceModel.
  7. 一种电子装置,包括存储器以及处理器,所述存储器存储有指令,所述处理器执行所述指令以实现如权利要求1-5任一项所述的方法步骤或者实现如权利要求6所述的方法步骤。An electronic device includes a memory and a processor, the memory stores instructions, and the processor executes the instructions to implement the method steps described in any one of claims 1-5 or to implement the method described in claim 6 method steps.
  8. 一种存储介质,所述存储介质存储有程序;所述程序由处理器加载并执行以实现如上述权利要求1-5任一项所述的方法步骤,或者如权利要求6所述的方法步骤。A storage medium, the storage medium stores a program; the program is loaded and executed by a processor to implement the method steps as described in any one of the above claims 1-5, or the method steps as claimed in claim 6 .
PCT/CN2022/141025 2022-03-14 2022-12-22 Configuration method for multi-vendor integrated environment based on smart home client end WO2023173872A2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210246787.4 2022-03-14
CN202210246787.4A CN114422285B (en) 2022-03-14 2022-03-14 Configuration method based on multi-manufacturer fusion scene of intelligent home client

Publications (2)

Publication Number Publication Date
WO2023173872A2 true WO2023173872A2 (en) 2023-09-21
WO2023173872A3 WO2023173872A3 (en) 2023-11-09

Family

ID=81264167

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141025 WO2023173872A2 (en) 2022-03-14 2022-12-22 Configuration method for multi-vendor integrated environment based on smart home client end

Country Status (2)

Country Link
CN (1) CN114422285B (en)
WO (1) WO2023173872A2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422285B (en) * 2022-03-14 2022-06-14 深圳市华曦达科技股份有限公司 Configuration method based on multi-manufacturer fusion scene of intelligent home client
CN114615102B (en) * 2022-05-12 2022-07-15 深圳市华曦达科技股份有限公司 Method and device for fusing multi-manufacturer scene logs of intelligent home system
CN116346531B (en) * 2023-05-26 2023-09-22 云南自由贸易试验区苇航智能科技有限责任公司 Adaptation method based on CANBUS communication protocol

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897522A (en) * 2015-12-23 2016-08-24 乐视网信息技术(北京)股份有限公司 Smart home device control method and device
CN106027609B (en) * 2016-05-05 2019-04-02 深圳大数点科技有限公司 A kind of internet of things service system
US10986126B2 (en) * 2017-07-25 2021-04-20 Palo Alto Networks, Inc. Intelligent-interaction honeypot for IoT devices
CN109040200B (en) * 2018-07-13 2022-04-12 深圳绿米联创科技有限公司 Access method and device of Internet of things equipment
CN110071855B (en) * 2019-03-18 2021-10-22 深圳绿米联创科技有限公司 Equipment linkage control method, device, system, gateway and storage medium
CN109936489A (en) * 2019-03-25 2019-06-25 美的智慧家居科技有限公司 The control method and system, gateway and storage medium of scene linkage
CN110794693B (en) * 2019-09-30 2023-09-26 深圳绿米联创科技有限公司 Device configuration method, device, electronic device and storage medium
CN112714193B (en) * 2021-03-26 2021-07-13 深圳佳兆业科技集团有限公司 Community data processing system, method, device and equipment based on Internet of things platform
CN113110147B (en) * 2021-03-31 2022-09-06 青岛海尔科技有限公司 Method and device for cross-platform linkage of intelligent equipment, equipment and storage medium
CN113341742A (en) * 2021-06-04 2021-09-03 海尔(深圳)研发有限责任公司 Method and device for linkage control of household appliances and cloud control equipment
CN113783760B (en) * 2021-11-12 2022-02-22 北京心智悦科技有限公司 Interconnection system and interconnection method for intelligent household equipment
CN114422285B (en) * 2022-03-14 2022-06-14 深圳市华曦达科技股份有限公司 Configuration method based on multi-manufacturer fusion scene of intelligent home client

Also Published As

Publication number Publication date
CN114422285A (en) 2022-04-29
WO2023173872A3 (en) 2023-11-09
CN114422285B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
WO2023173872A2 (en) Configuration method for multi-vendor integrated environment based on smart home client end
WO2018108082A1 (en) Linked control method for internet-of-things gateway and internet-of-things gateway
CN108702389B (en) Architecture for remotely controlling IOT (Internet of things) devices
Nakamura et al. Feature interactions in integrated services of networked home appliances
Gu et al. Design and implementation of UPnP-based surveillance camera system for home security
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
TW201830179A (en) Home api
US10505750B2 (en) Box for communication and management of devices
KR20070118602A (en) Network system management method
US20090232020A1 (en) Automatic-configuration systems and methods for adding devices to application systems
CN111142456A (en) Internet of things automation smart home linkage method and system
US20180191858A1 (en) System for managing data of user devices
TW201800959A (en) Intelligent device control method, apparatus and device for internet of things
Kum et al. IoT Delegate: Smart Home Framework for Heterogeneous IoT Service Collaboration.
US11438191B2 (en) Interconnection box for user devices
Yiqin et al. Home networking and control based on upnp: An implementation
TW201800960A (en) Event processing method, apparatus and device for internet of things
Pohling et al. Base Cube One: A location-addressable service-oriented smart environment framework
Khatoun Cybersecurity in Smart Homes: Architectures, Solutions and Technologies
JP2023529775A (en) DEVICE CONTROL METHOD, DEVICE, GATEWAY DEVICE AND STORAGE MEDIUM IN INTERNET OF THINGS
US11329841B2 (en) Method of communication between a remote action manager and a communication box
WO2023184559A1 (en) Device sharing method and apparatus, and device, storage medium and program product
WO2023216035A1 (en) Security domain management method and apparatus, device, storage medium and program product
CN113626349A (en) Equipment control method, device and system and equipment controller
Pu et al. Research on Smart Home Based on MQTT

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

Country of ref document: EP

Kind code of ref document: A2