CN111953550B - Equipment network distribution method and device and Internet of things equipment - Google Patents
Equipment network distribution method and device and Internet of things equipment Download PDFInfo
- Publication number
- CN111953550B CN111953550B CN202010851554.8A CN202010851554A CN111953550B CN 111953550 B CN111953550 B CN 111953550B CN 202010851554 A CN202010851554 A CN 202010851554A CN 111953550 B CN111953550 B CN 111953550B
- Authority
- CN
- China
- Prior art keywords
- server
- identifier
- router
- wifi module
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000004891 communication Methods 0.000 claims description 14
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 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
- 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/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请公开了一种设备配网方法、装置及物联网设备,该方法应用于待配网设备,待配网设备中配置有第一标识以及与第一标识对应的多个服务器地址,其中,第一标识为标志服务器类型为国内服务器或者国外服务器的信息;方法包括:在与路由器建立连接后,获取终端设备发送的第二标识,其中,第二标识由终端设备从待配网设备的二维码中获得;根据第一标识从多个服务器地址中确定与第二标识对应的服务器;从与第二标识对应的服务器中获取目标服务器;发送WIFI模组的设备信息给目标服务器进行WIFI模组注册,以与目标服务器对应的云平台连接,其中,设备信息包括WIFI模组的识别标识。本申请的方案能够提高WIFI模组的通用性。
The present application discloses a device network distribution method, device, and Internet of Things device. The method is applied to a device to be distributed, and the device to be distributed is configured with a first identifier and a plurality of server addresses corresponding to the first identifier, wherein, The first identifier is information indicating that the server type is a domestic server or a foreign server; the method includes: after establishing a connection with the router, acquiring a second identifier sent by the terminal device, wherein the second identifier is sent by the terminal device from the second identifier of the device to be distributed. Obtaining from the dimensional code; determining the server corresponding to the second identification from multiple server addresses according to the first identification; obtaining the target server from the server corresponding to the second identification; sending the device information of the WIFI module to the target server for WIFI modeling Group registration to connect with the cloud platform corresponding to the target server, wherein the device information includes the identification of the WIFI module. The solution of the present application can improve the versatility of the WIFI module.
Description
技术领域technical field
本发明涉及通信技术领域,具体而言,涉及一种设备配网方法、装置及物联网设备。The present invention relates to the field of communication technologies, and in particular, to a device distribution network method, device, and Internet of Things device.
背景技术Background technique
目前的WIFI模组,是在WIFI模组内直接写好该WIFI模组需要连接的服务器地址,因此,这种方案中,一个WIFI模组只能够适用于唯一的服务器,通用性非常低。如果要与不同类型的服务器连接,那么,则需要配置与服务器对应的WIFI模组。In the current WIFI module, the server address that the WIFI module needs to connect to is directly written in the WIFI module. Therefore, in this solution, a WIFI module can only be applied to a single server, and the versatility is very low. If you want to connect with different types of servers, you need to configure the WIFI module corresponding to the server.
发明内容SUMMARY OF THE INVENTION
为解决上述问题,第一方面,本发明实施例提供一种设备配网方法,应用于待配网设备,所述待配网设备包括WIFI模组,所述待配网设备中配置有第一标识以及与所述第一标识对应的多个服务器地址,其中,所述第一标识为标志服务器类型为国内服务器或者国外服务器的信息;所述方法包括:In order to solve the above problems, in the first aspect, an embodiment of the present invention provides a device network distribution method, which is applied to a device to be distributed, the device to be distributed includes a WIFI module, and the device to be distributed is configured with a first An identifier and multiple server addresses corresponding to the first identifier, wherein the first identifier is information indicating that the server type is a domestic server or a foreign server; the method includes:
在与路由器建立连接后,获取终端设备发送的第二标识,其中,所述第二标识由终端设备从所述待配网设备的二维码中获得;After establishing the connection with the router, obtain the second identification sent by the terminal device, wherein the second identification is obtained by the terminal device from the two-dimensional code of the device to be distributed;
根据所述第一标识从所述多个服务器地址中确定与所述第二标识对应的服务器;Determine a server corresponding to the second identifier from the plurality of server addresses according to the first identifier;
从与所述第二标识对应的服务器中获取目标服务器;Obtain the target server from the server corresponding to the second identifier;
发送WIFI模组的设备信息给所述目标服务器进行WIFI模组注册,以与所述目标服务器对应的云平台连接,其中,所述设备信息包括所述WIFI模组的识别标识。Send the device information of the WIFI module to the target server to register the WIFI module to connect with the cloud platform corresponding to the target server, wherein the device information includes the identification of the WIFI module.
在可选的实施方式中,所述方法还包括:In an optional embodiment, the method further includes:
获取终端设备发送的路由器的名称以及路由器的密码;Obtain the name of the router and the password of the router sent by the terminal device;
根据所述路由器的名称以及所述路由器的密码连接对应的路由器。Connect to the corresponding router according to the name of the router and the password of the router.
在可选的实施方式中,所述获取终端设备发送的路由器的名称以及路由的器密码,包括:In an optional implementation manner, the obtaining the name of the router and the router password of the router sent by the terminal device includes:
判断所述WIFI模组是否已经复位;Determine whether the WIFI module has been reset;
如果所述WIFI模组已经复位,则获取终端设备发送的路由器的名称以及路由器的密码。If the WIFI module has been reset, obtain the name of the router and the password of the router sent by the terminal device.
在可选的实施方式中,所述方法还包括:获取所述目标服务器对应云平台所采用的通信协议;In an optional implementation manner, the method further includes: acquiring a communication protocol adopted by the cloud platform corresponding to the target server;
判断所述云平台与所述WIFI模组所采用的通信协议是否一致;Determine whether the communication protocol adopted by the cloud platform and the WIFI module is consistent;
如果所述云平台与所述WIFI模组所采用的通信协议不一致;If the cloud platform is inconsistent with the communication protocol adopted by the WIFI module;
则将从所述云平台接收到的数据按照WIFI模组所采用的协议进行格式转换,或者,将待发送至所述云平台的数据按照所述云平台所采用的协议进行格式转换。The data received from the cloud platform is format-converted according to the protocol adopted by the WIFI module, or the data to be sent to the cloud platform is format-converted according to the protocol adopted by the cloud platform.
在可选的实施方式中,所述从与所述第二标识对应的服务器中获取目标服务器,包括:In an optional implementation manner, the obtaining the target server from the server corresponding to the second identifier includes:
确定与所述第二标识对应的服务器作为中间服务器;determining that the server corresponding to the second identifier is used as an intermediate server;
按照优先级顺序从所述中间服务器中选择目标服务器。The target server is selected from the intermediate servers in order of priority.
在可选的实施方式中,所述发送WIFI模组的设备信息给所述目标服务器进行WIFI模组注册,包括:In an optional implementation manner, the sending of the device information of the WIFI module to the target server to register the WIFI module includes:
将所述设备信息发送给所述目标服务器;sending the device information to the target server;
接收所述目标服务器返回的设备标识;receiving the device identifier returned by the target server;
根据所述设备标识与所述目标服务器对应的云平台进行交互。Interact with the cloud platform corresponding to the target server according to the device identification.
第二方面,本发明实施例提供一种设备配网装置,应用于待配网设备,所述待配网设备包括WIFI模组,所述待配网设备中配置有第一标识以及与所述第一标识对应的多个服务器地址,其中,所述第一标识为标志服务器类型为国内服务器或者国外服务器的信息;所述装置包括:In a second aspect, an embodiment of the present invention provides a device network distribution device, which is applied to a device to be distributed, the device to be distributed includes a WIFI module, and the device to be distributed is configured with a first identifier and the Multiple server addresses corresponding to the first identifier, wherein the first identifier is information indicating that the server type is a domestic server or a foreign server; the device includes:
第一获取模块,用于在与路由器建立连接后,获取终端设备发送的第二标识,其中,所述第二标识由终端设备从所述待配网设备的二维码中获得;a first obtaining module, configured to obtain a second identification sent by the terminal device after establishing a connection with the router, wherein the second identification is obtained by the terminal device from the two-dimensional code of the device to be distributed;
确定模块,用于根据所述第一标识从所述多个服务器地址中确定与所述第二标识对应的服务器;a determining module, configured to determine a server corresponding to the second identifier from the plurality of server addresses according to the first identifier;
第二获取模块,从与所述第二标识对应的服务器中获取目标服务器;A second obtaining module, for obtaining a target server from a server corresponding to the second identifier;
注册模块,用于发送WIFI模组的设备信息给所述目标服务器进行WIFI模组注册,以与所述目标服务器对应的云平台连接,其中,所述设备信息包括所述WIFI模组的识别标识。The registration module is used to send the device information of the WIFI module to the target server to register the WIFI module to connect with the cloud platform corresponding to the target server, wherein the device information includes the identification of the WIFI module .
在可选的实施方式中,所述装置还包括:In an optional embodiment, the device further comprises:
第三获取模块,用于获取终端设备发送的路由器SSID以及路由器密码;The third acquisition module is used to acquire the router SSID and router password sent by the terminal device;
连接模块,用于根据所述路由器SSID以及所述路由器密码连接对应的路由器。A connection module, configured to connect the corresponding router according to the router SSID and the router password.
在可选的实施方式中,所述第三获取模块具体用于:In an optional implementation manner, the third obtaining module is specifically used for:
判断所述WIFI模组是否已经复位;Determine whether the WIFI module has been reset;
如果所述WIFI模组已经复位,则获取终端设备发送的路由器SSID以及路由器密码。If the WIFI module has been reset, obtain the router SSID and router password sent by the terminal device.
第三方面,本发明实施例提供一种物联网设备,所述物联网设备包括WIFI模组,所述物联网设备中包括存储器和处理器,所述存储器与所述处理器电性连接,所述存储器中存储有机器可执行程序,所述处理器在执行所述机器可执行程序时,实现如前述实施方式任一项所述的方法。In a third aspect, an embodiment of the present invention provides an IoT device, the IoT device includes a WIFI module, the IoT device includes a memory and a processor, the memory is electrically connected to the processor, and the A machine-executable program is stored in the memory, and when the processor executes the machine-executable program, the method according to any one of the foregoing embodiments is implemented.
本实施例提供的设备配网方法、装置及物联网设备,通过在待配网设备中配置多个服务器地址,并将第一标识与服务器地址对应,获取终端设备200扫描物联网设备100的二维码中获得的第二标识,然后根据第二标识从与第二标识对应的服务器地址中确定目标服务器,进而根据目标服务器进行模组注册,如此,同一模组便可以根据第二标识来确定需要进行模组注册的服务器,提高了模组的通用性。In the device network distribution method, device, and IoT device provided in this embodiment, by configuring multiple server addresses in the device to be configured, and corresponding the first identifier to the server address, the
附图说明Description of drawings
图1为本申请实施例提供的物联网设备的结构示意框图;FIG. 1 is a schematic block diagram of the structure of an Internet of Things device provided by an embodiment of the present application;
图2为本申请实施例提供的设备配网方法的流程示意图一;FIG. 2 is a schematic flowchart 1 of a device network distribution method provided by an embodiment of the present application;
图3为本申请实施例提供的设备配网方法的流程示意图二;FIG. 3 is a second schematic flow chart of a method for device network distribution according to an embodiment of the present application;
图4为本申请实施例提供的设备配网方法的流程示意图三;FIG. 4 is a third schematic flowchart of a device network distribution method according to an embodiment of the present application;
图5为本申请实施例提供的设备配网方法的流程示意图四;FIG. 5 is a fourth schematic flowchart of a device network distribution method provided by an embodiment of the present application;
图6为本申请实施例提供的设备配网装置的结构示意框图。FIG. 6 is a schematic block diagram of the structure of a device network distribution apparatus provided by an embodiment of the present application.
附图标记说明:100-物联网设备;110-设备配网装置;111-第一获取模块;112-确定模块;113-第二获取模块;114-注册模块;115-第三获取模块;116-连接模块;120-存储器;130-处理器;200-终端设备;300-路由器;400-云平台服务端。Reference numeral description: 100-Internet of things device; 110-device distribution device; 111-first acquisition module; 112-determination module; 113-second acquisition module; 114-registration module; 115-third acquisition module; 116 -connection module; 120-memory; 130-processor; 200-terminal device; 300-router; 400-cloud platform server.
具体实施方式Detailed ways
在物联网设备的远程控制,往往需要云平台对应的应用程序、云平台以及物联网设备三者配合来实现。而在这个过程中,物联网设备与云平台之间,需要通过WIFI模组进行通信。目前的WIFI模组,是在WIFI模组内直接写好该WIFI模组需要连接的服务器地址,因此,这种方案中,一个WIFI模组只能够适用于唯一的服务器,通用性非常低。如果要与不同类型的服务器连接,那么,则需要配置与服务器对应的WIFI模组。The remote control of IoT devices often requires the cooperation of the application program corresponding to the cloud platform, the cloud platform and the IoT device. In this process, the communication between the IoT device and the cloud platform needs to be carried out through the WIFI module. In the current WIFI module, the server address that the WIFI module needs to connect to is directly written in the WIFI module. Therefore, in this solution, a WIFI module can only be applied to a single server, and the versatility is very low. If you want to connect with different types of servers, you need to configure the WIFI module corresponding to the server.
例如,在空调中,对该空调进行配网时,如果需要使用不同的配网应用(即应用程序,简称APP,英文名称Application)来控制空调,那么,空调中的WIFI模组就需要配置多个,每个WIFI模组配置其需要连接的云平台的服务器地址。例如,如果需要通过某一个配置应用来控制空调,此时,就需要通过配置应用发送路由器的名称和密码等给空调,空调再与路由器连接完成空调与路由器之间的配网,然后将该云平台所对应的WIFI模组与该云平台进行配网。在该云平台所对应的WIFI模组与该云平台进行配网后,则可以通过该配网应用控制空调。For example, in an air conditioner, when distributing the air conditioner to the network, if it is necessary to use different distribution network applications (i.e. application programs, APP for short, English name Application) to control the air conditioner, then the WIFI module in the air conditioner needs to be configured with more Each WIFI module is configured with the server address of the cloud platform it needs to connect to. For example, if you need to control the air conditioner through a configuration application, you need to send the name and password of the router to the air conditioner through the configuration application, and then connect the air conditioner to the router to complete the network distribution between the air conditioner and the router, and then connect the cloud to the air conditioner. The WIFI module corresponding to the platform is configured with the cloud platform. After the WIFI module corresponding to the cloud platform is distributed with the cloud platform, the air conditioner can be controlled through the distribution network application.
为使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施例做详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
请参见图1,图1是本申请实施例提供的物联网系统的结构示意图,物联网系统中,包括物联网设备100、如路由器300、云平台以及配置有配网应用的终端设备200。在物联网配置好网络的状态下,物联网设备100与路由器300通信连接,路由器300与云平台连接,配置有配网应用的终端设备200与路由器300连接。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of an IoT system provided by an embodiment of the present application. The IoT system includes an
请参见图2,图2是本申请实施例提供的物联网设备100的结构示意框图,物联网设备100包括WIFI模组配网装置,存储器120和处理器130,存储器120和处理器130相互之间直接或间接电性连接,用于实现数据交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。WIFI模组配网装置包括至少一个可以软件或固件(Firmware)的形式存储于存储器120中或固化在物联网设备100的操作系统(Operating System,OS)中的软件功能模块。处理器130用于执行存储器120中存储的可执行模块,例如,WIFI模组配网装置所包括的软件功能模块及计算机程序等。Please refer to FIG. 2. FIG. 2 is a schematic structural block diagram of an
其中,物联网设备100中可以包括WIFI模组,物联网设备100中可以配置第一标识以及与第一标识对应的多个服务器地址,其中,第一标识为标志服务器类型为国内服务器或者国外服务器的信息,例如,可以采用01代表国内服务器,采用02代表国外服务器,此时,多个服务器地址中包括与01对应的多个国内服务器的地址,与02对应的多个国外服务器的地址。The
在对物联网设备100进行配网时,则该物联网设备100就是待配网设备在没有待配网设备没配网前,可以将路由器300与云平台服务端400通信连接,终端设备200与路由器300无线连接。本实施例中,待配网设备上可以设置机型二维码,该二维码中,包括待配网设备的机型、第二标识和WIFI模组的Mac地址。终端设备200可以通过配置的配网应用来扫描待配网设备上的机型二维码,从机型二维码中获取待配网设备的机型、第二标识和WIFI模组的(MacMedia Access Control Address,媒体存取控制位址)地址。其中,第二标识代表待配网设备可以连接的服务器的类型是国内服务器或者是国外服务器,第二标识中,同样可以采用01来代表可连接的云平台的服务器是国内服务器,02代表可连接的云平台的服务器是国外服务器。When configuring the Internet of
终端设备200中,也可以配置与配网应用对应的第三标识,第三标识代表配网应用对应云平台的服务器是国内服务器还是国外服务器,第三标识中,同样可以采用01来代表配网应用对应的云平台的服务器为国内服务器,02代表配网应用对应的云平台的服务器为国外服务器。In the
在终端设备200获取待配网设备的机型、第二标识和WIFI模组的Mac地址后,终端设备200判断对应的第二标识是否与对应的第三标识相符,如果第二标识与第三标识相符,则终端设备200再将待配网设备与路由器300进行配网,具体地,可以通过一键配网方式或者AP配网方式来对物联网设备100与路由器300之间进行配网。After the
其中,AP(无线访问接入点,WirelessAccessPoint)配网的过程为,待配网设备进入初始化状态,生成一个无线网络,此时终端设备200则断开其原先连接的路由器300,并与待配网设备生成的无线网络连接;接着,终端设备200通过配网应用获取用户输入的待配网设备需要连接的路由器300的名称(SSID,Service Set Identifier,服务集标识)和密码,终端设备200在获取待配网设备需要连接的路由器300的名称和密码后,则将路由器300的名称和密码发送给待配网设备进行配网。Among them, the process of AP (Wireless Access Point, Wireless Access Point) network configuration is that the device to be configured enters the initialization state, and a wireless network is generated. The wireless network connection generated by the network device; then, the
一键配网的过程如下,终端设备200将其所连接的路由器300的名称和密码进行广播以发送给物联网设备100进行配网。The one-click network configuration process is as follows, the
其中,终端设备200可以将待配网设备的机型、第二标识和WIFI模组的Mac地址以及AP配网和一键配网过程中获取的路由器300的名称和密码一起,发送给待配网设备。The
待配网设备接收到终端设备200发送的路由器300的名称和密码,与对应的路由器300建立连接,然后再与云平台服务端400之间进行配网。The device to be distributed network receives the name and password of the
请参照图3所示,本申请实施例还提供一种可以应用于上述物联网设备100的设备配网方法。需要配网的物联网设备即待配网设备,待配网设备与服务器配网包括步骤S110-步骤S140。Referring to FIG. 3 , an embodiment of the present application further provides a device network distribution method that can be applied to the above-mentioned
步骤S110,在与路由器300建立连接后,获取终端设备200发送的第二标识。Step S110, after establishing a connection with the
步骤S120,根据第一标识从多个服务器地址中确定与第二标识对应的服务器。Step S120: Determine the server corresponding to the second identifier from the addresses of the plurality of servers according to the first identifier.
其中,“对应”是指服务器类型相同,例如都属于国内服务器或者都属于国外服务器。例如,第二标识为代表国内服务器的01时,则物联网设备100则可以从多个服务器地址中,获取所有国内服务器的地址作为与第二标识对应的服务器。Among them, "corresponding" means that the server types are the same, for example, all belong to domestic servers or all belong to foreign servers. For example, when the second identifier is 01 representing a domestic server, the
步骤S130,从与第二标识对应的服务器中获取目标服务器。Step S130, acquiring the target server from the server corresponding to the second identifier.
步骤S140,发送WIFI模组的设备信息给目标服务器进行WIFI模组注册,以与目标服务器对应的云平台的连接,其中,设备信息包括WIFI模组的识别标识,例如WIFI模组的Mac地址。Step S140, sending the device information of the WIFI module to the target server to register the WIFI module for connection with the cloud platform corresponding to the target server, wherein the device information includes the identification of the WIFI module, such as the Mac address of the WIFI module.
本实施例中,设备信息还可以包括WIFI模组的序列号、是否复位的标识、WIFI模组的设备类型、WIFI模组的密码。当然,设备信息还可以进一步包括设备子类型、模组固件版本号、mcuFwVer参数、ap配网信息(例如,AP配网时,终端设备200发送的广播包)。In this embodiment, the device information may further include the serial number of the WIFI module, the identification of whether to reset, the device type of the WIFI module, and the password of the WIFI module. Of course, the device information may further include device subtype, module firmware version number, mcuFwVer parameter, and AP network configuration information (for example, a broadcast packet sent by the
本实施例中,通过在待配网设备中配置多个服务器地址,并将第一标识与服务器地址对应,获取终端设备200扫描物联网设备100的二维码中获得的第二标识,然后根据第二标识从与第二标识对应的服务器地址中确定目标服务器,进而根据目标服务器进行模组注册,如此,同一模组便可以根据第二标识来确定需要进行模组注册的服务器,提高了模组的通用性。同时,由于模组在确定目标服务器时,是根据第二标识对应的服务器来确定的,因此,WIFI模组可以连接的服务器类型也可以更加多,同一WIFI模组即可以用于连接国内服务器,也可以用于连接国外服务器,还可以与不同云平台的服务器连接。In this embodiment, by configuring a plurality of server addresses in the network device to be configured, and corresponding the first identifier to the server address, the second identifier obtained by the
请参照图4所示,可选地,本实施例中,设备配网方法还包括步骤S010-步骤S020。Referring to FIG. 4 , optionally, in this embodiment, the device network distribution method further includes steps S010 to S020.
步骤S010,获取终端设备200发送的路由器300的名称以及路由器300的密码。Step S010 , obtain the name of the
步骤S020,根据路由器300的名称以及路由器300的密码连接对应的路由器300。Step S020 , connect the
本实施例用于连接路由器300,完成与路由器300之间的配网,具体地配网过程可以参照上述一键配网或者AP配网。This embodiment is used to connect the
可选地,本实施例中,获取终端设备200发送的路由器300的名称以及路由器300的密码,包括判断WIFI模组是否已经复位。如果WIFI模组已经复位,则获取终端设备200发送的路由器300的名称以及路由器300的密码。Optionally, in this embodiment, acquiring the name of the
本实施例具体用于在判断待配网设备的状态,并在WIFI模组已经复位的情况下,再进行与路由器300配网的过程。This embodiment is specifically used to perform the process of network distribution with the
请参照图5所示,可选地,本实施例中,设备配网方法还包括步骤S210-步骤S230。Referring to FIG. 5 , optionally, in this embodiment, the device network distribution method further includes steps S210 to S230.
步骤S210,获取目标服务器对应云平台所采用的通信协议;Step S210, obtaining the communication protocol adopted by the target server corresponding to the cloud platform;
步骤S220,判断云平台与WIFI模组所采用的通信协议是否一致;Step S220, judging whether the communication protocol adopted by the cloud platform and the WIFI module is consistent;
步骤S230,如果云平台与WIFI模组所采用的通信协议不一致,则将从云平台接收到的数据按照WIFI模组所采用的协议进行格式转换,或者,将待发送至云平台的数据按照云平台所采用的协议进行格式转换。Step S230, if the communication protocol adopted by the cloud platform and the WIFI module is inconsistent, the format conversion of the data received from the cloud platform is performed according to the protocol adopted by the WIFI module, or the data to be sent to the cloud platform is formatted according to the cloud platform. The protocol used by the platform is used for format conversion.
本实施例对WIFI模组接收的数据或者发送的数据进行格式转换,从而使得,同一个WIFI模组可以适用于不同的平台,进一步提高模组的通用性。步骤S210-步骤S230可以在WIFI模组与云平台存在数据交互的过程中。In this embodiment, the format of the data received or sent by the WIFI module is converted, so that the same WIFI module can be applied to different platforms, and the versatility of the module is further improved. Steps S210 to S230 may be in the process of data interaction between the WIFI module and the cloud platform.
具体地,WIFI模组上设置有多种不同平台分别对应的SDK,WIFI模组通过对应的SDK与云平台进行交互,WIFI模组通过HAL适配函数对将接收的信息的协议统一,或者WIFI模组将对应统一的协议转换成不同的协议发送给对应的SDK来实现与对应平台的交互。Specifically, a variety of SDKs corresponding to different platforms are set on the WIFI module, the WIFI module interacts with the cloud platform through the corresponding SDK, and the WIFI module unifies the protocol of the received information through the HAL adaptation function, or the WIFI module The module converts the corresponding unified protocol into different protocols and sends it to the corresponding SDK to realize the interaction with the corresponding platform.
可选地,本实施例中,从与第二标识对应的服务器中获取目标服务器,包括,确定与第二标识对应的服务器作为中间服务器。按照优先级顺序从中间服务器中选择目标服务器。Optionally, in this embodiment, acquiring the target server from the server corresponding to the second identifier includes determining the server corresponding to the second identifier as an intermediate server. Select the target server from intermediate servers in order of priority.
本实施例中,根据优先级来确定服务器,能够优先满足用户的喜好,提高用户体验。In this embodiment, the server is determined according to the priority, which can preferentially satisfy the user's preference and improve the user experience.
当然,本实施例中,可以选择与配网应用对应的服务器来进行连接,也可以选择其他的与配网应用对应服务器同类型的服务器来进行连接。Of course, in this embodiment, a server corresponding to the distribution network application may be selected for connection, or other servers of the same type as the server corresponding to the distribution network application may be selected for connection.
例如,待配网设备是家电设备时,这些待配网设备本来可以连接的A云平台,而配网应用可以是B云平台对应的应用,那么,待配网设备则可以将A云平台的服务器作为目标服务器。For example, when the devices to be distributed are home appliances, these devices to be distributed can originally be connected to the cloud platform A, and the distribution application can be the application corresponding to the cloud platform B. Then, the devices to be distributed can use the cloud platform A. server as the target server.
可选地,本实施例中,发送WIFI模组的设备信息给目标服务器进行WIFI模组注册,包括,将设备信息发送给目标服务器;接收目标服务器返回的设备标识;根据设备标识与目标服务器对应的云平台进行交互。Optionally, in this embodiment, sending the device information of the WIFI module to the target server to register the WIFI module includes: sending the device information to the target server; receiving the device identifier returned by the target server; corresponding to the target server according to the device identifier interact with the cloud platform.
本实施例中,云平台服务端400可以包括HTTP服务器和MQTT服务器,其中目标服务器为HTTP服务器。待配网设备与目标服务器和云平台服务器分别进行交互。待配网设备将设备信息发送给目标服务器,目标服务器根据待配网设备发送的设备信息生成待配网设备的设备标识(用于唯一识别WIFI模组),并将该设备标识发送给物联网设备100,物联网设备100的WIFI模组接收到该识别标识后,便与MQTT服务器进行密钥协商,接着根据协商的密钥登录MQTT服务器,在MQTT服务器上订阅消息、发布消息等,物联网设备100与MQTT服务器之间通过心跳来维持在线状态。物联网设备100还可以接收MQTT服务器的OTA通知,物联网设备100接收到OTA通知后,与目标服务器交互,完成固件下载。In this embodiment, the
请参照图6所示,本申请的实施例还提供一种设备配网装置110,设备配网装置110包括第一获取模块111、确定模块112、第二获取模块113和注册模块114。设备配网装置110包括一个可以软件或固件的形式存储于存储器120中或固化在物联网设备100的操作系统(Operating System,OS)中的软件功能模块。Referring to FIG. 6 , an embodiment of the present application further provides a device
第一获取模块111,用于在与路由器300建立连接后,获取终端设备200发送的第二标识,其中,第二标识由终端设备200从待配网设备的二维码中获得。The first obtaining
本实施例中的第一获取模块111用于执行步骤S110,关于第一获取模块111的具体描述可参照对步骤S110的描述。The
确定模块112,用于根据第一标识从多个服务器地址中确定与第二标识对应的服务器。The determining
本实施例中的确定模块112用于执行步骤S120,关于确定模块112的具体描述可参照对步骤S120的描述。The
第二获取模块113,从与第二标识对应的服务器中获取目标服务器。The second obtaining
本实施例中的第二获取模块113用于执行步骤S130,关于第二获取模块113的具体描述可参照对步骤S130的描述。The second obtaining
注册模块114,用于发送WIFI模组的设备信息给目标服务器进行WIFI模组注册,以建立WIFI模组与目标服务器的连接,其中,设备信息包括WIFI模组的识别标识。The
本实施例中的注册模块114用于执行步骤S140,关于注册模块114的具体描述可参照对步骤S140的描述。The
可选地,本实施例中,装置还包括第三获取模块115和连接模块116。Optionally, in this embodiment, the apparatus further includes a
第三获取模块115,用于获取终端设备200发送的路由器300以及路由器300密码。The third obtaining
本实施例中的第三获取模块115用于执行步骤S010,关于第三获取模块115的具体描述可参照对步骤S010的描述。The
连接模块116,用于根据路由器300以及路由器300密码连接对应的路由器300。The
本实施例中的连接模块116用于执行步骤S020,关于连接模块116的具体描述可参照对步骤S020的描述。The
虽然本发明披露如上,但本发明并非限定于此。任何本领域技术人员,在不脱离本发明的精神和范围内,均可作各种更动与修改,因此本发明的保护范围应当以权利要求所限定的范围为准。Although the present invention is disclosed above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be based on the scope defined by the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010851554.8A CN111953550B (en) | 2020-08-21 | 2020-08-21 | Equipment network distribution method and device and Internet of things equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010851554.8A CN111953550B (en) | 2020-08-21 | 2020-08-21 | Equipment network distribution method and device and Internet of things equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111953550A CN111953550A (en) | 2020-11-17 |
| CN111953550B true CN111953550B (en) | 2022-08-26 |
Family
ID=73359176
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010851554.8A Active CN111953550B (en) | 2020-08-21 | 2020-08-21 | Equipment network distribution method and device and Internet of things equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111953550B (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114598599B (en) * | 2020-11-20 | 2024-01-19 | 深圳Tcl新技术有限公司 | Network distribution method and device of Internet of things equipment, internet of things equipment and storage medium |
| CN114698064B (en) * | 2020-12-25 | 2024-06-04 | 深圳Tcl新技术有限公司 | Bluetooth network distribution method, device, system and storage medium |
| CN113079556A (en) * | 2021-03-24 | 2021-07-06 | 宁波奥克斯电气股份有限公司 | Intelligent household appliance distribution network control method, control device and application |
| CN113110083A (en) * | 2021-04-15 | 2021-07-13 | 青岛海信移动通信技术股份有限公司 | Wireless communication module, intelligent household equipment, network distribution method and system |
| CN113766606B (en) * | 2021-09-07 | 2023-07-25 | 四川长虹网络科技有限责任公司 | Network distribution method, system, computer equipment and storage medium based on cellular communication |
| CN114430546A (en) * | 2022-01-25 | 2022-05-03 | 深圳市集贤科技有限公司 | Method for supporting multiple distribution networks of IoT cloud platform on intelligent module side |
| CN116321221A (en) * | 2023-02-08 | 2023-06-23 | 珠海格力电器股份有限公司 | A device distribution network method and device |
| CN118694661B (en) * | 2024-08-22 | 2025-01-10 | 珠海格力电器股份有限公司 | Network distribution method and device, system, storage medium and electronic equipment of equipment |
| CN119814551B (en) * | 2025-03-13 | 2025-07-04 | 长沙众微物联科技有限公司 | Internet of Things System |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105554754A (en) * | 2015-12-16 | 2016-05-04 | Tcl集团股份有限公司 | Method and system for accessing WIFI module of the internet of things to network |
| CN107367949A (en) * | 2017-06-14 | 2017-11-21 | 珠海格力电器股份有限公司 | Method, device and system for acquiring product identification |
| CN109450752A (en) * | 2018-11-30 | 2019-03-08 | 广东美的制冷设备有限公司 | Household electrical appliance distribution method, apparatus and computer readable storage medium |
| CN109660593A (en) * | 2018-11-05 | 2019-04-19 | 深圳绿米联创科技有限公司 | Platform of internet of things access management method, apparatus and system |
| CN109842667A (en) * | 2017-11-29 | 2019-06-04 | 北京京东尚科信息技术有限公司 | Method and cloud platform system for cloud platform management smart machine |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20050034412A (en) * | 2003-10-09 | 2005-04-14 | 엘지전자 주식회사 | Home appliance network system |
| CN105025486B (en) * | 2014-04-28 | 2019-02-26 | 腾讯科技(深圳)有限公司 | Network connection method and user equipment |
-
2020
- 2020-08-21 CN CN202010851554.8A patent/CN111953550B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105554754A (en) * | 2015-12-16 | 2016-05-04 | Tcl集团股份有限公司 | Method and system for accessing WIFI module of the internet of things to network |
| CN107367949A (en) * | 2017-06-14 | 2017-11-21 | 珠海格力电器股份有限公司 | Method, device and system for acquiring product identification |
| CN109842667A (en) * | 2017-11-29 | 2019-06-04 | 北京京东尚科信息技术有限公司 | Method and cloud platform system for cloud platform management smart machine |
| CN109660593A (en) * | 2018-11-05 | 2019-04-19 | 深圳绿米联创科技有限公司 | Platform of internet of things access management method, apparatus and system |
| CN109450752A (en) * | 2018-11-30 | 2019-03-08 | 广东美的制冷设备有限公司 | Household electrical appliance distribution method, apparatus and computer readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111953550A (en) | 2020-11-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111953550B (en) | Equipment network distribution method and device and Internet of things equipment | |
| US10616066B2 (en) | Device discovery in a network environment | |
| CN110809308A (en) | A method and device for automatic connection between an IOT device and a WIFI router | |
| EP3145161A1 (en) | Automatic wireless access network configuration synchronization method and apparatus | |
| WO2015143794A1 (en) | Creating and upgrading methods, server, terminal, upgrading system, and storage media | |
| CN107947966B (en) | Configuration management system and configuration management method | |
| CN106453370B (en) | Method and device for registering IPC (inter-programmable logic controller) to NVR (network video recorder) | |
| EP2936891B1 (en) | Method, control node, gateway and computer program for enabling communication with a newly detected device | |
| CN112583639B (en) | Configuration method and device of network equipment | |
| CN107113890A (en) | Method and device for device configuration | |
| CN113196721B (en) | Discovery method, device and terminal equipment of Internet of things equipment | |
| WO2012155571A1 (en) | Base station self-configuration method and device | |
| WO2014015743A1 (en) | Method for downloading application program, user equipment and application server | |
| CN106713287A (en) | Method, apparatus and system for automatically registering wireless access point | |
| US11411797B2 (en) | Device management method and related device | |
| CN112637221A (en) | Equipment control method and device | |
| CN106506236A (en) | The methods, devices and systems that a kind of WAP is declared automatically | |
| CN114040233B (en) | Screen projection service adjusting method, equipment and storage medium | |
| CN107302448B (en) | Port snoop method and device | |
| CN103179222B (en) | Method and device for distributing double-stack addresses | |
| JP5570463B2 (en) | Wireless relay device, virtual machine creation server, wireless relay method, and virtual machine creation method | |
| CN112714202B (en) | Equipment configuration method and device | |
| CN105848146B (en) | WIFI automatic connection method, device and system | |
| CN114338383A (en) | Simplified configuration method and system for video equipment | |
| CN105306238A (en) | Terminal access method, terminal access device and terminal access system |
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 | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: 315191 No. 1166 Mingguang North Road, Jiangshan Town, Ningbo, Zhejiang, Yinzhou District Patentee after: NINGBO AUX ELECTRIC Co.,Ltd. Country or region after: China Patentee after: AUX AIR CONDITIONING LIMITED BY SHARE Ltd. Address before: No. 1166 Mingguang North Road, Jiangshan Town, Ningbo, Zhejiang, Yinzhou District Patentee before: NINGBO AUX ELECTRIC Co.,Ltd. Country or region before: China Patentee before: AUX AIR CONDITIONING LIMITED BY SHARE Ltd. |