CN116094549A - Distribution network method and device, storage medium and electronic device - Google Patents

Distribution network method and device, storage medium and electronic device Download PDF

Info

Publication number
CN116094549A
CN116094549A CN202111316503.6A CN202111316503A CN116094549A CN 116094549 A CN116094549 A CN 116094549A CN 202111316503 A CN202111316503 A CN 202111316503A CN 116094549 A CN116094549 A CN 116094549A
Authority
CN
China
Prior art keywords
power line
line communication
home appliance
network
household electrical
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
Application number
CN202111316503.6A
Other languages
Chinese (zh)
Inventor
杨俊�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111316503.6A priority Critical patent/CN116094549A/en
Publication of CN116094549A publication Critical patent/CN116094549A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/544Setting up communications; Call and signalling arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

The invention discloses a network distribution method and device, a storage medium and an electronic device, wherein the method comprises the following steps: under the condition that the household electrical appliance is connected with a power supply, a target router and a power line communication of the household electrical appliance are established through a first power line communication modem and a second power line communication modem, wherein the first power line communication modem is positioned in the target router, the second power line communication modem is positioned in the household electrical appliance, and the household electrical appliance and the target router are positioned in the same ammeter range; transmitting network information of a local area network to the home appliance through the power line communication connection; and indicating the household electrical appliance to be connected to the local area network according to the network information so as to realize the distribution network of the household electrical appliance. By adopting the technical scheme, the problem that household appliances at specific positions cannot be smoothly connected to a network due to the limitation of WIFI signal coverage is solved.

Description

配网方法及装置、存储介质及电子装置Distribution network method and device, storage medium and electronic device

技术领域technical field

本发明涉及通信领域,具体而言,涉及一种配网方法及装置、存储介质及电子装置。The present invention relates to the communication field, in particular, to a network distribution method and device, a storage medium and an electronic device.

背景技术Background technique

随着物联网技术的普及,越来越多的智能家电设备进入家庭,而且大多都没有人机交互界面,那么实现设备智能化的前提在于设备顺利配置网络并绑定账号。With the popularization of the Internet of Things technology, more and more smart home appliances have entered the home, and most of them have no human-computer interaction interface. The prerequisite for realizing the intelligentization of the device is that the device is successfully configured with the network and bound to the account.

目前,设备配网和绑定最常见方式就是通过无线保真(Wireless Fidelity,简称为WIFI)的方式配网,将设备置于配网模式,通过手机App将WIFI信息传输给设备,设备连接WIFI后与用户绑定成功,一个配网与绑定的流程完成。At present, the most common way of device network configuration and binding is to configure the network through Wireless Fidelity (WIFI for short), put the device in the network configuration mode, transmit WIFI information to the device through the mobile app, and connect the device to WIFI Finally, the binding with the user is successful, and a process of network configuration and binding is completed.

然而,出于一些原因,普通家庭现有条件的无法让WIFI覆盖每一个角落,这就导致设备摆放有一定的局限性,甚至原有位置因为WIFI信号问题,必须更换到其他位置才可以保证设备正常联网。However, for some reasons, the current conditions of ordinary families cannot allow WIFI to cover every corner, which leads to certain limitations in the placement of equipment, and even the original location must be replaced to another location because of WIFI signal problems. The device is connected to the network normally.

针对相关技术,由于WIFI信号覆盖范围的限制,导致特定位置的家电设备无法顺利连接到网络的问题,目前尚未提出有效的解决方案。Regarding related technologies, due to the limitation of the coverage of WIFI signals, the home appliances in a specific location cannot be successfully connected to the network, and no effective solution has been proposed yet.

因此,有必要对相关技术予以改良以克服相关技术中的所述缺陷。Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology.

发明内容Contents of the invention

本发明实施例提供了一种配网方法及装置、存储介质及电子装置,以至少解决由于WIFI信号覆盖范围的限制,导致特定位置的家电设备无法顺利连接到网络的问题。Embodiments of the present invention provide a network distribution method and device, a storage medium, and an electronic device, so as to at least solve the problem that home appliances at specific locations cannot be successfully connected to the network due to the limitation of WIFI signal coverage.

根据本发明实施例的一方面,提供一种配网方法,包括:在家电设备已连接电源的情况下,通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,其中,所述第一电力线通讯调制解调器位于所述目标路由器中,所述第二电力线通讯调制解调器位于家电设备中,且所述家电设备与所述目标路由器位于同一电表范围下;通过所述电力线通信连接发送局域网的网络信息至所述家电设备;指示所述家电设备根据所述网络信息连接至所述局域网,以实现所述家电设备的配网。According to an aspect of an embodiment of the present invention, there is provided a network distribution method, including: when the household electrical appliance is connected to a power source, establishing a power line between the target router and the household electrical appliance through the first power line communication modem and the second power line communication modem Communication connection, wherein the first power line communication modem is located in the target router, the second power line communication modem is located in a home appliance, and the home appliance and the target router are located under the same electric meter range; through the The power line communication connection sends the network information of the local area network to the home appliance; instructs the home appliance to connect to the local area network according to the network information, so as to realize the distribution network of the home appliance.

进一步地,通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,包括:确定所述目标路由器所处的电表;在所述电表范围下确定与所述第一电力线通讯调制解调器相匹配的第二电力线通讯调制解器;建立所述第一电力线通讯调制解调器和所述第二电力线通讯调制解调器的连接关系,以实现所述目标路由器和所述家电设备的电力线通信连接。Further, establishing the power line communication connection between the target router and the household electrical appliance through the first power line communication modem and the second power line communication modem includes: determining the electric meter where the target router is located; A second power line communication modem matching the first power line communication modem; establishing a connection relationship between the first power line communication modem and the second power line communication modem, so as to realize the power line communication between the target router and the home appliance connect.

进一步地,通过所述电力线通信连接发送局域网的网络信息至所述家电设备,包括:确定所述局域网的网络信息;指示所述第一电力线通讯调制解调器基于所述电力线通信连接发送所述局域网的网络信息至所述家电设备的第二电力线通讯调制解调器。Further, sending the network information of the local area network to the home appliance through the power line communication connection includes: determining the network information of the local area network; instructing the first power line communication modem to send the network information of the local area network based on the power line communication connection The information is sent to the second power line communication modem of the electrical appliance.

进一步地,指示所述家电设备根据所述网络信息连接至所述局域网之后,所述方法还包括:通过所述电力线通信连接获取所述家电设备的设备信息,其中,所述设备信息包括:设备标识,设备型号;将所述家电设备的设备信息发送至云端服务器。Further, after instructing the home appliance to connect to the local area network according to the network information, the method further includes: acquiring device information of the home appliance through the power line communication connection, wherein the device information includes: device Identification, device model; sending the device information of the home appliance to the cloud server.

进一步地,将所述家电设备的设备信息发送至云端服务器之后,所述方法还包括:获取移动终端通过无线保真WIFI发送的绑定请求,其中,所述绑定请求用于请求与所述家电设备建立绑定关系,所述绑定请求中携带有所述家电设备的设备信息,其中,所述家电设备的设备信息为所述移动终端扫描所述家电设备的二维码所得到的信息,或所述移动终端通过访问所述局域网所得到信息;响应于所述绑定请求,并在所述云端服务器建立所述移动终端与所述家电设备的绑定关系。Further, after sending the device information of the home appliance to the cloud server, the method further includes: obtaining a binding request sent by the mobile terminal through wireless fidelity WIFI, wherein the binding request is used for requesting a connection with the The household electrical appliance establishes a binding relationship, and the binding request carries the equipment information of the household electrical appliance, wherein the equipment information of the household electrical appliance is the information obtained by scanning the QR code of the household electrical appliance by the mobile terminal , or the information obtained by the mobile terminal by accessing the local area network; responding to the binding request, and establishing a binding relationship between the mobile terminal and the household electrical appliance on the cloud server.

进一步地,在所述云端服务器建立所述移动终端与所述家电设备的绑定关系之后,所述方法还包括:获取所述移动终端通过WIFI发送的控制指令,其中,所述控制指令携带有所述家电设备的标识;通过所述家电设备的标识在云端服务器验证所述移动终端与所述家电设备的绑定关系;在所述移动终端与所述家电设备具有绑定关系的情况下,通过所述第一电力线通讯调制解调器将所述控制指令发送至所述家电设备,以指示所述家电设备执行目标操作。Further, after the cloud server establishes the binding relationship between the mobile terminal and the household electrical appliance, the method further includes: acquiring a control instruction sent by the mobile terminal through WIFI, wherein the control instruction carries The identifier of the household electrical appliance; verifying the binding relationship between the mobile terminal and the household electrical appliance on the cloud server through the identifier of the household electrical appliance; when the mobile terminal has a binding relationship with the household electrical appliance, The control instruction is sent to the home appliance through the first power line communication modem, so as to instruct the home appliance to perform a target operation.

进一步地,通过所述家电设备的标识在云端服务器验证所述移动终端与所述家电设备的绑定关系之后,所述方法还包括:在所述移动终端与所述家电设备不具有绑定关系的情况下,发送绑定指示信息至所述移动终端,以指示所述移动终端建立与所述家电设备的绑定关系。Further, after the cloud server verifies the binding relationship between the mobile terminal and the household electrical appliance through the identification of the household electrical appliance, the method further includes: when the mobile terminal does not have a binding relationship with the household electrical appliance, In the case of , sending binding indication information to the mobile terminal to instruct the mobile terminal to establish a binding relationship with the household electrical appliance.

根据本发明实施例的另一方面,还提供了一种配网装置,包括:连接模块,用于在家电设备已连接电源的情况下,通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,其中,所述第一电力线通讯调制解调器位于所述目标路由器中,所述第二电力线通讯调制解调器位于家电设备中,且所述家电设备与所述目标路由器位于同一电表范围下;发送模块,用于通过所述电力线通信连接发送局域网的网络信息至所述家电设备;配网模块,用于指示所述家电设备根据所述网络信息连接至所述局域网,以实现所述家电设备的配网。According to another aspect of the embodiments of the present invention, there is also provided a network distribution device, including: a connection module, used to establish a target network through the first power line communication modem and the second power line communication modem when the household electrical appliance is connected to a power source. The power line communication connection between the router and the home appliance, wherein the first power line communication modem is located in the target router, the second power line communication modem is located in the home appliance, and the home appliance and the target router are located in Under the range of the same electric meter; a sending module, configured to send the network information of the local area network to the home appliance through the power line communication connection; a network distribution module, used to instruct the home appliance to connect to the local area network according to the network information, to The network distribution of the household appliances is realized.

根据本发明实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述配网方法。According to still another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above-mentioned network distribution method when running .

根据本发明实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述配网方法。According to yet another aspect of the embodiments of the present invention, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor executes the above configuration through the computer program. net method.

通过本发明,在家电设备连接电源的情况下,利用目标路由器的第一电力线通讯调制解调器和家电设备的第二电力线通讯调制解调器建立目标路由器和家电设备的电力线通信连接,并通过电力线通信连接发送局域网的网络信息至家电设备,使得家电设备可以根据网络信息连接至局域网,进而实现了家电设备的配网。采用上述技术方案,解决了由于WIFI信号覆盖范围的限制,导致特定位置的家电设备无法顺利连接到网络的问题。进而通过电力线通讯调制解调器在路由器和家电设备之间建立电力线通信连接,使得在家电设备在连接电源的情况下,就可以通过电力线通信连接至局域网,无需要考虑位置因素。According to the present invention, when the home appliance is connected to a power source, the first power line communication modem of the target router and the second power line communication modem of the home appliance are used to establish a power line communication connection between the target router and the home appliance, and the power line communication connection is used to send the data of the local area network. The network information is sent to the home appliances, so that the home appliances can be connected to the local area network according to the network information, and then the distribution network of the home appliances is realized. By adopting the above technical solution, the problem that home appliances in a specific location cannot be successfully connected to the network due to the limitation of the coverage of the WIFI signal is solved. Furthermore, the power line communication connection is established between the router and the home appliance through the power line communication modem, so that when the home appliance is connected to the power supply, it can be connected to the LAN through the power line communication without considering the location factor.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示例性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是根据本发明实施例的配网方法的计算机终端的硬件结构框图;Fig. 1 is a block diagram of the hardware structure of a computer terminal according to a network distribution method according to an embodiment of the present invention;

图2是根据本发明实施例的现有配网方法的框架图(一);FIG. 2 is a frame diagram (1) of an existing network distribution method according to an embodiment of the present invention;

图3是根据本发明实施例的配网方法的流程图;Fig. 3 is a flowchart of a network distribution method according to an embodiment of the present invention;

图4是根据本发明实施例的配网方法的框架图(二);4 is a frame diagram (2) of a network distribution method according to an embodiment of the present invention;

图5是根据本发明实施例的配网装置的结构框图(一);5 is a structural block diagram (1) of a network distribution device according to an embodiment of the present invention;

图6是根据本发明实施例的配网装置的结构框图(二)。Fig. 6 is a structural block diagram (2) of a network distribution device according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

本申请实施例中所提供的方法实施例可以在计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图1是根据本发明实施例的配网方法的计算机终端的硬件结构框图。如图1所示,计算机终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器(Microprocessor Unit,简称是MPU)或可编程逻辑器件(Programmable logic device,简称是PLD))和用于存储数据的存储器104,在一个示例性实施例中,上述计算机终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述计算机终端的结构造成限定。例如,计算机终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示等同功能或比图1所示功能更多的不同的配置。The method embodiments provided in the embodiments of the present application may be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, FIG. 1 is a block diagram of a hardware structure of a computer terminal according to a network distribution method according to an embodiment of the present invention. As shown in Figure 1, the computer terminal can include one or more (only one is shown in Figure 1) processor 102 (processor 102 can include but not limited to microprocessor (Microprocessor Unit, MPU for short) or programmable logic A device (Programmable logic device, PLD for short)) and a memory 104 for storing data. In an exemplary embodiment, the above-mentioned computer terminal may also include a transmission device 106 and an input and output device 108 for communication functions. Those skilled in the art can understand that the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above computer terminal. For example, the computer terminal may also include more or less components than those shown in FIG. 1 , or have a different configuration with functions equivalent to those shown in FIG. 1 or more functions than those shown in FIG. 1 .

存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的配网方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the network distribution method in the embodiment of the present invention, and the processor 102 executes various A functional application and data processing, that is, to realize the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to a computer terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or transmit data via a network. The specific example of the above-mentioned network may include a wireless network provided by the communication provider of the computer terminal. In one example, the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.

为了更好的理解,图2是根据本发明实施例的现有配网方法的框架图(一),如图2所示,手机通过WIFI连接到局域网,并将获取到的局域网的网络信息发送家电设备,使得家电设备通过网络信息连接到WIFI,进而连接到局域网中,但由于WIFI无法覆盖到每一个角落,这就导致设备摆放有一定的局限性,即特定位置的家电设备无法顺利连接到网络。For a better understanding, Fig. 2 is a frame diagram (1) of an existing network distribution method according to an embodiment of the present invention. As shown in Fig. 2, the mobile phone is connected to the local area network through WIFI, and the obtained network information of the local area network is sent to Household appliances make the home appliances connect to WIFI through network information, and then connect to the local area network, but because WIFI cannot cover every corner, this leads to certain limitations in the placement of equipment, that is, home appliances in specific locations cannot be connected smoothly to the network.

为了解决上述问题,在本实施例中提供了一种配网方法,图3是根据本发明实施例的配网方法的流程图,该流程包括如下步骤:In order to solve the above problems, a network distribution method is provided in this embodiment. FIG. 3 is a flowchart of a network distribution method according to an embodiment of the present invention. The process includes the following steps:

步骤S302,在家电设备已连接电源的情况下,通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,其中,所述第一电力线通讯调制解调器位于所述目标路由器中,所述第二电力线通讯调制解调器位于家电设备中,且所述家电设备与所述目标路由器位于同一电表范围下;Step S302, in the case that the home appliance is connected to a power source, establish a power line communication connection between the target router and the home appliance through the first power line communication modem and the second power line communication modem, wherein the first power line communication modem is located in the In the target router, the second power line communication modem is located in a household electrical appliance, and the household electrical appliance and the target router are located under the same electric meter range;

需要说明的是,本申请实施例的技术方案可以应用到目标路由器上。不同的电路是通过不同的电表来统计电量,由于电力线通讯调制解调器是成对出现的,并且只有在同一电路的电表下才可以匹配,故本申请实施例中的家电设备和目标路由器需要位于同一电路下,即必须在同一电表范围下,不能出现家电设备在A电路的电表下,而目标路由器在B电路的电表下。It should be noted that the technical solution of the embodiment of the present application can be applied to the target router. Different circuits use different ammeters to count electricity. Since the power line communication modems appear in pairs and can only be matched under the ammeters of the same circuit, the household appliances and the target router in the embodiment of this application need to be located in the same circuit. In other words, it must be under the same ammeter range, and it cannot appear that the home appliance is under the ammeter of circuit A, while the target router is under the ammeter of circuit B.

步骤S304,通过所述电力线通信连接发送局域网的网络信息至所述家电设备;Step S304, sending the network information of the local area network to the home appliance through the power line communication connection;

在一个示例性的实施例中,网络信息包括:IP地址。In an exemplary embodiment, the network information includes: an IP address.

步骤S306,指示所述家电设备根据所述网络信息连接至所述局域网,以实现所述家电设备的配网。Step S306, instructing the home appliance to connect to the local area network according to the network information, so as to realize network distribution of the home appliance.

通过上述步骤,在家电设备连接电源的情况下,利用目标路由器的第一电力线通讯调制解调器和家电设备的第二电力线通讯调制解调器建立目标路由器和家电设备的电力线通信连接,并通过电力线通信连接发送局域网的网络信息至家电设备,使得家电设备可以根据网络信息连接至局域网,进而实现了家电设备的配网。采用上述技术方案,解决了由于WIFI信号覆盖范围的限制,导致特定位置的家电设备无法顺利连接到网络的问题。进而通过电力线通讯调制解调器在路由器和家电设备之间建立电力线通信连接,使得在家电设备在连接电源的情况下,就可以通过电力线通信连接至局域网,无需要考虑位置因素。Through the above steps, when the home appliance is connected to a power source, use the first power line communication modem of the target router and the second power line communication modem of the home appliance to establish a power line communication connection between the target router and the home appliance, and send the data of the local area network through the power line communication connection. The network information is sent to the home appliances, so that the home appliances can be connected to the local area network according to the network information, and then the distribution network of the home appliances is realized. By adopting the above technical solution, the problem that home appliances in a specific location cannot be successfully connected to the network due to the limitation of the coverage of the WIFI signal is solved. Furthermore, the power line communication connection is established between the router and the home appliance through the power line communication modem, so that when the home appliance is connected to the power supply, it can be connected to the LAN through the power line communication without considering the location factor.

需要说明的是,在一个可选的实施例中,上述通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,可以通过以下方式实现:确定所述目标路由器所处的电表;在所述电表范围下确定与所述第一电力线通讯调制解调器相匹配的第二电力线通讯调制解器;建立所述第一电力线通讯调制解调器和所述第二电力线通讯调制解调器的连接关系,以实现所述目标路由器和所述家电设备的电力线通信连接。It should be noted that, in an optional embodiment, the establishment of the power line communication connection between the target router and the household electrical appliance through the first power line communication modem and the second power line communication modem may be achieved in the following manner: determine the target The ammeter where the router is located; determine the second power line communication modem matching the first power line communication modem under the scope of the meter; establish the connection between the first power line communication modem and the second power line communication modem relationship, so as to realize the power line communication connection between the target router and the home appliance.

也就是说,目标路由器需要先确定自身所处的电表,在此电表范围下搜索是否存在与自身的第一电力线通讯调制解调器相匹配的第二电力线通讯调制解器,如果存在,就建立第一电力线通讯调制解调器和第二电力线通讯调制解器的连接关系,以实现目标路由器和家电设备的电力线通信连接,即目标路由器和家电设备之间是通过电力线通信连接来交换信息。That is to say, the target router needs to first determine the electric meter where it is located, and search whether there is a second power line communication modem matching its own first power line communication modem under the scope of this electric meter, and if so, establish the first power line The connection relationship between the communication modem and the second power line communication modem is to realize the power line communication connection between the target router and the home appliance, that is, the target router and the home appliance exchange information through the power line communication connection.

进一步地,在目标路由器和家电设备之间建立了电力线通信连接以后,目标路由器需要确定所述局域网的网络信息,并指示所述第一电力线通讯调制解调器基于所述电力线通信连接发送所述局域网的网络信息至所述家电设备的第二电力线通讯调制解调器。Further, after the power line communication connection is established between the target router and the home appliance, the target router needs to determine the network information of the local area network, and instruct the first power line communication modem to send the network information of the local area network based on the power line communication connection. The information is sent to the second power line communication modem of the electrical appliance.

也就是说,目标路由器会基于电力线通信连接,利用自身的第一电力线通讯调制解调器发送局域网的网络信息至家电设备的第二电力线通讯调制解调器,使得家电设备通过第二电力线通讯调制解调器接收到的网络信息连接到局域网中。That is to say, the target router will use its first power line communication modem to send the network information of the local area network to the second power line communication modem of the home appliance based on the power line communication connection, so that the home appliance is connected to the second power line communication modem through the network information received by the second power line communication modem. to the LAN.

家电设备在通过电力线通信连接到局域网以后,根据此通信连接将自身的设备信息发送至目标路由器,进而目标路由器的第一电力线通讯调制解调器通过电力线通信连接获取家电设备的设备信息,并将家电设备的设备信息发送至云端服务器。需要说明的是,设备信息包括但不限于:设备标识,设备型号。After the home appliance is connected to the local area network through the power line communication, it sends its own device information to the target router according to the communication connection, and then the first power line communication modem of the target router obtains the device information of the home appliance through the power line communication connection, and sends the information of the home appliance to the local area network. The device information is sent to the cloud server. It should be noted that the device information includes but not limited to: device identification and device model.

在一个可选的实施例中,在家电设备连接到局域网,配网成功以后,移动终端就会开始请求与家电设备进行绑定,具体的:目标路由器会获取移动终端通过无线保真WIFI发送的绑定请求,其中,所述绑定请求用于请求与所述家电设备建立绑定关系,所述绑定请求中携带有所述家电设备的设备信息,其中,所述家电设备的设备信息为所述移动终端扫描所述家电设备的二维码所得到的信息,或所述移动终端通过访问所述局域网所得到信息;响应于所述绑定请求,并在所述云端服务器建立所述移动终端与所述家电设备的绑定关系。In an optional embodiment, after the home appliance is connected to the local area network and the network distribution is successful, the mobile terminal will start requesting to bind with the home appliance, specifically: the target router will obtain the information sent by the mobile terminal through Wi-Fi A binding request, wherein the binding request is used to request to establish a binding relationship with the household electrical appliance, and the binding request carries equipment information of the household electrical appliance, wherein the equipment information of the household electrical appliance is The information obtained by the mobile terminal scanning the two-dimensional code of the home appliance, or the information obtained by the mobile terminal by accessing the local area network; responding to the binding request, and establishing the mobile terminal on the cloud server The binding relationship between the terminal and the household electrical appliance.

也就是说,移动终端可以通过WIFI连接到局域网,进而搜索此局域网下所有设备的设备信息,具体的,移动终端是向目标路由器发送请求信息,进而目标服务器根据请求信息向移动设备发送所有设备的设备信息。移动终端根据所有设备的设备信息选择待建立绑定关系的家电设备,并将与家电设备进行绑定的绑定请求发送至目标路由器。移动终端还可以通过扫描家电设备上的二维码来获取家电设备的设备信息,并将与家电设备进行绑定的绑定请求发送至目标路由器。目标路由器在获取到绑定请求以后,会将移动终端和家电设备的绑定请求发送至云端服务器,进而云端服务器建立绑定关系。That is to say, the mobile terminal can connect to the local area network through WIFI, and then search for the device information of all devices under the local area network. Specifically, the mobile terminal sends request information to the target router, and then the target server sends the information of all devices to the mobile device according to the request information. Device Information. The mobile terminal selects the home appliance to be bound according to the device information of all the devices, and sends a binding request for binding with the home appliance to the target router. The mobile terminal can also obtain device information of the home appliance by scanning the two-dimensional code on the home appliance, and send a binding request for binding with the home appliance to the target router. After obtaining the binding request, the target router will send the binding request of the mobile terminal and the home appliance to the cloud server, and then the cloud server establishes a binding relationship.

需要说明的是,如果移动终端没有连接到局域网的WIFI,则移动终端可以直接扫描家电设备上的二维码来获取家电设备的设备信息,并将与家电设备进行绑定的绑定请求发送至云端服务器,云端服务器建立家电设备与移动终端的绑定关系。It should be noted that if the mobile terminal is not connected to the WIFI of the local area network, the mobile terminal can directly scan the QR code on the home appliance to obtain the device information of the home appliance, and send a binding request for binding with the home appliance to The cloud server establishes the binding relationship between the home appliance and the mobile terminal.

进一步地,在一个可选的实施例中,目标路由器还可以获取所述移动终端通过WIFI发送的控制指令,其中,所述控制指令携带有所述家电设备的标识;通过所述家电设备的标识在云端服务器验证所述移动终端与所述家电设备的绑定关系;在所述移动终端与所述家电设备具有绑定关系的情况下,通过所述第一电力线通讯调制解调器将所述控制指令发送至所述家电设备,以指示所述家电设备执行目标操作;在所述移动终端与所述家电设备不具有绑定关系的情况下,发送绑定指示信息至所述移动终端,以指示所述移动终端建立与所述家电设备的绑定关系。Further, in an optional embodiment, the target router may also obtain the control instruction sent by the mobile terminal through WIFI, wherein the control instruction carries the identifier of the household electrical appliance; The cloud server verifies the binding relationship between the mobile terminal and the household electrical appliance; if the mobile terminal has a binding relationship with the household electrical appliance, send the control instruction through the first power line communication modem to the home appliance to instruct the home appliance to perform a target operation; if the mobile terminal does not have a binding relationship with the home appliance, send binding instruction information to the mobile terminal to instruct the The mobile terminal establishes a binding relationship with the household electrical appliance.

也就是说,移动终端可以通过局域网的WIFI向家电设备发送控制信息,路由器在验证移动终端和家电设备存在绑定关系的情况下,才会通过第一电力线通讯调制解调器将控制信息转发至家电设备,如果确定移动终端和家电设备不存在绑定关系,就会发送绑定指示信息移动终端,指示移动终端建立与家电设备的绑定关系。That is to say, the mobile terminal can send control information to the home appliance through the WIFI of the LAN, and the router will forward the control information to the home appliance through the first power line communication modem after verifying that there is a binding relationship between the mobile terminal and the home appliance. If it is determined that there is no binding relationship between the mobile terminal and the household electrical appliance, it will send binding instruction information to the mobile terminal, instructing the mobile terminal to establish a binding relationship with the household electrical appliance.

需要说明的是,移动终端在没有连接局域网WIFI的情况下,可以通过广域网发送控制信息至云端服务器,使得云端服务器在验证移动终端和家电设备存在绑定关系的情况下,通过目标路由器的第一电力线通讯调制解调器将控制信息转发至家电设备,使得家电设备执行目标操作。It should be noted that, when the mobile terminal is not connected to the local area network WIFI, it can send control information to the cloud server through the wide area network, so that the cloud server can verify the binding relationship between the mobile terminal and the home appliance through the first link of the target router. The power line communication modem forwards the control information to the home appliance, so that the home appliance executes the target operation.

显然,上述所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。为了更好的理解上述配网方法,以下结合实施例对上述过程进行说明,但不用于限定本发明实施例的技术方案,具体地:Apparently, the above-described embodiments are only part of the embodiments of the present invention, not all of them. In order to better understand the above-mentioned network distribution method, the above-mentioned process is described below in conjunction with the embodiments, but it is not used to limit the technical solutions of the embodiments of the present invention, specifically:

在一个可选的实施例中,图4是根据本发明实施例的配网方法的框架图(二),具体的:In an optional embodiment, FIG. 4 is a frame diagram (2) of a network distribution method according to an embodiment of the present invention, specifically:

使用含有电力猫功能的路由器,或者将一个电力猫端子(相当于上述实施例中的第一电力线通讯调制解调器)接入路由器(相当于上述实施例中的目标路由器)。Use a router with a power modem function, or connect a power modem terminal (equivalent to the first power line communication modem in the above embodiment) to the router (equivalent to the target router in the above embodiment).

在家电设备内部集成电力猫模块(相当于上述实施例中的第二电力线通讯调制解调器),替换掉原有的WIFI模块,使设备可以通过电源线与路由器或者电力猫端子通信,这时只要设备通电便会自动联网,上报设备相关信息至云端服务器。需要说明的是,图4中的两个插座需要位于同一电表范围下。Integrate the power modem module (equivalent to the second power line communication modem in the above embodiment) inside the home appliance to replace the original WIFI module, so that the device can communicate with the router or the power modem terminal through the power line. At this time, as long as the device is powered on It will automatically connect to the Internet and report device-related information to the cloud server. It should be noted that the two sockets in Figure 4 need to be located under the same ammeter range.

在家电设备联网以后,手机(手机APP)可以通过局域网搜索已经接入局域网的电力猫模块来完成与家电设备的绑定。手机(手机APP)还可以通过扫描家电设备上的二维码来获取电力猫模块的信息和家电设备的设备信息来完成设备的绑定。After the home appliances are connected to the Internet, the mobile phone (mobile phone APP) can search for the power modem module that has been connected to the LAN through the LAN to complete the binding with the home appliances. The mobile phone (mobile phone APP) can also scan the QR code on the home appliance to obtain the information of the power modem module and the device information of the home appliance to complete the binding of the device.

此外,本发明实施例的上述技术方案对比现有技术中的WIFI方式配网,本发明实施例的上述技术方案具有如下优点:In addition, compared with the WIFI mode distribution network in the prior art, the above technical solution of the embodiment of the present invention has the following advantages:

(1)解决了因为房屋面积过大,或墙体过多原因造成WIFI信息覆盖不到和信号太弱,导致设备无法正常接入网络问题。(1) Solve the problem that the equipment cannot be connected to the network normally due to the large area of the house or too many walls that cause the WIFI information to not be covered and the signal to be too weak.

(2)通过电力猫方式简化了设备配网流程,让设备通电便可联网无须通过传输WIFI信息这个繁琐的过程便可以完成配网。(2) The device distribution network process is simplified through the power modem, so that the device can be connected to the Internet after being powered on, and the distribution network can be completed without the cumbersome process of transmitting WIFI information.

(3)局域网方式下,移动终端可以通过扫描路由器所在局域网里已接入电力猫的信息,完成设备绑定。(3) In the LAN mode, the mobile terminal can complete the device binding by scanning the information of the connected power modem in the LAN where the router is located.

(4)广域网方式,移动终端可以通过扫描设备上电力猫的二维码信息,在云端服务器中完成设备绑定。(4) Wide area network mode, the mobile terminal can complete the device binding in the cloud server by scanning the QR code information of the power modem on the device.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the method of each embodiment of the present invention.

在本实施例中还提供了一种配网装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的设备较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a network distribution device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated here. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

图5是根据本发明实施例的配网装置的结构框图(一),该装置包括:Fig. 5 is a structural block diagram (1) of a network distribution device according to an embodiment of the present invention, the device includes:

连接模块52,用于在家电设备已连接电源的情况下,通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,其中,所述第一电力线通讯调制解调器位于所述目标路由器中,所述第二电力线通讯调制解调器位于家电设备中,且所述家电设备与所述目标路由器位于同一电表范围下;The connection module 52 is configured to establish a power line communication connection between the target router and the home appliance through the first power line communication modem and the second power line communication modem when the home appliance is connected to a power source, wherein the first power line communication modem Located in the target router, the second power line communication modem is located in the home appliance, and the home appliance and the target router are located under the same electric meter range;

发送模块54,用于通过所述电力线通信连接发送局域网的网络信息至所述家电设备;A sending module 54, configured to send the network information of the local area network to the home appliance through the power line communication connection;

配网模块56,用于指示所述家电设备根据所述网络信息连接至所述局域网,以实现所述家电设备的配网。The network distribution module 56 is configured to instruct the household electrical equipment to connect to the local area network according to the network information, so as to implement network distribution of the household electrical equipment.

通过上述模块,在家电设备连接电源的情况下,利用目标路由器的第一电力线通讯调制解调器和家电设备的第二电力线通讯调制解调器建立目标路由器和家电设备的电力线通信连接,并通过电力线通信连接发送局域网的网络信息至家电设备,使得家电设备可以根据网络信息连接至局域网,进而实现了家电设备的配网。采用上述技术方案,解决了由于WIFI信号覆盖范围的限制,导致特定位置的家电设备无法顺利连接到网络的问题。进而通过电力线通讯调制解调器在路由器和家电设备之间建立电力线通信连接,使得在家电设备在连接电源的情况下,就可以通过电力线通信连接至局域网,无需要考虑位置因素。Through the above modules, when the home appliance is connected to a power source, use the first power line communication modem of the target router and the second power line communication modem of the home appliance to establish a power line communication connection between the target router and the home appliance, and send the data of the local area network through the power line communication connection. The network information is sent to the home appliances, so that the home appliances can be connected to the local area network according to the network information, and then the distribution network of the home appliances is realized. By adopting the above technical solution, the problem that home appliances in a specific location cannot be successfully connected to the network due to the limitation of the coverage of the WIFI signal is solved. Furthermore, the power line communication connection is established between the router and the home appliance through the power line communication modem, so that when the home appliance is connected to the power supply, it can be connected to the LAN through the power line communication without considering the location factor.

可选的,连接模块52还用于确定所述目标路由器所处的电表;在所述电表范围下确定与所述第一电力线通讯调制解调器相匹配的第二电力线通讯调制解器;建立所述第一电力线通讯调制解调器和所述第二电力线通讯调制解调器的连接关系,以实现所述目标路由器和所述家电设备的电力线通信连接。Optionally, the connection module 52 is also used to determine the electric meter where the target router is located; determine a second power line communication modem that matches the first power line communication modem within the range of the electric meter; establish the second power line communication modem; A connection relationship between a power line communication modem and the second power line communication modem, so as to realize the power line communication connection between the target router and the household electrical appliance.

可选的,发送模块54还用于确定所述局域网的网络信息;指示所述第一电力线通讯调制解调器基于所述电力线通信连接发送所述局域网的网络信息至所述家电设备的第二电力线通讯调制解调器。Optionally, the sending module 54 is also used to determine the network information of the local area network; instruct the first power line communication modem to send the network information of the local area network to the second power line communication modem of the household appliance based on the power line communication connection .

可选的,配网模块56还用于通过所述电力线通信连接获取所述家电设备的设备信息,其中,所述设备信息包括:设备标识,设备型号;将所述家电设备的设备信息发送至云端服务器。Optionally, the distribution network module 56 is also configured to acquire device information of the household electrical appliance through the power line communication connection, wherein the device information includes: device identifier, device model; sending the device information of the household electrical appliance to cloud server.

图6是根据本发明实施例的配网装置的结构框图(二),该装置还包括:绑定模块58。FIG. 6 is a structural block diagram (2) of a network distribution device according to an embodiment of the present invention, and the device further includes: a binding module 58 .

可选的,绑定模块58还用于获取移动终端通过无线保真WIFI发送的绑定请求,其中,所述绑定请求用于请求与所述家电设备建立绑定关系,所述绑定请求中携带有所述家电设备的设备信息,其中,所述家电设备的设备信息为所述移动终端扫描所述家电设备的二维码所得到的信息,或所述移动终端通过访问所述局域网所得到信息;响应于所述绑定请求,并在所述云端服务器建立所述移动终端与所述家电设备的绑定关系。Optionally, the binding module 58 is also configured to obtain a binding request sent by the mobile terminal through Wireless Fidelity WIFI, wherein the binding request is used to request to establish a binding relationship with the home appliance, and the binding request carries the device information of the home appliance, wherein the device information of the home appliance is the information obtained by the mobile terminal scanning the QR code of the home appliance, or the information obtained by the mobile terminal by accessing the local area network Obtain information; respond to the binding request, and establish a binding relationship between the mobile terminal and the household electrical appliance on the cloud server.

也就是说,移动终端可以通过WIFI连接到局域网,进而搜索此局域网下所有设备的设备信息,具体的,移动终端是向目标路由器发送请求信息,进而目标服务器根据请求信息向移动设备发送所有设备的设备信息。移动终端根据所有设备的设备信息选择待建立绑定关系的家电设备,并将与家电设备进行绑定的绑定请求发送至目标路由器。移动终端还可以通过扫描家电设备上的二维码来获取家电设备的设备信息,并将与家电设备进行绑定的绑定请求发送至目标路由器。目标路由器在获取到绑定请求以后,会将移动终端和家电设备的绑定请求发送至云端服务器,进而云端服务器建立绑定关系。That is to say, the mobile terminal can connect to the local area network through WIFI, and then search for the device information of all devices under the local area network. Specifically, the mobile terminal sends request information to the target router, and then the target server sends the information of all devices to the mobile device according to the request information. Device Information. The mobile terminal selects the home appliance to be bound according to the device information of all the devices, and sends a binding request for binding with the home appliance to the target router. The mobile terminal can also obtain device information of the home appliance by scanning the two-dimensional code on the home appliance, and send a binding request for binding with the home appliance to the target router. After obtaining the binding request, the target router will send the binding request of the mobile terminal and the home appliance to the cloud server, and then the cloud server establishes a binding relationship.

需要说明的是,如果移动终端没有连接到局域网的WIFI,则移动终端可以直接扫描家电设备上的二维码来获取家电设备的设备信息,并将与家电设备进行绑定的绑定请求发送至云端服务器,云端服务器建立家电设备与移动终端的绑定关系。It should be noted that if the mobile terminal is not connected to the WIFI of the local area network, the mobile terminal can directly scan the QR code on the home appliance to obtain the device information of the home appliance, and send a binding request for binding with the home appliance to The cloud server establishes the binding relationship between the home appliance and the mobile terminal.

可选的,绑定模块58还用于获取所述移动终端通过WIFI发送的控制指令,其中,所述控制指令携带有所述家电设备的标识;通过所述家电设备的标识在云端服务器验证所述移动终端与所述家电设备的绑定关系;在所述移动终端与所述家电设备具有绑定关系的情况下,通过所述第一电力线通讯调制解调器将所述控制指令发送至所述家电设备,以指示所述家电设备执行目标操作。Optionally, the binding module 58 is also used to obtain the control instruction sent by the mobile terminal through WIFI, wherein the control instruction carries the identifier of the household electrical appliance; the binding relationship between the mobile terminal and the household electrical appliance; if the mobile terminal has a binding relationship with the household electrical appliance, send the control command to the household electrical appliance through the first power line communication modem , to instruct the home appliance to perform a target operation.

可选的,绑定模块58还用于在所述移动终端与所述家电设备不具有绑定关系的情况下,发送绑定指示信息至所述移动终端,以指示所述移动终端建立与所述家电设备的绑定关系。Optionally, the binding module 58 is also configured to send binding instruction information to the mobile terminal in the case that the mobile terminal does not have a binding relationship with the household electrical appliance, so as to instruct the mobile terminal to establish a relationship with the home appliance. Describe the binding relationship of home appliances.

本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.

可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:

S1,在家电设备已连接电源的情况下,通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,其中,所述第一电力线通讯调制解调器位于所述目标路由器中,所述第二电力线通讯调制解调器位于家电设备中,且所述家电设备与所述目标路由器位于同一电表范围下;S1. When the home appliance is connected to a power source, establish a power line communication connection between the target router and the home appliance through a first power line communication modem and a second power line communication modem, wherein the first power line communication modem is located at the target In the router, the second power line communication modem is located in a home appliance, and the home appliance and the target router are located under the same electric meter range;

S2,通过所述电力线通信连接发送局域网的网络信息至所述家电设备;S2, sending the network information of the local area network to the home appliance through the power line communication connection;

S3,指示所述家电设备根据所述网络信息连接至所述局域网,以实现所述家电设备的配网。S3, instructing the home appliance to connect to the local area network according to the network information, so as to implement network distribution of the home appliance.

在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.

本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details will not be repeated here in this embodiment.

本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention 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, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:

S1,在家电设备已连接电源的情况下,通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,其中,所述第一电力线通讯调制解调器位于所述目标路由器中,所述第二电力线通讯调制解调器位于家电设备中,且所述家电设备与所述目标路由器位于同一电表范围下;S1. When the home appliance is connected to a power source, establish a power line communication connection between the target router and the home appliance through a first power line communication modem and a second power line communication modem, wherein the first power line communication modem is located at the target In the router, the second power line communication modem is located in a home appliance, and the home appliance and the target router are located under the same electric meter range;

S2,通过所述电力线通信连接发送局域网的网络信息至所述家电设备;S2, sending the network information of the local area network to the home appliance through the power line communication connection;

S3,指示所述家电设备根据所述网络信息连接至所述局域网,以实现所述家电设备的配网。S3, instructing the home appliance to connect to the local area network according to the network information, so as to implement network distribution of the home appliance.

在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.

本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details will not be repeated here in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the present invention described above can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims (10)

1.一种配网方法,其特征在于,包括:1. A network distribution method, characterized in that, comprising: 在家电设备已连接电源的情况下,通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,其中,所述第一电力线通讯调制解调器位于所述目标路由器中,所述第二电力线通讯调制解调器位于家电设备中,且所述家电设备与所述目标路由器位于同一电表范围下;In the case that the home appliance is connected to a power source, a power line communication connection between the target router and the home appliance is established through a first power line communication modem and a second power line communication modem, wherein the first power line communication modem is located in the target router , the second power line communication modem is located in a household electrical appliance, and the household electrical appliance and the target router are located under the same electric meter range; 通过所述电力线通信连接发送局域网的网络信息至所述家电设备;sending network information of the local area network to the home appliance through the power line communication connection; 指示所述家电设备根据所述网络信息连接至所述局域网,以实现所述家电设备的配网。Instructing the home appliance to connect to the local area network according to the network information, so as to realize network distribution of the home appliance. 2.根据权利要求1所述的方法,其特征在于,通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,包括:2. The method according to claim 1, characterized in that, establishing the power line communication connection between the target router and the household electrical appliance through the first power line communication modem and the second power line communication modem, comprising: 确定所述目标路由器所处的电表;Determine the electric meter where the target router is located; 在所述电表范围下确定与所述第一电力线通讯调制解调器相匹配的第二电力线通讯调制解器;determining a second power line communication modem that matches the first power line communication modem under the range of the electric meter; 建立所述第一电力线通讯调制解调器和所述第二电力线通讯调制解调器的连接关系,以实现所述目标路由器和所述家电设备的电力线通信连接。Establishing a connection relationship between the first power line communication modem and the second power line communication modem, so as to realize the power line communication connection between the target router and the household electrical appliance. 3.根据权利要求1所述的方法,其特征在于,通过所述电力线通信连接发送局域网的网络信息至所述家电设备,包括:3. The method according to claim 1, wherein sending the network information of the local area network to the home appliance through the power line communication connection comprises: 确定所述局域网的网络信息;determining the network information of the local area network; 指示所述第一电力线通讯调制解调器基于所述电力线通信连接发送所述局域网的网络信息至所述家电设备的第二电力线通讯调制解调器。instructing the first power line communication modem to send the network information of the local area network to the second power line communication modem of the household appliance based on the power line communication connection. 4.根据权利要求1所述的方法,其特征在于,指示所述家电设备根据所述网络信息连接至所述局域网之后,所述方法还包括:4. The method according to claim 1, wherein after instructing the home appliance to connect to the local area network according to the network information, the method further comprises: 通过所述电力线通信连接获取所述家电设备的设备信息,其中,所述设备信息包括:设备标识,设备型号;Obtaining device information of the household electrical appliance through the power line communication connection, wherein the device information includes: a device identifier and a device model; 将所述家电设备的设备信息发送至云端服务器。Send the device information of the home appliance to the cloud server. 5.根据权利要求4所述的方法,其特征在于,将所述家电设备的设备信息发送至云端服务器之后,所述方法还包括:5. The method according to claim 4, wherein after sending the device information of the home appliance to the cloud server, the method further comprises: 获取移动终端通过无线保真WIFI发送的绑定请求,其中,所述绑定请求用于请求与所述家电设备建立绑定关系,所述绑定请求中携带有所述家电设备的设备信息,其中,所述家电设备的设备信息为所述移动终端扫描所述家电设备的二维码所得到的信息,或所述移动终端通过访问所述局域网所得到信息;Acquiring a binding request sent by the mobile terminal through wireless fidelity WIFI, wherein the binding request is used to request to establish a binding relationship with the home appliance, and the binding request carries device information of the home appliance, Wherein, the device information of the home appliance is the information obtained by the mobile terminal scanning the two-dimensional code of the home appliance, or the information obtained by the mobile terminal by accessing the local area network; 响应于所述绑定请求,并在所述云端服务器建立所述移动终端与所述家电设备的绑定关系。In response to the binding request, a binding relationship between the mobile terminal and the household electrical appliance is established on the cloud server. 6.根据权利要求5所述的方法,其特征在于,在所述云端服务器建立所述移动终端与所述家电设备的绑定关系之后,所述方法还包括:6. The method according to claim 5, characterized in that, after the cloud server establishes the binding relationship between the mobile terminal and the home appliance, the method further comprises: 获取所述移动终端通过WIFI发送的控制指令,其中,所述控制指令携带有所述家电设备的标识;Obtaining a control instruction sent by the mobile terminal through WIFI, wherein the control instruction carries the identifier of the household electrical appliance; 通过所述家电设备的标识在云端服务器验证所述移动终端与所述家电设备的绑定关系;Verifying the binding relationship between the mobile terminal and the household electrical appliance on the cloud server through the identifier of the household electrical appliance; 在所述移动终端与所述家电设备具有绑定关系的情况下,通过所述第一电力线通讯调制解调器将所述控制指令发送至所述家电设备,以指示所述家电设备执行目标操作。In the case that the mobile terminal has a binding relationship with the household electrical appliance, the control instruction is sent to the household electrical appliance through the first power line communication modem, so as to instruct the household electrical appliance to perform a target operation. 7.根据权利要求6所述的方法,其特征在于,通过所述家电设备的标识在云端服务器验证所述移动终端与所述家电设备的绑定关系之后,所述方法还包括:7. The method according to claim 6, characterized in that, after the cloud server verifies the binding relationship between the mobile terminal and the home appliance through the identification of the home appliance, the method further comprises: 在所述移动终端与所述家电设备不具有绑定关系的情况下,发送绑定指示信息至所述移动终端,以指示所述移动终端建立与所述家电设备的绑定关系。If the mobile terminal does not have a binding relationship with the household electrical appliance, sending binding indication information to the mobile terminal to instruct the mobile terminal to establish a binding relationship with the household electrical appliance. 8.一种配网装置,其特征在于,包括:8. A network distribution device, characterized in that it comprises: 连接模块,用于在家电设备已连接电源的情况下,通过第一电力线通讯调制解调器和第二电力线通讯调制解调器建立目标路由器和所述家电设备的电力线通信连接,其中,所述第一电力线通讯调制解调器位于所述目标路由器中,所述第二电力线通讯调制解调器位于家电设备中,且所述家电设备与所述目标路由器位于同一电表范围下;A connection module, configured to establish a power line communication connection between the target router and the home appliance through the first power line communication modem and the second power line communication modem when the home appliance is connected to a power source, wherein the first power line communication modem is located at In the target router, the second power line communication modem is located in a home appliance, and the home appliance and the target router are located under the same electric meter range; 发送模块,用于通过所述电力线通信连接发送局域网的网络信息至所述家电设备;a sending module, configured to send the network information of the local area network to the home appliance through the power line communication connection; 配网模块,用于指示所述家电设备根据所述网络信息连接至所述局域网,以实现所述家电设备的配网。A network distribution module, configured to instruct the home appliance to connect to the local area network according to the network information, so as to realize the network distribution of the home appliance. 9.一种计算机可读的存储介质,其特征在于,所述计算机可读的存储介质包括存储的程序,其中,所述程序运行时执行上述权利要求1至7任一项中所述的方法。9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein, when the program runs, the method described in any one of claims 1 to 7 is executed . 10.一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至7任一项中所述的方法。10. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute any one of claims 1 to 7 through the computer program. the method described.
CN202111316503.6A 2021-11-08 2021-11-08 Distribution network method and device, storage medium and electronic device Pending CN116094549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111316503.6A CN116094549A (en) 2021-11-08 2021-11-08 Distribution network method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111316503.6A CN116094549A (en) 2021-11-08 2021-11-08 Distribution network method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN116094549A true CN116094549A (en) 2023-05-09

Family

ID=86187444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111316503.6A Pending CN116094549A (en) 2021-11-08 2021-11-08 Distribution network method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116094549A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050203647A1 (en) * 2004-03-15 2005-09-15 Landry Kenneth D. Appliance communication system and method
CN1852402A (en) * 2006-05-29 2006-10-25 中国移动通信集团公司 Camera system and its control method
CN102859909A (en) * 2010-02-28 2013-01-02 亚历山大·索托 Systems and methods for user-powered network elements
US20140121786A1 (en) * 2012-10-30 2014-05-01 Hon Hai Precision Industry Co., Ltd. Smart gateway, smart home system and smart remote control method thereof
CN104267658A (en) * 2014-09-24 2015-01-07 宁波创元信息科技有限公司 Household appliance control system integrating power line communication and infrared communication
CN105320099A (en) * 2014-08-01 2016-02-10 江苏赛威电子有限公司 Intelligence switch system
CN107171905A (en) * 2017-05-10 2017-09-15 广东美的制冷设备有限公司 Home appliance distribution method and apparatus
CN107342984A (en) * 2017-06-13 2017-11-10 浙江大华技术股份有限公司 A kind of system, method and device for apparatus bound
CN108964705A (en) * 2017-05-18 2018-12-07 宁波公牛电器有限公司 A kind of block combiner switch and its identification of function method
CN109960155A (en) * 2019-04-02 2019-07-02 张慧平 A kind of intelligent home furnishing control method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050203647A1 (en) * 2004-03-15 2005-09-15 Landry Kenneth D. Appliance communication system and method
CN1852402A (en) * 2006-05-29 2006-10-25 中国移动通信集团公司 Camera system and its control method
CN102859909A (en) * 2010-02-28 2013-01-02 亚历山大·索托 Systems and methods for user-powered network elements
US20140121786A1 (en) * 2012-10-30 2014-05-01 Hon Hai Precision Industry Co., Ltd. Smart gateway, smart home system and smart remote control method thereof
CN105320099A (en) * 2014-08-01 2016-02-10 江苏赛威电子有限公司 Intelligence switch system
CN104267658A (en) * 2014-09-24 2015-01-07 宁波创元信息科技有限公司 Household appliance control system integrating power line communication and infrared communication
CN107171905A (en) * 2017-05-10 2017-09-15 广东美的制冷设备有限公司 Home appliance distribution method and apparatus
CN108964705A (en) * 2017-05-18 2018-12-07 宁波公牛电器有限公司 A kind of block combiner switch and its identification of function method
CN107342984A (en) * 2017-06-13 2017-11-10 浙江大华技术股份有限公司 A kind of system, method and device for apparatus bound
CN109960155A (en) * 2019-04-02 2019-07-02 张慧平 A kind of intelligent home furnishing control method and system

Similar Documents

Publication Publication Date Title
EP3735045B1 (en) Method, apparatus, and system for accessing network hotspot device by device to be distributed a network
CN109495358B (en) Network distribution method and network distribution system for household appliances
CN110740460B (en) Network access method and device of equipment, network equipment and storage medium
CN110971495B (en) Equipment binding method and device of intelligent household system and storage medium
CN110636483A (en) Network distribution method and system
CN112187531B (en) Module upgrading method and system, storage medium and electronic device
CN111885144B (en) Equipment binding method and device
CN107342933B (en) Activation and binding method and device for intelligent equipment
CN112738785B (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN110061871A (en) Opening base station method, apparatus, computer storage medium and equipment
CN109413653B (en) Network distribution method and network distribution system for household appliances
CN105208583A (en) Intelligent household electrical appliance networking method and apparatus, and intelligent equipment
CN104767768A (en) A method for sending/receiving network access configuration information for home appliances and home appliances
CN111163469A (en) Network distribution method of intelligent household appliance, wireless module and intelligent household appliance
CN112466303B (en) Device discovery method, device, storage medium, and electronic apparatus
CN114205378B (en) Network distribution method and device of Internet of things equipment, storage medium and electronic device
WO2022073304A1 (en) Ap network configuration processing method and apparatus
CN113596832B (en) Network connection establishment method, device, storage medium and electronic device
CN113285810B (en) Target equipment login method and device, storage medium and electronic device
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
CN115356937A (en) Equipment control method, device, storage medium and electronic device
CN112737847A (en) Node upgrading method and device, storage medium and electronic device
CN113596792B (en) Binding method and device of electronic equipment, storage medium and electronic device
CN112637221B (en) Equipment control method and device
CN110071950B (en) Information transmission method, transfer device, terminal, controlled device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination