CN107968736B - Smart home system and information encryption method, device and terminal - Google Patents
Smart home system and information encryption method, device and terminal Download PDFInfo
- Publication number
- CN107968736B CN107968736B CN201711260484.3A CN201711260484A CN107968736B CN 107968736 B CN107968736 B CN 107968736B CN 201711260484 A CN201711260484 A CN 201711260484A CN 107968736 B CN107968736 B CN 107968736B
- Authority
- CN
- China
- Prior art keywords
- control information
- gateway
- time stamp
- information
- terminal
- 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 60
- 238000004891 communication Methods 0.000 claims abstract description 25
- 230000001960 triggered effect Effects 0.000 claims description 23
- 238000003860 storage Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000004590 computer program Methods 0.000 claims description 3
- 238000004883 computer application Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 17
- 238000012545 processing Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 6
- 230000005236 sound signal Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000002699 waste material Substances 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/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/2807—Exchanging configuration information on appliance services in a home automation network
- H04L12/2814—Exchanging control software or macros for controlling appliance services in a home automation network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Telephonic Communication Services (AREA)
- Selective Calling Equipment (AREA)
Abstract
本发明揭示了一种智能家居系统与信息加密方法及装置、终端,属于计算机应用技术领域。该智能家居系统包括:终端、网关与家居设备,终端与网关通过局域网进行通讯,终端在根据控制操作生成控制信息时,在控制信息加入网关发送的时间戳,并对加入时间戳的控制信息进行加密后发送给网关;网关在接收终端发送的加密信息并解密得到控制信息后获取控制信息中的时间戳,在接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔小于预设的时间阈值时,将控制信息发送给相关家居设备。此外,还提供了信息加密方法、装置及终端。上述智能家居系统与信息加密方法及装置、终端能够保证局域网中的通讯安全,提高通过局域网进行家居设备控制的安全性。
The invention discloses a smart home system and an information encryption method, device and terminal, which belong to the technical field of computer applications. The smart home system includes: a terminal, a gateway and home equipment. The terminal and the gateway communicate through a local area network. When the terminal generates control information according to a control operation, the control information adds a timestamp sent by the gateway to the control information added to the timestamp. After encryption, it is sent to the gateway; the gateway obtains the time stamp in the control information after receiving the encrypted information sent by the terminal and decrypting the control information, and the time interval between the time stamp when receiving the encrypted information and the time stamp in the control information is less than the predetermined time interval. When the set time threshold is reached, the control information is sent to the relevant home equipment. In addition, an information encryption method, device and terminal are also provided. The above-mentioned smart home system, information encryption method, device, and terminal can ensure the communication security in the local area network, and improve the security of home equipment control through the local area network.
Description
技术领域technical field
本发明涉及计算机应用技术领域,特别涉及一种智能家居系统与信息加密方法及装置、终端。The invention relates to the technical field of computer applications, in particular to a smart home system and an information encryption method, device and terminal.
背景技术Background technique
随着智能家居技术的高速发展,越来越多的家居设备实现了智能化。手机、平板电脑等终端作为智能家居的控制终端,通过与网关的通讯连接,与家居设备共同组成智能家居系统,从而实现对家居设备的智能化控制。With the rapid development of smart home technology, more and more home devices have become intelligent. Terminals such as mobile phones and tablet computers, as the control terminals of smart homes, form a smart home system together with home equipment through the communication connection with the gateway, so as to realize intelligent control of home equipment.
在智能家居系统中,为避免对家居设备的控制被工具,保证通讯的安全性,需对控制信息进行加密处理。目前,智能家居系统在进行家居设备的控制时,终端A根据预设的密钥对控制信息进行信息加密后发送给网关B,进而网关B在获取到加密信息后通过预设的密钥对加密信息进行解密,获取控制信息,而由于其他终端并不知晓该预设的密钥,因而其他终端即使截取取到该加密信息,也无法成功对该加密信息进行解密,获知该加密信息中的真正内容,从而实现局域网中信息加密的目的。In the smart home system, in order to avoid the control of home equipment by tools and ensure the security of communication, it is necessary to encrypt the control information. At present, when the smart home system controls the home equipment, the terminal A encrypts the control information according to the preset key and sends it to the gateway B, and then the gateway B encrypts the encrypted information with the preset key after obtaining the encrypted information. information is decrypted to obtain control information, and because other terminals do not know the preset key, even if other terminals intercept and capture the encrypted information, they cannot successfully decrypt the encrypted information and learn the real encrypted information in the encrypted information. content, so as to achieve the purpose of information encryption in the local area network.
然而,在其他终端截取到终端A发送给网关B的加密信息时,网关B获取到该加密信息后,虽然其无法获知该加密信息中的真正内容,但其可以冒充终端A在其它时间给网关B发送该加密信息,使终端B在错误的时间执行该加密信息中的真正内容,从而无法保证智能家居系统中的通讯安全。However, when another terminal intercepts the encrypted information sent by terminal A to gateway B, after gateway B obtains the encrypted information, although it cannot know the real content of the encrypted information, it can pretend to be terminal A and send it to the gateway at other times. B sends the encrypted information, so that terminal B executes the real content of the encrypted information at the wrong time, so that the communication security in the smart home system cannot be guaranteed.
发明内容SUMMARY OF THE INVENTION
为了解决相关技术中的智能家居系统中通讯安全较差的技术问题,本发明提供了一种智能家居系统与信息加密方法及装置、终端。In order to solve the technical problem of poor communication security in the smart home system in the related art, the present invention provides a smart home system and an information encryption method, device, and terminal.
第一方面,提供了一种智能家居系统,所述智能家居系统包括:终端、网关与家居设备,其中:In a first aspect, a smart home system is provided, the smart home system includes: a terminal, a gateway and a home device, wherein:
所述终端,在根据触发的控制操作生成控制信息时,将所述网关发送的时间戳加入至所述控制信息,并在对加入所述时间戳的控制信息进行加密后发送给所述网关;The terminal, when generating control information according to the triggered control operation, adds the time stamp sent by the gateway to the control information, and encrypts the control information added with the time stamp and sends it to the gateway;
所述网关,在接收所述终端发送的加密信息并解密得到控制信息后获取所述控制信息中的时间戳,在接收所述加密信息时的时间戳与所述控制信息中的时间戳之间的时间间隔小于预设的时间阈值时,将所述控制信息发送给相关的家居设备,以使所述家居设备根据所述控制信息进行工作。The gateway obtains the time stamp in the control information after receiving the encrypted information sent by the terminal and decrypting the control information, and the time stamp in the control information is between the time stamp when receiving the encrypted information and the time stamp in the control information. When the time interval is less than the preset time threshold, the control information is sent to the relevant household equipment, so that the household equipment works according to the control information.
第二方面,提供了一种信息加密装置,包括:In a second aspect, an information encryption device is provided, including:
时间戳获取模块,用于终端在根据触发的控制操作生成控制信息时,获取网关发送的时间戳;The time stamp acquisition module is used for the terminal to acquire the time stamp sent by the gateway when the control information is generated according to the triggered control operation;
加密模块,用于在所述控制信息中加入时间戳,并按照预设的密钥对加入时间戳的所述控制信息进行加密,得到加密信息;an encryption module, configured to add a time stamp to the control information, and encrypt the time stamped control information according to a preset key to obtain encrypted information;
加密信息发送模块,用于向所述网关发送所述加密信息。An encrypted information sending module, configured to send the encrypted information to the gateway.
第三方面,提供了一种信息加密装置,包括:In a third aspect, an information encryption device is provided, including:
加密信息接收模块,用于网关接收终端发送的加密信息;The encrypted information receiving module is used for the gateway to receive the encrypted information sent by the terminal;
解密模块,用于按照预设的密钥对所述加密信息进行解密,得到控制信息;a decryption module, configured to decrypt the encrypted information according to a preset key to obtain control information;
时间间隔判断模块,用于获取所述控制信息中的时间戳,判断接收所述加密信息时的时间戳与所述控制信息中的时间戳之间的时间间隔是否小于预设的时间阈值;a time interval judgment module, configured to obtain the time stamp in the control information, and determine whether the time interval between the time stamp when the encrypted information is received and the time stamp in the control information is less than a preset time threshold;
控制模块,用于在接收所述加密信息时的时间戳与所述控制信息中的时间戳之间的时间间隔小于预设的时间阈值时,根据所述控制信息对相关的家居设备进行控制。The control module is configured to control the relevant household equipment according to the control information when the time interval between the time stamp when the encrypted information is received and the time stamp in the control information is less than a preset time threshold.
第四方面,提供了一种信息加密方法,包括:In a fourth aspect, an information encryption method is provided, including:
终端在根据触发的控制操作生成控制信息时,获取网关发送的时间戳;When the terminal generates control information according to the triggered control operation, it obtains the timestamp sent by the gateway;
在所述控制信息中加入时间戳,并按照预设的密钥对加入时间戳的所述控制信息进行加密,得到加密信息;adding a time stamp to the control information, and encrypting the time stamped control information according to a preset key to obtain encrypted information;
向所述网关发送所述加密信息。The encrypted information is sent to the gateway.
第五方面,提供了一种信息加密方法,包括:In a fifth aspect, an information encryption method is provided, including:
网关接收终端发送的加密信息;The gateway receives the encrypted information sent by the terminal;
按照预设的密钥对所述加密信息进行解密,得到控制信息;Decrypt the encrypted information according to the preset key to obtain control information;
获取所述控制信息中的时间戳,判断接收所述加密信息时的时间戳与所述控制信息中的时间戳之间的时间间隔是否小于预设的时间阈值,若为是,则Obtain the time stamp in the control information, and determine whether the time interval between the time stamp when the encrypted information is received and the time stamp in the control information is less than a preset time threshold, if so, then
将所述控制信息发送给相关的家居设备,以使所述家居设备根据所述控制信息进行工作。The control information is sent to the relevant household equipment, so that the household equipment works according to the control information.
第六方面,提供了一种终端,包括:In a sixth aspect, a terminal is provided, including:
处理器;以及processor; and
与所述处理器通信连接的存储器;其中,a memory communicatively coupled to the processor; wherein,
所述存储器存储有可读性指令,所述可读性指令被所述处理器执行时实现如第四方面所述的方法。The memory stores readable instructions that, when executed by the processor, implement the method of the fourth aspect.
第七方面,提供了一种网关,包括:In a seventh aspect, a gateway is provided, including:
处理器;以及processor; and
与所述处理器通信连接的存储器;其中,a memory communicatively coupled to the processor; wherein,
所述存储器存储有可读性指令,所述可读性指令被所述处理器执行时实现如第五方面所述的方法。The memory stores readable instructions that, when executed by the processor, implement the method of the fifth aspect.
第八方面,提供了一种计算机可读性存储介质,其上存储有计算机程序,所述计算机程序在被执行时实现如第四或第五方面的方法。In an eighth aspect, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed, implements the method of the fourth or fifth aspect.
通过本发明的实施例提供的技术方案能够得到以下有益效果:The following beneficial effects can be obtained through the technical solutions provided by the embodiments of the present invention:
智能家居系统在进行家居设备的控制时,终端根据触发的控制操作生成控制信息,在控制信息加入网关发送的时间戳,并在对加入时间戳的控制信息进行加密后发送给网关,网关在接收终端发送的加密信息并解密得到控制信息后获取控制信息中的时间戳,在接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔小于预设的时间阈值时,将控制信息发送给相关的家居设备,以使家居设备根据控制信息进行工作,从而根据时间戳进行信息真伪的判断,避免网关在接收到其他终端通过冒充发送包含其他时间戳的加密信息时,错误地对相关设备进行控制,从而保证了智能家居系统中的通讯安全,大大提高了对相关家居设备进行控制的安全性。When the smart home system controls the home equipment, the terminal generates control information according to the triggered control operation, adds the timestamp sent by the gateway to the control information, and encrypts the timestamped control information and sends it to the gateway, and the gateway receives the timestamp. After the encrypted information sent by the terminal is decrypted to obtain the control information, the time stamp in the control information is obtained. When the time interval between the time stamp when the encrypted information is received and the time stamp in the control information is less than the preset time threshold, the control information Send it to the relevant home equipment, so that the home equipment can work according to the control information, so as to judge the authenticity of the information according to the time stamp, so as to avoid the gateway from wrongly interpreting the encrypted information containing other time stamps sent by other terminals by pretending to be sent. The related equipment is controlled, thereby ensuring the communication security in the smart home system, and greatly improving the security of controlling the related home equipment.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,本发明并不受限制。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not limiting of the invention.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
图1是根据本公开所涉及的一个实施环境的示意图。FIG. 1 is a schematic diagram of an implementation environment involved in accordance with the present disclosure.
图2是根据一示例性实施例示出的一种终端100的框图。FIG. 2 is a block diagram of a
图3是根据一示例性实施例示出的一种智能家居系统的结构框图。Fig. 3 is a structural block diagram of a smart home system according to an exemplary embodiment.
图4是根据图3对应实施例示出的另一种智能家居系统的结构框图。FIG. 4 is a structural block diagram of another smart home system according to the embodiment corresponding to FIG. 3 .
图5是根据一示例性实施例示出的一种信息加密方法流程图。Fig. 5 is a flowchart of an information encryption method according to an exemplary embodiment.
图6是根据图5对应实施例示出的信息加密方法中步骤S110的一种具体实现流程图。FIG. 6 is a flowchart of a specific implementation of step S110 in the information encryption method shown in the embodiment corresponding to FIG. 5 .
图7是根据图5对应实施例示出的信息加密方法中步骤S110的另一种具体实现流程图。FIG. 7 is another specific implementation flowchart of step S110 in the information encryption method shown in the corresponding embodiment of FIG. 5 .
图8是根据一示例性实施例示出的另一种信息加密方法流程图。Fig. 8 is a flowchart of another information encryption method according to an exemplary embodiment.
图9是根据一示例性实施例示出的一种智能家居系统中对家居设备进行控制的方法示意图。Fig. 9 is a schematic diagram of a method for controlling a home device in a smart home system according to an exemplary embodiment.
图10是根据一示例性实施例示出的一种信息加密装置的框图。Fig. 10 is a block diagram of an information encryption apparatus according to an exemplary embodiment.
图11是根据图10对应示例性实施例示出的信息加密装置中广播获取模块110的一种框图。FIG. 11 is a block diagram of the
图12是根据图10对应示例性实施例示出的信息加密装置中广播获取模块110的另一种框图。FIG. 12 is another block diagram of the
图13是根据一示例性实施例示出的另一种信息加密装置的框图。Fig. 13 is a block diagram of another information encryption apparatus according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所记载的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.
图1是根据本公开所涉及的一个实施环境的示意图。该实施环境包括:终端、网关200以及为终端100与网关200进行数据传输的路由器300。FIG. 1 is a schematic diagram of an implementation environment involved in accordance with the present disclosure. The implementation environment includes: a terminal, a
终端100通过路由器300向网关200发送加密信息后,网关200预设的解密方式对加密信息进行解密得到控制信息,并计算接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔,在该时间间隔小于预设的时间阈值时,则根据控制信息对相关设备进行控制。After the terminal 100 sends the encrypted information to the
终端100可以是手机、电脑等计算机设备,具体实现方式不受本实施例的限制。The terminal 100 may be a computer device such as a mobile phone and a computer, and the specific implementation manner is not limited by this embodiment.
图2是根据一示例性实施例示出的一种终端100的框图。FIG. 2 is a block diagram of a terminal 100 according to an exemplary embodiment.
参考图2,终端100可以包括以下一个或者多个组件:处理组件101,存储器102,电源组件103,多媒体组件104,音频组件105,传感器组件107以及通信组件108。其中,上述组件并不全是必须的,终端100可以根据自身功能需求增加其他组件或减少某些组件,本实施例不作限定。2 , the terminal 100 may include one or more of the following components: a
处理组件101通常控制终端100的整体操作,诸如与显示,电话呼叫,数据通信,相机操作以及记录操作相关联的操作等。处理组件101可以包括一个或多个处理器109来执行指令,以完成上述操作的全部或部分步骤。此外,处理组件101可以包括一个或多个模块,便于处理组件101和其他组件之间的交互。例如,处理组件101可以包括多媒体模块,以方便多媒体组件104和处理组件101之间的交互。The
存储器102被配置为存储各种类型的数据以支持在终端100的操作。这些数据的示例包括用于在终端100上操作的任何应用程序或方法的指令。存储器102可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如SRAM(Static Random AccessMemory,静态随机存取存储器),EEPROM(Electrically Erasable Programmable Read-Only Memory,电可擦除可编程只读存储器),EPROM(Erasable Programmable Read OnlyMemory,可擦除可编程只读存储器),PROM(Programmable Read-Only Memory,可编程只读存储器),ROM(Read-Only Memory,只读存储器),磁存储器,快闪存储器,磁盘或光盘。存储器102中还存储有一个或多个模块,该一个或多个模块被配置成由该一个或多个处理器109执行,以完成图2、图3、图4、图5和图6任一所示方法中的全部或者部分步骤。The
电源组件103为终端100的各种组件提供电力。电源组件103可以包括电源管理系统,一个或多个电源,及其他与为终端100生成、管理和分配电力相关联的组件。
多媒体组件104包括在所述终端100和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括LCD(Liquid Crystal Display,液晶显示器)和TP(TouchPanel,触摸面板)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。The
音频组件105被配置为输出和/或输入音频信号。例如,音频组件105包括一个麦克风,当终端100处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器102或经由通信组件108发送。在一些实施例中,音频组件105还包括一个扬声器,用于输出音频信号。
传感器组件107包括一个或多个传感器,用于为终端100提供各个方面的状态评估。例如,传感器组件107可以检测到终端100的打开/关闭状态,组件的相对定位,传感器组件107还可以检测终端100或终端100一个组件的坐标改变以及终端100的温度变化。在一些实施例中,该传感器组件107还可以包括磁传感器,压力传感器或温度传感器。
通信组件108被配置为便于终端100和其他设备之间有线或无线方式的通信。终端100可以接入基于通信标准的无线网络,如WiFi(WIreless-Fidelity,无线网络),2G或3G,或它们的组合。在一个示例性实施例中,通信组件108经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件108还包括NFC(Near Field Communication,近场通信)模块,以促进短程通信。例如,在NFC模块可基于RFID(Radio Frequency Identification,射频识别)技术,IrDA(Infrared DataAssociation,红外数据协会)技术,UWB(Ultra-Wideband,超宽带)技术,BT(Bluetooth,蓝牙)技术和其他技术来实现。
在示例性实施例中,终端100可以被一个或多个ASIC(Application SpecificIntegrated Circuit,应用专用集成电路)、DSP(Digital Signal Processing,数字信号处理器)、PLD(Programmable Logic Device,可编程逻辑器件)、FPGA(Field-ProgrammableGate Array,现场可编程门阵列)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the terminal 100 may be configured by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP (Digital Signal Processing, digital signal processor), PLD (Programmable Logic Device, programmable logic device) , FPGA (Field-Programmable Gate Array, Field Programmable Gate Array), controller, microcontroller, microprocessor or other electronic components to implement, for executing the above method.
该实施例中的服务器中处理器执行操作的具体方式将在有关该信息加密方法的实施例中进行详细描述,此处将不再做详细阐述说明。The specific manner in which the processor in the server in this embodiment performs operations will be described in detail in the embodiment of the information encryption method, and will not be described in detail here.
图3是根据一示例性实施例示出的一种智能家居系统的结构框图,如图3所示,该智能家居系统包括:终端100、网关200与家居设备300,其中:FIG. 3 is a structural block diagram of a smart home system according to an exemplary embodiment. As shown in FIG. 3 , the smart home system includes: a terminal 100, a
终端100在根据触发的控制操作生成控制信息时,在控制信息加入网关发送的时间戳,并在对加入时间戳的控制信息进行加密后发送给网关;When the terminal 100 generates control information according to the triggered control operation, the control information is added to the time stamp sent by the gateway, and the control information added with the time stamp is encrypted and sent to the gateway;
网关200在接收终端100发送的加密信息并解密得到控制信息后获取控制信息中的时间戳,在接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔小于预设的时间阈值时,将控制信息发送给相关的家居设备500,以使家居设备500根据控制信息进行工作,从而根据时间戳进行信息真伪的判断,避免网关在接收到其他终端通过冒充发送包含其他时间戳的加密信息时,错误地对相关设备进行控制,从而保证了智能家居系统中的通讯安全,大大提高了对相关家居设备进行控制的安全性。The
家居设备300可以是智能冰箱、智能空调等家电,也可以是智能墙壁开关、空调伴侣、智能摄像头等智能家居设备,具体实现方式不受本实施例的限制。The
终端100与网关200之间可以通过ZIGBEE、蓝牙等局域网进行通讯连接,也可以通过WIFI、2G/3G/4G/5G等外网进行通讯连接。The terminal 100 and the
终端100与网关200之间通过局域网进行通讯连接时,即使终端100无法连接外网,也能实现智能家居系统中对家居设备的控制,且通讯连接不受外网网络质量的限制,大大提供了智能家居系统的便利性。When the communication connection between the terminal 100 and the
可选的,图4是根据图3对应实施例示出的另一种智能家居系统的结构框图,如图4所示,该智能家居系统还包括云端服务器400,云端服务器400在与终端100、网关200通讯连接时,向终端100、网关200分别发送密钥信息,终端100和网关200分别按照各自接收的密钥信息中的密钥进行信息的加密或解密。Optionally, FIG. 4 is a structural block diagram of another smart home system according to the embodiment corresponding to FIG. 3 . As shown in FIG. 4 , the smart home system further includes a
图5是根据一示例性实施例示出的一种信息加密方法流程图,如图5所示,该信息加密方法可以包括以下步骤。Fig. 5 is a flowchart of an information encryption method according to an exemplary embodiment. As shown in Fig. 5 , the information encryption method may include the following steps.
在步骤S110中,终端在根据触发的控制操作生成控制信息时,获取网关发送的时间戳。In step S110, when the terminal generates control information according to the triggered control operation, the terminal acquires the timestamp sent by the gateway.
控制信息是对局域网中相关的设备进行控制的信息。Control information is information for controlling related devices in the local area network.
如图1所述的实施环境示意图,用户通过对运行于终端中的APP进行操控,生成相应的控制信息。As shown in the schematic diagram of the implementation environment shown in FIG. 1 , the user generates corresponding control information by manipulating the APP running in the terminal.
获取网关发送的时间戳的方式有多种,可以是通过设定网关以固定的频率向终端发送时间戳,也可以在终端向网关发送时间戳的获取请求时,接收网关返回的时间戳,还可以是通过其他的方式获取网关发送的时间戳。There are many ways to obtain the timestamp sent by the gateway. You can set the gateway to send the timestamp to the terminal at a fixed frequency, or you can receive the timestamp returned by the gateway when the terminal sends a timestamp acquisition request to the gateway. The timestamp sent by the gateway can be obtained by other methods.
时间戳是网关在一时间量度上进行的时间标记。Timestamps are timestamps made by the gateway on a time metric.
可选的,时间戳可以是在网关的系统时间上进行的时间标记,也可以是在计时器上进行的时间标记,还可以以其它形式进行的时间标记。Optionally, the time stamp may be the time stamp performed on the system time of the gateway, the time stamp performed on the timer, or the time stamp performed in other forms.
在步骤S120中,在控制信息中加入时间戳,并按照预设的密钥对加入时间戳的控制信息进行加密,得到加密信息。In step S120, a time stamp is added to the control information, and the time stamped control information is encrypted according to a preset key to obtain encrypted information.
密钥是预先设定的对控制信息进行加密或解密的参数。The key is a preset parameter for encrypting or decrypting control information.
需要说明的是,云端服务器向终端和网关分别发送的密钥之间,这两个密钥可以是相同的,也可以是相对应的,即终端按照其接收的密钥进行信息加密后,而网关则按照其接收的密钥可以成功进行信息解密。也就是说,可以通过同一个密钥进行信息加密和信息解密;也可以通过一个密钥进行信息加密,通过另一个与该加密的密钥相对应的密钥进行信息解密,从而保证网关在接收到加密信息后能够成功解密。It should be noted that between the keys sent by the cloud server to the terminal and the gateway respectively, the two keys may be the same or corresponding, that is, after the terminal encrypts the information according to the key received, the The gateway can successfully decrypt the information according to the key it receives. That is to say, information encryption and information decryption can be performed through the same key; information encryption can also be performed through one key, and information decryption can be performed through another key corresponding to the encrypted key, so as to ensure that the gateway is receiving After the encrypted information is reached, it can be successfully decrypted.
对控制信息进行加密的方式有多种,例如,RSA算法、AES算法等,在此不对控制信息进行加密的具体方式进行限定。There are many ways to encrypt the control information, for example, the RSA algorithm, the AES algorithm, etc., and the specific way of encrypting the control information is not limited here.
在步骤S130中,向网关发送加密信息。In step S130, the encrypted information is sent to the gateway.
利用如上所述的方法,终端在根据触发的控制操作生成控制信息时,获取网关发送的时间戳,并将时间戳加入到控制信息中,进而按照预设的密钥对加入时间戳的控制信息进行加密,再将得到加密信息发送给网关,使网关对加密信息解密得到控制信息时,根据时间戳进行信息真伪的判断,从而保证了智能家居系统中的通讯安全,大大提高了对相关家居设备进行控制的安全性。Using the above method, when the terminal generates the control information according to the triggered control operation, the terminal obtains the timestamp sent by the gateway, adds the timestamp to the control information, and then adds the timestamped control information according to the preset key pair. Encrypt, and then send the encrypted information to the gateway, so that when the gateway decrypts the encrypted information to obtain the control information, it judges the authenticity of the information according to the time stamp, thus ensuring the communication security in the smart home system and greatly improving the related home furnishing system. The security of the device being controlled.
可选的,图6是根据图5对应实施例示出的信息加密方法中步骤S110的一种细节描述,如图6所示,该信息加密方法中的步骤S110还可以包括以下步骤。Optionally, FIG. 6 is a detailed description of step S110 in the information encryption method shown in the corresponding embodiment of FIG. 5 . As shown in FIG. 6 , step S110 in the information encryption method may further include the following steps.
在步骤S111中,终端接收网关按照预设的时间间隔发送的时间戳。In step S111, the terminal receives the timestamps sent by the gateway at preset time intervals.
网关发送时间戳的时间间隔是预先设置的一个时间范围值,该时间间隔不能设置过大,也不能设置过小,在实际的智能家居系统中,可预先对该时间间隔进行微调。在一示例性实施例中,时间间隔预设为5秒。The time interval at which the gateway sends the timestamp is a preset time range value. The time interval cannot be set too large or too small. In the actual smart home system, the time interval can be fine-tuned in advance. In an exemplary embodiment, the time interval is preset to 5 seconds.
终端在接收到网关以预设的时间间隔发送的时间戳时,其并不立即获取该时间戳,而只有在根据触发的控制操作生成控制信息时,才获取其接收到的时间戳并将其加入控制信息中。When the terminal receives the timestamp sent by the gateway at a preset time interval, it does not obtain the timestamp immediately, but only when the control information is generated according to the triggered control operation, obtains the timestamp it receives and stores it. added to the control information.
在步骤S112中,从网关发送的时间戳中获取在生成控制信息时接收的时间戳。In step S112, the time stamp received when the control information is generated is acquired from the time stamp sent by the gateway.
利用如上的方法,网关按照预设的时间间隔向终端发送时间戳,从而终端在生成控制信息时,直接在接收到网关发送的时间戳中查找最近一次接收的时间戳即可,从而无需向网关专门询问时间戳,大大提高了获取时间戳的便利性。Using the above method, the gateway sends time stamps to the terminal according to the preset time interval, so that when the terminal generates control information, it can directly search for the latest time stamp received in the time stamps sent by the gateway, so there is no need to send time stamps to the gateway. Specifically asking for timestamps greatly improves the convenience of obtaining timestamps.
可选的,图7是根据图5对应实施例示出的信息加密方法中步骤S110的另种细节描述,如图7所示,该信息加密方法中的步骤S110还可以包括以下步骤。Optionally, FIG. 7 is another detailed description of step S110 in the information encryption method shown in the corresponding embodiment of FIG. 5 . As shown in FIG. 7 , step S110 in the information encryption method may further include the following steps.
在步骤S114中,终端在生成控制信息时,向网关发送时间戳获取请求。In step S114, when generating the control information, the terminal sends a timestamp acquisition request to the gateway.
如前所述的,时间戳是在一时间量度上进行的时间标记。As mentioned earlier, a timestamp is a time stamp on a measure of time.
为确保时间戳的准确性,使网关在接收信息后能够根据时间戳进行信息真伪的判断,网关应知晓终端在控制信息中加入的时间戳。因此,在终端将向网关发送控制信息时,通过向网关发送时间戳获取请求,请求网关发送时间戳,从而保证该时间戳是网关所知晓的时间戳。In order to ensure the accuracy of the time stamp and enable the gateway to judge the authenticity of the information according to the time stamp after receiving the information, the gateway should know the time stamp added by the terminal to the control information. Therefore, when the terminal will send the control information to the gateway, by sending a timestamp acquisition request to the gateway, the gateway is requested to send the timestamp, so as to ensure that the timestamp is a timestamp known by the gateway.
局域网中,终端通过路由器向网关发送时间戳获取请求。In the local area network, the terminal sends a timestamp acquisition request to the gateway through the router.
在步骤S115中,接收网关响应请求而返回的时间戳。In step S115, the timestamp returned by the gateway in response to the request is received.
网关在接收终端发送的时间戳获取请求时,立即向终端发送时间戳。When receiving the timestamp obtaining request sent by the terminal, the gateway immediately sends the timestamp to the terminal.
利用如上所述的方法,终端在生成控制信息时,向网关发送时间戳获取请求,请求网关发送时间戳,无需网关频繁通过路由器向终端发送时间戳,从而避免了资源的浪费。Using the above method, when the terminal generates control information, it sends a timestamp acquisition request to the gateway to request the gateway to send the timestamp, and the gateway does not need to send the timestamp to the terminal frequently through the router, thereby avoiding waste of resources.
图8是根据一示例性实施例示出的另一种信息加密方法流程图,如图8所示,该信息加密方法可以包括以下步骤。Fig. 8 is a flowchart of another information encryption method according to an exemplary embodiment. As shown in Fig. 8 , the information encryption method may include the following steps.
在步骤S210中,网关接收终端发送的加密信息。In step S210, the gateway receives the encrypted information sent by the terminal.
网关接收终端发送的加密信息是终端通过局域网向网关发送的加密信息。The encrypted information that the gateway receives from the terminal is the encrypted information sent by the terminal to the gateway through the local area network.
在步骤S220中,按照预设的密钥对加密信息进行解密,得到控制信息。In step S220, the encrypted information is decrypted according to a preset key to obtain control information.
如前所述的,网关和终端中各自保存的密钥是相同或相对应的。As mentioned above, the keys stored in the gateway and the terminal are the same or correspond to each other.
终端对一信息按照其存储的密钥进行加密发送给网关后,网关在接收后按照其存储的密钥能够成功进行解密。After the terminal encrypts a piece of information according to its stored key and sends it to the gateway, the gateway can successfully decrypt it according to its stored key after receiving it.
例如,终端中存储的密钥为密钥X1,网关中存储的密钥为密钥X2,密钥X2与密钥X2是相同或相对应的,当通过密钥X1对信息Y1进行加密得到加密信息Y2时,通过密钥X2可对加密信息Y2成功解密得到信息Y1。For example, the key stored in the terminal is the key X1, the key stored in the gateway is the key X2, and the key X2 and the key X2 are the same or corresponding. When the information Y2 is obtained, the encrypted information Y2 can be successfully decrypted through the key X2 to obtain the information Y1.
在步骤S230中,获取控制信息中的时间戳,判断接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔是否小于预设的时间阈值,若为是(Y),则执行步骤S241;若为否(N),则执行步骤S242。In step S230, the time stamp in the control information is obtained, and it is determined whether the time interval between the time stamp when the encrypted information is received and the time stamp in the control information is less than a preset time threshold, and if yes (Y), execute Step S241; if no (N), execute step S242.
如前所述的,终端是对加入时间戳的控制信息进行加密的。As mentioned above, the terminal encrypts the time stamped control information.
因而,在对加密信息进行解密后,得到的控制信息中也是包含有时间戳的。Therefore, after decrypting the encrypted information, the obtained control information also includes a time stamp.
如前所述的,时间戳是对时间量度上进行的时间标记。因而,在不同时间的时间戳是不相同的,时间戳描述的时间信息是随时间的流逝而变化的。As mentioned earlier, a timestamp is a time stamp on a time measure. Therefore, the time stamps at different times are different, and the time information described by the time stamps changes with the passage of time.
例如,时间戳是对网关的系统时间进行的时间标记,终端在根据触发的控制操作生成控制信息时,获取网关发送的时间戳T1为网关的系统时间12:00:00,而接收加密信息时的时间戳T2为接收加密信息时网关的系统时间12:00:03。For example, the time stamp is a time stamp on the system time of the gateway. When the terminal generates control information according to the triggered control operation, it obtains the time stamp T1 sent by the gateway as 12:00:00 of the system time of the gateway, and when receiving encrypted information The timestamp T2 is the system time 12:00:03 of the gateway when the encrypted information is received.
又例如,时间戳是对网关中的计时器进行的时间标记,终端在根据触发的控制操作生成控制信息时,获取网关发送的时间戳T1为网关中计时器的计时30:00:10,而接收加密信息时的时间戳T2为接收加密信息时网关中计时器的计时30:00:13。For another example, the time stamp is a time stamp on the timer in the gateway. When the terminal generates control information according to the triggered control operation, the time stamp T1 sent by the gateway is obtained as the time 30:00:10 of the timer in the gateway, and The time stamp T2 when the encrypted information is received is 30:00:13 of the timer in the gateway when the encrypted information is received.
时间阈值是预先设置的一个时间范围值,该时间阈值不能设置过大,也不能设置过小,通过实际局域网中的数据传输,可对时间阈值进行微调。在一示例性实施例中,时间阈值预设为5秒。The time threshold is a preset time range value. The time threshold cannot be set too large or too small. The time threshold can be fine-tuned through data transmission in the actual local area network. In an exemplary embodiment, the time threshold is preset to 5 seconds.
若接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔小于预设的时间阈值,则表明该控制信息是有效的,并非是局域网中其他终端通过冒充而进行攻击。因此,根据该控制信息对相关设备进行控制。因为如果控制信息是有效的,终端对控制信息进行加密与网关接收加密信息几乎是即时性的,即终端对控制信息进行加密与网关接收加密信息之间的时间间隔通常是很小的。If the time interval between the time stamp when the encrypted information is received and the time stamp in the control information is less than the preset time threshold, it indicates that the control information is valid, and it is not that other terminals in the local area network are attacked by impersonation. Therefore, the related equipment is controlled according to the control information. Because if the control information is valid, the terminal encrypts the control information and the gateway receives the encrypted information almost instantaneously, that is, the time interval between the terminal encrypts the control information and the gateway receives the encrypted information is usually very small.
若接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔不小于预设的时间阈值,则表明终端对控制信息进行加密时与网关接收终端发送的加密信息时之间的时间间隔较大,很可能是局域网中的其他终端通过冒充进行攻击,因此,抛弃该控制信息,不根据该控制信息执行相应操作。If the time interval between the time stamp when receiving the encrypted information and the time stamp in the control information is not less than the preset time threshold, it indicates the time between when the terminal encrypts the control information and when the gateway receives the encrypted information sent by the terminal. If the interval is large, it is likely that other terminals in the local area network attack by impersonating. Therefore, the control information is discarded and corresponding operations are not performed according to the control information.
在步骤S241中,将控制信息发送给相关的家居设备,以使家居设备根据控制信息进行工作。In step S241, the control information is sent to the relevant household equipment, so that the household equipment works according to the control information.
在步骤S242中,丢弃控制信息。In step S242, the control information is discarded.
利用如上所述的方法,网关在对加密信息解密后获取控制信息中的时间戳时,只有在接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔小于预设的时间阈值,才将该控制信息发送给相关的家居设备,是该家居设备执行相应操作,避免其他终端通过冒充对网关进行攻击,从而保证了智能家居系统中的通讯安全,大大提高了对相关家居设备进行控制的安全性。Using the above method, when the gateway obtains the time stamp in the control information after decrypting the encrypted information, only when the time interval between the time stamp when receiving the encrypted information and the time stamp in the control information is less than the preset time threshold , the control information is sent to the relevant home equipment, and the home equipment performs the corresponding operations to prevent other terminals from attacking the gateway by impersonating, thereby ensuring the communication security in the smart home system and greatly improving the related home equipment. Control security.
图9是根据一示例性实施例示出的一种智能家居系统中对家居设备进行控制的方法示意图。Fig. 9 is a schematic diagram of a method for controlling a home device in a smart home system according to an exemplary embodiment.
在步骤S310中,终端、网关通过与云端服务器的通讯连接,分别接收云端服务器发送的密钥信息,密钥信息中包括预设的密钥。In step S310, the terminal and the gateway respectively receive the key information sent by the cloud server through the communication connection with the cloud server, and the key information includes a preset key.
可以理解的是,终端与网关进行信息加密或信息解密时的密钥是以密钥信息的方式预先存储在其各自的存储中,进而终端通过获取其存储的密钥信息中的密钥,并根据该密钥对控制信息进行加密,而网关在接收到加密信息后,通过获取其存储的密钥信息中的密钥,并根据该密钥对加密信息进行解密。It can be understood that the key when the terminal and the gateway perform information encryption or information decryption is pre-stored in their respective storages in the form of key information, and then the terminal obtains the key in the stored key information and stores it. The control information is encrypted according to the key, and after receiving the encrypted information, the gateway obtains the key in the key information stored in the gateway, and decrypts the encrypted information according to the key.
而在终端、网关首次与云端服务器通讯连接时,云端服务器将包含密钥的密钥信息分别发送给终端和网关,而终端与网关分别接收的密钥信息是相同的,从而保证终端在对控制信息加密发送给网关后,网关能够顺利进行解密。When the terminal and gateway communicate with the cloud server for the first time, the cloud server sends the key information containing the key to the terminal and the gateway respectively, and the key information received by the terminal and the gateway is the same, so as to ensure that the terminal is in control of the control After the encrypted information is sent to the gateway, the gateway can decrypt it smoothly.
在步骤S320中,终端在根据触发的控制操作生成控制信息时,在控制信息加入网关发送的时间戳。In step S320, when the terminal generates control information according to the triggered control operation, the time stamp sent by the gateway is added to the control information.
在步骤S330中,终端按照预设的密钥对加入时间戳的控制信息进行加密,并将得到的加密信息发送给网关。In step S330, the terminal encrypts the time stamped control information according to a preset key, and sends the obtained encrypted information to the gateway.
在步骤S340中,网关接收终端发送的加密信息,按照约定的加解密方式对加密信息进行解密,得到控制信息。In step S340, the gateway receives the encrypted information sent by the terminal, and decrypts the encrypted information according to the agreed encryption and decryption method to obtain control information.
在步骤S350中,网关获取控制信息中的时间戳,判断接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔是否小于预设的时间阈值,若为是,则执行步骤S361;若为否,则执行步骤S362。In step S350, the gateway obtains the time stamp in the control information, and determines whether the time interval between the time stamp when the encrypted information is received and the time stamp in the control information is less than a preset time threshold, and if so, executes step S361 ; if no, execute step S362.
在步骤S361中,网关根据控制信息对相关设备进行控制。In step S361, the gateway controls related devices according to the control information.
在步骤S362中,网关丢弃控制信息。In step S362, the gateway discards the control information.
下述为本发明系统实施例,可以用于执行上述信息加密方法实施例。对于本发明系统实施例中未披露的细节,请参照本发明信息加密方法实施例。The following are system embodiments of the present invention, which can be used to execute the above information encryption method embodiments. For details not disclosed in the system embodiments of the present invention, please refer to the information encryption method embodiments of the present invention.
图10是根据一示例性实施例示出的一种信息加密装置的框图,该装置包括运行于终端的应用程序中的时间戳获取模块110、加密模块120及加密信息发送模块130。FIG. 10 is a block diagram of an information encryption apparatus according to an exemplary embodiment. The apparatus includes a
时间戳获取模块110,用于终端在根据触发的控制操作生成控制信息时,获取网关发送的时间戳;The time
加密模块120,用于在控制信息中加入时间戳,并按照预设的密钥对加入时间戳的控制信息进行加密,得到加密信息;An
加密信息发送模块130,用于向网关发送加密信息。The encrypted information sending module 130 is used for sending encrypted information to the gateway.
上述装置中各个模块的功能和作用的实现过程具体详见上述信息加密方法中对应步骤的实现过程,在此不再赘述。For details of the implementation process of the functions and functions of each module in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned information encryption method, which will not be repeated here.
可选的,如图11所示,时间戳获取模块110还包括但不限于:时间戳接收单元111和第一时间戳获取单元112。Optionally, as shown in FIG. 11 , the
时间戳接收单元111,用于终端接收网关按照预设的时间间隔发送的时间戳;The
第一时间戳获取单元112,用于从网关发送的时间戳中获取在生成控制信息时接收的时间戳。The first time
可选的,如图12所示,时间戳获取模块110还包括但不限于:时间戳获取请求单元114和第二时间戳获取单元115。Optionally, as shown in FIG. 12 , the
时间戳获取请求单元114,用于终端在生成控制信息时,向网关发送时间戳获取请求;a timestamp
第二时间戳获取单元115,用于获取网关响应时间戳获取请求而发送的时间戳。The second
图13是根据一示例性实施例示出的另一种信息加密装置的框图,该装置包括运行于网关的应用程序中的加密信息接收模块210、解密模块220、时间间隔判断模块230及控制模块240。Fig. 13 is a block diagram of another information encryption apparatus according to an exemplary embodiment, the apparatus includes an encrypted
加密信息接收模块210,用于网关接收终端发送的加密信息;The encrypted
解密模块220,用于按照预设的密钥对加密信息进行解密,得到控制信息;a
时间间隔判断模块230,用于获取控制信息中的时间戳,判断接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔是否小于预设的时间阈值;The time interval judgment module 230 is used for obtaining the time stamp in the control information, and judging whether the time interval between the time stamp when the encrypted information is received and the time stamp in the control information is less than a preset time threshold;
控制信息发送模块240,用于在接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔小于预设的时间阈值时,将控制信息发送给相关的家居设备,以使家居设备根据控制信息进行工作。The control information sending module 240 is used to send the control information to the relevant home equipment when the time interval between the time stamp when receiving the encrypted information and the time stamp in the control information is less than the preset time threshold, so that the home equipment Work according to control information.
可选的,图13中所示的信息加密装置还包括但不限于:控制信息丢弃模块。Optionally, the information encryption apparatus shown in FIG. 13 further includes but is not limited to: a control information discarding module.
控制信息丢弃模块,用于在接收加密信息时的时间戳与控制信息中的时间戳之间的时间间隔不小于预设的时间阈值时,丢弃控制信息。The control information discarding module is configured to discard the control information when the time interval between the time stamp when the encrypted information is received and the time stamp in the control information is not less than a preset time threshold.
可选的,本发明还提供一种终端,执行图5、图6和图7任一所示的信息加密方法的全部或者部分步骤。所述终端包括:Optionally, the present invention further provides a terminal that performs all or part of the steps of the information encryption method shown in any one of FIG. 5 , FIG. 6 and FIG. 7 . The terminal includes:
处理器;以及processor; and
与所述处理器通信连接的存储器;其中,a memory communicatively coupled to the processor; wherein,
所述存储器存储有可读性指令,所述可读性指令被所述处理器执行时实现如上述任一示例性实施例所述的方法。The memory stores readable instructions that, when executed by the processor, implement the method as described in any of the above-described exemplary embodiments.
该实施例中的终端中处理器执行操作的具体方式已经在有关该信息加密方法的实施例中执行了详细描述,此处将不做详细阐述说明。The specific manner in which the processor in the terminal in this embodiment performs the operation has been described in detail in the embodiment related to the information encryption method, and will not be described in detail here.
可选的,本发明还提供一种网关,执行图8所示的信息加密方法的全部或者部分步骤。所述网关包括:Optionally, the present invention also provides a gateway that performs all or part of the steps of the information encryption method shown in FIG. 8 . The gateway includes:
处理器;以及processor; and
与所述处理器通信连接的存储器;其中,a memory communicatively coupled to the processor; wherein,
所述存储器存储有可读性指令,所述可读性指令被所述处理器执行时实现如上述任一示例性实施例所述的方法。The memory stores readable instructions that, when executed by the processor, implement the method as described in any of the above-described exemplary embodiments.
该实施例中的网关中处理器执行操作的具体方式已经在有关该信息加密方法的实施例中执行了详细描述,此处将不做详细阐述说明。The specific manner in which the processor in the gateway in this embodiment performs operations has been described in detail in the embodiment of the information encryption method, and will not be described in detail here.
在示例性实施例中,还提供了一种存储介质,该存储介质为计算机可读性存储介质,例如可以为包括指令的临时性和非临时性计算机可读性存储介质。该存储介质例如包括指令的存储器102,上述指令可由终端100的处理器109执行以完成上述信息加密方法。In an exemplary embodiment, there is also provided a storage medium, which is a computer-readable storage medium, for example, may be a transitory and non-transitory computer-readable storage medium including instructions. The storage medium includes, for example, a
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,本领域技术人员可以在不脱离其范围执行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made by those skilled in the art without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711260484.3A CN107968736B (en) | 2017-12-04 | 2017-12-04 | Smart home system and information encryption method, device and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711260484.3A CN107968736B (en) | 2017-12-04 | 2017-12-04 | Smart home system and information encryption method, device and terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107968736A CN107968736A (en) | 2018-04-27 |
| CN107968736B true CN107968736B (en) | 2021-07-02 |
Family
ID=61997903
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711260484.3A Active CN107968736B (en) | 2017-12-04 | 2017-12-04 | Smart home system and information encryption method, device and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107968736B (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109358520B (en) * | 2018-11-01 | 2022-01-07 | 南京仁程智能科技有限公司 | Local dynamic unlocking system for smart home Internet of things |
| CN110222086A (en) * | 2019-05-07 | 2019-09-10 | 深圳壹账通智能科技有限公司 | Data managing method, device, equipment and storage medium based on block chain |
| CN112910916A (en) * | 2021-02-23 | 2021-06-04 | 内江佳路云网络科技有限公司 | Intelligent home gateway system information encryption processing method based on cloud computing |
| CN113014579A (en) * | 2021-02-24 | 2021-06-22 | 珠海格力电器股份有限公司 | Control instruction transmission method, system, server and storage medium |
| CN113839958B (en) * | 2021-09-29 | 2023-05-26 | 广州河东科技有限公司 | Communication encryption method, device, control system and storage medium for smart home |
| CN116827706A (en) * | 2022-03-21 | 2023-09-29 | 珠海格力电器股份有限公司 | Gateway-based equipment control method, device and system |
| CN115834266A (en) * | 2022-09-30 | 2023-03-21 | 广州河东科技有限公司 | Control instruction sending method and terminal equipment for smart home |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104301303A (en) * | 2014-09-15 | 2015-01-21 | 汕头大学 | Security protection method and system for smart home internet of things |
| CN106712959A (en) * | 2016-12-09 | 2017-05-24 | 深圳竹信科技有限公司 | Implementation method and system of communication safety |
| CN107040459A (en) * | 2017-03-27 | 2017-08-11 | 高岩 | A kind of intelligent industrial secure cloud gateway device system and method |
| CN107360139A (en) * | 2017-06-19 | 2017-11-17 | 努比亚技术有限公司 | A kind of mobile terminal, data ciphering method and computer-readable recording medium |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100375424C (en) * | 2004-03-22 | 2008-03-12 | 国际商业机器公司 | Multimedia messaging method, system, gateway and client device |
-
2017
- 2017-12-04 CN CN201711260484.3A patent/CN107968736B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104301303A (en) * | 2014-09-15 | 2015-01-21 | 汕头大学 | Security protection method and system for smart home internet of things |
| CN106712959A (en) * | 2016-12-09 | 2017-05-24 | 深圳竹信科技有限公司 | Implementation method and system of communication safety |
| CN107040459A (en) * | 2017-03-27 | 2017-08-11 | 高岩 | A kind of intelligent industrial secure cloud gateway device system and method |
| CN107360139A (en) * | 2017-06-19 | 2017-11-17 | 努比亚技术有限公司 | A kind of mobile terminal, data ciphering method and computer-readable recording medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107968736A (en) | 2018-04-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107968736B (en) | Smart home system and information encryption method, device and terminal | |
| CN107947924A (en) | Intelligent domestic system and information ciphering method and device, terminal | |
| EP3136648B1 (en) | Method and device for determining control authority on user device | |
| CN107819572B (en) | Command transmission method and device and electronic equipment | |
| US9729522B2 (en) | System and method for device authentication | |
| CN107948178A (en) | Intelligent domestic system and information ciphering method and device, terminal | |
| JP6374010B2 (en) | Information communication method, apparatus, and electronic apparatus | |
| CN105933904B (en) | Network connection method and device | |
| EP3605989A1 (en) | Information sending method, information receiving method, apparatus, and system | |
| RU2626659C1 (en) | Method and equipment for device control | |
| CN106888206B (en) | Key exchange method, device and system | |
| CN105430161B (en) | Message treatment method and device | |
| CN105282158A (en) | Intelligent equipment networking method, routing equipment, intelligent equipment and system | |
| CN104460365A (en) | Equipment control method and device | |
| US11432142B2 (en) | Multi-device wireless connection method and device | |
| CN104009837B (en) | Key updating method, device and terminal | |
| CN104168605A (en) | Data transmission control method and apparatus | |
| CN106685644B (en) | Communication encryption method and device, gateway, server, intelligent terminal and system | |
| CN104837178A (en) | Network accessing method and device | |
| CN105530129B (en) | Router resetting method and device | |
| CN107947927B (en) | Method and system for processing identification cipher key | |
| CN108900553A (en) | A kind of communication means, device and computer readable storage medium | |
| KR102028944B1 (en) | Methods, devices, systems, programs and storage media for accessing a plurality of servers of smart home appliances | |
| CN104735139A (en) | Terminal information statistical method, device, terminal and server | |
| CN108009269A (en) | Show the method, apparatus of page data |
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: Smart home system and information encryption method and device, terminal Granted publication date: 20210702 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 |