CN115460073A - Device configuration method, device, device deployment system and storage medium - Google Patents
Device configuration method, device, device deployment system and storage medium Download PDFInfo
- Publication number
- CN115460073A CN115460073A CN202210741256.2A CN202210741256A CN115460073A CN 115460073 A CN115460073 A CN 115460073A CN 202210741256 A CN202210741256 A CN 202210741256A CN 115460073 A CN115460073 A CN 115460073A
- Authority
- CN
- China
- Prior art keywords
- intelligent gateway
- gateway
- devices
- equipment
- sub
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000003860 storage Methods 0.000 title claims abstract description 13
- 230000003213 activating effect Effects 0.000 claims abstract description 11
- 238000004590 computer program Methods 0.000 claims description 12
- 238000004891 communication Methods 0.000 claims description 11
- 238000007781 pre-processing Methods 0.000 claims description 6
- 238000009826 distribution Methods 0.000 claims description 3
- 230000006855 networking Effects 0.000 claims description 3
- 230000000977 initiatory effect Effects 0.000 claims description 2
- 230000015654 memory Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 11
- 238000010276 construction Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000004913 activation Effects 0.000 description 5
- 238000012795 verification Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000007717 exclusion Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- 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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本申请涉及智能硬件技术领域,特别是涉及设备配置方法、装置、设备部署系统和存储介质。The present application relates to the technical field of intelligent hardware, and in particular relates to a device configuration method, device, device deployment system and storage medium.
背景技术Background technique
随着科技的发展和进步,在智能家居中,通过将若干智能设备配置入网,能够实现智能设备间的联动通信,提升用户的使用体验。然而目前对于大面积房屋的智能设备的配置入网,往往是通过多个路由器桥接网络,逐个对智能设备进行配置入网,因此设备配置入网的效率较低。With the development and progress of science and technology, in the smart home, by configuring several smart devices into the network, the linkage communication between smart devices can be realized, and the user experience can be improved. However, at present, for the configuration and network connection of smart devices in large-area houses, multiple routers are often used to bridge the network, and the smart devices are configured and connected to the network one by one, so the efficiency of device configuration and network connection is low.
针对相关技术中存在大面积房屋的设备配置入网效率较低的问题,目前还没有提出有效的解决方案。Aiming at the problem of low network access efficiency of equipment configuration in large-area houses in related technologies, no effective solution has been proposed so far.
发明内容Contents of the invention
在本实施例中提供了一种设备配置方法、装置、设备部署系统和存储介质,以解决相关技术中存在大面积房屋的设备配置入网效率较低的问题。In this embodiment, a device configuration method, device, device deployment system, and storage medium are provided, so as to solve the problem in the related art that the efficiency of device configuration in large-area houses is low.
第一个方面,在本实施例中提供了一种设备配置方法,用于设备部署系统,所述设备部署系统包含智能网关和至少两个待配置设备,所述设备配置方法包括:In the first aspect, this embodiment provides a device configuration method for a device deployment system, the device deployment system includes an intelligent gateway and at least two devices to be configured, and the device configuration method includes:
配置所述设备部署系统的局域网网络,使各个所述待配置设备与所述智能网关基于同一种物联网协议通信;Configuring the LAN network of the device deployment system, so that each of the devices to be configured communicates with the smart gateway based on the same Internet of Things protocol;
基于预先获取的设备部署模板和秘钥激活所述智能网关;activating the smart gateway based on a pre-acquired device deployment template and secret key;
根据所述设备部署模板,从处于激活状态的智能网关中确定所述待配置设备所属的关联智能网关,并控制所述关联智能网关进行子设备搜索,以使所述关联智能网关与所述待配置设备建立基于所述物联网协议的连接;According to the device deployment template, determine the associated intelligent gateway to which the device to be configured belongs from the activated intelligent gateways, and control the associated intelligent gateway to search for sub-device, so that the associated intelligent gateway and the to-be-configured Configuring the device to establish a connection based on the Internet of Things protocol;
在连接网络后,控制所述关联智能网关在云端激活所述关联智能网关连接的待配置设备,以完成所述设备部署系统中所有待配置设备的批量配置入网。After connecting to the network, the associated intelligent gateway is controlled to activate the devices to be configured connected to the associated intelligent gateway in the cloud, so as to complete the batch configuration and network access of all devices to be configured in the device deployment system.
在其中的一些实施例中,在基于预先获取的设备部署模板和秘钥激活所述智能网关之后,所述方法还包括:In some of these embodiments, after activating the smart gateway based on the pre-acquired device deployment template and secret key, the method further includes:
基于所述智能网关的网关类型和所包含的固件的版本,从处于激活状态的智能网关中确定主智能网关。Based on the gateway type of the smart gateway and the version of the included firmware, the master smart gateway is determined from the smart gateways in the activated state.
在其中的一些实施例中,在所述关联智能网关与所述待配置设备建立基于所述物联网协议的连接后,所述方法还包括:In some of these embodiments, after the associated intelligent gateway establishes a connection based on the Internet of Things protocol with the device to be configured, the method further includes:
向所述主智能网关发起预设的联动指令,以使所述主智能网关基于所述联动指令搜索关联智能网关,并通过所述关联智能网关向所述待配置设备发起联动。Initiating a preset linkage instruction to the main intelligent gateway, so that the main intelligent gateway searches for an associated intelligent gateway based on the linkage instruction, and initiates linkage to the device to be configured through the associated intelligent gateway.
在其中的一些实施例中,所述根据所述设备部署模板,从处于激活状态的智能网关中确定所述待配置设备所属的关联智能网关,并控制所述关联智能网关进行子设备搜索,以使所述关联智能网关与所述待配置设备建立基于所述物联网协议的连接,包括:In some of the embodiments, according to the device deployment template, the associated intelligent gateway to which the device to be configured belongs is determined from the activated intelligent gateways, and the associated intelligent gateway is controlled to search for sub-device, so as to Making the associated intelligent gateway establish a connection based on the Internet of Things protocol with the device to be configured, including:
根据所述设备部署模板中预先设置的智能网关与待配置设备之间的关联关系,从处于激活状态的智能网关中确定所述待配置设备所属的关联智能网关;According to the preset association relationship between the smart gateway and the device to be configured in the device deployment template, determine the associated smart gateway to which the device to be configured belongs from among the smart gateways in an activated state;
向所述关联智能网关发送子设备搜索指令,以使所述关联智能网关基于所述子设备搜索指令进行子设备搜索,并与所述关联关系中对应的待配置设备建立基于所述物联网协议的连接。Sending a sub-device search instruction to the associated intelligent gateway, so that the associated intelligent gateway performs a sub-device search based on the sub-device search instruction, and establishes a sub-device search with the corresponding device to be configured in the association relationship based on the Internet of Things protocol. Connection.
在其中的一些实施例中,所述向所述关联智能网关发送子设备搜索指令,以使所述关联智能网关基于所述子设备搜索指令进行子设备搜索,并与所述关联关系中对应的待配置设备建立基于所述物联网协议的连接,包括:In some of the embodiments, the sending sub-device search instruction to the associated intelligent gateway, so that the associated intelligent gateway performs sub-device search based on the sub-device search instruction, and the corresponding The device to be configured establishes a connection based on the IoT protocol, including:
向所述关联智能网关发送子设备搜索指令,以使所述关联智能网关基于所述子设备搜索指令,搜索在所述关联关系中与所述关联智能网关对应的处于配网状态的待配置设备的广播包,并基于所述广播包对所述待配置设备进行校验并建立基于所述物联网协议的连接。Sending a sub-device search instruction to the associated intelligent gateway, so that the associated intelligent gateway searches for a device to be configured in a network configuration state corresponding to the associated intelligent gateway in the association relationship based on the sub-device search instruction The broadcast packet, and based on the broadcast packet, the device to be configured is verified and the connection based on the Internet of Things protocol is established.
在其中的一些实施例中,所述控制所述关联智能网关在云端激活所述关联智能网关连接的待配置设备,以完成所述设备部署系统中所有待配置设备的批量配置入网,包括:In some of these embodiments, the controlling the associated intelligent gateway to activate the devices to be configured connected to the associated intelligent gateway in the cloud, so as to complete the batch configuration and network access of all the devices to be configured in the device deployment system, includes:
在云端激活所述关联智能网关;activating the associated smart gateway in the cloud;
控制在云端激活的关联智能网关,对待配置设备在云端进行批量激活,以完成所述设备部署系统中所有待配置设备的批量配置入网。Control the associated intelligent gateway activated in the cloud, and perform batch activation of the devices to be configured on the cloud, so as to complete the batch configuration and network access of all devices to be configured in the device deployment system.
在其中的一些实施例中,在所述关联智能网关与所述待配置设备建立基于所述物联网协议的连接之后,所述方法还包括:In some of these embodiments, after the associated intelligent gateway establishes a connection based on the Internet of Things protocol with the device to be configured, the method further includes:
获取与所述关联智能网关建立连接的待配置设备的设备信息;Obtain the device information of the device to be configured that establishes a connection with the associated smart gateway;
将所述待配置设备的设备信息进行存储。The device information of the device to be configured is stored.
第二个方面,在本实施例中提供了一种设备配置装置,用于设备部署系统,所述设备部署系统包含智能网关和至少两个待配置设备,所述设备配置装置包括:预处理模块、获取模块、连接模块、以及配置模块;其中:In the second aspect, this embodiment provides a device configuration device used in a device deployment system, the device deployment system includes an intelligent gateway and at least two devices to be configured, and the device configuration device includes: a preprocessing module , acquisition module, connection module, and configuration module; where:
所述预处理模块,用于配置所述设备部署系统的局域网网络,使各个所述待配置设备与所述智能网关基于同一种物联网协议通信;The preprocessing module is configured to configure the local area network of the device deployment system, so that each of the devices to be configured communicates with the smart gateway based on the same Internet of Things protocol;
所述获取模块,用于基于预先获取的设备部署模板和秘钥激活所述智能网关;The acquiring module is configured to activate the smart gateway based on the pre-acquired device deployment template and secret key;
所述连接模块,用于根据所述设备部署模板,从处于激活状态的智能网关中确定所述待配置设备所属的关联智能网关,并控制所述关联智能网关进行子设备搜索,以使所述关联智能网关与所述待配置设备建立基于所述物联网协议的连接;The connection module is configured to determine the associated intelligent gateway to which the device to be configured belongs from among the activated intelligent gateways according to the device deployment template, and control the associated intelligent gateway to search for sub-device, so that the Associating the intelligent gateway with the device to be configured to establish a connection based on the Internet of Things protocol;
所述配置模块,用于在连接网络后,控制所述关联智能网关在云端激活所述关联智能网关连接的待配置设备,以完成所述设备部署系统中所有待配置设备的批量配置入网。The configuration module is configured to control the associated intelligent gateway to activate the devices to be configured connected to the associated intelligent gateway on the cloud after connecting to the network, so as to complete the batch configuration of all the devices to be configured in the device deployment system into the network.
第三个方面,在本实施例中提供了一种设备部署系统,包括:终端、智能网关、以及至少两个待配置设备;其中,所述终端与所述智能网关通信连接;In the third aspect, this embodiment provides a device deployment system, including: a terminal, an intelligent gateway, and at least two devices to be configured; wherein, the terminal communicates with the intelligent gateway;
所述终端用于执行上述第一个方面所述的设备配置方法。The terminal is configured to execute the device configuration method described in the first aspect above.
第四个方面,在本实施例中提供了一种电子装置,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一个方面所述的设备配置方法。In a fourth aspect, this embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the computer program The program implements the device configuration method described in the first aspect above.
第五个方面,在本实施例中提供了一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述第一个方面所述的设备配置方法。In a fifth aspect, this embodiment provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the device configuration method described in the first aspect above is implemented.
与相关技术相比,在本实施例中提供的设备配置方法、装置、设备部署系统和存储介质,配置设备部署系统的局域网网络,使各个待配置设备与智能网关基于同一种物联网协议通信,基于预先获取的设备部署模板和秘钥激活智能网关,根据设备部署模板,从处于激活状态的智能网关中确定待配置设备所属的关联智能网关,并控制关联智能网关进行子设备搜索,以使关联智能网关与待配置设备建立基于物联网协议的连接,在连接网络后,控制关联智能网关在云端激活关联智能网关连接的待配置设备,以完成设备部署系统中所有待配置设备的批量配置入网。其通过预先建立智能网关与待配置设备的连接,实现了对待配置设备的批量入网,从而提高了大面积房屋的设备配置入网的效率。Compared with related technologies, the device configuration method, device, device deployment system and storage medium provided in this embodiment configure the LAN network of the device deployment system, so that each device to be configured communicates with the intelligent gateway based on the same Internet of Things protocol, Activate the intelligent gateway based on the pre-acquired device deployment template and secret key, determine the associated intelligent gateway from the activated intelligent gateways according to the device deployment template, and control the associated intelligent gateway to search for sub-devices, so that the associated The smart gateway establishes a connection based on the Internet of Things protocol with the device to be configured. After connecting to the network, it controls the associated smart gateway to activate the device to be configured connected to the associated smart gateway in the cloud, so as to complete the batch configuration of all devices to be configured in the device deployment system. By pre-establishing the connection between the intelligent gateway and the equipment to be configured, it realizes the batch network access of the equipment to be configured, thereby improving the efficiency of equipment configuration and network access for large-area houses.
本申请的一个或多个实施例的细节在以下附图和描述中提出,以使本申请的其他特征、目的和优点更加简明易懂。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below, so as to make other features, objects, and advantages of the application more comprehensible.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1是本实施例的设备配置方法的终端的硬件结构框图;FIG. 1 is a block diagram of the hardware structure of the terminal of the device configuration method of the present embodiment;
图2是本实施例的设备配置方法的流程图;FIG. 2 is a flow chart of the device configuration method in this embodiment;
图3是本优选实施例的设备配置方法的流程图;Fig. 3 is a flow chart of the device configuration method of this preferred embodiment;
图4是本实施例的设备配置装置的结构框图;Fig. 4 is a structural block diagram of the device configuration device of this embodiment;
图5是本实施例的设备部署系统的结构示意图。Fig. 5 is a schematic structural diagram of the device deployment system of this embodiment.
具体实施方式detailed description
为更清楚地理解本申请的目的、技术方案和优点,下面结合附图和实施例,对本申请进行了描述和说明。In order to understand the purpose, technical solution and advantages of the present application more clearly, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
除另作定义外,本申请所涉及的技术术语或者科学术语应具有本申请所属技术领域具备一般技能的人所理解的一般含义。在本申请中的“一”、“一个”、“一种”、“该”、“这些”等类似的词并不表示数量上的限制,它们可以是单数或者复数。在本申请中所涉及的术语“包括”、“包含”、“具有”及其任何变体,其目的是涵盖不排他的包含;例如,包含一系列步骤或模块(单元)的过程、方法和系统、产品或设备并未限定于列出的步骤或模块(单元),而可包括未列出的步骤或模块(单元),或者可包括这些过程、方法、产品或设备固有的其他步骤或模块(单元)。在本申请中所涉及的“连接”、“相连”、“耦接”等类似的词语并不限定于物理的或机械连接,而可以包括电气连接,无论是直接连接还是间接连接。在本申请中所涉及的“多个”是指两个或两个以上。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。通常情况下,字符“/”表示前后关联的对象是一种“或”的关系。在本申请中所涉及的术语“第一”、“第二”、“第三”等,只是对相似对象进行区分,并不代表针对对象的特定排序。Unless otherwise defined, the technical terms or scientific terms involved in the application shall have the general meanings understood by those skilled in the technical field to which the application belongs. In this application, words like "a", "an", "an", "the", "these" and the like do not denote quantitative limitations, and they may be singular or plural. The terms "comprising", "comprising", "having" and any variants thereof referred to in this application are intended to cover non-exclusive inclusion; for example, processes, methods and The system, product or device is not limited to the steps or modules (units) listed, but may include steps or modules (units) not listed, or may include other steps or modules inherent to the process, method, product or device (unit). The terms "connected", "connected", "coupled" and the like referred to in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Plurality" referred to in this application means two or more. "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. Usually, the character "/" indicates that the objects associated before and after are in an "or" relationship. The terms "first", "second", "third" and the like involved in this application are only for distinguishing similar objects, and do not represent a specific ordering of objects.
在本实施例中提供的方法实施例可以在终端、计算机或者类似的运算装置中执行。比如在终端上运行,图1是本实施例的设备配置方法的终端的硬件结构框图。如图1所示,终端可以包括一个或多个(图1中仅示出一个)处理器 102和用于存储数据的存储器104,其中,处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置。上述终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图 1所示的结构仅为示意,其并不对上述终端的结构造成限制。例如,终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示出的不同配置。The method embodiments provided in this embodiment can be executed in a terminal, a computer, or a similar computing device. For example, it runs on a terminal. FIG. 1 is a block diagram of the hardware structure of the terminal in the device configuration method of this embodiment. As shown in FIG. 1 , the terminal may include one or more (only one is shown in FIG. 1 )
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如在本实施例中的设备配置方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
传输设备106用于经由一个网络接收或者发送数据。上述的网络包括终端的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(NetworkInterface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频 (Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。
在本实施例中提供了一种设备配置方法,图2是本实施例的设备配置方法的流程图,如图2所示,该流程包括如下步骤:A device configuration method is provided in this embodiment. FIG. 2 is a flow chart of the device configuration method in this embodiment. As shown in FIG. 2 , the process includes the following steps:
步骤S210,配置设备部署系统的局域网网络,使各个待配置设备与智能网关基于同一种物联网协议通信。Step S210, configure the local area network of the device deployment system, so that each device to be configured communicates with the smart gateway based on the same Internet of Things protocol.
其中,上述设备部署系统中各待配置设备与智能网关基于同一种物联网协议通信,例如可以基于ZigBee(紫峰,低速短距离传输的无线网上协议)通信、基于WIFI(Wi-Fi,无线网络)通信、或者基于Z-Wave(无线组网)通信。Among them, each device to be configured in the above-mentioned device deployment system communicates with the intelligent gateway based on the same Internet of Things protocol, for example, it can be based on ZigBee (Zifeng, a wireless network protocol for low-speed short-distance transmission) communication, based on WIFI (Wi-Fi, wireless network) communication, or based on Z-Wave (wireless networking) communication.
步骤S220,基于预先获取的设备部署模板和秘钥激活智能网关。Step S220, activating the smart gateway based on the pre-acquired device deployment template and secret key.
其中,该设备部署模板具体可以为预先设置的用于规范设备配置操作流程的模板。该设备部署模板可以包括待配置设备的信息,例如待配置设备的数量、品类、智能网关与待配置设备的关联关系、待配置设备所需的固件版本、待配置设备的资源文件、以及待配置设备之间的联动和自动化过程等信息。基于该设备部署模板对待配置设备进行入网配置,能够改善待配置设备的配置流程。智能网关为基于物联网协议通信的网关,优选地,该智能网关可以为ZigBee智能网关。Wherein, the device deployment template may specifically be a preset template used to standardize device configuration operation procedures. The device deployment template can include information about the devices to be configured, such as the number and category of the devices to be configured, the relationship between the smart gateway and the devices to be configured, the firmware version required by the devices to be configured, the resource files of the devices to be configured, and the Information such as the linkage between devices and the automation process. The network access configuration of the device to be configured is performed based on the device deployment template, which can improve the configuration process of the device to be configured. The intelligent gateway is a gateway based on the Internet of Things protocol communication, preferably, the intelligent gateway may be a ZigBee intelligent gateway.
另外地,上述设备部署模板和秘钥可以预先从云端下载至终端。其中,可以将设备部署模板所包含的配置信息,例如待配置设备之间的联动关系、自动化过程、以及资源文件等,发送至智能网关,从而由智能网关来控制待配置设备的接入限制、归属关系、以及控制待配置设备的联动等。秘钥用于对智能网关的网络通信进行加密。In addition, the above-mentioned device deployment template and secret key can be downloaded from the cloud to the terminal in advance. Among them, the configuration information contained in the device deployment template, such as the linkage relationship between the devices to be configured, the automation process, and resource files, etc., can be sent to the smart gateway, so that the smart gateway can control the access restrictions of the devices to be configured, Affiliation, and linkage control of devices to be configured, etc. The secret key is used to encrypt the network communication of the smart gateway.
进一步地,对智能网关进行激活,具体可以为终端将上述配置信息和秘钥,通过局域网TCP协议加密传输至上述智能网关进行身份校验激活。其中,在每激活一个网关后,可以发起一次主智能网关竞选的操作,从处于激活状态的智能网关中,基于预设的筛选标准选择一个智能网关作为主网关。例如,可以从多个处于激活状态的智能网关中,基于通讯协议信号版本来确定主智能网关。或者,基于网关的类型来确定主智能网关。Further, to activate the intelligent gateway, specifically, the terminal may encrypt and transmit the above configuration information and secret key to the above intelligent gateway through the local area network TCP protocol for identity verification and activation. Wherein, after each gateway is activated, an operation of master intelligent gateway election can be initiated, and an intelligent gateway is selected as the master gateway based on preset screening criteria from the activated intelligent gateways. For example, the master intelligent gateway may be determined from among multiple active intelligent gateways based on the version of the communication protocol signal. Alternatively, the primary smart gateway is determined based on the type of the gateway.
步骤S230,根据设备部署模板,从处于激活状态的智能网关中确定待配置设备所属的关联智能网关,并控制关联智能网关进行子设备搜索,以使关联智能网关与待配置设备建立基于物联网协议的连接。Step S230, according to the device deployment template, determine the associated intelligent gateway to which the device to be configured belongs from among the activated intelligent gateways, and control the associated intelligent gateway to search for sub-device, so that the associated intelligent gateway and the device to be configured can establish an Internet of Things protocol-based Connection.
具体地,终端可以根据设备部署模板中,待配置设备与智能网关之间的关联关系,来确定待配置设备的关联智能网关,并通过TCP协议向关联智能网关发送子设备搜索指令,以控制关联智能网关进行子设备搜索。进一步地,可以预先使待配置设备处于配网状态。处于配网状态的待配置设备将会向预设范围内发送广播包。与该待配置设备对应的关联智能网关在接收到子设备搜索指令后,将会进行子设备搜索,当关联智能网关搜索到待配置设备的广播包后,进行秘钥是否合法以及待配置设备身份的校验,并在校验通过后与待配置设备建立基于物联网协议的连接。Specifically, the terminal can determine the associated intelligent gateway of the device to be configured according to the association relationship between the device to be configured and the intelligent gateway in the device deployment template, and send a sub-device search command to the associated intelligent gateway through the TCP protocol to control the association The intelligent gateway conducts a sub-device search. Furthermore, the device to be configured may be pre-configured in a network configuration state. The device to be configured in the network configuration state will send a broadcast packet to the preset range. The associated smart gateway corresponding to the device to be configured will search for the sub-device after receiving the sub-device search command. The verification, and establish a connection based on the Internet of Things protocol with the device to be configured after the verification is passed.
另外需要说明的是,在一个设备部署系统中,可以根据实际应用场景的需求,部署多个智能网关。例如,对于面积较大的室内场景,或者信号较弱的场景,可以通过部署多个智能网关的方式来增强信号对场景的覆盖。其中,在设备部署模板中,可以为该多个智能网关中的各智能网关关联一个或多个待配置设备。例如,可以将应用场景划分为若干区域,每个区域下的多个待配置设备从属于同一个智能网关。In addition, it should be noted that in a device deployment system, multiple intelligent gateways can be deployed according to the requirements of actual application scenarios. For example, for a large indoor scene or a scene with a weak signal, multiple smart gateways can be deployed to enhance the coverage of the signal to the scene. Wherein, in the device deployment template, one or more devices to be configured may be associated with each of the multiple smart gateways. For example, the application scenario can be divided into several areas, and multiple devices to be configured in each area belong to the same intelligent gateway.
此外,在待配置设备与对应的关联智能网关建立连接后,还可以将待配置设备的设备信息,以分布缓存的方式存放于该待配置设备对应的关联智能网关下。其中,该待配置设备的设备信息中包含了该待配置设备的配置状态。还可以通过将该待配置设备的设备信息在终端进行中转存储,在配置流程中断的情况下,可以基于该设备信息恢复该待配置设备的配置。In addition, after the device to be configured is connected to the corresponding associated intelligent gateway, the device information of the device to be configured can also be stored in a distributed cache under the associated intelligent gateway corresponding to the device to be configured. Wherein, the device information of the device to be configured includes the configuration status of the device to be configured. The device information of the device to be configured can also be transferred and stored in the terminal, and the configuration of the device to be configured can be restored based on the device information when the configuration process is interrupted.
步骤S240,在连接网络后,控制关联智能网关在云端激活关联智能网关连接的待配置设备,以完成设备部署系统中所有待配置设备的批量配置入网。其中,本实施例中设备部署系统所连接的网络可以为基于任意通信协议的网络,例如TCP/IP协议或CAN协议等。Step S240, after connecting to the network, control the associated intelligent gateway to activate the devices to be configured connected to the associated intelligent gateway in the cloud, so as to complete the batch configuration of all the devices to be configured in the device deployment system to enter the network. Wherein, the network connected to the device deployment system in this embodiment may be a network based on any communication protocol, such as TCP/IP protocol or CAN protocol.
上述步骤S210至S240,配置设备部署系统的局域网网络,使各个待配置设备与智能网关基于同一种物联网协议通信,基于预先获取的设备部署模板和秘钥激活智能网关,根据设备部署模板,从处于激活状态的智能网关中确定待配置设备所属的关联智能网关,并控制关联智能网关进行子设备搜索,以使关联智能网关与待配置设备建立基于物联网协议的连接,在连接网络后,控制关联智能网关在云端激活关联智能网关连接的待配置设备,以完成设备部署系统中所有待配置设备的批量配置入网。其通过预先建立智能网关与待配置设备的连接,实现了对待配置设备的批量入网,相比于相关技术中通过网关逐个对子设备在云端进行激活的方式而言提高了大面积房屋的设备配置入网的效率。The above steps S210 to S240 are to configure the local area network of the device deployment system, so that each device to be configured can communicate with the smart gateway based on the same IoT protocol, and activate the smart gateway based on the pre-acquired device deployment template and secret key. According to the device deployment template, from In the active smart gateway, determine the associated smart gateway to which the device to be configured belongs, and control the associated smart gateway to search for sub-devices, so that the associated smart gateway and the device to be configured can establish a connection based on the Internet of Things protocol. After connecting to the network, control The associated smart gateway activates the devices to be configured connected to the associated smart gateway in the cloud, so as to complete the batch configuration and access of all devices to be configured in the device deployment system. By pre-establishing the connection between the intelligent gateway and the device to be configured, it realizes the batch network access of the device to be configured, which improves the device configuration of large-area houses compared to the way of activating sub-devices one by one in the cloud through the gateway in the related technology. network access efficiency.
另外,本实施例对待配置设备的批量入网,无需人工逐个对子设备进行操作,还能降低对设备配置入网的人工成本。同时,本实施例所提供的设备配置方法,无需对多个路由器进行桥接,因此本实施例的设备配置方法还降低了部署过程的设备成本。In addition, this embodiment does not need to manually operate the sub-devices one by one for batch network access of the devices to be configured, and can also reduce labor costs for device configuration and network access. At the same time, the device configuration method provided in this embodiment does not need to bridge multiple routers, so the device configuration method in this embodiment also reduces the device cost in the deployment process.
另外,在待配置设备与关联智能网关建立连接后,在对待配置设备进行云端激活之前,还可以对该设备部署系统进行多网关联动调试。具体地,可以向主智能网关下发预设的联动指令,之后主智能网关将该联动指令下发至需要联动的待配置设备对应的关联智能网关,再由关联智能网关将该联动指令下发给对应的待配置设备,从而依次通过主智能网关和关联智能网关实现了多网关下待配置设备的联动。In addition, after the device to be configured is connected to the associated smart gateway, before the device is activated in the cloud, multi-network association debugging can also be performed on the device deployment system. Specifically, a preset linkage instruction can be issued to the main intelligent gateway, and then the main intelligent gateway issues the linkage instruction to the associated intelligent gateway corresponding to the device to be configured that needs to be linked, and then the associated intelligent gateway issues the linkage instruction For the corresponding devices to be configured, the linkage of devices to be configured under multiple gateways is realized through the main intelligent gateway and the associated intelligent gateway in turn.
进一步地,在一个实施例中,在基于预先获取的设备部署模板和秘钥激活智能网关之后,上述设备配置方法还可以包括以下步骤:Further, in one embodiment, after the smart gateway is activated based on the pre-acquired device deployment template and secret key, the above device configuration method may further include the following steps:
步骤S250,基于智能网关的网关类型和所包含的固件的版本,从处于激活状态的智能网关中确定主智能网关。Step S250, based on the gateway type of the intelligent gateway and the version of the included firmware, determine the master intelligent gateway from the activated intelligent gateways.
不同网关类型的智能网关具有不同的网关能力。例如,中控网关的网关能力优先级比有线网关的网关优先级高,有线网关的网关能力优先级比无线网关的高。另外,固件版本更新的智能网关的优先级也更高。因此,可以基于智能网关的网关类型和固件的版本,从处于激活状态的智能网关中确定主智能网关。主智能网关需要串联其他智能网关完成待配置设备的联动、自动化等工作。本实施例能够基于该主智能网关实现预设指令在多网关下的一次性传达,并完成多网关下待配置设备的联动,从而提高设备联动和自动化的效率。Smart gateways of different gateway types have different gateway capabilities. For example, the gateway capability priority of the central control gateway is higher than that of the wired gateway, and the gateway capability priority of the wired gateway is higher than that of the wireless gateway. In addition, smart gateways with newer firmware versions have higher priority. Therefore, based on the gateway type and firmware version of the smart gateway, the master smart gateway can be determined from the smart gateways in the activated state. The main intelligent gateway needs to be connected in series with other intelligent gateways to complete the linkage and automation of the devices to be configured. This embodiment can realize the one-time transmission of preset instructions under multiple gateways based on the main intelligent gateway, and complete the linkage of devices to be configured under multiple gateways, thereby improving the efficiency of equipment linkage and automation.
进一步地,在一个实施例中,在关联智能网关与待配置设备建立基于物联网协议的连接后,上述设备配置方法还可以包括:向主智能网关发起预设的联动指令,以使主智能网关基于联动指令搜索关联智能网关,并通过关联智能网关向待配置设备发起联动。本实施例通过主智能网关和关联智能网关向待配置设备发起联动,能够提高设备联动的效率。Further, in one embodiment, after the associated smart gateway establishes a connection based on the Internet of Things protocol with the device to be configured, the above-mentioned device configuration method may further include: sending a preset linkage command to the master smart gateway, so that the master smart gateway Search for the associated smart gateway based on the linkage command, and initiate linkage to the device to be configured through the associated smart gateway. In this embodiment, the main intelligent gateway and the associated intelligent gateway initiate linkage to the device to be configured, which can improve the efficiency of equipment linkage.
此外,在一个实施例中,基于上述步骤S230,根据设备部署模板,从处于激活状态的智能网关中确定待配置设备所属的关联智能网关,并控制关联智能网关进行子设备搜索,以使关联智能网关与待配置设备建立基于物联网协议的连接,具体可以包括以下步骤:In addition, in one embodiment, based on the above step S230, according to the device deployment template, determine the associated intelligent gateway to which the device to be configured belongs from the activated intelligent gateway, and control the associated intelligent gateway to search for sub-device, so that the associated intelligent gateway The gateway establishes a connection based on the Internet of Things protocol with the device to be configured, which may specifically include the following steps:
步骤S231,根据设备部署模板中预先设置的智能网关与待配置设备之间的关联关系,从处于激活状态的智能网关中确定待配置设备所属的关联智能网关。Step S231, according to the preset association relationship between the smart gateway and the device to be configured in the device deployment template, determine the associated smart gateway to which the device to be configured belongs from the activated smart gateways.
具体地,根据设备部署模板中预先设置的智能网关与待配置设备之间的关联关系,确定目前需要完成配置入网的设备所属的关联智能网关。其中,该关联智能网关与待配置设备之间的关联关系可以为一对多,即一个关联智能网关下可以对应一个或多个待配置设备。Specifically, according to the association relationship between the intelligent gateway preset in the device deployment template and the device to be configured, determine the associated intelligent gateway to which the device that needs to be configured and connected to the network belongs. Wherein, the association relationship between the associated intelligent gateway and the device to be configured may be one-to-many, that is, one associated intelligent gateway may correspond to one or more devices to be configured.
步骤S232,向关联智能网关发送子设备搜索指令,以使关联智能网关基于子设备搜索指令进行子设备搜索,并与关联关系中对应的待配置设备建立基于物联网协议的连接。Step S232, sending a sub-device search instruction to the associated intelligent gateway, so that the associated intelligent gateway performs sub-device search based on the sub-device search instruction, and establishes a connection based on the Internet of Things protocol with the corresponding device to be configured in the association relationship.
关联智能网关基于子设备搜索指令,与对应的待配置设备建立基于物联网协议的连接,能够实现待配置设备在目前局域网的激活,从而便于后续对待配置设备在云端的一次性激活。Based on the sub-device search command, the associated intelligent gateway establishes a connection based on the Internet of Things protocol with the corresponding device to be configured, which can realize the activation of the device to be configured in the current local area network, thereby facilitating the subsequent one-time activation of the device to be configured in the cloud.
进一步地,在一个实施例中,基于上述步骤S232,向关联智能网关发送子设备搜索指令,以使关联智能网关基于子设备搜索指令进行子设备搜索,并与关联关系中对应的待配置设备建立基于物联网协议的连接,具体可以包括:向关联智能网关发送子设备搜索指令,以使关联智能网关基于子设备搜索指令,搜索在关联关系中与关联智能网关对应的处于配网状态的待配置设备的广播包,并基于广播包对待配置设备进行校验并建立基于物联网协议的连接。Further, in one embodiment, based on the above step S232, a sub-device search instruction is sent to the associated intelligent gateway, so that the associated intelligent gateway performs sub-device search based on the sub-device search instruction, and establishes a sub-device with the corresponding device to be configured in the association relationship. The connection based on the Internet of Things protocol can specifically include: sending a sub-device search instruction to the associated smart gateway, so that the associated smart gateway can search for the network configuration corresponding to the associated smart gateway in the association relationship based on the sub-device search instruction The broadcast packet of the device, and based on the broadcast packet, the device to be configured is verified and the connection based on the Internet of Things protocol is established.
关联智能网关基于子设备搜索指令,搜索处于配网状态的待配置设备的广播包,并基于该广播包对待配置设备进行校验和建立连接,能够提高关联智能网关与待配置设备连接的效率和准确度。Based on the sub-device search command, the associated intelligent gateway searches for the broadcast packet of the device to be configured in the distribution network state, and verifies and establishes a connection with the device to be configured based on the broadcast packet, which can improve the efficiency and efficiency of the connection between the associated intelligent gateway and the device to be configured Accuracy.
在一个实施例中,基于上述步骤S240,控制关联智能网关在云端激活关联智能网关连接的待配置设备,以完成设备部署系统中所有待配置设备的批量配置入网,具体可以包括以下步骤:In one embodiment, based on the above step S240, the associated smart gateway is controlled to activate the devices to be configured connected to the associated smart gateway in the cloud, so as to complete the batch configuration and network access of all devices to be configured in the device deployment system, which may specifically include the following steps:
步骤S241,在云端激活关联智能网关;Step S241, activate the associated smart gateway on the cloud;
步骤S242,控制在云端激活的关联智能网关,对待配置设备在云端进行批量激活,以完成设备部署系统中所有待配置设备的批量配置入网。Step S242, controlling the associated intelligent gateway activated on the cloud, and performing batch activation of the devices to be configured on the cloud, so as to complete the batch configuration and network access of all devices to be configured in the device deployment system.
上述步骤S241至步骤S242,能够实现在通网状态下,对所有待配置设备的批量入网,从而提高设备部署系统中所有待配置设备入网的效率,降低对设备进行配置入网的时间成本和人工成本。The above step S241 to step S242 can realize batch network access of all devices to be configured in the network connection state, thereby improving the efficiency of network access of all devices to be configured in the device deployment system, and reducing the time cost and labor cost of configuring devices to be connected to the network .
另外地,在一个实施例中,在关联智能网关与待配置设备建立基于物联网协议的连接之后,上述设备配置方法还可以包括以下步骤:In addition, in one embodiment, after the associated intelligent gateway establishes a connection based on the Internet of Things protocol with the device to be configured, the above device configuration method may further include the following steps:
步骤S261,获取与关联智能网关建立连接的待配置设备的设备信息;Step S261, obtaining the device information of the device to be configured that establishes a connection with the associated smart gateway;
步骤S262,将待配置设备的设备信息进行存储。Step S262, storing the device information of the device to be configured.
其中,可以将待配置设备的设备信息分布缓存于对应的关联智能网关下,。通过对待配置设备的设备信息进行分布缓存,能够提高信息存储的安全性。相比于目前将所有的待配置设备信息存储到同一个智能网关中,在该智能网关出现故障或者离线的情况下,在先配置过的待配置设备的设备信息均会丢失。因此本实施例所提供的将待配置设备的设备信息分布缓存于对应的关联智能网关下,能够避免单网关存储中因网关信号弱、或者网络不稳定等因素导致的信息恢复失败的单点故障的问题。Wherein, the device information of the device to be configured can be distributed and cached under the corresponding associated intelligent gateway. By distributing and caching the device information of the device to be configured, the security of information storage can be improved. Compared with storing all the information of the devices to be configured in the same intelligent gateway at present, when the intelligent gateway fails or goes offline, the device information of the previously configured devices to be configured will be lost. Therefore, the device information of the device to be configured is distributed and cached under the corresponding associated intelligent gateway provided by this embodiment, which can avoid the single point of failure of information recovery failure caused by factors such as weak gateway signal or network instability in single gateway storage. The problem.
另外,也可以将获取的设备信息中转存储于终端,例如手机应用程序中。本实施例通过对待配置设备的设备信息进行中转存储,能够在配置流程中断的情况下,基于该设备信息恢复该待配置设备的配置。In addition, the obtained device information can also be transferred and stored in a terminal, such as a mobile phone application. In this embodiment, by transferring and storing the device information of the device to be configured, the configuration of the device to be configured can be restored based on the device information when the configuration process is interrupted.
下面通过优选实施例对本实施例进行描述和说明。The present embodiment is described and illustrated through preferred embodiments below.
图3是本优选实施例的设备配置方法的流程图。如图3所示,该设备配置方法包括如下过程:Fig. 3 is a flow chart of the device configuration method in this preferred embodiment. As shown in Figure 3, the device configuration method includes the following processes:
在施工SaaS(Software-as-a-Service,软件服务提供方)端:On the construction SaaS (Software-as-a-Service, software service provider) side:
步骤S3-11,创建模板;Step S3-11, creating a template;
步骤S3-12,导入网关A;Step S3-12, import gateway A;
步骤S3-13,导入子设备A-a;Step S3-13, importing sub-device A-a;
步骤S3-14,导入网关B;Step S3-14, import gateway B;
步骤S3-15,导入子设备B-a中;Step S3-15, importing into sub-device B-a;
步骤S3-16,创建场景;Step S3-16, creating a scene;
步骤S3-17,选择子设备A-a;Step S3-17, select sub-device A-a;
步骤S3-18,选择子设备B-a;Step S3-18, selecting sub-device B-a;
步骤S3-19,下发施工任务;Step S3-19, issuing construction tasks;
步骤S3-110,判断用户模板网关是否都激活;若是,则执行步骤S3-112,否则,执行步骤S3-111;Step S3-110, judge whether the user template gateways are all activated; if so, execute step S3-112, otherwise, execute step S3-111;
步骤S3-111,保存激活的设备和场景、自动化数据;Step S3-111, saving activated equipment, scenes, and automation data;
步骤S3-112,使用模板中的场景、自动化。Step S3-112, use the scene and automation in the template.
其中,上述模板为上述实施例的设备部署模板,创建的场景具体可以为设备的自动化场景,或设备联动场景。示例性地,设备的自动化场景具体可以为:雨天自动关闭窗户、离家自动断电等。设备的联动场景具体可以为温度过高的情况下开启空调并联动开启加湿器。子设备A-a与网关A关联,子设备B-a与网关B关联,步骤S3-19所下发的施工任务为向施工App下发施工任务。该施工App即运行上述设备配置方法的终端。该施工任务为对需要进行配置入网的设备在关联智能网关中连接并配置入网的任务。上述网关A、网关B即上述的智能网关。Wherein, the above-mentioned template is the device deployment template in the above-mentioned embodiment, and the created scene may specifically be an automation scene of a device or a scene of a device linkage. Exemplarily, the automation scenario of the device may specifically be: automatically closing the windows in rainy days, automatically turning off the power when leaving home, and so on. The linkage scene of the equipment can specifically be to turn on the air conditioner and turn on the humidifier when the temperature is too high. The sub-device A-a is associated with the gateway A, and the sub-device B-a is associated with the gateway B. The construction task delivered in step S3-19 is the delivery of the construction task to the construction app. The construction software is the terminal running the above equipment configuration method. This construction task is the task of connecting and configuring network access for devices that need to be configured for network access in the associated smart gateway. The above-mentioned gateway A and gateway B are the above-mentioned intelligent gateways.
在施工App(Application,应用程序)端:On the construction App (Application, application) side:
步骤S3-21,获取施工任务;Step S3-21, acquiring construction tasks;
步骤S3-22,通过外网下载模板;Step S3-22, downloading the template through the external network;
步骤S3-23,进入施工任务;Step S3-23, enter the construction task;
步骤S3-24,将网关A设为master网关;Step S3-24, setting gateway A as the master gateway;
步骤S3-25,完成设备配网;Step S3-25, completing the device network distribution;
步骤S3-26,配置场景;Step S3-26, configure the scene;
步骤S3-27,判断是否跨网关;Step S3-27, judging whether to cross the gateway;
步骤S3-28,配置自动化。Step S3-28, configuring automation.
其中,上述从外网下载的模板即为上述设备部署模板,上述master网关即为上述主智能网关。Wherein, the above-mentioned template downloaded from the external network is the above-mentioned device deployment template, and the above-mentioned master gateway is the above-mentioned main intelligent gateway.
在设备端:On the device side:
步骤S3-31,连接局域网;Step S3-31, connect to local area network;
步骤S3-32,连接网关A;Step S3-32, connect to gateway A;
步骤S3-33,连接子设备A-a;Step S3-33, connect sub-device A-a;
步骤S3-34,连接网关B;Step S3-34, connect to gateway B;
步骤S3-35,连接子设备B-a;Step S3-35, connect sub-device B-a;
步骤S3-36,下发步骤S3-26配置的场景给master网关执行;Step S3-36, delivering the scenario configured in step S3-26 to the master gateway for execution;
步骤S3-37,若不为跨网关场景,则下发给子设备所在网关执行验证;Step S3-37, if it is not a cross-gateway scenario, send it to the gateway where the sub-device is located to perform verification;
步骤S3-38,若为跨网关场景,则下发给master网关执行验证;Step S3-38, if it is a cross-gateway scenario, send it to the master gateway for verification;
步骤S3-39,下发给master网关执行、存储。Step S3-39, sending it to the master gateway for execution and storage.
用户APP端:User APP:
步骤S3-41,连接WiFi;Step S3-41, connect to WiFi;
步骤S3-42,激活网关A;Step S3-42, activate gateway A;
步骤S3-43,激活网关B;Step S3-43, activate gateway B;
步骤S3-44,使用模板中的场景、自动化。Step S3-44, using the scene and automation in the template.
在本实施例中还提供了一种设备配置装置,该设备配置装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。以下所使用的术语“模块”、“单元”、“子单元”等可以实现预定功能的软件和/或硬件的组合。尽管在以下实施例中所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device configuration device is also provided, and the device configuration device is used to implement the above embodiments and preferred implementation modes, and those that have been described will not be repeated. The terms "module", "unit", "subunit" and the like used hereinafter may be a combination of software and/or hardware that realizes a predetermined function. Although the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
图4是本实施例的设备配置装置40的结构框图,如图4所示,该设备配置装置40包括:预处理模块42、获取模块44、连接模块46、以及配置模块48;其中:FIG. 4 is a structural block diagram of a
预处理模块42,用于配置设备部署系统的局域网网络,使各个待配置设备与智能网关基于同一种物联网协议通信。The
获取模块44,用于基于预先获取的设备部署模板和秘钥激活智能网关;An
连接模块46,用于根据设备部署模板,从处于激活状态的智能网关中确定待配置设备所属的关联智能网关,并控制关联智能网关进行子设备搜索,以使关联智能网关与待配置设备建立基于物联网协议的连接;The
配置模块48,用于在连接网络后,控制关联智能网关在云端激活关联智能网关连接的待配置设备,以完成设备部署系统中所有待配置设备的批量配置入网。The
上述设备配置装置40,配置设备部署系统的局域网网络,使各个待配置设备与智能网关基于同一种物联网协议通信,基于预先获取的设备部署模板和秘钥激活智能网关,根据设备部署模板,从处于激活状态的智能网关中确定待配置设备所属的关联智能网关,并控制关联智能网关进行子设备搜索,以使关联智能网关与待配置设备建立基于物联网协议的连接,在连接网络后,控制关联智能网关在云端激活关联智能网关连接的待配置设备,以完成设备部署系统中所有待配置设备的批量配置入网。其通过预先建立智能网关与待配置设备的连接,实现了对待配置设备的批量入网,从而提高了大面积房屋的设备配置入网的效率。The above
需要说明的是,上述各个模块可以是功能模块也可以是程序模块,既可以通过软件来实现,也可以通过硬件来实现。对于通过硬件来实现的模块而言,上述各个模块可以位于同一处理器中;或者上述各个模块还可以按照任意组合的形式分别位于不同的处理器中。It should be noted that each of the above-mentioned modules may be a function module or a program module, and may be realized by software or by hardware. For the modules implemented by hardware, the above modules may be located in the same processor; or the above modules may be located in different processors in any combination.
在本实施例中还提供了一种设备部署系统,图5为本实施例的设备部署系统50的结构示意图,如图5所示,该设备部署系统50包括:终端52、智能网关54、以及至少两个待配置设备56;其中,终端52与智能网关54通信连接;终端52用于执行上述任一项实施例提供的设备配置方法。In this embodiment, a device deployment system is also provided. FIG. 5 is a schematic structural diagram of a
上述设备部署系统50,实现了对待配置设备的批量入网,从而提高了大面积房屋的设备配置入网的效率。The above-mentioned
在本实施例中还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。This embodiment also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
配置设备部署系统的局域网网络,使各个待配置设备与智能网关基于同一种物联网协议通信;Configure the LAN network of the device deployment system so that each device to be configured communicates with the smart gateway based on the same IoT protocol;
基于预先获取的设备部署模板和秘钥激活智能网关;Activate the smart gateway based on the pre-acquired device deployment template and secret key;
根据设备部署模板,从处于激活状态的智能网关中确定待配置设备所属的关联智能网关,并控制关联智能网关进行子设备搜索,以使关联智能网关与待配置设备建立基于物联网协议的连接;According to the device deployment template, determine the associated intelligent gateway to which the device to be configured belongs from the activated intelligent gateway, and control the associated intelligent gateway to search for sub-device, so that the associated intelligent gateway and the device to be configured can establish a connection based on the Internet of Things protocol;
在连接网络后,控制关联智能网关在云端激活关联智能网关连接的待配置设备,以完成设备部署系统中所有待配置设备的批量配置入网。After connecting to the network, control the associated intelligent gateway to activate the devices to be configured connected to the associated intelligent gateway in the cloud, so as to complete the batch configuration and access of all devices to be configured in the device deployment system.
需要说明的是,在本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,在本实施例中不再赘述。It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not repeated in this embodiment.
此外,结合上述实施例中提供的设备配置方法,在本实施例中还可以提供一种存储介质来实现。该存储介质上存储有计算机程序;该计算机程序被处理器执行时实现上述实施例中的任意一种设备配置方法。In addition, in combination with the device configuration method provided in the foregoing embodiments, a storage medium may also be provided in this embodiment for implementation. A computer program is stored on the storage medium; when the computer program is executed by a processor, any one of the device configuration methods in the foregoing embodiments is implemented.
应该明白的是,这里描述的具体实施例只是用来解释这个应用,而不是用来对它进行限定。根据本申请提供的实施例,本领域普通技术人员在不进行创造性劳动的情况下得到的所有其它实施例,均属本申请保护范围。It should be understood that the specific embodiments described here are only used to illustrate the application, not to limit it. According to the embodiments provided in the present application, all other embodiments obtained by persons of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.
显然,附图只是本申请的一些例子或实施例,对本领域的普通技术人员来说,也可以根据这些附图将本申请适用于其他类似情况,但无需付出创造性劳动。另外,可以理解的是,尽管在此开发过程中所做的工作可能是复杂和漫长的,但是,对于本领域的普通技术人员来说,根据本申请披露的技术内容进行的某些设计、制造或生产等更改仅是常规的技术手段,不应被视为本申请公开的内容不足。Apparently, the drawings are only some examples or embodiments of the present application, and those skilled in the art can also apply the present application to other similar situations according to these drawings, but no creative work is required. In addition, it can be understood that although the work done in this development process may be complicated and lengthy, for those of ordinary skill in the art, certain designs, manufactures based on the technical content disclosed in this application Or production and other changes are only conventional technical means, and should not be regarded as insufficient content disclosed in this application.
“实施例”一词在本申请中指的是结合实施例描述的具体特征、结构或特性可以包括在本申请的至少一个实施例中。该短语出现在说明书中的各个位置并不一定意味着相同的实施例,也不意味着与其它实施例相互排斥而具有独立性或可供选择。本领域的普通技术人员能够清楚或隐含地理解的是,本申请中描述的实施例在没有冲突的情况下,可以与其它实施例结合。The term "an embodiment" in this application means that a specific feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply mutual exclusion or independence or alternatives to other embodiments. Those of ordinary skill in the art can clearly or implicitly understand that the embodiments described in this application can be combined with other embodiments without conflict.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对专利保护范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the protection scope of the patent. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be determined by the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210741256.2A CN115460073A (en) | 2022-06-28 | 2022-06-28 | Device configuration method, device, device deployment system and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210741256.2A CN115460073A (en) | 2022-06-28 | 2022-06-28 | Device configuration method, device, device deployment system and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115460073A true CN115460073A (en) | 2022-12-09 |
Family
ID=84296060
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210741256.2A Pending CN115460073A (en) | 2022-06-28 | 2022-06-28 | Device configuration method, device, device deployment system and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115460073A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116095113A (en) * | 2023-01-04 | 2023-05-09 | 宁波奥克斯电气股份有限公司 | Automatic update method and device for air conditioner Internet of things protocol and air conditioner Internet of things system |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9143400B1 (en) * | 2012-05-01 | 2015-09-22 | Google Inc. | Network gateway configuration |
| CN107948003A (en) * | 2017-12-29 | 2018-04-20 | 南京物联传感技术有限公司 | A key screening device and its collocation method for a kind of smart home |
| CN108156058A (en) * | 2018-01-09 | 2018-06-12 | 深圳绿米联创科技有限公司 | Access method and device, the readable storage medium storing program for executing of intelligent gateway device |
| CN109495310A (en) * | 2018-11-28 | 2019-03-19 | 上海世滨电子商务有限公司 | A kind of distribution method and system of smart machine |
| CN110213102A (en) * | 2019-06-03 | 2019-09-06 | 深圳绿米联创科技有限公司 | Apparatus control method, device, electronic equipment and storage medium |
| CN110958593A (en) * | 2019-10-22 | 2020-04-03 | 珠海格力电器股份有限公司 | Bluetooth networking method, device, system and computer readable medium |
| CN113206864A (en) * | 2021-03-25 | 2021-08-03 | 杭州博联智能科技股份有限公司 | Equipment batch adding method, device, equipment and medium |
| CN113259155A (en) * | 2021-04-21 | 2021-08-13 | 京东数字科技控股股份有限公司 | Access method, device, gateway, medium and electronic equipment of Internet of things equipment |
| CN113300879A (en) * | 2021-04-13 | 2021-08-24 | 深圳万物安全科技有限公司 | Method, system and computer readable medium for zero configuration opening of equipment |
| CN113691935A (en) * | 2021-08-23 | 2021-11-23 | 深圳市欧瑞博科技股份有限公司 | Network optimization method and device and electronic equipment |
| WO2022016673A1 (en) * | 2020-07-24 | 2022-01-27 | 深圳创维数字技术有限公司 | Batch network distribution method and system for intelligent device, and storage medium |
| CN114115921A (en) * | 2021-12-03 | 2022-03-01 | 上海致景信息科技有限公司 | Edge computing framework and transparent gateway method, device and processor |
-
2022
- 2022-06-28 CN CN202210741256.2A patent/CN115460073A/en active Pending
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9143400B1 (en) * | 2012-05-01 | 2015-09-22 | Google Inc. | Network gateway configuration |
| CN107948003A (en) * | 2017-12-29 | 2018-04-20 | 南京物联传感技术有限公司 | A key screening device and its collocation method for a kind of smart home |
| CN108156058A (en) * | 2018-01-09 | 2018-06-12 | 深圳绿米联创科技有限公司 | Access method and device, the readable storage medium storing program for executing of intelligent gateway device |
| CN109495310A (en) * | 2018-11-28 | 2019-03-19 | 上海世滨电子商务有限公司 | A kind of distribution method and system of smart machine |
| CN110213102A (en) * | 2019-06-03 | 2019-09-06 | 深圳绿米联创科技有限公司 | Apparatus control method, device, electronic equipment and storage medium |
| CN110958593A (en) * | 2019-10-22 | 2020-04-03 | 珠海格力电器股份有限公司 | Bluetooth networking method, device, system and computer readable medium |
| WO2022016673A1 (en) * | 2020-07-24 | 2022-01-27 | 深圳创维数字技术有限公司 | Batch network distribution method and system for intelligent device, and storage medium |
| CN113206864A (en) * | 2021-03-25 | 2021-08-03 | 杭州博联智能科技股份有限公司 | Equipment batch adding method, device, equipment and medium |
| CN113300879A (en) * | 2021-04-13 | 2021-08-24 | 深圳万物安全科技有限公司 | Method, system and computer readable medium for zero configuration opening of equipment |
| CN113259155A (en) * | 2021-04-21 | 2021-08-13 | 京东数字科技控股股份有限公司 | Access method, device, gateway, medium and electronic equipment of Internet of things equipment |
| CN113691935A (en) * | 2021-08-23 | 2021-11-23 | 深圳市欧瑞博科技股份有限公司 | Network optimization method and device and electronic equipment |
| CN114115921A (en) * | 2021-12-03 | 2022-03-01 | 上海致景信息科技有限公司 | Edge computing framework and transparent gateway method, device and processor |
Non-Patent Citations (3)
| Title |
|---|
| JOHN TREADWAY: "Using an IoT gateway to connect the \'things\' to the cloud", Retrieved from the Internet <URL:https://www.techtarget.com/iotagenda/feature/Using-an-IoT-gateway-to-connect-the-Things-to-the-cloud> * |
| SUGANDH KUMAR CHAUDHARY, SYED YOUSUFF, N. P. MEGHANA, T. S. ASHWIN,RAM MOHANA REDDY GUDDETI: "A Multi-Protocol Home Automation System Using Smart Gateway", Retrieved from the Internet <URL:https://link.springer.com/article/10.1007/s11277-020-07795-0> * |
| 赵志宇;: "配电地理信息系统GIS与配网自动化", 云南电力技术, no. 06 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116095113A (en) * | 2023-01-04 | 2023-05-09 | 宁波奥克斯电气股份有限公司 | Automatic update method and device for air conditioner Internet of things protocol and air conditioner Internet of things system |
| CN116095113B (en) * | 2023-01-04 | 2024-07-26 | 宁波奥克斯电气股份有限公司 | Automatic update method and device for air conditioner Internet of things protocol and air conditioner Internet of things system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110740460B (en) | Network access method and device of equipment, network equipment and storage medium | |
| CN110636483A (en) | Network distribution method and system | |
| US10142342B2 (en) | Authentication of client devices in networks | |
| US9549385B2 (en) | Configuration of networks using client device access of remote server | |
| WO2016058367A1 (en) | Smart home control system | |
| CN107409270B (en) | Method and apparatus for establishing a connection between devices | |
| CN105100052A (en) | Server, mobile phone terminal and account and equipment binding execution and control methods thereof | |
| TW201344576A (en) | Firmware upgrade method and system and terminal device using the method | |
| CN102954564B (en) | The control method of air-conditioning | |
| CN111913397B (en) | Device control method, device, storage medium, and electronic apparatus | |
| CN112637931A (en) | Method and device for establishing network connection | |
| CN112187531A (en) | Module upgrading method and system, storage medium and electronic device | |
| CN112738785B (en) | Device connection method and apparatus, storage medium, and electronic apparatus | |
| CN112737816B (en) | A device binding method and device | |
| CN113891317A (en) | Network distribution method for intelligent equipment, distribution network device, and electronic equipment | |
| CN104640122A (en) | Wireless networking method of router and trunk equipment | |
| CN108833268B (en) | Control system and operation method of variable description equipment of household wireless sensor network | |
| CN115460073A (en) | Device configuration method, device, device deployment system and storage medium | |
| CN111866856B (en) | Mesh device control method and system, storage medium and electronic device | |
| CN110071950B (en) | Information transmission method, transfer device, terminal, controlled device and storage medium | |
| WO2023005410A1 (en) | Information synchronization method and system, storage medium, and electronic device | |
| CN105791361A (en) | Method, server, terminal and system for setting remote assistance | |
| CN115150797A (en) | Intelligent device and network connection method thereof, routing device and storage medium | |
| CN110363979A (en) | A LoRa remote control system and control method based on ModBus protocol | |
| CN114488825A (en) | Method and system for setting accessory equipment, storage medium and electronic device |
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 | ||
| AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20241227 |
|
| AD01 | Patent right deemed abandoned |