Movatterモバイル変換


[0]ホーム

URL:


CN118466321A - Scenario-based device linkage control method, system, terminal and storage medium - Google Patents

Scenario-based device linkage control method, system, terminal and storage medium
Download PDF

Info

Publication number
CN118466321A
CN118466321ACN202410656953.7ACN202410656953ACN118466321ACN 118466321 ACN118466321 ACN 118466321ACN 202410656953 ACN202410656953 ACN 202410656953ACN 118466321 ACN118466321 ACN 118466321A
Authority
CN
China
Prior art keywords
equipment
scene
data
registration information
user information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410656953.7A
Other languages
Chinese (zh)
Inventor
万文弼
张志江
卢祥钧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Intelligent Terminal Co Ltd
Original Assignee
Inspur Intelligent Terminal Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Intelligent Terminal Co LtdfiledCriticalInspur Intelligent Terminal Co Ltd
Priority to CN202410656953.7ApriorityCriticalpatent/CN118466321A/en
Publication of CN118466321ApublicationCriticalpatent/CN118466321A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明涉及物联网技术领域,具体提供一种基于场景的设备联动控制方法、系统、终端及存储介质,包括:接收设备的注册信息,基于所述注册信息为设备生成身份标识码;将身份标识码相同的设备划分至同组,得到与所述注册信息对应的设备组;获取设备组的设备检测数据,所述设备检测数据包括环境数据和设备状态;解析预先存储的所述设备组的场景的触发条件,所述场景包括触发条件和设备控制指令集合;将当前系统时间和所述设备检测数据与所述触发条件进行匹配,若两者匹配则执行对应的设备控制指令集合。本发明实现了设备间的联动,提升了设备控制的效率及设备间的配合度。

The present invention relates to the technical field of Internet of Things, and specifically provides a scene-based device linkage control method, system, terminal and storage medium, including: receiving device registration information, generating an identity code for the device based on the registration information; dividing devices with the same identity code into the same group to obtain a device group corresponding to the registration information; obtaining device detection data of the device group, the device detection data including environmental data and device status; parsing the trigger conditions of the scene of the device group stored in advance, the scene including trigger conditions and a set of device control instructions; matching the current system time and the device detection data with the trigger conditions, and executing the corresponding set of device control instructions if the two match. The present invention realizes linkage between devices, improves the efficiency of device control and the degree of coordination between devices.

Description

Translated fromChinese
基于场景的设备联动控制方法、系统、终端及存储介质Scenario-based device linkage control method, system, terminal and storage medium

技术领域Technical Field

本发明属于物联网技术领域,具体涉及一种基于场景的设备联动控制方法、系统、终端及存储介质。The present invention belongs to the technical field of Internet of Things, and specifically relates to a scene-based device linkage control method, system, terminal and storage medium.

背景技术Background Art

智能家居(smart home, home automation)是以住宅为平台,利用综合布线技术、网络通信技术、 安全防范技术、自动控制技术、音视频技术将家居生活有关的设施集成,构建高效的住宅设施与家庭日程事务的管理系统,提升家居安全性、便利性、舒适性、艺术性,并实现环保节能的居住环境 。随着智能家居技术的快速发展,越来越多的智能设备被应用于人们的生活中。Smart home (smart home, home automation) is based on the residential platform, using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology to integrate facilities related to home life, build an efficient management system for residential facilities and family schedule affairs, improve home safety, convenience, comfort, artistry, and achieve an environmentally friendly and energy-saving living environment. With the rapid development of smart home technology, more and more smart devices are being used in people's lives.

然而,当前的智能设备通常是以独立的方式工作,缺乏智能场景的联动控制,无法实现设备之间的协同工作。例如,一种智能家居设备(例如,语音助理设备)包括音频控制系统,该音频控制系统确定一组一个或多个音频设备以包括能够提供由智能家居设备的麦克风可听地检测到的音频流的附近设备。音频控制系统启动语音交互模式,用于操作智能家居设备以接收来自用户的语音命令并响应于语音命令提供音频输出。音频控制系统将音频控制信号发送到附近设备,该音频控制信号配置每个附近设备以实现以下中的一个或多个:当智能家居设备在语音交互模式下操作时,降低与由附近设备生成的音频流相关联的音量级;以及向所述智能家居设备传输与为由所述附近设备可听输出而生成的当前音频流相关联的音频流数据。这种控制方式依赖中央控制,如果中央控制器发生故障或出现连接问题,将导致联动无法正常工作。且设备彼此间独立,缺乏细粒度的自定义和灵活性:传统智能家居场景联动通常基于预设的规则和条件进行操作,用户的自定义能力有限。这可能导致无法满足个性化需求或特定的使用场景。发明内容However, current smart devices usually work in an independent manner, lack linkage control of smart scenes, and cannot achieve collaborative work between devices. For example, a smart home device (e.g., a voice assistant device) includes an audio control system that determines a group of one or more audio devices to include nearby devices that can provide an audio stream that can be audibly detected by a microphone of the smart home device. The audio control system starts a voice interaction mode for operating the smart home device to receive a voice command from a user and provide an audio output in response to the voice command. The audio control system sends an audio control signal to the nearby device, which configures each nearby device to implement one or more of the following: when the smart home device operates in the voice interaction mode, the volume level associated with the audio stream generated by the nearby device is reduced; and the audio stream data associated with the current audio stream generated for the audible output by the nearby device is transmitted to the smart home device. This control method relies on central control. If the central controller fails or there is a connection problem, the linkage will not work properly. And the devices are independent of each other, lacking fine-grained customization and flexibility: traditional smart home scene linkage usually operates based on preset rules and conditions, and the user's customization ability is limited. This may result in the inability to meet personalized needs or specific usage scenarios. Summary of the invention

针对现有技术的上述不足,本发明提供一种基于场景的设备联动控制方法、系统、终端及存储介质,以解决上述技术问题。In view of the above-mentioned deficiencies in the prior art, the present invention provides a scene-based device linkage control method, system, terminal and storage medium to solve the above-mentioned technical problems.

第一方面,本发明提供一种基于场景的设备联动控制方法,包括:In a first aspect, the present invention provides a scene-based device linkage control method, comprising:

接收设备的注册信息,基于所述注册信息为设备生成身份标识码;Receiving registration information of a device, and generating an identification code for the device based on the registration information;

将身份标识码相同的设备划分至同组,得到与所述注册信息对应的设备组;Grouping devices with the same identity code into the same group to obtain a device group corresponding to the registration information;

获取设备组的设备检测数据,所述设备检测数据包括环境数据和设备状态;Acquire device detection data of a device group, wherein the device detection data includes environmental data and device status;

解析预先存储的所述设备组的场景的触发条件,所述场景包括触发条件和设备控制指令集合;Parsing a pre-stored trigger condition of a scenario of the device group, wherein the scenario includes a trigger condition and a device control instruction set;

将当前系统时间和所述设备检测数据与所述触发条件进行匹配,若两者匹配则执行对应的设备控制指令集合。The current system time and the device detection data are matched with the trigger condition, and if the two match, the corresponding device control instruction set is executed.

在一个可选的实施方式中,所述方法还包括:In an optional embodiment, the method further comprises:

接收身份注册信息,并基于所述身份注册信息生成用户信息;Receiving identity registration information, and generating user information based on the identity registration information;

接收用户端发送的场景配置数据,所述场景配置数据包括触发条件和目标设备状态;Receiving scene configuration data sent by a user terminal, wherein the scene configuration data includes a trigger condition and a target device state;

基于所述目标设备状态生成对应的设备控制指令集合;Generate a corresponding device control instruction set based on the target device state;

将触发条件和对应的设备控制指令集合保存为与所述用户信息绑定的场景。The trigger condition and the corresponding device control instruction set are saved as a scene bound to the user information.

在一个可选的实施方式中,接收设备的注册信息,基于所述注册信息为设备生成身份标识码,包括:In an optional implementation, receiving registration information of a device, and generating an identity code for the device based on the registration information includes:

接收设备的注册信息,所述注册信息包括身份注册信息、定位数据和ip地址;Receive registration information of the device, the registration information including identity registration information, location data and IP address;

计算所述身份注册信息的MD5值,得到第一标识;计算由定位数据和ip地址组成的数据组合的MD5值,得到第二标识;Calculate the MD5 value of the identity registration information to obtain a first identifier; calculate the MD5 value of the data combination consisting of the positioning data and the IP address to obtain a second identifier;

将第一标识与第二标识组合为身份标识码。The first identifier and the second identifier are combined into an identity identification code.

在一个可选的实施方式中,所述方法还包括:In an optional embodiment, the method further comprises:

判断用户信息库中是否存在与第一标识匹配的用户信息,所述用户信息库用于存储用户信息、身份注册信息和对应的第一标识;Determine whether there is user information matching the first identifier in a user information database, the user information database being used to store user information, identity registration information and the corresponding first identifier;

若用户信息库中存在与第一标识匹配的用户信息,则将所述设备与所述用户信息绑定;If there is user information matching the first identifier in the user information database, binding the device to the user information;

若用户信息库中不存在与第一标识匹配的用户信息,则基于所述身份注册信息创建新用户信息,并将所述设备与所述新用户信息绑定。If there is no user information matching the first identifier in the user information database, new user information is created based on the identity registration information, and the device is bound to the new user information.

在一个可选的实施方式中,将身份标识码相同的设备划分至同组,得到与所述注册信息对应的设备组,包括:In an optional implementation, devices with the same identity code are grouped into the same group to obtain a device group corresponding to the registration information, including:

获取用户信息绑定的所有设备的身份标识码;Get the identification codes of all devices bound to the user information;

将身份标识码相同的设备划分至同一设备组。Group devices with the same ID code into the same device group.

在一个可选的实施方式中,将当前系统时间和所述设备检测数据与所述触发条件进行匹配,包括:In an optional implementation, matching the current system time and the device detection data with the trigger condition includes:

将当前系统时间和所述设备检测数据整合为实际状态数据集;Integrate the current system time and the device detection data into an actual status data set;

判断所述实际状态数据集是否包含触发条件的全部数据:Determine whether the actual status data set contains all the data of the trigger condition:

若是,则判定两者匹配;If so, the two are considered to match;

若否,则判定两者不匹配。If not, it is determined that the two do not match.

在一个可选的实施方式中,所述方法还包括:In an optional embodiment, the method further comprises:

在数据交互时采用DES加密算法对数据进行加密;The DES encryption algorithm is used to encrypt data during data interaction;

DES加密方法包括置换网络(P-Box)、S-盒代换、密钥扩展和异或运算。The DES encryption method includes permutation network (P-Box), S-box substitution, key expansion and XOR operation.

第二方面,本发明提供一种基于场景的设备联动控制系统,包括:In a second aspect, the present invention provides a scene-based device linkage control system, comprising:

设备注册模块,用于接收设备的注册信息,基于所述注册信息为设备生成身份标识码;A device registration module, used to receive registration information of a device and generate an identity code for the device based on the registration information;

设备分组模块,用于将身份标识码相同的设备划分至同组,得到与所述注册信息对应的设备组;A device grouping module, used to group devices with the same identity code into the same group, to obtain a device group corresponding to the registration information;

数据获取模块,用于获取设备组的设备检测数据,所述设备检测数据包括环境数据和设备状态;A data acquisition module, used to acquire device detection data of a device group, wherein the device detection data includes environmental data and device status;

场景解析模块,用于解析预先存储的所述设备组的场景的触发条件,所述场景包括触发条件和设备控制指令集合;A scene analysis module, used to analyze the trigger conditions of the pre-stored scenes of the device group, wherein the scenes include trigger conditions and a set of device control instructions;

设备控制模块,用于将当前系统时间和所述设备检测数据与所述触发条件进行匹配,若两者匹配则执行对应的设备控制指令集合。The device control module is used to match the current system time and the device detection data with the trigger condition, and if the two match, execute the corresponding device control instruction set.

第三方面,提供一种终端,包括:In a third aspect, a terminal is provided, including:

处理器、存储器,其中,processor, memory, wherein:

该存储器用于存储计算机程序,The memory is used to store computer programs.

该处理器用于从存储器中调用并运行该计算机程序,使得终端执行上述的终端的方法。The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.

第四方面,提供了一种计算机存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。According to a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the methods described in the above aspects.

本发明的有益效果在于,本发明提供的基于场景的设备联动控制方法、系统、终端及存储介质,通过对设备进行分组管理,并基于设备组的预设场景,对设备组内的设备进行联动控制,实现了设备间的联动,提升了设备控制的效率及设备间的配合度。The beneficial effect of the present invention lies in that the scenario-based device linkage control method, system, terminal and storage medium provided by the present invention achieve linkage between devices by grouping devices and linking and controlling the devices in the device group based on preset scenarios of the device group, thereby improving the efficiency of device control and the degree of coordination between devices.

此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1是本发明一个实施例的方法的示意性流程图。FIG1 is a schematic flow chart of a method according to an embodiment of the present invention.

图2是本发明一个实施例的方法的联动控制示意图。FIG. 2 is a schematic diagram of linkage control of a method according to an embodiment of the present invention.

图3是本发明一个实施例的方法的控制执行过程的示意图。FIG. 3 is a schematic diagram of a control execution process of a method according to an embodiment of the present invention.

图4是本发明一个实施例的方法的数据加密交互架构的示意图。FIG. 4 is a schematic diagram of a data encryption interaction architecture of a method according to an embodiment of the present invention.

图5是本发明一个实施例的方法的数据加密过程的示意图。FIG5 is a schematic diagram of a data encryption process of a method according to an embodiment of the present invention.

图6是本发明一个实施例的系统的示意性框图。FIG. 6 is a schematic block diagram of a system according to an embodiment of the present invention.

图7为本发明实施例提供的一种终端的结构示意图。FIG. 7 is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

本发明实施例提供的基于场景的设备联动控制方法由计算机设备执行,相应地,基于场景的设备联动控制系统运行于计算机设备中。The scenario-based device linkage control method provided in the embodiment of the present invention is executed by a computer device, and accordingly, the scenario-based device linkage control system runs in the computer device.

图1是本发明一个实施例的方法的示意性流程图。其中,图1执行主体可以为一种基于场景的设备联动控制系统。根据不同的需求,该流程图中步骤的顺序可以改变,某些可以省略。FIG1 is a schematic flow chart of a method according to an embodiment of the present invention. The execution subject of FIG1 may be a scene-based device linkage control system. According to different requirements, the order of the steps in the flow chart may be changed, and some may be omitted.

如图1所示,该方法包括:As shown in FIG1 , the method includes:

步骤110,接收设备的注册信息,基于所述注册信息为设备生成身份标识码;Step 110, receiving registration information of a device, and generating an identity code for the device based on the registration information;

步骤120,将身份标识码相同的设备划分至同组,得到与所述注册信息对应的设备组;Step 120, grouping devices with the same identity code into the same group to obtain a device group corresponding to the registration information;

步骤130,获取设备组的设备检测数据,所述设备检测数据包括环境数据和设备状态;Step 130, obtaining device detection data of the device group, wherein the device detection data includes environmental data and device status;

步骤140,解析预先存储的所述设备组的场景的触发条件,所述场景包括触发条件和设备控制指令集合;Step 140, parsing the triggering condition of the pre-stored scenario of the device group, the scenario including the triggering condition and the device control instruction set;

步骤150,将当前系统时间和所述设备检测数据与所述触发条件进行匹配,若两者匹配则执行对应的设备控制指令集合。Step 150, matching the current system time and the device detection data with the trigger condition, and executing the corresponding device control instruction set if the two match.

为了便于对本发明的理解,下面以本发明基于场景的设备联动控制方法的原理,结合实施例中基于场景对设备进行联动控制的过程,对本发明提供的基于场景的设备联动控制方法做进一步的描述。To facilitate understanding of the present invention, the following is a further description of the scene-based device linkage control method provided by the present invention based on the principle of the scene-based device linkage control method of the present invention, combined with the process of linkage control of devices based on the scene in the embodiment.

具体的,请参考图2,基于场景的设备联动控制方法包括:Specifically, please refer to FIG. 2 , the scene-based device linkage control method includes:

S1、用户注册。S1. User registration.

S101、接收身份注册信息,并基于所述身份注册信息生成用户信息。S101: Receive identity registration information, and generate user information based on the identity registration information.

S102、接收用户端发送的场景配置数据,所述场景配置数据包括触发条件和目标设备状态;基于所述目标设备状态生成对应的设备控制指令集合;将触发条件和对应的设备控制指令集合保存为与所述用户信息绑定的场景。S102, receiving scene configuration data sent by the user terminal, the scene configuration data including trigger conditions and target device status; generating a corresponding device control instruction set based on the target device status; saving the trigger conditions and the corresponding device control instruction set as a scene bound to the user information.

用户操作APP,可以远程设定当前已有智能家居联动场景,数据通过DES对称算法进行数据加密,传输到云端服务时,通过进行解密,比对用户设定场景联动设备,对对应设备进行监测数据比对,如果设备未上线,需提升用户启动设备,最终数据保存到云端,用于下次场景联动触发使用。Users can operate the APP to remotely set the current smart home linkage scene. The data is encrypted using the DES symmetric algorithm. When transmitted to the cloud service, it is decrypted and compared with the scene linkage device set by the user. The monitoring data of the corresponding device is compared. If the device is not online, the user needs to start the device. The final data is saved to the cloud for use in the next scene linkage trigger.

例如,场景1的触发条件包括19:00,防盗门电子门锁开门事件。目标状态是打开客体灯、卧室灯、空调。For example, the trigger conditions of scenario 1 include the event of opening the electronic door lock of the anti-theft door at 19:00. The target state is to turn on the object light, bedroom light, and air conditioner.

基于目标状态的设备控制指令集合包括:客厅灯的状态获取指令-开灯指令;卧室灯的状态获取指令-开灯指令;空调的状态获取指令-开启指令-目标温度设置指令。The device control instruction set based on the target state includes: the state acquisition instruction of the living room light-the light turning on instruction; the state acquisition instruction of the bedroom light-the light turning on instruction; the state acquisition instruction of the air conditioner-the turning on instruction-the target temperature setting instruction.

将触发条件包括设备控制指令集合保存为xml文件。The trigger conditions including the device control instruction set are saved as an XML file.

S2、设备注册。S2. Device registration.

接收设备的注册信息,所述注册信息包括身份注册信息、定位数据和ip地址;计算所述身份注册信息的MD5值,得到第一标识;计算由定位数据和ip地址组成的数据组合的MD5值,得到第二标识;将第一标识与第二标识组合为身份标识码。Receive registration information of a device, the registration information including identity registration information, positioning data and IP address; calculate the MD5 value of the identity registration information to obtain a first identifier; calculate the MD5 value of a data combination consisting of the positioning data and the IP address to obtain a second identifier; combine the first identifier and the second identifier into an identity identification code.

其中身份注册信息与用户注册时的身份注册信息一致,均包括姓名+联系方式。The identity registration information is consistent with the identity registration information when the user registers, both including name + contact information.

S3、设备分组。S3. Device grouping.

判断用户信息库中是否存在与第一标识匹配的用户信息,所述用户信息库用于存储用户信息、身份注册信息和对应的第一标识;若用户信息库中存在与第一标识匹配的用户信息,则将所述设备与所述用户信息绑定;若用户信息库中不存在与第一标识匹配的用户信息,则基于所述身份注册信息创建新用户信息,并将所述设备与所述新用户信息绑定。Determine whether there is user information matching the first identifier in a user information database, the user information database being used to store user information, identity registration information and the corresponding first identifier; if there is user information matching the first identifier in the user information database, bind the device to the user information; if there is user information matching the first identifier in the user information database, create new user information based on the identity registration information, and bind the device to the new user information.

如此,当用户存在多个居住地时,可实现不同居住地的设备的统筹管理,即同一用户注册的设备会自动匹配到用户信息上。In this way, when a user has multiple places of residence, unified management of devices in different places of residence can be achieved, that is, devices registered by the same user will be automatically matched to the user information.

获取用户信息绑定的所有设备的身份标识码;将身份标识码相同的设备划分至同一设备组。身份标识码相同则设备的定位和ip都相同,可以判定是在同一建筑内,因此划分至同一设备组。如此可以实现对用户的不同居住地的设备进行区分。Get the ID codes of all devices bound to the user information; group devices with the same ID code into the same device group. If the ID code is the same, the device location and IP are the same, so it can be determined that they are in the same building, so they are grouped into the same device group. This allows you to distinguish devices in different places of residence.

S4、数据采集。S4. Data collection.

获取设备组的设备检测数据,所述设备检测数据包括环境数据和设备状态。The device detection data of the device group is obtained, where the device detection data includes environment data and device status.

具体的,汇总设备组内各设备上传的数据,从中提取设备状态,包括是否在线、是否处于启动状态、运行参数和记录的事件等;同时还需要提取一些设备检测到的环境数据,例如亮度、温度、湿度等。Specifically, the data uploaded by each device in the device group is summarized to extract the device status, including whether it is online, whether it is in the startup state, operating parameters and recorded events, etc.; at the same time, it is also necessary to extract some environmental data detected by the device, such as brightness, temperature, humidity, etc.

S5、场景触发判断。S5: Scene trigger judgment.

将当前系统时间和所述设备检测数据整合为实际状态数据集;判断所述实际状态数据集是否包含触发条件的全部数据:若是,则判定两者匹配;若否,则判定两者不匹配。The current system time and the device detection data are integrated into an actual state data set; and it is determined whether the actual state data set contains all the data of the trigger condition: if so, it is determined that the two match; if not, it is determined that the two do not match.

具体的,以触发条件为搜索目标,从实际状态数据集中搜索与触发条件一致的数据子集。若成功搜索到子集,则判定该触发条件匹配成功,则触发相应的场景。实际状态数据集可同时触发多个场景。Specifically, with the trigger condition as the search target, a data subset consistent with the trigger condition is searched from the actual state data set. If the subset is successfully searched, it is determined that the trigger condition is matched successfully, and the corresponding scene is triggered. The actual state data set can trigger multiple scenes at the same time.

S6、设备控制。S6. Equipment control.

若匹配成功则执行场景对应的设备控制指令集合。If the match is successful, the device control instruction set corresponding to the scene is executed.

具体的,如图3所示,设备启动时,通过物联网sdk通知云端服务,云端服务根据用户保存场景联动信息判断,场景联动是否为多条件执行,检查指令之间是否存在冲突,对冲突指令进行合理性验证并选择性执行,最后对设备进行指令下发,完成场景设备联动功能。Specifically, as shown in Figure 3, when the device starts, the cloud service is notified through the IoT SDK. The cloud service determines whether the scene linkage is multi-conditional execution based on the scene linkage information saved by the user, checks whether there is a conflict between the instructions, verifies the rationality of the conflicting instructions and selectively executes them, and finally sends instructions to the device to complete the scene-device linkage function.

请参考图4,在用户终端与云端进行数据交互时,采用DES加密算法对数据进行加密。具体的数据加密方法如图5所示,采用DES加密算法加密数据,DES算法是一种基于置换、代换和迭代运算的强大加密技术,通过将明文数据分块并经过多轮加密操作,将其转化为不可读的密文形式。在加密过程中,DES算法运用了多种复杂的数学运算,包括置换置换网络(P-Box)、S-盒代换、密钥扩展和异或运算等。这些运算的巧妙组合使得DES算法具备高度的混淆性和扩散性,从而有效地隐藏了明文数据的结构和模式。该方法通过以下方式计算,进行数据加密。Please refer to Figure 4. When the user terminal interacts with the cloud, the DES encryption algorithm is used to encrypt the data. The specific data encryption method is shown in Figure 5. The DES encryption algorithm is used to encrypt the data. The DES algorithm is a powerful encryption technology based on permutation, substitution and iterative operations. It converts the plaintext data into unreadable ciphertext by dividing it into blocks and performing multiple rounds of encryption operations. During the encryption process, the DES algorithm uses a variety of complex mathematical operations, including permutation and substitution networks (P-Box), S-box substitution, key expansion and XOR operations. The clever combination of these operations makes the DES algorithm highly obfuscated and diffusible, thereby effectively hiding the structure and pattern of the plaintext data. This method encrypts the data by calculating in the following way.

在一些实施例中,所述基于场景的设备联动控制系统可以包括多个由计算机程序段所组成的功能模块。所述基于场景的设备联动控制系统中的各个程序段的计算机程序可以存储于计算机设备的存储器中,并由至少一个处理器所执行,以执行(详见图1描述)基于场景的设备联动控制的功能。In some embodiments, the scene-based device linkage control system may include multiple functional modules composed of computer program segments. The computer program of each program segment in the scene-based device linkage control system may be stored in the memory of a computer device and executed by at least one processor to perform (see FIG. 1 for details) the scene-based device linkage control function.

本实施例中,所述基于场景的设备联动控制系统根据其所执行的功能,可以被划分为多个功能模块,如图6所示。系统600的功能模块可以包括:设备注册模块610、设备分组模块620、数据获取模块630、场景解析模块640和设备控制模块650。本发明所称的模块是指一种能够被至少一个处理器所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储器中。在本实施例中,关于各模块的功能将在后续的实施例中详述。In this embodiment, the scene-based device linkage control system can be divided into multiple functional modules according to the functions it performs, as shown in Figure 6. The functional modules of system 600 may include: device registration module 610, device grouping module 620, data acquisition module 630, scene analysis module 640 and device control module 650. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

设备注册模块,用于接收设备的注册信息,基于所述注册信息为设备生成身份标识码;A device registration module, used to receive registration information of a device and generate an identity code for the device based on the registration information;

设备分组模块,用于将身份标识码相同的设备划分至同组,得到与所述注册信息对应的设备组;A device grouping module, used to group devices with the same identity code into the same group, to obtain a device group corresponding to the registration information;

数据获取模块,用于获取设备组的设备检测数据,所述设备检测数据包括环境数据和设备状态;A data acquisition module, used to acquire device detection data of a device group, wherein the device detection data includes environmental data and device status;

场景解析模块,用于解析预先存储的所述设备组的场景的触发条件,所述场景包括触发条件和设备控制指令集合;A scene analysis module, used to analyze the trigger conditions of the pre-stored scenes of the device group, wherein the scenes include trigger conditions and a set of device control instructions;

设备控制模块,用于将当前系统时间和所述设备检测数据与所述触发条件进行匹配,若两者匹配则执行对应的设备控制指令集合。The device control module is used to match the current system time and the device detection data with the trigger condition, and if the two match, execute the corresponding device control instruction set.

图7为本发明实施例提供的一种终端700的结构示意图,该终端700可以用于执行本发明实施例提供的基于场景的设备联动控制方法。FIG7 is a schematic diagram of the structure of a terminal 700 provided in an embodiment of the present invention. The terminal 700 may be used to execute the scenario-based device linkage control method provided in an embodiment of the present invention.

其中,该终端700可以包括:处理器710、存储器720及通信单元730。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The terminal 700 may include: a processor 710, a memory 720 and a communication unit 730. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

其中,该存储器720可以用于存储处理器710的执行指令,存储器720可以由任何类型的易失性或非易失性存储终端或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。当存储器720中的执行指令由处理器710执行时,使得终端700能够执行以下上述方法实施例中的部分或全部步骤。The memory 720 can be used to store the execution instructions of the processor 710, and the memory 720 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 720 are executed by the processor 710, the terminal 700 can execute some or all of the steps in the following method embodiments.

处理器710为存储终端的控制中心,利用各种接口和线路连接整个电子终端的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子终端的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC) 组成,例如可以由单颗封装的IC 所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器710可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 710 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and/or modules stored in the memory 720, and calls data stored in the memory to perform various functions of the electronic terminal and/or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 710 can include only a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

通信单元730,用于建立通信信道,从而使所述存储终端可以与其它终端进行通信。接收其他终端发送的用户数据或者向其他终端发送用户数据。The communication unit 730 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.

本发明还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本发明提供的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

因此,本发明通过对设备进行分组管理,并基于设备组的预设场景,对设备组内的设备进行联动控制,实现了设备间的联动,提升了设备控制的效率及设备间的配合度,本实施例所能达到的技术效果可以参见上文中的描述,此处不再赘述。Therefore, the present invention realizes linkage between devices by grouping and managing the devices, and based on the preset scenarios of the device group, performs linkage control on the devices in the device group, thereby improving the efficiency of device control and the degree of coordination between devices. The technical effects that can be achieved by this embodiment can be found in the description above and will not be repeated here.

本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中如U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者第二终端、网络终端等)执行本发明各个实施例所述方法的全部或部分步骤。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.

本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

在本发明所提供的几个实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.

Claims (10)

CN202410656953.7A2024-05-242024-05-24 Scenario-based device linkage control method, system, terminal and storage mediumPendingCN118466321A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202410656953.7ACN118466321A (en)2024-05-242024-05-24 Scenario-based device linkage control method, system, terminal and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202410656953.7ACN118466321A (en)2024-05-242024-05-24 Scenario-based device linkage control method, system, terminal and storage medium

Publications (1)

Publication NumberPublication Date
CN118466321Atrue CN118466321A (en)2024-08-09

Family

ID=92163525

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202410656953.7APendingCN118466321A (en)2024-05-242024-05-24 Scenario-based device linkage control method, system, terminal and storage medium

Country Status (1)

CountryLink
CN (1)CN118466321A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN119052306A (en)*2024-10-302024-11-29浪潮智能终端有限公司Multi-device remote control method, system, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070177737A1 (en)*2005-02-182007-08-02Samsung Electronics Co., Ltd.Network and domain-creating method thereof
CN101127671A (en)*2007-09-292008-02-20北京邮电大学 Method and system for remote control of home appliances
CN101902460A (en)*2010-03-302010-12-01华为终端有限公司 Method and device for generating and processing operation components of network access objects
CN108494642A (en)*2018-03-292018-09-04北京小米移动软件有限公司Smart machine group technology, device, system and smart machine
CN111638651A (en)*2020-06-022020-09-08深圳市欧瑞博科技股份有限公司Intelligent household control panel, setting method thereof, server and storage medium
CN114237062A (en)*2021-12-152022-03-25深圳绿米联创科技有限公司Device control method and apparatus, electronic device, and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070177737A1 (en)*2005-02-182007-08-02Samsung Electronics Co., Ltd.Network and domain-creating method thereof
CN101127671A (en)*2007-09-292008-02-20北京邮电大学 Method and system for remote control of home appliances
CN101902460A (en)*2010-03-302010-12-01华为终端有限公司 Method and device for generating and processing operation components of network access objects
CN108494642A (en)*2018-03-292018-09-04北京小米移动软件有限公司Smart machine group technology, device, system and smart machine
CN111638651A (en)*2020-06-022020-09-08深圳市欧瑞博科技股份有限公司Intelligent household control panel, setting method thereof, server and storage medium
CN114237062A (en)*2021-12-152022-03-25深圳绿米联创科技有限公司Device control method and apparatus, electronic device, and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN119052306A (en)*2024-10-302024-11-29浪潮智能终端有限公司Multi-device remote control method, system, terminal and storage medium

Similar Documents

PublicationPublication DateTitle
US11336635B2 (en)Systems and methods for authenticating device through IoT cloud using hardware security module
US11196742B2 (en)Method, system, and device for communicating data between devices to control one of the devices
US20060253852A1 (en)Information processing device, server client system, method, and computer program
EP3905671B1 (en)Method and device for processing request
Wendzel et al.Cyber security of smart buildings
CN108809625A (en)A kind of intelligent home control system based on block chain, method and device
CN109640326B (en)Authority management method, device and system and mobile terminal
CN102130802A (en) Internet of things home appliance management system and management method thereof
US11394696B2 (en)Resource request method, device and storage medium
CN109587142B (en)Data security access module and equipment for service flow
US20230198742A1 (en)Method for securely transmitting lighting scenes over a computer network with cloud setup and authentication
CN118466321A (en) Scenario-based device linkage control method, system, terminal and storage medium
EP4044552A1 (en)System and method for authorizing access to smart devices in a local environment
CN114157536A (en)Equipment access method, device, equipment and storage medium based on intelligent gateway
CN116760567A (en) Account association methods, devices, electronic devices and storage media
TW201800959A (en)Intelligent device control method, apparatus and device for internet of things
Ainane et al.Data security of smart cities
CN112152827A (en)Management method and device of Internet of things equipment, gateway and readable storage medium
KR101775823B1 (en)Method and system for controlling device based internet of things
CN106303371A (en)Take pictures monitoring system, method and mobile terminal
CN109842515B (en)Method for multi-device network distribution, server and computer storage medium
CN115442171A (en) Home appliance ad hoc network method, device, device and storage medium
CN106657048A (en)Improved smart home center control server
CN113542242A (en)Device management method and device management apparatus
CN105049337B (en) A method and device for communication between intelligent devices based on instant messaging

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp