CN113132195B - Control method and control gateway for smart home - Google Patents
Control method and control gateway for smart home Download PDFInfo
- Publication number
- CN113132195B CN113132195B CN202110438020.7A CN202110438020A CN113132195B CN 113132195 B CN113132195 B CN 113132195B CN 202110438020 A CN202110438020 A CN 202110438020A CN 113132195 B CN113132195 B CN 113132195B
- Authority
- CN
- China
- Prior art keywords
- control
- texture
- image
- control object
- fingerprint
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000011664 signaling Effects 0.000 claims abstract description 33
- 239000000284 extract Substances 0.000 claims description 24
- 238000004891 communication Methods 0.000 claims description 23
- 238000012545 processing Methods 0.000 claims description 15
- 230000002159 abnormal effect Effects 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 6
- 238000012790 confirmation Methods 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000005259 measurement Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- AMGQUBHHOARCQH-UHFFFAOYSA-N indium;oxotin Chemical compound [In].[Sn]=O AMGQUBHHOARCQH-UHFFFAOYSA-N 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 210000003462 vein Anatomy 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Telephonic Communication Services (AREA)
- Selective Calling Equipment (AREA)
Abstract
本申请提供一种智能家居的控制方法及控制网关,所述方法包括:控制网关接收第一控制命令,所述第一控制命令包括:操作信令以及控制对象标识;控制网关对第一控制命令解析得到操作信令以及控制对象标识,依据该控制对象标识确定控制对象的第一品牌,从预设的第一品牌的指令库中提取该操作信令对应的第一指令;控制网关将该第一指令发送至控制对象以实现对控制对象的控制。本申请提供的技术方案具有用户体验度高的优点。
The present application provides a control method and a control gateway for a smart home. The method includes: the control gateway receives a first control command, where the first control command includes: operation signaling and a control object identifier; the control gateway responds to the first control command The operation signaling and the control object identifier are obtained by parsing, the first brand of the control object is determined according to the control object identifier, and the first instruction corresponding to the operation signaling is extracted from the preset instruction library of the first brand; An instruction is sent to the control object to control the control object. The technical solution provided by the present application has the advantage of high user experience.
Description
技术领域technical field
本申请涉及智能家居技术领域,具体涉及一种智能家居的控制方法及控制网关。The present application relates to the technical field of smart home, and in particular to a control method and a control gateway for a smart home.
背景技术Background technique
智能家居(smart home, home automation)是以住宅为平台,利用综合布线技术、网络通信技术、 安全防范技术、自动控制技术、音视频技术将家居生活有关的设施集成,构建高效的住宅设施与家庭日程事务的管理系统,提升家居安全性、便利性、舒适性、艺术性,并实现环保节能的居住环境。Smart home (smart home, home automation) is a residential platform, using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology to integrate home life-related facilities to build efficient residential facilities and family. The management system of schedule affairs improves the safety, convenience, comfort and artistry of the home, and realizes an environment-friendly and energy-saving living environment.
现有的智能家居无法实现不同品牌的控制,降低了用户体验度。The existing smart home cannot realize the control of different brands, which reduces the user experience.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种智能家居的控制方法及系统,可以实现不同品牌的智能家居的控制,提高了智能家居的兼容性,提高了用户体验度。The embodiments of the present application provide a smart home control method and system, which can realize the control of different brands of smart home, improve the compatibility of the smart home, and improve the user experience.
第一方面,本申请实施例提供一种智能家居的控制方法,所述方法包括:In a first aspect, an embodiment of the present application provides a method for controlling a smart home, the method comprising:
控制网关接收第一控制命令,所述第一控制命令包括:操作信令以及控制对象标识;The control gateway receives a first control command, where the first control command includes: operation signaling and a control object identifier;
控制网关对第一控制命令解析得到操作信令以及控制对象标识,依据该控制对象标识确定控制对象的第一品牌,从预设的第一品牌的指令库中提取该操作信令对应的第一指令;The control gateway parses the first control command to obtain the operation signaling and the control object identification, determines the first brand of the control object according to the control object identification, and extracts the first brand corresponding to the operation signaling from the preset first brand instruction library. instruction;
控制网关将该第一指令发送至控制对象以实现对控制对象的控制The control gateway sends the first instruction to the control object to control the control object
第二方面,提供一种控制网关,所述控制网关包括:In a second aspect, a control gateway is provided, and the control gateway includes:
通信单元,用于接收第一控制命令,所述第一控制命令包括:操作信令以及控制对象标识;a communication unit, configured to receive a first control command, where the first control command includes: operation signaling and a control object identifier;
处理单元,用于对第一控制命令解析得到操作信令以及控制对象标识,依据该控制对象标识确定控制对象的第一品牌,从预设的第一品牌的指令库中提取该操作信令对应的第一指令;The processing unit is used to parse the first control command to obtain the operation signaling and the control object identification, determine the first brand of the control object according to the control object identification, and extract the corresponding operation signaling from the preset first brand instruction library. the first order;
通信单元,还用于将该第一指令发送至控制对象以实现对控制对象的控制。The communication unit is further configured to send the first instruction to the control object to control the control object.
第三方面,提供一种计算机可读存储介质,其存储用于电子数据交换的程序,其中,所述程序使得终端执行第一方面提供的方法。In a third aspect, a computer-readable storage medium is provided, which stores a program for electronic data exchange, wherein the program causes a terminal to execute the method provided in the first aspect.
实施本申请实施例,具有如下有益效果:Implementing the embodiments of the present application has the following beneficial effects:
可以看出,本申请提供的技术方案控制网关接收第一控制命令,所述第一控制命令包括:操作信令以及控制对象标识;控制网关对第一控制命令解析得到操作信令以及控制对象标识,依据该控制对象标识确定控制对象的第一品牌,从第一品牌的指令库中提取该操作信令对应的第一指令;控制网关将该第一指令发送至控制对象以实现对控制对象的控制。本申请提供的技术方案通过在控制网关预先配置各个品牌的指令库,然后提取该操作信令对应的第一指令,进而实现了不同品牌的控制对象的控制,这样实现了跨品牌的控制,提高了用户体验度。It can be seen that in the technical solution provided by the present application, the control gateway receives the first control command, and the first control command includes: operation signaling and control object identification; the control gateway parses the first control command to obtain the operation signaling and the control object identification , determine the first brand of the control object according to the control object identification, and extract the first instruction corresponding to the operation signaling from the instruction library of the first brand; the control gateway sends the first instruction to the control object to realize the control object. control. The technical solution provided by the present application realizes the control of control objects of different brands by pre-configuring the instruction library of each brand on the control gateway, and then extracting the first instruction corresponding to the operation signaling, thereby realizing the control across brands and improving the user experience.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是一种终端的结构框图。FIG. 1 is a structural block diagram of a terminal.
图2是一种智能家居系统示意图。FIG. 2 is a schematic diagram of a smart home system.
图3是本申请实施例提供的一种智能家居的控制方法的流程示意图。FIG. 3 is a schematic flowchart of a control method for a smart home provided by an embodiment of the present application.
图4为本申请提供的指纹图片的示意图。FIG. 4 is a schematic diagram of a fingerprint picture provided by the present application.
图5为本申请一个纹路图片的端点与角度示意图。FIG. 5 is a schematic diagram of the endpoints and angles of a texture image of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结果或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
请参阅图1,图1是本申请实施例公开的一种终端的结构示意图,该终端100可以为用户设备UE,终端100包括存储和处理电路110,以及与所述存储和处理电路110连接的传感器170,传感器170可以包括摄像头、距离传感器、重力传感器等,本申请电子设备可以包括两块透明显示屏,该透明显示屏设置在电子设备的背面和正面,两块透明显示屏之间的部件中的部分或全部部件也可以为透明的,因此该电子设备从视觉效果上可以是一种透明电子设备,如果为部分部件为透明的,则该电子设备可以为镂空电子设备。其中:Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application. The
终端100可以包括控制电路,该控制电路可以包括存储和处理电路110。该存储和处理电路110可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路110中的处理电路可以用于控制终端100的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。
存储和处理电路110可用于运行终端100中的软件,例如互联网浏览应用程序,互联网协议语音(Voice over Internet Protocol, VOIP)电话呼叫应用程序,电子邮件应用程序,媒体播放应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与在多个(例如分层的)显示屏上显示信息相关联的功能,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及终端100中的其它功能等,本申请实施例不作限制。The storage and
终端100可以包括输入-输出电路150。输入-输出电路150可用于使终端100实现数据的输入和输出,即允许终端100从外部设备接收数据和也允许终端100将数据从终端100输出至外部设备。输入-输出电路150可以进一步包括传感器170。传感器170静脉识别模组,还可以包括环境光传感器,基于光和电容的接近传感器,指纹识别模组,、触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,摄像头,和其它传感器等,摄像头可以为前置摄像头或者后置摄像头,指纹识别模组可集成于显示屏下方,用于采集指纹图像,指纹识别模组可以为:光学指纹模组等等,在此不作限定。上述前置摄像头可以设置前面显示屏的下方,上述后置摄像头可以设置在后面显示屏的下方。当然上述前置摄像头或后置摄像头也可以不和显示屏集成设置 当然在实际应用中,上述前置摄像头或后置摄像头还可以为升降结构,本申请具体实施方式并不限制上述前置摄像头或后置摄像头的具体结构。
输入-输出电路150还可以包括一个或多个显示屏,当为多个显示屏时,例如2个显示屏时,一个显示屏可以设置在电子设备的前面,另一个显示屏可以设置在电子设备的后面,例如显示屏130。显示屏130可以包括液晶显示屏,透明显示屏,有机发光二极管显示屏,电子墨水显示屏,等离子显示屏,使用其它显示技术的显示屏中一种或者几种的组合。显示屏130可以包括触摸传感器阵列(即,显示屏130可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。The input-
终端100还可以包括音频组件140。音频组件140可以用于为终端100提供音频输入和输出功能。终端100中的音频组件140可以包括扬声器,麦克风, 蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。The terminal 100 may also include an
通信电路120可以用于为终端100提供与外部设备通信的能力。通信电路120可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路120中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路120中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(Near Field Communication,NFC)的电路。例如,通信电路120可以包括近场通信天线和近场通信收发器。通信电路120还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。
终端100还可以进一步包括电池,电力管理电路和其它输入-输出单元160。输入-输出单元160可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The terminal 100 may further include batteries, power management circuits and other input-
用户可以通过输入-输出电路150输入命令来控制终端100的操作,并且可以使用输入-输出电路150的输出数据以实现接收来自终端100的状态信息和其它输出。A user can input commands through the input-
参阅图2,图2为一种智能家居系统示意图,如图2所示,该智能家居系统包括:控制网关和多个终端,该终端具体可以为智能家居设备,例如智能冰箱、智能门锁、智能电视、智能音箱等等智能设备,该多个终端与控制网关通过无线方式连接。Referring to FIG. 2, FIG. 2 is a schematic diagram of a smart home system. As shown in FIG. 2, the smart home system includes: a control gateway and a plurality of terminals, and the terminals may specifically be smart home devices, such as smart refrigerators, smart door locks, Smart TVs, smart speakers and other smart devices, the multiple terminals are wirelessly connected to the control gateway.
对于智能家居,其具有多个品牌,对于多个品牌,控制网关并无法识别和控制多个不同品牌的智能家居,例如,用户只用通过特定的app发送的命令,控制网关才能够实现对应品牌的智能家居进行控制,无法实现跨品牌的控制,影响了用户体验度。For smart home, it has multiple brands. For multiple brands, the control gateway cannot identify and control multiple smart homes of different brands. For example, the user only needs to send commands through a specific app to control the gateway to realize the corresponding brand. It is impossible to achieve cross-brand control, which affects the user experience.
参阅图3,图3提供了一种智能家居的控制方法,该方法在如图2所示的智能家居系统内实现,该方法如图3所示,包括如下步骤:Referring to Figure 3, Figure 3 provides a control method for a smart home, the method is implemented in the smart home system shown in Figure 2, the method is shown in Figure 3, including the following steps:
步骤S301 、控制网关接收第一控制命令,所述第一控制命令包括:操作信令以及控制对象标识;Step S301, the control gateway receives a first control command, where the first control command includes: operation signaling and a control object identifier;
上述第一控制命令可以为通用的控制命令,上述操作信令可以为,温度值、开、关等等控制信令。该控制对象标识具体可以为智能家居标识,具体的,例如空调的标识,智能电视的标识。The above-mentioned first control command may be a general control command, and the above-mentioned operation signaling may be control signaling such as temperature value, ON, OFF, and the like. The control object identifier may specifically be a smart home identifier, specifically, an identifier of an air conditioner or an identifier of a smart TV.
步骤S302 、控制网关对第一控制命令解析得到操作信令以及控制对象标识,依据该控制对象标识确定控制对象的第一品牌,从预设的第一品牌的指令库中提取该操作信令对应的第一指令;Step S302, the control gateway parses the first control command to obtain the operation signaling and the control object identifier, determines the first brand of the control object according to the control object identifier, and extracts the corresponding operation signaling from the preset instruction library of the first brand. the first order;
上述指令库可以为预配置的指令库,该指令库可以包括,各个品牌的指令库,例如小米指令库,格力指令库,三星指令库等等。The above-mentioned instruction library may be a pre-configured instruction library, and the instruction library may include instruction libraries of various brands, such as Xiaomi instruction library, Gree instruction library, Samsung instruction library, and so on.
步骤S303 、控制网关将该第一指令发送至控制对象以实现对控制对象的控制。Step S303: The control gateway sends the first instruction to the control object to control the control object.
本申请提供的技术方案控制网关接收第一控制命令,所述第一控制命令包括:操作信令以及控制对象标识;控制网关对第一控制命令解析得到操作信令以及控制对象标识,依据该控制对象标识确定控制对象的第一品牌,从第一品牌的指令库中提取该操作信令对应的第一指令;控制网关将该第一指令发送至控制对象以实现对控制对象的控制。本申请提供的技术方案通过在控制网关预先配置各个品牌的指令库,然后提取该操作信令对应的第一指令,进而实现了不同品牌的控制对象的控制,这样实现了跨品牌的控制,提高了用户体验度。The technical solution provided by the present application controls the gateway to receive a first control command, where the first control command includes: operation signaling and a control object identifier; the control gateway parses the first control command to obtain the operation signaling and the control object identifier, and according to the control The object identifier determines the first brand of the control object, and extracts the first instruction corresponding to the operation signaling from the instruction library of the first brand; the control gateway sends the first instruction to the control object to control the control object. The technical solution provided by the present application realizes the control of control objects of different brands by pre-configuring the instruction library of each brand on the control gateway, and then extracting the first instruction corresponding to the operation signaling, thereby realizing the control across brands and improving the user experience.
示例的,上述方法在解析得到操作信令以及控制对象标识之后,还可以包括:Illustratively, after parsing and obtaining the operation signaling and the control object identifier, the above method may further include:
控制网关接收指纹图片(可以为终端发送),对指纹图片进行验证确定指纹图片的第一身份,提取第一身份的第一优先级,提取控制对象标识对应的第二优先级,若第一优先级大于或等于第二优先级,保留第一控制命令,若第一优先级小于第二优先级,丢弃第一控制命令。The control gateway receives the fingerprint image (which can be sent by the terminal), verifies the fingerprint image to determine the first identity of the fingerprint image, extracts the first priority of the first identity, and extracts the second priority corresponding to the control object identifier. If the priority is greater than or equal to the second priority, the first control command is retained, and if the first priority is lower than the second priority, the first control command is discarded.
此种情况为若终端对应的操作对象(即指纹图片对应的身份)的优先级不够,那么其不能对智能家居进行控制,例如,控制智能门锁,那么操作对象的优先级一定需要很高,普通的人员将不能控制智能门锁的开或关,以避免安全性的问题。In this case, if the priority of the operation object corresponding to the terminal (that is, the identity corresponding to the fingerprint image) is not enough, then it cannot control the smart home, for example, to control the smart door lock, then the priority of the operation object must be very high. Ordinary personnel will not be able to control the opening or closing of smart door locks to avoid security problems.
示例的,上述对指纹图片进行验证确定指纹图片的第一身份具体可以包括:Illustratively, the above-mentioned verification of the fingerprint picture to determine the first identity of the fingerprint picture may specifically include:
控制网关识别指纹图片中所有像素点的RGB值,将相同且连续的RGB值的像素点确定为同一个纹路,将指纹图片中同一个纹路单独提取出来得到n个纹路图片,对n个纹路图片中的每个纹路图片执行角度识别操作得到n个纹路图片的n个角度值,将n个角度值按纹路的位置(例如依据纹路在指纹图片的高度值从高到低排序)排序得到第一角度值序列,将第一角度值序列与预设指纹模板的模板角度值序列比对,若比对确定该模板角度值序列中的连续的n个值均与第一角度值序列的值相同且排列也相同,确定第一角度值序列与预设指纹模板一致,并确定该指纹图片与该预设指纹模板对比一致。The control gateway identifies the RGB values of all pixels in the fingerprint image, determines the pixels with the same and continuous RGB values as the same texture, and extracts the same texture in the fingerprint image separately to obtain n texture images. Perform the angle recognition operation on each texture image in the image to obtain n angle values of the n texture images, and sort the n angle values according to the position of the texture (for example, according to the height value of the texture in the fingerprint image sorted from high to low) to get the first angle value sequence, compare the first angle value sequence with the template angle value sequence of the preset fingerprint template, if the alignment determines that the consecutive n values in the template angle value sequence are the same as the value of the first angle value sequence and The arrangement is also the same, it is determined that the first angle value sequence is consistent with the preset fingerprint template, and it is determined that the fingerprint image is consistent with the preset fingerprint template.
示例,若第一角度值序列为:6,7,9;模板角度值序列为:6,7,9,2,3。则确定第一次截取的3个值与第一角度值序列相同(值相同,排列也相同)。For example, if the first angle value sequence is: 6, 7, 9; the template angle value sequence is: 6, 7, 9, 2, 3. Then it is determined that the three values intercepted for the first time are the same as the sequence of the first angle value (the values are the same, and the arrangement is also the same).
该指纹图片如图4所示,其中同一纹路可以为如图4所示的301所示(为了方便描述,这里以3个同一纹路为例在图4中标注),同一纹路具体可以为:指纹图片中连续不间断的一个纹路。The fingerprint picture is shown in Figure 4, in which the same pattern can be shown as 301 shown in Figure 4 (for the convenience of description, three identical patterns are used as an example to be marked in Figure 4), and the same pattern can be specifically: fingerprint A continuous and unbroken pattern in the picture.
示例的,上述角度识别操作具体可以包括:Illustratively, the above angle identification operation may specifically include:
确定一个纹路图片中的两个端点的位置(如图5所示的a点和b点),分别以a点和b点为起点,以设定间隔沿纹路向对端(a点向b点移动,b点向a点移动)移动直至移动点a1和b1第一次交叉后,提取移动点a1和b1在纹路之间的中点o,将中点o分别与a点和b点连接得到线段oa和ob,将纹路图片中的纹路进行旋转使得中点o处于图片的正交线上(即90°角度线),将oa和ob向纹路外方向移动第一预设距离x得到o’a’和o’b’,将线段o’a’和o’b’延长第二预设距离y得到延长后的线段o’a’’和o’b’’,将线段o’a’’的以o’为端点旋转直至线段o’a’’与纹路相切后停止旋转得到线段o’a’’’,将线段o’b’’的以o’为端点旋转直至线段o’b’’与纹路相切后停止旋转o’b’’’;计算线段o’a’’’与线段o’ b’’’之间的角度即为该一个纹路图片对应的角度值。Determine the positions of the two endpoints in a texture image (point a and point b as shown in Figure 5), take point a and point b as the starting point respectively, and go to the opposite end along the texture at a set interval (point a to point b) Move, point b moves to point a) Move until the moving points a1 and b1 cross for the first time, extract the midpoint o between the moving points a1 and b1 between the lines, and connect the midpoint o to point a and point b respectively to get Line segments oa and ob, rotate the texture in the texture image so that the midpoint o is on the orthogonal line of the image (ie, the 90° angle line), move oa and ob to the outside of the texture by the first preset distance x to get o' a' and o'b', extend the line segments o'a' and o'b' by a second preset distance y to obtain the extended line segments o'a'' and o'b'', and extend the line segments o'a'' Rotate with o' as the endpoint until the line segment o'a'' is tangent to the texture and then stop rotating to obtain the line segment o'a''', and rotate the line segment o'b'' with o' as the endpoint until the line segment o'b' 'Stop rotating o'b''' when it is tangent to the texture; calculate the angle between the line segment o'a''' and the line segment o' b''', which is the angle value corresponding to the texture image.
其实现的原理为,对于单一纹路,其两边的切线之间的角度不会随着指纹的旋转而改变,基于这样的原理,这里找到纹路的切线以后,然后计算两个切线的角度就能够实现对指纹图片的比对,进而实现身份的确定。The principle of its realization is that, for a single texture, the angle between the tangents on both sides will not change with the rotation of the fingerprint. Based on this principle, after finding the tangent of the texture, and then calculating the angle of the two tangents can be achieved. The fingerprint image is compared to realize the identity determination.
对于比对确定该模板角度值序列中的连续的n个值均与第一角度值序列的值相同且排列也相同具体可以包括:For comparison, it is determined that the consecutive n values in the template angle value sequence are all the same as the first angle value sequence and have the same arrangement. Specifically, it may include:
从模板角度值序列中按顺序截取n个值,每截取n个值与第一角度值序列比对,若值相同且排列(即前后顺序相同)相同,确定第一角度值序列与预设指纹模板一致。Intercept n values in sequence from the template angle value sequence, and compare each of the intercepted n values with the first angle value sequence. If the values are the same and have the same arrangement (that is, the same order before and after), determine the first angle value sequence and the preset fingerprint Template is the same.
对于模板角度值序列由于模板采集的指纹面积较大,对应的纹路的数量也较多,因此模板角度值序列的角度值数量会大于n,这样就需要从模板角度值序列中截取n个值,这样进行比对来确定是否一致。上述n为大于等于2的整数。For the template angle value sequence, since the fingerprint area collected by the template is large and the corresponding number of lines is also large, the number of angle values of the template angle value sequence will be greater than n, so it is necessary to intercept n values from the template angle value sequence, This comparison is performed to determine whether they are consistent. The above n is an integer of 2 or more.
示例的,上述方法还可以包括:Illustratively, the above method may further include:
控制网关接收控制对象反馈的响应信息,该响应信息包括执行第一指令的确认消息(若执行成功,返回确认消息,否则返回失败消息)或失败消息。这样能够实现对控制对象是否控制成功。The control gateway receives response information fed back by the control object, where the response information includes a confirmation message for executing the first instruction (if the execution is successful, a confirmation message is returned; otherwise, a failure message is returned) or a failure message. In this way, it can be realized whether the control object is successfully controlled.
示例的,上述方法还可以包括:Illustratively, the above method may further include:
控制网关周期性的采集智能家居的多个参数,对多个参数进行分析确定该智能家居是否处于异常情况,若处于异常情况,发送告警信息(该告警信息可以是向智能家居的用户发送,也可以是向专业机构发送)。The control gateway periodically collects multiple parameters of the smart home, analyzes the multiple parameters to determine whether the smart home is in an abnormal situation, and if it is in an abnormal situation, sends alarm information (the alarm information can be sent to the user of the smart home, or can be sent to a professional body).
示例的,上述对多个参数进行分析确定该智能家居是否处于异常情况具体可以包括:Exemplarily, the above-mentioned analysis of multiple parameters to determine whether the smart home is in an abnormal situation may specifically include:
控制网络对多个参数对应的智能家居标识提取多个标识对应的多个参数阈值,若参数超出对应的参数阈值,确定处于异常情况,否则,确定处于非异常情况。The control network extracts multiple parameter thresholds corresponding to the multiple identifiers from the smart home identifiers corresponding to the multiple parameters. If the parameter exceeds the corresponding parameter threshold, it is determined to be in an abnormal situation, otherwise, it is determined to be in a non-abnormal situation.
本申请还提供一种控制网关,所述控制网关包括:The present application also provides a control gateway, the control gateway includes:
通信单元,用于接收第一控制命令,所述第一控制命令包括:操作信令以及控制对象标识;a communication unit, configured to receive a first control command, where the first control command includes: operation signaling and a control object identifier;
处理单元,用于对第一控制命令解析得到操作信令以及控制对象标识,依据该控制对象标识确定控制对象的第一品牌,从预设的第一品牌的指令库中提取该操作信令对应的第一指令;The processing unit is used to parse the first control command to obtain the operation signaling and the control object identification, determine the first brand of the control object according to the control object identification, and extract the corresponding operation signaling from the preset first brand instruction library. the first order;
通信单元,还用于将该第一指令发送至控制对象以实现对控制对象的控制。The communication unit is further configured to send the first instruction to the control object to control the control object.
示例的,example,
通信单元,还用于关接收指纹图片;The communication unit is also used for receiving fingerprint pictures;
处理单元,还用于对指纹图片进行验证确定指纹图片的第一身份,提取第一身份的第一优先级,提取控制对象标识对应的第二优先级,若第一优先级大于或等于第二优先级,保留第一控制命令,若第一优先级小于第二优先级,丢弃第一控制命令。The processing unit is also used to verify the fingerprint picture to determine the first identity of the fingerprint picture, extract the first priority of the first identity, and extract the second priority corresponding to the control object identifier, if the first priority is greater than or equal to the second priority Priority, keep the first control command, if the first priority is lower than the second priority, discard the first control command.
示例的,example,
通信单元,还用于接收控制对象反馈的响应信息,该响应信息包括执行第一指令的确认消息或失败消息。The communication unit is further configured to receive response information fed back by the control object, where the response information includes a confirmation message or a failure message for executing the first instruction.
示例的,example,
通信单元,还用于周期性的采集智能家居的多个参数;The communication unit is also used to periodically collect multiple parameters of the smart home;
处理单元,还用于对多个参数进行分析确定该智能家居是否处于异常情况,若处于异常情况,发送告警信息。The processing unit is further configured to analyze a plurality of parameters to determine whether the smart home is in an abnormal situation, and if it is in an abnormal situation, send alarm information.
示例的,example,
处理单元,还用于控制网络对多个参数对应的智能家居标识提取多个标识对应的多个参数阈值,若参数超出对应的参数阈值,确定处于异常情况,否则,确定处于非异常情况。The processing unit is further configured to control the network to extract multiple parameter thresholds corresponding to the multiple identifiers from the smart home identifiers corresponding to the multiple parameters. If the parameter exceeds the corresponding parameter threshold, it is determined to be in an abnormal situation, otherwise, it is determined to be in a non-abnormal situation.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种方法的部分或全部步骤。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute part or all of any one of the methods described in the above method embodiments step.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种方法的部分或全部步骤。Embodiments of the present application further provide a computer program product, the computer program product comprising a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to execute the methods described in the foregoing method embodiments Some or all of the steps of any method.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110438020.7A CN113132195B (en) | 2021-04-22 | 2021-04-22 | Control method and control gateway for smart home |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110438020.7A CN113132195B (en) | 2021-04-22 | 2021-04-22 | Control method and control gateway for smart home |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113132195A CN113132195A (en) | 2021-07-16 |
CN113132195B true CN113132195B (en) | 2022-04-26 |
Family
ID=76779277
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110438020.7A Active CN113132195B (en) | 2021-04-22 | 2021-04-22 | Control method and control gateway for smart home |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113132195B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114740749B (en) * | 2022-05-24 | 2024-06-25 | 广东顺德胜上智能家居有限公司 | Intelligent home control system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1410941A (en) * | 2001-09-24 | 2003-04-16 | 国枝博昭 | Curve identifying system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546324B (en) * | 2011-10-19 | 2015-09-23 | 无锡物联网产业研究院 | A kind of Internet of things intelligent home system and method |
CN104122829B (en) * | 2014-08-13 | 2017-04-26 | 白铁兵 | Intelligent home control system and intelligent home control method for compatible heterogeneous products |
CN105607505B (en) * | 2016-03-17 | 2018-09-28 | 星威国际家居有限公司 | A kind of intelligent home furnishing control method and system based on fingerprint recognition |
CN107171911A (en) * | 2017-06-29 | 2017-09-15 | 青岛海信智慧家居系统股份有限公司 | The control method and device of intelligent home device |
-
2021
- 2021-04-22 CN CN202110438020.7A patent/CN113132195B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1410941A (en) * | 2001-09-24 | 2003-04-16 | 国枝博昭 | Curve identifying system |
Also Published As
Publication number | Publication date |
---|---|
CN113132195A (en) | 2021-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11003277B2 (en) | Display method and apparatus | |
WO2018147687A1 (en) | Method and apparatus for managing voice-based interaction in internet of things network system | |
US9681381B2 (en) | Bluetooth low energy (BLE) device and method for adjusting operation mode of application processor based on information communicated within BLE packet | |
CN111083684B (en) | Method for controlling electronic equipment and electronic equipment | |
CN106203290B (en) | A kind of fingerprint image acquisition method and terminal | |
CN105049923A (en) | Method and apparatus for waking up electronic device | |
CN104951159A (en) | Touch key and fingerprint identification method | |
WO2015100569A1 (en) | Sidebar menu display method, device and terminal | |
WO2021017742A1 (en) | Method for controlling application, and electronic apparatus | |
WO2015183403A1 (en) | Companion application for activity cooperation | |
CN105242870A (en) | False touch method and device of terminal with touch screen | |
WO2021190373A1 (en) | Interaction method, interaction system, and display device | |
CN107911445A (en) | A kind of information push method, mobile terminal and storage medium | |
CN108513347A (en) | A kind of data transmission method and electronic equipment | |
CN104635918A (en) | Control method and control device of electronic equipment and electronic equipment | |
CN108366220A (en) | A kind of video calling processing method and mobile terminal | |
CN110113478A (en) | The display control method and terminal device of terminal device | |
US10051481B2 (en) | Electronic apparatus and sensor arrangement method thereof | |
WO2022110352A1 (en) | Smart home control method and apparatus, and terminal and storage medium | |
WO2025011179A1 (en) | Data transmission method, apparatus, medium and device | |
CN113132195B (en) | Control method and control gateway for smart home | |
CN107967418B (en) | Face recognition method and mobile terminal | |
CN105389225A (en) | Touch screen reporting point processing method and apparatus | |
CN111125762A (en) | A shared application control method and electronic device | |
CN108366171B (en) | A temperature rise control method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Control methods and control gateways for smart homes Granted publication date: 20220426 Pledgee: Shenzhen Branch of China Merchants Bank Co.,Ltd. Pledgor: LUMI UNITED TECHNOLOGY Co.,Ltd. Registration number: Y2024980047147 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |