[go: up one dir, main page]

CN113542079B - Method and device for controlling electricity-proof wall equipment, electronic equipment and storage medium - Google Patents

Method and device for controlling electricity-proof wall equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN113542079B
CN113542079B CN202110675507.7A CN202110675507A CN113542079B CN 113542079 B CN113542079 B CN 113542079B CN 202110675507 A CN202110675507 A CN 202110675507A CN 113542079 B CN113542079 B CN 113542079B
Authority
CN
China
Prior art keywords
target
household electrical
secure connection
smart
appliances
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
Application number
CN202110675507.7A
Other languages
Chinese (zh)
Other versions
CN113542079A (en
Inventor
张新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Economic And Technology Development District Haier Water Heater Co ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Economic And Technology Development District Haier Water Heater Co ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Economic And Technology Development District Haier Water Heater Co ltd, Haier Smart Home Co Ltd filed Critical Qingdao Economic And Technology Development District Haier Water Heater Co ltd
Priority to CN202110675507.7A priority Critical patent/CN113542079B/en
Publication of CN113542079A publication Critical patent/CN113542079A/en
Application granted granted Critical
Publication of CN113542079B publication Critical patent/CN113542079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/52Testing for short-circuits, leakage current or ground faults
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/56Testing of electric apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

本发明属于智能设备技术领域,具体涉及一种防电墙设备控制方法、装置、电子设备及存储介质。本发明旨在解决现有防电墙设备防漏电效果差、安全性差的问题。通过在检测到漏电信号时,获取候选设备标识,候选设备标识表征与电子设备处于同一局域网下的智能设备的设备标识;根据预设的安全配置信息,确定候选设备标识中的目标设备标识,并与目标家电设备建立安全连接,其中,目标家电设备为目标设备标识对应的智能设备;依次向各目标家电设备发送控制信号,以依次对应关闭各目标家电设备,直至不再检测到漏电信号。由于目标设备标识指示了可能导致漏电事故的智能设备,基于目标设备标识控制智能设备依次关闭,提高漏电保护效果和响应速度。

Figure 202110675507

The invention belongs to the technical field of intelligent equipment, and in particular relates to a control method, device, electronic equipment and storage medium for electric wall equipment. The invention aims to solve the problems of poor anti-leakage effect and poor safety of the existing electric protection wall equipment. By obtaining the candidate device identifier when the leakage signal is detected, the candidate device identifier represents the device identifier of the smart device under the same local area network as the electronic device; according to the preset security configuration information, determine the target device identifier in the candidate device identifier, and Establish a secure connection with the target home appliance, wherein the target home appliance is a smart device corresponding to the target device identifier; send control signals to each target home appliance in turn, so as to turn off each target home appliance in turn until no leakage signal is detected. Since the target device ID indicates the smart device that may cause leakage accidents, the smart devices are controlled to be turned off sequentially based on the target device ID, improving the leakage protection effect and response speed.

Figure 202110675507

Description

防电墙设备控制方法、装置、电子设备及存储介质Anti-power wall equipment control method, device, electronic equipment and storage medium

技术领域technical field

本发明属于智能家电技术领域,具体涉及一种防电墙设备控制方法、装置、电子设备及存储介质。The invention belongs to the technical field of smart home appliances, and in particular relates to a control method, device, electronic equipment and storage medium for an anti-electric wall equipment.

背景技术Background technique

目前,随着家庭内全时开启的用电设备数量的增加,家电设备的用电安全越来越受到重视。为了防止发生漏电事故,部分家用电器内设置有防电墙设备,当检测到该家用电器发生漏电时,自动断开供电。At present, with the increase in the number of electrical equipment that is turned on all the time in the family, the safety of electrical equipment for household appliances has received more and more attention. In order to prevent electric leakage accidents, some household appliances are equipped with anti-electricity wall equipment, and when the electric leakage of the household appliances is detected, the power supply will be automatically disconnected.

然而,现有技术中的防电墙设备,仅能对其所在的家电设备,或者其所直接连接的家电设备,进行漏电检测和漏电保护,而无法对室内的其他家电设备进行断电保护,因此造成了防漏电效果差、安全性差的问题。However, the anti-electric wall equipment in the prior art can only perform leakage detection and leakage protection for the household appliances where it is located or the household appliances directly connected to it, but cannot perform power-off protection for other household appliances in the room. Therefore, the problems of poor anti-leakage effect and poor safety are caused.

相应地,本领域需要一种新的防电墙设备控制方法来解决上述问题。Correspondingly, there is a need in the art for a new control method for electric wall equipment to solve the above problems.

发明内容Contents of the invention

为了解决现有技术中的上述问题,即为了解决现有防电墙设备无法对室内的其他家电设备进行断电保护的问题,本发明提供了一种防电墙设备控制方法、装置、电子设备及存储介质。In order to solve the above-mentioned problems in the prior art, that is, to solve the problem that the existing anti-electric wall equipment cannot provide power-off protection for other household appliances in the room, the present invention provides a control method, device and electronic equipment for anti-electric wall equipment and storage media.

根据本发明实施例的第一方面,本发明提供了一种防电墙设备控制方法,应用于防电墙设备,所述方法包括:According to the first aspect of the embodiments of the present invention, the present invention provides a method for controlling electric wall equipment, which is applied to electric wall equipment, and the method includes:

在检测到漏电信号时,获取候选设备标识,所述候选设备标识表征与所述电子设备处于同一局域网下的智能设备的设备标识;根据预设的安全配置信息,确定所述候选设备标识中的目标设备标识,并与目标家电设备建立安全连接,其中,所述目标家电设备为所述目标设备标识对应的智能设备;依次向各所述目标家电设备发送控制信号,以依次对应关闭各所述目标家电设备,直至不再检测到所述漏电信号。When an electric leakage signal is detected, a candidate device identifier is obtained, and the candidate device identifier represents the device identifier of a smart device under the same local area network as the electronic device; according to preset security configuration information, determine the candidate device identifier identify the target device, and establish a secure connection with the target household electrical appliance, wherein the target household electrical appliance is a smart device corresponding to the target device identifier; and send control signals to each of the target household electrical appliances in order to correspondingly close each of the target household electrical appliances until the leakage signal is no longer detected.

在上述防电墙设备控制方法的优选技术方案中,所述安全配置信息中包括标识信息和对应的设备连接密钥,所述标识信息用于指示所述目标设备标识,所述设备连接密钥为所述防电墙设备与所述目标家电设备建立基于局域网的安全连接的加密参数;所述与目标家电设备建立安全连接,包括:根据所述标识信息和对应的设备连接密钥,与所述目标设备标识对应的智能设备建立安全连接。In the preferred technical solution of the above-mentioned firewall device control method, the security configuration information includes identification information and a corresponding device connection key, the identification information is used to indicate the target device identification, and the device connection key Establishing encryption parameters for a LAN-based secure connection between the firewall device and the target home appliance; establishing a secure connection with the target home appliance includes: connecting with the target appliance according to the identification information and the corresponding device connection key Establish a secure connection with the smart device corresponding to the target device identifier.

在上述防电墙设备控制方法的优选技术方案中,所述防电墙设备与云服务器通信连接,所述方法还包括:通过所述云服务器,获取动态的安全配置信息,所述动态的安全配置信息中包括标识信息和对应的动态的设备连接密钥。In the preferred technical solution of the above-mentioned control method for electric wall equipment, the electric wall equipment communicates with a cloud server, and the method further includes: obtaining dynamic security configuration information through the cloud server, and the dynamic security configuration information The configuration information includes identification information and a corresponding dynamic device connection key.

在上述防电墙设备控制方法的优选技术方案中,所述目标家电设备包括电源控制接口,所述电源控制接口用于关闭所述智能设备;依次向各所述目标家电设备发送控制信号,以依次对应关闭各所述目标家电设备,包括:通过与各所述目标家电设备的建立的安全连接,依次向各所述目标家电设备的电源控制接口发送控制信号,以依次关闭各对应的目标家电设备。In the preferred technical solution of the above-mentioned control method for electric wall equipment, the target household electrical appliances include a power control interface, and the power control interface is used to shut down the smart device; and send control signals to each of the target household electrical appliances in order to Correspondingly shutting down each of the target home appliances in turn, comprising: sequentially sending control signals to the power control interfaces of each of the target home appliances through the established secure connection with each of the target home appliances, so as to turn off the corresponding target home appliances in turn equipment.

在上述防电墙设备控制方法的优选技术方案中,所述方法还包括:确定各所述目标家电设备的安全连接状态,所述安全连接状态用于表征所述防电墙设备与目标家电设备之间是否成功建立安全连接;所述通过与各所述目标家电设备的建立的安全连接,依次向各所述目标家电设备的电源控制接口发送控制信号,包括:根据各目标家电设备的安全连接状态,在确定与目标家电设备成功建立安全连接后,向成功建立安全连接的目标家电设备的电源控制接口发送控制信号。In the preferred technical solution of the above method for controlling electric wall equipment, the method further includes: determining the secure connection state of each of the target household electrical appliances, and the secure connection state is used to represent the electric wall equipment and the target household electrical appliances Whether the secure connection is successfully established between them; the said through the established secure connection with each of the target household appliances, sending control signals to the power control interface of each of the target household appliances in turn, including: according to the secure connection of each target household appliance state, after it is determined that the secure connection with the target household electrical appliance is successfully established, a control signal is sent to the power control interface of the target household electrical appliance that successfully establishes the secure connection.

在上述防电墙设备控制方法的优选技术方案中,在检测到漏电信号之前,所述方法还包括:扫描与所述防电墙设备处于同一局域网下的智能设备的设备标识;根据与所述防电墙设备处于同一局域网下的智能设备的设备标识,以及预设的安全配置信息,确定关键家电设备,并与所述关键家电设备建立前置安全连接,其中,所述安全配置信息用于指示关键家电设备的设备标识;所述与所述目标设备标识对应的智能设备建立安全连接,包括:若所述目标设备标识对应的智能设备为关键家电设备,则将所述前置安全连接作为所述防电墙设备与所述目标设备标识的安全连接。In the preferred technical solution of the above-mentioned anti-electric wall device control method, before detecting the leakage signal, the method further includes: scanning the device identification of the smart device under the same local area network as the anti-electric wall device; The device identification of the smart device under the same local area network as the anti-electric wall device, and the preset security configuration information, determine the key home appliances, and establish a pre-secure connection with the key home appliances, wherein the security configuration information is used for Indicating the device identifier of the key household appliance; establishing a secure connection with the smart device corresponding to the target device identifier includes: if the smart device corresponding to the target device identifier is a key household appliance, using the pre-secure connection as A secure connection between the firewall device and the target device identifier.

在上述防电墙设备控制方法的优选技术方案中,所述目标家电设备包括第一家电设备,所述方法还包括:在依次向各所述目标家电设备发送控制信号的过程中,若在向所述第一家电设备发送控制信号后,若仍检测到漏电信息,则重新启动所述第一家电设备。In the preferred technical solution of the above-mentioned method for controlling electric protection wall equipment, the target household electrical appliances include the first household electrical appliances, and the method further includes: in the process of sequentially sending control signals to each of the target household electrical appliances, if After the first household electrical appliance sends the control signal, if the leakage information is still detected, restart the first household electrical appliance.

根据本发明实施例的第二方面,本发明提供了一种防电墙设备控制装置,包括:According to the second aspect of the embodiments of the present invention, the present invention provides a control device for electric wall equipment, including:

检测模块,用于在检测到漏电信号时,获取候选设备标识,所述候选设备标识表征与所述防电墙设备处于同一局域网下的智能设备的设备标识;A detection module, configured to acquire a candidate device ID when an electric leakage signal is detected, where the candidate device ID represents the device ID of an intelligent device under the same local area network as the firewall device;

连接模块,用于根据预设的安全配置信息,确定所述候选设备标识中的目标设备标识,并与目标家电设备建立安全连接,其中,所述目标家电设备为所述目标设备标识对应的智能设备;A connection module, configured to determine a target device ID among the candidate device IDs according to preset security configuration information, and establish a secure connection with the target home appliance, wherein the target home appliance is a smart phone corresponding to the target device ID. equipment;

控制模块,依次向各所述目标家电设备发送控制信号,以依次对应关闭各所述目标家电设备,直至不再检测到所述漏电信号。The control module sequentially sends control signals to each of the target household electrical appliances, so as to sequentially and correspondingly shut down each of the target household electrical appliances until the leakage signal is no longer detected.

在上述防电墙设备控制装置的优选技术方案中,所述安全配置信息中包括标识信息和对应的设备连接密钥,所述标识信息用于指示所述目标设备标识,所述设备连接密钥为所述防电墙设备与所述目标家电设备建立基于局域网的安全连接的加密参数;所述连接模块在与目标家电设备建立安全连接时,具体用于:根据所述标识信息和对应的设备连接密钥,与所述目标设备标识对应的智能设备建立安全连接。In the preferred technical solution of the above-mentioned device control device for electric protection wall, the security configuration information includes identification information and a corresponding device connection key, the identification information is used to indicate the target device identification, and the device connection key An encryption parameter for establishing a LAN-based secure connection between the anti-power wall device and the target household electrical appliance; when the connection module establishes a secure connection with the target household electrical appliance, it is specifically configured to: according to the identification information and the corresponding device The connection key is used to establish a secure connection with the smart device corresponding to the target device identifier.

在上述防电墙设备控制装置的优选技术方案中,所述防电墙设备与云服务器通信连接,所述连接模块,还用于:通过所述云服务器,获取动态的安全配置信息,所述动态的安全配置信息中包括标识信息和对应的动态的设备连接密钥。In the preferred technical solution of the above-mentioned anti-electric wall device control device, the anti-electric wall device is connected to the cloud server through communication, and the connection module is also used to: obtain dynamic security configuration information through the cloud server, and the The dynamic security configuration information includes identification information and a corresponding dynamic device connection key.

在上述防电墙设备控制装置的优选技术方案中,所述目标家电设备包括电源控制接口,所述电源控制接口用于关闭所述智能设备;所述控制模块在依次向各所述目标家电设备发送控制信号,以依次对应关闭各所述目标家电设备时,具体用于:通过与各所述目标家电设备的建立的安全连接,依次向各所述目标家电设备的电源控制接口发送控制信号,以依次关闭各对应的目标家电设备。In the preferred technical solution of the above-mentioned device control device for electric protection wall, the target household electrical appliance includes a power control interface, and the power control interface is used to shut down the smart device; When sending control signals to correspondingly shut down each of the target household appliances in turn, it is specifically used to: send control signals to the power control interfaces of each of the target household appliances in sequence through the established secure connection with each of the target household appliances, to turn off the corresponding target household electrical appliances in turn.

在上述防电墙设备控制装置的优选技术方案中,所述连接模块,还用于:确定各所述目标家电设备的安全连接状态,所述安全连接状态用于表征所述防电墙设备与目标家电设备之间是否成功建立安全连接;所述控制模块在通过与各所述目标家电设备的建立的安全连接,依次向各所述目标家电设备的电源控制接口发送控制信号时,具体用于:根据各目标家电设备的安全连接状态,在确定与目标家电设备成功建立安全连接后,向成功建立安全连接的目标家电设备的电源控制接口发送控制信号。In the preferred technical solution of the above-mentioned anti-electric wall equipment control device, the connection module is also used to: determine the safe connection status of each of the target household appliances, and the safe connection status is used to represent the connection between the anti-electric wall equipment and Whether the secure connection between the target household appliances is successfully established; when the control module sequentially sends control signals to the power control interfaces of the target household appliances through the established secure connection with each of the target household appliances, specifically for : According to the security connection status of each target home appliance, after it is determined that the security connection is successfully established with the target home appliance, a control signal is sent to the power control interface of the target home appliance that has successfully established the security connection.

在上述防电墙设备控制装置的优选技术方案中,在检测到漏电信号之前,所述检测模块,还用于:扫描与所述防电墙设备处于同一局域网下的智能设备的设备标识;所述连接模块,还用于:根据与所述防电墙设备处于同一局域网下的智能设备的设备标识,以及预设的安全配置信息,确定关键家电设备,并与所述关键家电设备建立前置安全连接,其中,所述安全配置信息用于指示关键家电设备的设备标识;控制模块在与所述目标设备标识对应的智能设备建立安全连接时,具体用于:若所述目标设备标识对应的智能设备为关键家电设备,则将所述前置安全连接作为所述防电墙设备与所述目标设备标识的安全连接。In the preferred technical solution of the above-mentioned anti-electric wall equipment control device, before detecting the leakage signal, the detection module is also used to: scan the equipment identification of the smart device under the same local area network as the anti-electric wall equipment; The above connection module is also used for: according to the device identification of the smart device under the same local area network as the anti-power wall device, and the preset security configuration information, determine the key household electrical equipment, and establish a front-end with the key household electrical equipment Secure connection, wherein the security configuration information is used to indicate the device identifier of the key household appliance; when the control module establishes a secure connection with the smart device corresponding to the target device identifier, it is specifically used to: if the target device identifier corresponds to If the smart device is a key household appliance, the pre-secure connection is used as a secure connection between the firewall device and the target device identification.

在上述防电墙设备控制装置的优选技术方案中,所述目标家电设备包括第一家电设备,所述控制模块,还用于:在依次向各所述目标家电设备发送控制信号的过程中,若在向所述第一家电设备发送控制信号后,若仍检测到漏电信息,则重新启动所述第一家电设备。In the preferred technical solution of the above-mentioned control device for electric protection wall equipment, the target household electrical appliances include a first household electrical appliance, and the control module is further configured to: in the process of sequentially sending control signals to each of the target household electrical appliances, If the electric leakage information is still detected after sending the control signal to the first household electrical appliance, restart the first household electrical appliance.

根据本发明实施例的第三方面,本发明提供了一种电子设备,包括:存储器,处理器以及计算机程序;其中,所述计算机程序存储在所述存储器中,并被配置为由所述处理器执行如本发明实施例第一方面任一项所述的防电墙设备控制方法。According to a third aspect of the embodiments of the present invention, the present invention provides an electronic device, including: a memory, a processor, and a computer program; wherein, the computer program is stored in the memory and is configured to be processed by the processor The device executes the control method of the anti-electric wall device according to any one of the first aspect of the embodiment of the present invention.

上述电子设备的优选技术方案中,所述电子设备为防电墙设备。In a preferred technical solution of the above electronic device, the electronic device is an anti-electric wall device.

根据本发明实施例的第四方面,本发明提供了一种智能热水器,所述智能热水器包括如本发明实施例第三方面所述的电子设备。According to a fourth aspect of the embodiments of the present invention, the present invention provides an intelligent water heater, and the intelligent water heater includes the electronic device described in the third aspect of the embodiments of the present invention.

根据本发明实施例的第五方面,本发明提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如本发明实施例第一方面任一项所述的防电墙设备控制方法。According to a fifth aspect of the embodiments of the present invention, the present invention provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-executable instructions are used to implement the following: The method for controlling electric wall equipment described in any one of the first aspects of the embodiments of the present invention.

根据本发明实施例的第六方面,本发明提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行如本发明实施例第一方面任一项所述的防电墙设备控制方法。According to the sixth aspect of the embodiments of the present invention, the present invention provides a computer program product, including a computer program, the computer program is controlled by a processor executing the firewall device described in any one of the first aspects of the embodiments of the present invention method.

本领域技术人员能够理解的是,本发明提供的防电墙设备控制方法、装置、电子设备及存储介质,通过在检测到漏电信号时,获取候选设备标识,所述候选设备标识表征与所述电子设备处于同一局域网下的智能设备的设备标识;根据预设的安全配置信息,确定所述候选设备标识中的目标设备标识,并与目标家电设备建立安全连接,其中,所述目标家电设备为所述目标设备标识对应的智能设备;依次向各所述目标家电设备发送控制信号,以依次对应关闭各所述目标家电设备,直至不再检测到所述漏电信号。由于通过安全配置信息,在局域网环境下确定的目标设备标识,指示了可能导致漏电事故的室内智能设备,基于该目标设备标识建立安全连接并控制对应的智能设备依次关闭,从而实现对漏电设备的定向关闭,提高漏电保护效果和响应速度,提高家电产品的使用安全性。Those skilled in the art can understand that, the anti-electric wall equipment control method, device, electronic equipment, and storage medium provided by the present invention obtain candidate equipment identifiers when a leakage signal is detected, and the candidate equipment identifiers represent the The device identification of the smart device whose electronic device is in the same local area network; according to the preset security configuration information, determine the target device identification in the candidate device identification, and establish a secure connection with the target home appliance, wherein the target home appliance is The target device identifies the corresponding smart device; and sequentially sends control signals to each of the target household electrical appliances, so as to sequentially and correspondingly shut down each of the target household electrical appliances until the leakage signal is no longer detected. Due to the security configuration information, the target device identification determined in the local area network environment indicates the indoor smart device that may cause leakage accidents. Based on the target device identification, a secure connection is established and the corresponding smart devices are controlled to shut down in turn, so as to realize the protection of the leakage device. Directional shutdown improves the leakage protection effect and response speed, and improves the safety of home appliances.

附图说明Description of drawings

下面参照附图来描述本发明的防电墙设备控制方法、装置、电子设备的优选实施方式。附图为:Preferred embodiments of the control method, device and electronic equipment of the electric wall equipment of the present invention will be described below with reference to the accompanying drawings. Attached are:

图1为本发明实施例提供的防电墙设备控制方法的一种应用场景图;FIG. 1 is an application scene diagram of a method for controlling an electric wall device provided by an embodiment of the present invention;

图2为本发明一个实施例提供的防电墙设备控制方法的流程图;FIG. 2 is a flowchart of a method for controlling an electric wall device provided by an embodiment of the present invention;

图3为本发明实施例提供的一种依次关闭目标家电设备的过程示意图;FIG. 3 is a schematic diagram of a process of sequentially shutting down target household electrical appliances according to an embodiment of the present invention;

图4为本发明另一个实施例提供的防电墙设备控制方法的流程图;FIG. 4 is a flow chart of a method for controlling an electric wall device provided by another embodiment of the present invention;

图5为本发明实施例提供的一种防电墙设备在检测到漏电信号时对关键家电设备进行断电控制的示意图;FIG. 5 is a schematic diagram of a power-off control for key household electrical appliances when a power protection wall device detects a leakage signal provided by an embodiment of the present invention;

图6为本发明一个实施例提供的防电墙设备控制装置的结构示意图;Fig. 6 is a schematic structural diagram of a control device for electric wall equipment provided by an embodiment of the present invention;

图7为本发明一个实施例提供的电子设备的示意图。Fig. 7 is a schematic diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

首先,本领域技术人员应当理解的是,这些实施方式仅仅用于解释本发明的技术原理,并非旨在限制本发明的保护范围。本领域技术人员可以根据需要对其作出调整,以便适应具体的应用场合。First of all, those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present invention, and are not intended to limit the protection scope of the present invention. Those skilled in the art can make adjustments as needed so as to adapt to specific applications.

此外,还需要说明的是,在本发明的描述中,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个构件内部的连通。对于本领域技术人员而言,可根据具体情况理解上述术语在本发明中的具体含义。In addition, it should be noted that, in the description of the present invention, unless otherwise specified and limited, the terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components. Those skilled in the art can understand the specific meanings of the above terms in the present invention according to specific situations.

首先对本发明所涉及的名词进行解释:At first the terms involved in the present invention are explained:

1)智能家电设备,是指将微处理器、传感器技术、网络通信技术引入家电设备后形成的家电产品,具有智能控制、智能感知及智能应用的特征,智能家电设备的运作过程往往依赖于物联网、互联网以及电子芯片等现代技术的应用和处理,例如智能家电设备可以通过连接电子设备,实现用户对智能家电设备的远程控制和管理。1) Smart home appliances refer to home appliances formed by introducing microprocessor, sensor technology, and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent perception and intelligent applications. The operation process of smart home appliances often depends on The application and processing of modern technologies such as networking, the Internet, and electronic chips. For example, smart home appliances can be connected to electronic devices to realize remote control and management of smart home appliances by users.

2)终端设备,指具有无线连接功能的电子设备,终端设备可以通过连接互联网,与如上的智能家电设备进行通信连接,也可以直接通过蓝牙、wifi等方式与如上的智能家电设备进行通信连接。在一些实施例中,终端设备例如为移动设备、电脑、或悬浮车中内置的车载设备等,或其任意组合。移动设备例如可以包括手机、智能家居设备、可穿戴设备、智能移动设备、虚拟现实设备等,或其任意组合,其中,可穿戴设备例如包括:智能手表、智能手环、计步器等。2) Terminal equipment refers to electronic equipment with wireless connection functions. The terminal equipment can communicate with the above-mentioned smart home appliances by connecting to the Internet, or directly communicate with the above-mentioned smart home appliances through Bluetooth, wifi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or a vehicle-mounted device built into a hover vehicle, or any combination thereof. The mobile device may include, for example, a mobile phone, a smart home device, a wearable device, a smart mobile device, a virtual reality device, etc., or any combination thereof, wherein the wearable device includes, for example, a smart watch, a smart bracelet, a pedometer, and the like.

3)“多个”是指两个或两个以上,其它量词与之类似。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。3) "Multiple" refers to two or more than two, and other quantifiers are similar. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.

4)“对应”可以指的是一种关联关系或绑定关系,A与B相对应指的是A与B之间是一种关联关系或绑定关系。4) "Correspondence" may refer to an association relationship or a binding relationship, and the correspondence between A and B means that there is an association relationship or binding relationship between A and B.

下面对本发明实施例的应用场景进行解释:The application scenarios of the embodiments of the present invention are explained below:

图1为本发明实施例提供的防电墙设备控制方法的一种应用场景图,本发明实施例提供的防电墙设备控制方法可以应用于室内漏电保护的应用场景下,示例性地,本发明实施例提供的防电墙设备控制方法的执行主体可以为电子设备,更具体地,例如为防电墙设备,防电墙设备可以是独立的电子设备,例如智能插座;也可以为设置在智能家电设备内的电子设备,例如设置在热水器内的防电墙模块。本实施例中,以智能插座为本发明实施例提供的防电墙设备控制方法的执行主体进行说明。如图1所示,智能插座的电源接头插接在室内电源上,室内电源与供电线路电连接;智能插座上插接有智能热水器的电源适配器,智能插座在开启状态时,导通室内电源与智能热水器之间的电连接,以使智能热水器得到供电。同时,室内还安装有智能洗衣机、智能冰箱等智能家电设备,智能洗衣机、智能冰箱通过连接其他室内电源得到供电。Fig. 1 is an application scene diagram of the control method of the anti-electric wall device provided by the embodiment of the present invention. The control method of the anti-electric wall device provided by the embodiment of the present invention can be applied to the application scene of indoor leakage protection. Exemplarily, this The execution body of the anti-electric wall device control method provided by the embodiment of the invention may be an electronic device, more specifically, for example, an anti-electric wall device, and the anti-electric wall device may be an independent electronic device, such as a smart socket; Electronic devices in smart home appliances, such as anti-electric wall modules installed in water heaters. In this embodiment, the smart socket is used as the execution subject of the method for controlling the electric wall device provided by the embodiment of the present invention for description. As shown in Figure 1, the power connector of the smart socket is plugged into the indoor power supply, and the indoor power supply is electrically connected to the power supply line; the power adapter of the smart water heater is plugged into the smart socket, and when the smart socket is turned on, the indoor power supply and the power supply are connected. The electrical connection between the smart water heaters so that the smart water heaters are powered. At the same time, smart home appliances such as smart washing machines and smart refrigerators are installed indoors, and the smart washing machines and smart refrigerators are powered by connecting to other indoor power sources.

在如图1所示的用电场景下,当室内的智能家电设备发生漏电时,一般表现为地线带电,一台家电设备的漏电会使整个用电线路的地线带电,从而使整条用电线路上面的家用电器都存在漏电隐患,严重危害人身安全。现有技术中,例如智能插座等带有防漏电功能的防电墙设备,当检测到漏电信号时,通常的处理方案是断开部分或全部插接口的供电。而此时,若漏电设备不与防电墙设备直接插接,则即使断开全部插接口的供电,仍然无法消除漏电现象,无法起到屋内多种家电设备的漏电保护,影响用户的用电安全,因此,必须为所有家电设备配套防电墙设备,才能杜绝漏电风险,然而,同时会提高家电设备的生成、使用和维护成本。In the power consumption scenario shown in Figure 1, when a leakage occurs in an indoor smart home appliance, it generally appears as a ground wire electrification. Household appliances on the power lines all have hidden dangers of leakage, which seriously endanger personal safety. In the prior art, for example, smart sockets and other anti-electric wall equipment with anti-leakage function, when an electric leakage signal is detected, the usual solution is to cut off the power supply of some or all of the sockets. At this time, if the leakage device is not directly plugged into the anti-electric wall equipment, even if the power supply of all the sockets is cut off, the leakage phenomenon cannot be eliminated, and the leakage protection of various household appliances in the house cannot be achieved, which will affect the power consumption of users. Safety, therefore, all household appliances must be equipped with anti-electricity wall equipment to eliminate the risk of leakage. However, at the same time, it will increase the cost of generation, use and maintenance of household appliances.

在另一种相关的技术方案中,例如智能插座等带有防漏电功能的防电墙设备,当检测到漏电信号时,将漏电信号上传至云服务器,并云服务器一侧对漏电信号进行分析,从而对同一账号下的绑定的智能家电设备进行断电控制,实现漏电保护。然而,在该技术方案中,由于负责对智能家电设备进行断电控制的设备为云服务器,而云服务器需要良好的网络状态支持,才能保证对智能家电设备的漏电事故及时响应,因此,存在对设备漏电事故响应不及时的问题,影响设备的使用安全性。In another related technical solution, for example, smart sockets and other anti-electricity wall equipment with anti-leakage function, when the leakage signal is detected, the leakage signal is uploaded to the cloud server, and the leakage signal is analyzed on the cloud server side , so as to control the power-off of the bound smart home appliances under the same account to realize leakage protection. However, in this technical solution, because the device responsible for power-off control of smart home appliances is a cloud server, and the cloud server needs good network status support to ensure timely response to power leakage accidents of smart home appliances. The problem of untimely response to equipment leakage accidents affects the safety of equipment use.

因此,当前亟需一种防电墙设备控制方法,能够在无网络支持的情况下,在局域网内完成对屋内多个家电设备的漏电保护。Therefore, there is an urgent need for a method for controlling electric wall equipment, which can complete leakage protection for multiple home appliances in a house in a local area network without network support.

下面以具体地实施例对本发明的技术方案以及本发明的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本发明的实施例进行描述。The technical solution of the present invention and how the technical solution of the present invention solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.

图2为本发明一个实施例提供的防电墙设备控制方法的流程图,应用于防电墙设备,如图2所示,本实施例提供的防电墙设备控制方法包括以下几个步骤:Fig. 2 is a flow chart of a method for controlling an anti-electric wall device provided by an embodiment of the present invention, which is applied to an anti-electric wall device. As shown in Fig. 2, the method for controlling an anti-electric wall device provided by this embodiment includes the following steps:

步骤S101,在检测到漏电信号时,获取候选设备标识,候选设备标识表征与防电墙设备处于同一局域网下的智能设备的设备标识。Step S101 , when an electric leakage signal is detected, a candidate device ID is obtained, where the candidate device ID represents the device ID of an intelligent device under the same local area network as the firewall device.

示例性地,防电墙设备例如为智能插座,防电墙设备与室内电源连接,并能够检测地线是否带电,从而确定室内的家用电器是否发生漏电。其中,具体地,漏电信号可以根据防电墙设备检测到的地线电压生成,例如,当地线电压大于预设阈值时,即生成漏电信息,也即,检测到漏电信号。Exemplarily, the anti-electric wall equipment is, for example, a smart socket, and the anti-electric wall equipment is connected to the indoor power supply, and can detect whether the ground wire is electrified, so as to determine whether electric leakage occurs in the indoor household appliances. Specifically, the leakage signal may be generated according to the ground voltage detected by the firewall device, for example, when the ground voltage is greater than a preset threshold, the leakage information is generated, that is, the leakage signal is detected.

进一步地,防电墙设备具有通信功能,能够加入、组建局域网络,在一种可能实现方式中,智能设备为具有网络通信功能的电子设备,防电墙设备和其他智能设备加入由其他网络设备,例如由路由器,组建的局域网,防电墙设备和其他智能设备处于一个相同的局域网内。其中,局域网的组建和连接,可以通过防电墙设备和其他智能设备内设的网卡、蓝牙芯片等无线通信模块实现,具体的组建和加入局域网的技术为现有技术,此次不进行一一赘述。Furthermore, the anti-electric wall equipment has a communication function, and can join and form a local area network. In one possible implementation, the smart device is an electronic device with a network communication function, and the anti-electric wall equipment and other smart devices are joined by other network devices. , such as a local area network formed by routers, anti-electric wall equipment and other intelligent devices are in the same local area network. Among them, the establishment and connection of the local area network can be realized through wireless communication modules such as network cards and bluetooth chips built in the anti-electric wall equipment and other smart devices. repeat.

其中,候选设备标识是与防电墙设备处于同一局域网下的智能设备的设备标识,具体地,设备标识可以是智能设备的机器序列号、物理地址等能够用于对不同智能设备进行区分的唯一标识码,通过对局域网内的注册的智能设备的设备标识进行检测,可以获取候选设备标识。其中,检测局域网内注册的设备的设备标识的方法,为本领域技术人员知晓的现有技术,此次不再赘述。Wherein, the candidate device identifier is the device identifier of the smart device under the same local area network as the firewall device. Specifically, the device identifier may be the machine serial number, physical address, etc. of the smart device that can be used to distinguish different smart devices. The identification code can obtain candidate device identifications by detecting the device identifications of the registered smart devices in the local area network. Wherein, the method for detecting the device identifier of the device registered in the local area network is a prior art known to those skilled in the art, and will not be repeated here.

步骤S102,根据预设的安全配置信息,确定候选设备标识中的目标设备标识,并与目标家电设备建立安全连接,其中,目标家电设备为目标设备标识对应的智能设备。Step S102, according to preset security configuration information, determine a target device ID among candidate device IDs, and establish a secure connection with the target home appliance, wherein the target home appliance is a smart device corresponding to the target device ID.

示例性地,安全配置信息是预设在防电墙设备内的配置信息,安全配置信息用于指示漏电检测的目标,更具体地,对于同一局域网下的智能设备,一部分为具有漏电风险的家用电器,例如电冰箱、热水器等,另一部分为使用低压直流电,无漏电风险的终端设备,例如智能手机、平板电脑。根据安全配置信息,确定具有漏电风险的家用电器对应的设备标识,即为目标设备标识。Exemplarily, the security configuration information is the configuration information preset in the firewall device, and the security configuration information is used to indicate the target of leakage detection, more specifically, for smart devices under the same local area network, some of them are household appliances with leakage risk Electrical appliances, such as refrigerators, water heaters, etc., and the other part is terminal equipment that uses low-voltage direct current and has no risk of leakage, such as smart phones and tablet computers. According to the security configuration information, determine the device identification corresponding to the household appliance with the leakage risk, which is the target device identification.

其中,在一种可能的实现方式中,安全配置信息中包括标识信息,标识信息用于指示目标设备标识。安全配置信息可以是通过访问云服务器而提前获得并存储在防电墙设备内部的。安全配置信息也可以是用户自定义输入的,此次不再进行一一举例。Wherein, in a possible implementation manner, the security configuration information includes identification information, and the identification information is used to indicate the identity of the target device. The security configuration information may be obtained in advance by accessing the cloud server and stored inside the firewall device. The security configuration information may also be user-defined input, and no more examples will be given this time.

进一步地,在确定候选设备标识中的目标设备标识后,通过局域网对应的网络通信协议,与目标设备标识对应的目标家电设备建立安全连接,以使防电墙设备能够对目标家电设备进行控制。此处,需要说明的是,防电墙设备与目标家电设备之间建立的安全连接,是指目标家电设备对防电墙设备进行安全验证,并给与防电墙设备例如开启、关闭目标家电设备的高级控制权限的过程。与通过云服务(云端)对家电设备进行开启、关闭控制的方案不同,由于云服务器在连接家电设备时,已通过例如APP绑定家电设备等方式,对云服务器进行了授权,能够保证控制过程的安全性。然而,本实施例提供的防电墙设备控制方法是应用于局域网的,由于候选家电设备是防电墙设备在局域网内扫描后发现的,无法保证防电墙设备与候选家电设备之间的连接安全性。因此,需要基于安全配置信息,进行防电墙设备与候选家电设备之间的相互的授权验证后,再给你防电墙设备控制目标家电设备的高级控制权限,即安全连接。Further, after determining the target device ID among the candidate device IDs, a secure connection is established with the target household electrical appliance corresponding to the target device ID through the network communication protocol corresponding to the local area network, so that the firewall device can control the target household electrical appliance. Here, it should be noted that the secure connection established between the anti-electric wall device and the target home appliance means that the target home appliance performs security verification on the anti-electric wall device, and gives the anti-electric wall device such as turning on and off the target home appliance. The process of advanced control permissions of the device. Different from the scheme of turning on and off the home appliances through the cloud service (cloud), because the cloud server has authorized the cloud server through the way of binding the home appliances with the APP when connecting the home appliances, it can guarantee the control process. security. However, the anti-electric wall device control method provided in this embodiment is applied to a local area network. Since the candidate home appliance is discovered after the anti-electric wall device is scanned in the local area network, the connection between the anti-electric wall device and the candidate home appliance cannot be guaranteed. safety. Therefore, based on the security configuration information, you need to perform mutual authorization verification between the anti-wall device and the candidate home appliance, and then give you the high-level control authority of the anti-wall device to control the target home appliance, that is, secure connection.

进一步地,本实施例提供的方法,在检测到漏电信号后,再与涉及的家电设备建立安全连接的原因,是由于与云服务器(云端)控制室内家电设备的方案不同,防电墙设备的整体计算能力、数据处理能力是远低于云服务器的计算能力和数据处理能力的,在此前提下,出于家电设备安全性方面的考虑,通常在局域网下,目标家电设备与防电墙设备建立安全连接,即目标家电设备给与防电墙设备的高级控制权限,是有时间限制的,因此要求防电墙设备不断与多个目标家电设备发送请求和数据,才能保证防电墙设备与多个目标家电设备之间始终保持安全连接状态,而该方案会导致防电墙设备计算资源的高负荷以及设备发热等问题,降低防电墙设备的稳定性、使用寿命,并占用局域网内的网络资源,影响防电墙设备的整体防电性能表现。而本实施例中的方案,在检测到漏电信号后,再进行安全连接,相当于防电墙设备按需与目标家电设备进行安全连接,并能够通过依次连接的单线程处理方案,进一步降低防电墙设备的计算资源需求,避免上述防电墙设备高负荷以及设备发热等问题,提高降低防电墙设备的稳定性。Furthermore, the reason why the method provided in this embodiment establishes a secure connection with the involved home appliances after detecting the leakage signal is that the solution of the cloud server (cloud) to control the indoor home appliances is different. The overall computing power and data processing power are far lower than those of the cloud server. On this premise, for the sake of the safety of home appliances, usually in the local area network, the target home appliances and anti-electric wall equipment The establishment of a secure connection, that is, the high-level control authority given by the target home appliance to the firewall device, is time-limited. Therefore, the firewall device is required to continuously send requests and data with multiple target home appliances to ensure that the firewall device and Multiple target home appliances are always in a secure connection state, and this solution will cause high loads on the computing resources of the anti-electric wall equipment and problems such as device heating, reduce the stability and service life of the anti-electric wall equipment, and occupy the network resources in the local area network. Network resources affect the overall anti-electricity performance of the anti-electricity wall equipment. However, the solution in this embodiment, after detecting the leakage signal, performs a safe connection, which is equivalent to making a safe connection between the anti-electric wall device and the target home appliance device on demand, and can further reduce the risk of protection by using a single-threaded processing solution connected sequentially. The computing resource requirements of the electric wall equipment can avoid the above-mentioned problems such as the high load of the electric wall equipment and the heating of the equipment, and improve and reduce the stability of the electric wall equipment.

步骤S103,依次向各目标家电设备发送控制信号,以依次对应关闭各目标家电设备,直至不再检测到漏电信号。Step S103 , sending control signals to each target household electrical appliance in sequence, so as to sequentially and correspondingly shut down each target household electrical appliance until no electric leakage signal is detected any more.

进一步地,在本实施例提供的应用场景中,目标家电设备的数量至少为两个。在确定至少两个目标家电设备后,依次关闭上述至少两个家电设备,同时作为防电墙设备的基本功能,防电墙设备会实时检测漏电信号,在不断依次关闭各上述目标家电设备的过程中,当漏电信号消失时,说明当前关闭的目标家电设备为漏电设备,从而完成对漏电设备的定位,而剩余的目标家电设备,则无需继续关闭,防电墙设备不再向剩余目标家电设备发送控制信号。Further, in the application scenario provided by this embodiment, the number of target household appliances is at least two. After at least two target home appliances are determined, turn off the above-mentioned at least two home appliances one by one. At the same time, as the basic function of the anti-electric wall device, the anti-electric wall device will detect the leakage signal in real time, and continuously turn off each of the above-mentioned target home appliances. , when the leakage signal disappears, it means that the currently closed target home appliance is a leakage device, so as to complete the location of the leakage device, and the remaining target home appliances do not need to continue to be closed, and the anti-power wall device will no longer report to the remaining target home appliances. Send a control signal.

图3为本发明实施例提供的一种依次关闭目标家电设备的过程示意图,如图3所示,防电墙设备为智能插座,智能插座与智能热水器直接电连接;智能插座与智能热水器、智能冰箱、智能洗衣机处于同一局域网下。在智能插座检测到供电线路的漏电信号,并与智能热水器、智能冰箱、智能洗衣机建立安全连接后,智能插座首先向智能热水器发送控制信号,以关闭智能热水器,使智能热水器与供电线路的电连接断开(图中以“叉号”表示,下同)并根据实时检测的漏电信号,确定漏电信号仍然存在;之后,智能插座继续向智能冰箱发送控制信号,以关闭智能冰箱,向智能冰箱发送控制信号后,智能插座无法检测到漏电信息,说明是智能冰箱导致的漏电事故;由于漏电现象已消失,之后,智能插座不再向智能洗衣机发送控制信号,以使智能洗衣机能够继续保持工作。Fig. 3 is a schematic diagram of the process of sequentially shutting down the target household electrical appliances provided by the embodiment of the present invention. As shown in Fig. Refrigerators and smart washing machines are under the same LAN. After the smart socket detects the leakage signal of the power supply line and establishes a safe connection with the smart water heater, smart refrigerator, and smart washing machine, the smart socket first sends a control signal to the smart water heater to turn off the smart water heater, so that the smart water heater is electrically connected to the power supply line. Disconnect (indicated by a "cross" in the figure, the same below) and confirm that the leakage signal still exists according to the real-time detection of the leakage signal; after that, the smart socket continues to send a control signal to the smart refrigerator to turn off the smart refrigerator, and sends a signal to the smart refrigerator. After the control signal, the smart socket cannot detect the leakage information, indicating that the leakage accident is caused by the smart refrigerator; since the leakage phenomenon has disappeared, the smart socket will no longer send control signals to the smart washing machine, so that the smart washing machine can continue to work.

本实施例中,通过在检测到漏电信号时,获取候选设备标识,候选设备标识表征与电子设备处于同一局域网下的智能设备的设备标识;根据预设的安全配置信息,确定候选设备标识中的目标设备标识,并与目标家电设备建立安全连接,其中,目标家电设备为目标设备标识对应的智能设备;依次向各目标家电设备发送控制信号,以依次对应关闭各目标家电设备,直至不再检测到漏电信号。由于通过安全配置信息,在局域网环境下确定的目标设备标识,指示了可能导致漏电事故的室内智能设备,基于该目标设备标识建立安全连接并控制对应的智能设备依次关闭,从而实现对漏电设备的定向关闭,提高漏电保护效果和响应速度,提高家电产品的使用安全性。In this embodiment, when the leakage signal is detected, the candidate device identifier is obtained, and the candidate device identifier represents the device identifier of the smart device under the same local area network as the electronic device; according to the preset security configuration information, the candidate device identifier is determined. Identify the target device, and establish a secure connection with the target home appliance, where the target home appliance is the smart device corresponding to the target device identification; send control signals to each target home appliance in turn, so as to turn off each target home appliance in turn, until no longer detected to the leakage signal. Due to the security configuration information, the target device identification determined in the local area network environment indicates the indoor smart device that may cause leakage accidents. Based on the target device identification, a secure connection is established and the corresponding smart devices are controlled to shut down in turn, so as to realize the protection of the leakage device. Directional shutdown improves the leakage protection effect and response speed, and improves the safety of home appliances.

图4为本发明另一个实施例提供的防电墙设备控制方法的流程图,如图4所示,本实施例提供的防电墙设备控制方法在图2所示实施例提供的防电墙设备控制方法的基础上,对步骤S102-S103进一步细化,并在S101之前增加了从云服务器获取动态的设备连接密钥的步骤,其中,目标家电设备包括电源控制接口,电源控制接口用于关闭智能设备。则本实施例提供的防电墙设备控制方法包括以下几个步骤:Fig. 4 is a flow chart of a method for controlling an anti-electric wall device provided by another embodiment of the present invention. As shown in Fig. 4, the method for controlling an anti-electric wall device provided by this embodiment can On the basis of the device control method, steps S102-S103 are further refined, and a step of obtaining a dynamic device connection key from the cloud server is added before S101, wherein the target household electrical appliance includes a power control interface, and the power control interface is used for Turn off the smart device. Then, the method for controlling an electric wall device provided in this embodiment includes the following steps:

步骤S201,通过云服务器,获取动态的安全配置信息,动态的安全配置信息中包括标识信息和对应的动态的设备连接密钥。Step S201, obtain dynamic security configuration information through the cloud server, and the dynamic security configuration information includes identification information and a corresponding dynamic device connection key.

示例性地,其中,标识信息用于指示目标设备标识,设备连接密钥为防电墙设备与目标家电设备建立基于局域网的安全连接的加密参数。防电墙设备可以以预设的策略从云服务器获取安全配置信息,从而确定候选设备标识中的目标设备标识,以及与目标家电设备建立安全连接的密钥,具体地,例如,通过按照预设时间间隔访问云服务器,或者接收云服务器的推送,或者基于订阅模式获取安全配置信息等,此次不对此过程进行赘述。Exemplarily, the identification information is used to indicate the identification of the target device, and the device connection key is an encryption parameter for establishing a secure connection based on a local area network between the firewall device and the target home appliance device. The firewall device can obtain the security configuration information from the cloud server according to a preset policy, so as to determine the target device ID among the candidate device IDs and the key for establishing a secure connection with the target home appliance. Specifically, for example, according to the preset Access to the cloud server at intervals, or receive pushes from the cloud server, or obtain security configuration information based on the subscription model, etc. This process will not be described in detail this time.

其中,设备连接密钥为动态密钥,即每隔预设时长,云服务对密钥进行更新,并同步至对应的家电设备,从而提高智能防电墙对目标家电设备进行漏电控制的安全性,避免非法授权设备对目标家电设备的非法控制。Among them, the device connection key is a dynamic key, that is, every preset period of time, the cloud service updates the key and synchronizes it to the corresponding home appliance, thereby improving the security of the smart anti-power wall for controlling the leakage of the target home appliance , to avoid illegal control of target home appliances by illegally authorized devices.

可选地,在步骤S201之后,还包括:Optionally, after step S201, further include:

步骤S202,扫描与防电墙设备处于同一局域网下的智能设备的设备标识。Step S202, scanning for device identifications of smart devices in the same local area network as the firewall device.

步骤S203,根据与防电墙设备处于同一局域网下的智能设备的设备标识,以及预设的安全配置信息,确定关键家电设备,并与关键家电设备建立前置安全连接,其中,安全配置信息用于指示关键家电设备的设备标识。Step S203, according to the device identification of the smart device in the same local area network as the firewall device, and the preset security configuration information, determine the key household appliances, and establish a pre-secure connection with the key household appliances, wherein the security configuration information uses It is used to indicate the equipment identification of key household appliances.

示例性地,关键家电设备,是指具有较高漏电风险或漏电危害性的智能设备,例如智能热水器。关键家电设备可以通过用户自定义配置等方式确定。进一步地,安全配置信息中还包括用于指示关键家电设备的设备标识,在检测到漏电信号之前,首先扫描当前处于同一局域网下的智能设备的设备标识,判断当前处于同一局域网下的智能设备的设备标识中,是否包括关键家电设备的设备标识,若包括,则确定该设备标识对应的家电设备为关键家电设备。Exemplarily, the key household electrical appliances refer to smart devices with high leakage risk or hazard, such as smart water heaters. Key household electrical appliances can be determined through user-defined configuration and other methods. Furthermore, the security configuration information also includes the device identification used to indicate the key household appliances. Before detecting the leakage signal, first scan the device identification of the smart device currently under the same local area network to determine the status of the smart device currently under the same local area network. Whether the device identifier includes the device identifier of the key household appliance, and if so, determine that the household appliance corresponding to the device identifier is the key household appliance.

进一步地,在确定关键家电设备后,为了避免该关键家电设备发生的漏电事故导致严重后果,需要提高对该关键家电设备的断电响应速度,具体地,在确定关键家电设备后,与关键家电设备建立前置安全连接,该前置安全连接是指在未检测到漏电信号前,即与智能设备建立的安全连接,使防电墙设备与关键家电设备始终处于安全连接的状态。Furthermore, after the key household appliances are determined, in order to avoid serious consequences caused by the leakage accident of the key household appliances, it is necessary to improve the power-off response speed of the key household appliances. The device establishes a front safety connection, which refers to the safety connection established with the smart device before the leakage signal is detected, so that the anti-power wall device and the key household appliances are always in a state of safe connection.

步骤S204,在检测到漏电信号时,获取候选设备标识,候选设备标识表征与防电墙设备处于同一局域网下的智能设备的设备标识。Step S204, when the electric leakage signal is detected, a candidate device ID is obtained, where the candidate device ID represents the device ID of an intelligent device under the same local area network as the firewall device.

步骤S205,根据标识信息和对应的设备连接密钥,确定候选设备标识中的目标设备标识,并与目标设备标识对应的智能设备建立安全连接。Step S205, according to the identification information and the corresponding device connection key, determine the target device ID among the candidate device IDs, and establish a secure connection with the smart device corresponding to the target device ID.

示例性地,根据安全配置信息中的标识信息和对应的设备连接密钥,可以确定标识信息指定的目标设备标识,进而,通过标识信息对应的设备连接密钥,与目标设备标识对应的目标家电设备发送安全连接请求并验证设备连接密钥,实现防电墙设备与目标家电设备之间的安全连接。本实施例中,通过在配置信息中设置与标识信息对应的设备连接密钥,保证防电墙设备与目标家电设备之间控制的安全性,实现二者之间的安全连接。Exemplarily, according to the identification information in the security configuration information and the corresponding device connection key, the target device identification specified by the identification information can be determined, and then, through the device connection key corresponding to the identification information, the target home appliance corresponding to the target device identification The device sends a secure connection request and verifies the device connection key to achieve a secure connection between the firewall device and the target home appliance. In this embodiment, by setting the device connection key corresponding to the identification information in the configuration information, the control security between the firewall device and the target home appliance device is ensured, and a secure connection between the two is realized.

可选地,还包括:若目标设备标识对应的智能设备为关键家电设备,则将前置安全连接作为防电墙设备与目标设备标识的安全连接。Optionally, it also includes: if the smart device corresponding to the target device identifier is a key household electrical appliance, using the front-end security connection as a secure connection between the firewall device and the target device identifier.

示例性地,在多个目标设备标识中,若包括安全配置信息中指示关键家电设备的设备标识,即多个目标家电设备中,存在关键家电设备,此时,为了实现对关键家电设备的快速响应,将关键家电设备的前置安全连接作为该关键家电设备的安全连接,并基于该安全连接进行后续的控制信号的发送,由于前置安全连接是防电墙设备与关键家电设备之间已经提前建立完毕的安全连接,因此,省略了防电墙设备与关键家电设备之间建立安全连接的步骤,提高了防电墙设备对关键家电设备进行漏电保护响应的速度,实现对关键家电设备的快速断电,提高漏电保护的效果。Exemplarily, among the multiple target device identifiers, if the device identifier indicating the key household electrical appliance in the security configuration information is included, that is, there is a key household appliance among the multiple target household appliances, at this time, in order to realize the fast In response, the front safety connection of the key home appliance is used as the safety connection of the key home appliance, and the subsequent control signal is sent based on the safety connection. The secure connection established in advance, therefore, omits the step of establishing a secure connection between the anti-electric wall equipment and key household appliances, improves the speed of the anti-electric wall equipment for leakage protection of key household appliances, and realizes the security of key household appliances. Fast power off, improve the effect of leakage protection.

图5为本发明实施例提供的一种防电墙设备在检测到漏电信号时对关键家电设备进行断电控制的示意图,如图5所示,防电墙设备为智能插座,目标家电设备为智能热水器、智能洗衣机、智能冰箱,其中,智能热水器为关键家电设备,智能插座在检测到漏电信号之前,已经与智能热水器建立前置安全连接。当智能插座检测到供电线路的漏电信号时,分别会根据安全配置信息中各目标家电设备对应的设备连接密钥,与智能洗衣机、智能冰箱建立安全连接,之后,再通过安全连接对智能洗衣机、智能冰箱进行断电控制(图中未示出);由于智能插座与智能热水器建立了前置安全连接,在智能插座检测到漏电信号时,智能插座通过前置安全连接作为安全连接,直接向智能热水器发送控制信号,关闭智能热水器,保证关键家电设备的快速断电。Fig. 5 is a schematic diagram of an anti-electric wall device provided by an embodiment of the present invention that performs power-off control on key household appliances when a leakage signal is detected. As shown in Fig. 5, the anti-electric wall device is a smart socket, and the target home appliance is Smart water heaters, smart washing machines, and smart refrigerators. Among them, smart water heaters are key household appliances. Before the smart socket detects the leakage signal, it has established a pre-safe connection with the smart water heater. When the smart socket detects the leakage signal of the power supply line, it will establish a secure connection with the smart washing machine and the smart refrigerator according to the device connection key corresponding to each target appliance in the security configuration information, and then connect the smart washing machine and smart refrigerator through the secure connection. The smart refrigerator performs power-off control (not shown in the figure); since the smart socket has established a front safety connection with the smart water heater, when the smart socket detects an electric leakage signal, the smart socket uses the front safety connection as a safety connection and directly sends to the smart The water heater sends a control signal to turn off the smart water heater to ensure rapid power-off of key household appliances.

可选地,还包括:Optionally, also include:

步骤S206,确定各目标家电设备的安全连接状态,安全连接状态用于表征防电墙设备与目标家电设备之间是否成功建立安全连接。Step S206, determining the security connection status of each target home appliance, the security connection status is used to represent whether the security connection between the firewall device and the target home appliance is successfully established.

步骤S207,根据各目标家电设备的安全连接状态,在确定与目标家电设备成功建立安全连接后,向成功建立安全连接的目标家电设备的电源控制接口发送控制信号。In step S207, according to the secure connection status of each target household electrical appliance, after determining that the secure connection with the target household electrical appliance is successfully established, a control signal is sent to the power control interface of the target household electrical appliance with which the secure connection is successfully established.

示例性地,在多个目标家电设备中,在防电墙设备向目标家电设备发送安全连接的建立请求后,可能由于网络原因或者设备自身原因,会出现目标家电设备无法与防电墙设备建立安全连接,或者建立安全连接后又断开连接的问题。通常情况下,若防电墙设备与目标家电设备之间的连接出现异常,防电墙设备一侧只能在无法多次向目标家电设备发送控制信号,但仍无法得到响应信息时,才能发出连接异常报警。而漏电保护过程对响应实时性要求很高,因此,为了避免由于安全连接异常,而无法及时发送控制,导致的漏电保护实时性问题,防电墙设备首先确定与目标家电设备的安全连接状态,在确定与目标家电设备成功建立安全连接后,再向成功建立安全连接的目标家电设备的电源控制接口发送控制信号。从而避免多次尝试发送控制信号导致的漏电保护实时性问题。可选地,当防电墙设备确定无法与目标家电设备建立安全连接后,可以通过扬声器、或者发送报警信息等方式发出报警,以告知用户出现漏电但无法进行自动漏电保护的情况发生,提醒用户进行手动处理,提高漏电保护的有效性、安全性。For example, among multiple target home appliances, after the firewall device sends a secure connection establishment request to the target appliance, the target appliance cannot establish a connection with the firewall device due to network or device reasons. A secure connection, or a problem with disconnecting after establishing a secure connection. Normally, if the connection between the anti-electric wall device and the target home appliance is abnormal, the anti-electric wall device can only send control signals to the target home appliance when it cannot send control signals multiple times, but still cannot get a response message. Connection abnormality alarm. The leakage protection process has high requirements for real-time response. Therefore, in order to avoid the real-time problem of leakage protection caused by the failure to send control in time due to the abnormal safety connection, the anti-electricity wall device first determines the safety connection status with the target home appliance. After it is determined that the secure connection with the target household electrical appliance is successfully established, a control signal is sent to the power control interface of the target household electrical appliance that successfully establishes the secure connection. In this way, the real-time problem of leakage protection caused by multiple attempts to send control signals is avoided. Optionally, when the anti-electric wall device determines that it cannot establish a safe connection with the target home appliance, it can send an alarm through a speaker or send an alarm message to inform the user that there is a leakage but cannot perform automatic leakage protection, and remind the user Perform manual processing to improve the effectiveness and safety of leakage protection.

本实施例中,步骤S204的实现方式与本发明图2所示实施例中的步骤S101的实现方式相同,在此不再一一赘述。In this embodiment, the implementation manner of step S204 is the same as the implementation manner of step S101 in the embodiment shown in FIG. 2 of the present invention, and will not be repeated here.

图6为本发明一个实施例提供的防电墙设备控制装置的结构示意图,应用于防电墙设备,如图6所示,本实施例提供的防电墙设备控制装置3包括:Fig. 6 is a schematic structural diagram of an anti-electric wall device control device provided by an embodiment of the present invention, which is applied to an anti-electric wall device. As shown in Fig. 6, the anti-electric wall device control device 3 provided in this embodiment includes:

检测模块31,用于在检测到漏电信号时,获取候选设备标识,候选设备标识表征与防电墙设备处于同一局域网下的智能设备的设备标识;The detection module 31 is configured to acquire a candidate device ID when an electric leakage signal is detected, and the candidate device ID represents the device ID of an intelligent device under the same local area network as the firewall device;

连接模块32,用于根据预设的安全配置信息,确定候选设备标识中的目标设备标识,并与目标家电设备建立安全连接,其中,目标家电设备为目标设备标识对应的智能设备;The connection module 32 is configured to determine the target device ID among the candidate device IDs according to preset security configuration information, and establish a secure connection with the target home appliance, wherein the target home appliance is a smart device corresponding to the target device ID;

控制模块33,依次向各目标家电设备发送控制信号,以依次对应关闭各目标家电设备,直至不再检测到漏电信号。The control module 33 sends control signals to each target household electrical appliance sequentially, so as to sequentially and correspondingly shut down each target household electrical appliance until no leakage signal is detected.

在一种可能的实现方式中,安全配置信息中包括标识信息和对应的设备连接密钥,标识信息用于指示目标设备标识,设备连接密钥为防电墙设备与目标家电设备建立基于局域网的安全连接的加密参数;连接模块32在与目标家电设备建立安全连接时,具体用于:根据标识信息和对应的设备连接密钥,与目标设备标识对应的智能设备建立安全连接。In a possible implementation, the security configuration information includes identification information and a corresponding device connection key, the identification information is used to indicate the identity of the target device, and the device connection key establishes a LAN-based connection between the firewall device and the target home appliance device. Encryption parameters of the secure connection; when the connection module 32 establishes a secure connection with the target home appliance, it is specifically used to: establish a secure connection with the smart device corresponding to the target device ID according to the identification information and the corresponding device connection key.

在一种可能的实现方式中,防电墙设备与云服务器通信连接,连接模块32,还用于:通过云服务器,获取动态的安全配置信息,动态的安全配置信息中包括标识信息和对应的动态的设备连接密钥。In a possible implementation manner, the firewall device communicates with the cloud server, and the connection module 32 is also used to obtain dynamic security configuration information through the cloud server. The dynamic security configuration information includes identification information and corresponding Dynamic device connection key.

在一种可能的实现方式中,目标家电设备包括电源控制接口,电源控制接口用于关闭智能设备;控制模块33在依次向各目标家电设备发送控制信号,以依次对应关闭各目标家电设备时,具体用于:通过与各目标家电设备的建立的安全连接,依次向各目标家电设备的电源控制接口发送控制信号,以依次关闭各对应的目标家电设备。In a possible implementation, the target home appliance includes a power control interface, and the power control interface is used to turn off the smart device; when the control module 33 sequentially sends control signals to each target home appliance to turn off each target home appliance in turn, It is specifically used for: sending control signals to the power control interfaces of the target household appliances in sequence through the established secure connections with the target household appliances, so as to sequentially turn off the corresponding target household appliances.

在一种可能的实现方式中,连接模块32,还用于:确定各目标家电设备的安全连接状态,安全连接状态用于表征防电墙设备与目标家电设备之间是否成功建立安全连接;控制模块33在通过与各目标家电设备的建立的安全连接,依次向各目标家电设备的电源控制接口发送控制信号时,具体用于:根据各目标家电设备的安全连接状态,在确定与目标家电设备成功建立安全连接后,向成功建立安全连接的目标家电设备的电源控制接口发送控制信号。In a possible implementation, the connection module 32 is also used to: determine the security connection status of each target home appliance, and the security connection status is used to indicate whether a security connection is successfully established between the firewall device and the target home appliance; When the module 33 sends control signals to the power control interface of each target home appliance sequentially through the established secure connection with each target home appliance, it is specifically used to: After the secure connection is successfully established, a control signal is sent to the power control interface of the target household electrical appliance that successfully establishes the secure connection.

在一种可能的实现方式中,在检测到漏电信号之前,检测模块31,还用于:扫描与防电墙设备处于同一局域网下的智能设备的设备标识;连接模块32,还用于:根据与防电墙设备处于同一局域网下的智能设备的设备标识,以及预设的安全配置信息,确定关键家电设备,并与关键家电设备建立前置安全连接,其中,安全配置信息用于指示关键家电设备的设备标识;控制模块33在与目标设备标识对应的智能设备建立安全连接时,具体用于:若目标设备标识对应的智能设备为关键家电设备,则将前置安全连接作为防电墙设备与目标设备标识的安全连接。In a possible implementation, before detecting the leakage signal, the detection module 31 is also used to: scan the device identification of the smart device under the same local area network as the firewall device; the connection module 32 is also used to: The device identification of the smart device under the same local area network as the firewall device, as well as the preset security configuration information, determine the key home appliances, and establish a pre-secure connection with the key home appliances, where the security configuration information is used to indicate the key home appliances The device identifier of the device; when the control module 33 establishes a secure connection with the smart device corresponding to the target device identifier, it is specifically used for: if the smart device corresponding to the target device identifier is a key household electrical appliance, then use the front-end secure connection as a power protection wall device A secure connection to the target device identity.

在一种可能的实现方式中,目标家电设备包括第一家电设备,控制模块33,还用于:在依次向各目标家电设备发送控制信号的过程中,若在向第一家电设备发送控制信号后,若仍检测到漏电信息,则重新启动第一家电设备。In a possible implementation manner, the target household electrical appliance includes a first household electrical appliance, and the control module 33 is further configured to: in the process of sequentially sending control signals to each target household electrical appliance, if the control signal is sent to the first household electrical appliance After that, if the leakage information is still detected, restart the first household electrical appliance.

其中,检测模块31、连接模块32和控制模块33依次连接。本实施例提供的防电墙设备控制装置3可以执行如图2-图5所示的方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。Wherein, the detection module 31 , the connection module 32 and the control module 33 are connected in sequence. The anti-electric wall device control device 3 provided in this embodiment can implement the technical solutions of the method embodiments shown in FIGS. 2-5 . The implementation principles and technical effects are similar and will not be repeated here.

图7为本发明一个实施例提供的电子设备的示意图,如图7所示,本实施例提供的电子设备4包括:存储器41,处理器42以及计算机程序。FIG. 7 is a schematic diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG. 7 , the electronic device 4 provided by this embodiment includes: a memory 41 , a processor 42 and a computer program.

其中,计算机程序存储在存储器41中,并被配置为由处理器42执行以实现本发明图2-图5所对应的实施例中任一实施例提供的防电墙设备控制方法。Wherein, the computer program is stored in the memory 41 and is configured to be executed by the processor 42 to implement the method for controlling the firewall device provided in any one of the embodiments corresponding to FIGS. 2-5 of the present invention.

其中,存储器41和处理器42通过总线43连接。Wherein, the memory 41 and the processor 42 are connected through a bus 43 .

可选地,电子设备4为防电墙设备。Optionally, the electronic device 4 is a firewall device.

本发明一个实施例提供一种智能热水器,智能热水器包括如图7所示的电子设备4。An embodiment of the present invention provides an intelligent water heater, and the intelligent water heater includes an electronic device 4 as shown in FIG. 7 .

相关说明可以对应参见图2-图5所对应的实施例中的步骤所对应的相关描述和效果进行理解,此处不做过多赘述。Relevant descriptions can be understood by referring to the relevant descriptions and effects corresponding to the steps in the embodiments corresponding to FIG. 2 to FIG. 5 , and details are not repeated here.

本发明一个实施例提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行以实现本发明图2-图5所对应的实施例中任一实施例提供的防电墙设备控制方法。An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to realize the power protection provided by any one of the embodiments corresponding to FIGS. 2-5 of the present invention. Wall device control method.

其中,计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。Among them, the computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device and the like.

本发明一个实施例提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行如本发明图2-图5所对应的实施例中任一实施例提供的防电墙设备控制方法。An embodiment of the present invention provides a computer program product, including a computer program, and the computer program is executed by a processor as provided in any one of the embodiments corresponding to FIGS. 2-5 of the present invention.

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

本领域技术人员在考虑说明书及实践这里公开的申请后,将容易想到本发明的其它实施方案。本发明旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求书指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. The present invention is intended to cover any modification, use or adaptation of the present invention. These modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in the present invention . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求书来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

至此,已经结合附图所示的优选实施方式描述了本发明的技术方案,但是,本领域技术人员容易理解的是,本发明的保护范围显然不局限于这些具体实施方式。在不偏离本发明的原理的前提下,本领域技术人员可以对相关技术特征作出等同的更改或替换,这些更改或替换之后的技术方案都将落入本发明的保护范围之内。So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings, but those skilled in the art will easily understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to relevant technical features, and the technical solutions after these changes or substitutions will all fall within the protection scope of the present invention.

Claims (10)

1.一种防电墙设备控制方法,其特征在于,应用于防电墙设备,所述方法包括:1. A control method for electric wall equipment, characterized in that it is applied to electric wall equipment, and the method comprises: 在检测到漏电信号时,获取候选设备标识,所述候选设备标识表征与所述防电墙设备处于同一局域网下的智能设备的设备标识;When an electric leakage signal is detected, a candidate device identifier is obtained, and the candidate device identifier represents a device identifier of an intelligent device under the same local area network as the firewall device; 根据预设的安全配置信息,确定所述候选设备标识中的目标设备标识,并与目标家电设备建立安全连接,其中,所述目标家电设备为所述目标设备标识对应的智能设备;Determine a target device ID among the candidate device IDs according to preset security configuration information, and establish a secure connection with a target home appliance, where the target home appliance is a smart device corresponding to the target device ID; 依次向各所述目标家电设备发送控制信号,以依次对应关闭各所述目标家电设备,直至不再检测到所述漏电信号。Send control signals to each of the target household electrical appliances in sequence, so as to sequentially and correspondingly shut down each of the target household electrical appliances until the leakage signal is no longer detected. 2.根据权利要求1所述的方法,其特征在于,所述安全配置信息中包括标识信息和对应的设备连接密钥,所述标识信息用于指示所述目标设备标识,所述设备连接密钥为所述防电墙设备与所述目标家电设备建立基于局域网的安全连接的加密参数;2. The method according to claim 1, wherein the security configuration information includes identification information and a corresponding device connection key, the identification information is used to indicate the identity of the target device, and the device connection key The key is an encryption parameter for establishing a secure connection based on a local area network between the anti-electric wall device and the target home appliance device; 所述与目标家电设备建立安全连接,包括:The establishment of a secure connection with the target home appliance includes: 根据所述标识信息和对应的设备连接密钥,与所述目标设备标识对应的智能设备建立安全连接。According to the identification information and the corresponding device connection key, the smart device corresponding to the target device identification establishes a secure connection. 3.根据权利要求2所述的方法,其特征在于,所述防电墙设备与云服务器通信连接,所述方法还包括:3. The method according to claim 2, wherein the firewall device communicates with the cloud server, and the method further comprises: 通过所述云服务器,获取动态的安全配置信息,所述动态的安全配置信息中包括标识信息和对应的动态的设备连接密钥。Dynamic security configuration information is obtained through the cloud server, and the dynamic security configuration information includes identification information and a corresponding dynamic device connection key. 4.根据权利要求1所述的方法,其特征在于,所述目标家电设备包括电源控制接口,所述电源控制接口用于关闭所述智能设备;4. The method according to claim 1, wherein the target household electrical appliance includes a power control interface, and the power control interface is used to shut down the smart device; 依次向各所述目标家电设备发送控制信号,以依次对应关闭各所述目标家电设备,包括:Sending control signals to each of the target household electrical appliances in turn to correspondingly close each of the target household appliances in turn, including: 通过与各所述目标家电设备的建立的安全连接,依次向各所述目标家电设备的电源控制接口发送控制信号,以依次关闭各对应的目标家电设备。Through the established secure connection with each of the target household electrical appliances, control signals are sequentially sent to the power control interfaces of each of the target household electrical appliances, so as to sequentially shut down each corresponding target household electrical appliance. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. method according to claim 4, is characterized in that, described method also comprises: 确定各所述目标家电设备的安全连接状态,所述安全连接状态用于表征所述防电墙设备与目标家电设备之间是否成功建立安全连接;Determining the secure connection status of each of the target household electrical appliances, the secure connection status being used to indicate whether a secure connection is successfully established between the anti-electric wall device and the target household electrical appliance; 所述通过与各所述目标家电设备的建立的安全连接,依次向各所述目标家电设备的电源控制接口发送控制信号,包括:The step of sending control signals to the power control interfaces of each of the target home appliances sequentially through the established secure connection with each of the target home appliances includes: 根据各目标家电设备的安全连接状态,在确定与目标家电设备成功建立安全连接后,向成功建立安全连接的目标家电设备的电源控制接口发送控制信号。According to the secure connection state of each target household electrical appliance, after it is determined that the secure connection is successfully established with the target household electrical appliance, a control signal is sent to the power control interface of the target household electrical appliance with which the secure connection is successfully established. 6.根据权利要求1所述的方法,其特征在于,在检测到漏电信号之前,所述方法还包括:6. The method according to claim 1, characterized in that, before the leakage signal is detected, the method further comprises: 扫描与所述防电墙设备处于同一局域网下的智能设备的设备标识;Scan the device identification of the smart device under the same local area network as the firewall device; 根据与所述防电墙设备处于同一局域网下的智能设备的设备标识,以及预设的安全配置信息,确定关键家电设备,并与所述关键家电设备建立前置安全连接,其中,所述安全配置信息用于指示关键家电设备的设备标识;According to the device identification of the smart device under the same local area network as the anti-power wall device, and the preset security configuration information, determine the key home appliance, and establish a pre-secure connection with the key home appliance, wherein the security The configuration information is used to indicate the equipment identification of key household appliances; 所述与所述目标设备标识对应的智能设备建立安全连接,包括:The establishment of a secure connection with the smart device corresponding to the target device identifier includes: 若所述目标设备标识对应的智能设备为关键家电设备,则将所述前置安全连接作为所述防电墙设备与所述目标设备标识的安全连接。If the smart device corresponding to the target device identifier is a key household electrical appliance, the pre-secure connection is used as a secure connection between the firewall device and the target device identifier. 7.根据权利要求1-6任一项所述的方法,其特征在于,所述目标家电设备包括第一家电设备,所述方法还包括:7. The method according to any one of claims 1-6, wherein the target household electrical appliance comprises a first household electrical appliance, and the method further comprises: 在依次向各所述目标家电设备发送控制信号的过程中,若在向所述第一家电设备发送控制信号后,若仍检测到漏电信息,则重新启动所述第一家电设备。During the process of sequentially sending the control signal to each of the target household electrical appliances, if the leakage information is still detected after the control signal is sent to the first household electrical appliance, restart the first household electrical appliance. 8.一种防电墙设备控制装置,其特征在于,所述装置包括:8. A control device for electric wall equipment, characterized in that the device comprises: 检测模块,用于在检测到漏电信号时,获取候选设备标识,所述候选设备标识表征与所述防电墙设备处于同一局域网下的智能设备的设备标识;A detection module, configured to acquire a candidate device ID when an electric leakage signal is detected, where the candidate device ID represents the device ID of an intelligent device under the same local area network as the firewall device; 连接模块,用于根据预设的安全配置信息,确定所述候选设备标识中的目标设备标识,并与目标家电设备建立安全连接,其中,所述目标家电设备为所述目标设备标识对应的智能设备;A connection module, configured to determine a target device ID among the candidate device IDs according to preset security configuration information, and establish a secure connection with the target home appliance, wherein the target home appliance is a smart phone corresponding to the target device ID. equipment; 控制模块,依次向各所述目标家电设备发送控制信号,以依次对应关闭各所述目标家电设备,直至不再检测到所述漏电信号。The control module sequentially sends control signals to each of the target household electrical appliances, so as to sequentially and correspondingly shut down each of the target household electrical appliances until the leakage signal is no longer detected. 9.一种电子设备,其特征在于,包括:存储器,处理器以及计算机程序;9. An electronic device, comprising: a memory, a processor and a computer program; 其中,所述计算机程序存储在所述存储器中,并被配置为由所述处理器执行以实现如权利要求1至7中任一项所述的防电墙设备控制方法。Wherein, the computer program is stored in the memory and is configured to be executed by the processor to implement the method for controlling an electric wall device according to any one of claims 1 to 7. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1至7任一项所述的防电墙设备控制方法。10. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to implement any one of claims 1 to 7 when executed by a processor The control method for the anti-electric wall equipment.
CN202110675507.7A 2021-06-17 2021-06-17 Method and device for controlling electricity-proof wall equipment, electronic equipment and storage medium Active CN113542079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110675507.7A CN113542079B (en) 2021-06-17 2021-06-17 Method and device for controlling electricity-proof wall equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110675507.7A CN113542079B (en) 2021-06-17 2021-06-17 Method and device for controlling electricity-proof wall equipment, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113542079A CN113542079A (en) 2021-10-22
CN113542079B true CN113542079B (en) 2023-06-16

Family

ID=78096234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110675507.7A Active CN113542079B (en) 2021-06-17 2021-06-17 Method and device for controlling electricity-proof wall equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113542079B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116191654A (en) * 2021-11-26 2023-05-30 浙江宇视科技有限公司 Power distribution equipment function control processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104238414A (en) * 2014-09-09 2014-12-24 上海路美思电气有限公司 Wi-Fi plug with electric leakage protection function and intelligent household appliance control system applying same
JP2015034700A (en) * 2013-08-07 2015-02-19 三菱電機株式会社 Electric leak detection device, electric leak detection method, and program
CN108872762A (en) * 2018-05-02 2018-11-23 Oppo广东移动通信有限公司 Electronic equipment electrical leakage detecting method, device, electronic equipment and storage medium
CN110045220A (en) * 2019-04-18 2019-07-23 青岛经济技术开发区海尔热水器有限公司 Electric leakage detection method and intelligent household appliance system
CN111412662A (en) * 2020-04-13 2020-07-14 珠海格力电器股份有限公司 Electric shock prevention method and system for water heater
CN112394299A (en) * 2020-12-14 2021-02-23 北京广大泰祥自动化技术有限公司 Far-end electric leakage test device for coal mine underground power line

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102414226B1 (en) * 2017-03-10 2022-06-29 삼성전자주식회사 Electronic device and method for controlling based on leakage state of battery in electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015034700A (en) * 2013-08-07 2015-02-19 三菱電機株式会社 Electric leak detection device, electric leak detection method, and program
CN104238414A (en) * 2014-09-09 2014-12-24 上海路美思电气有限公司 Wi-Fi plug with electric leakage protection function and intelligent household appliance control system applying same
CN108872762A (en) * 2018-05-02 2018-11-23 Oppo广东移动通信有限公司 Electronic equipment electrical leakage detecting method, device, electronic equipment and storage medium
CN110045220A (en) * 2019-04-18 2019-07-23 青岛经济技术开发区海尔热水器有限公司 Electric leakage detection method and intelligent household appliance system
CN111412662A (en) * 2020-04-13 2020-07-14 珠海格力电器股份有限公司 Electric shock prevention method and system for water heater
CN112394299A (en) * 2020-12-14 2021-02-23 北京广大泰祥自动化技术有限公司 Far-end electric leakage test device for coal mine underground power line

Also Published As

Publication number Publication date
CN113542079A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
EP2842212B1 (en) Energy saving and/or safety device
CN104601331B (en) Charging pile monitor control system and method
CN103221962A (en) Peripheral authentication
WO2016058366A1 (en) Smart home appliance control method and home control center
KR20150129835A (en) Energy management system
CN106302415A (en) A kind of method verifying equipment validity and distribution automatic to legitimate device
CN106302039B (en) A kind of method and apparatus of security control intelligent appliance
TW201610660A (en) Smart power monitoring and controlling system and its implementing method
CN103813039A (en) Home appliance control method, home server, and home appliance control system
CN105024890B (en) A kind of smart home appliance network access method, device and smart home appliance
CN105573151A (en) Household appliance control method and device and household data terminal
CN111371817A (en) Equipment control system, method and device, electronic equipment and storage medium
WO2018107544A1 (en) Intelligent device and household appliance
CN113542079B (en) Method and device for controlling electricity-proof wall equipment, electronic equipment and storage medium
WO2021213547A1 (en) Electricity leakage detection method and apparatus, and electronic device
CN115987705A (en) Equipment network distribution method and device
CN105787344A (en) Slave device and method for establishing connection between same and master device
CN105282159A (en) User identity verification method, device and intelligent terminal
CN105657711A (en) Network connection method and electronic device
CN104599473A (en) Switching method and switching device of wireless communication mode
WO2022068601A1 (en) Network repairing method, electronic device, and mobile terminal
WO2018107542A1 (en) Intelligent device and household appliance
CN117221355A (en) Control method and control device executed by Internet of things equipment
CN105789992A (en) Antitheft method for intelligent socket, corresponding intelligent socket and intelligent socket system
WO2020007250A1 (en) Pseudo base station identification on-off control method and device, mobile terminal, and storage medium

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