CN106453011B - network connection method of intelligent household equipment and intelligent household gateway - Google Patents

network connection method of intelligent household equipment and intelligent household gateway Download PDF

Info

Publication number
CN106453011B
CN106453011B CN201611086029.1A CN201611086029A CN106453011B CN 106453011 B CN106453011 B CN 106453011B CN 201611086029 A CN201611086029 A CN 201611086029A CN 106453011 B CN106453011 B CN 106453011B
Authority
CN
China
Prior art keywords
intelligent home
home gateway
network connection
intelligent
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611086029.1A
Other languages
Chinese (zh)
Other versions
CN106453011A (en
Inventor
王艳青
郭慧玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Group Co Ltd
Original Assignee
Hisense Group 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 Hisense Group Co Ltd filed Critical Hisense Group Co Ltd
Priority to CN201611086029.1A priority Critical patent/CN106453011B/en
Publication of CN106453011A publication Critical patent/CN106453011A/en
Application granted granted Critical
Publication of CN106453011B publication Critical patent/CN106453011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a network connection method of intelligent household equipment and an intelligent household gateway, and belongs to the field of intelligent household. The method comprises the following steps: when detecting that the configuration information of the intelligent home gateway changes, sending a notification message to at least one intelligent home device which currently establishes network connection with the intelligent home gateway; setting the configuration information of the intelligent home gateway as changed configuration information; and according to the changed configuration information, reestablishing network connection with the at least one intelligent household device. Because the notification message is used for notifying the at least one piece of intelligent home equipment that the configuration information of the intelligent home gateway changes, when the intelligent home equipment receives the notification message, the network connection with the intelligent home gateway can be automatically reestablished, and the network connection with the intelligent home gateway is established without manually starting the intelligent home equipment by a user, so that the network connection efficiency of the intelligent home equipment is improved.

Description

Network connection method of intelligent household equipment and intelligent household gateway
Technical Field
the invention relates to the field of intelligent home, in particular to a network connection method of intelligent home equipment and an intelligent home gateway.
Background
Along with the rapid development of smart homes, more and more smart home devices enter every family, such as smart televisions, smart air conditioners, smart cameras and the like. In order to maximize the functions of the smart home devices, the smart home devices need to be connected to a network.
the intelligent home gateway can be used as a medium for connecting the intelligent home equipment to the network, so that when the intelligent home equipment is connected to the network, the intelligent home equipment sends a network connection request to the intelligent home gateway, and when the intelligent home gateway receives the network connection request sent by the intelligent home equipment, the intelligent home gateway allocates the network address of the local area network where the intelligent home equipment is located to the intelligent home equipment and sends the network address to the intelligent home equipment. And after receiving the network address, the intelligent home equipment establishes network connection with the intelligent home gateway according to the network address.
however, after the network connection between the smart home devices and the smart home gateways is established, when the configuration information of the smart home gateways changes, for example, the lan address of the smart home gateway changes, the network connection between the smart home devices and the smart home gateways may be disconnected, at this time, the user needs to manually start the smart home devices to trigger the smart home devices to re-establish the network connection with the smart home gateways, that is, the smart home devices need to obtain the changed lan address of the smart home gateways through manual restart, so that the efficiency of the smart home devices in performing the network connection is reduced.
disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a network connection method for an intelligent home device and an intelligent home gateway. The technical scheme is as follows:
in one aspect, a network connection method for smart home devices is provided, where the method includes:
when detecting that the configuration information of the intelligent home gateway changes, sending a notification message to at least one piece of intelligent home equipment which currently establishes network connection with the intelligent home gateway, wherein the notification message is used for notifying the at least one piece of intelligent home equipment of the change situation of the configuration information of the intelligent home gateway, so that the at least one piece of intelligent home equipment reestablishes network connection with the intelligent home gateway according to the changed configuration information;
when the at least one piece of intelligent home equipment receives the notification message, setting the configuration information of the intelligent home gateway as changed configuration information so as to enable the changed configuration information to take effect;
And according to the changed configuration information, reestablishing network connection with the at least one intelligent household device.
Optionally, before sending the notification message to the at least one smart home device currently establishing network connection with the smart home gateway, the method further includes:
Detecting whether a Dynamic Host Configuration Protocol (DHCP) service of the intelligent home gateway is set to be forbidden or not;
When the DHCP service is set to be forbidden, generating prompt information, wherein the prompt information is used for prompting that the at least one intelligent home device cannot establish network connection with the intelligent home gateway after the DHCP service is set to be forbidden;
And when a disable setting canceling instruction is received according to the prompt information, canceling the disable setting of the DHCP service, and executing the step of sending a notification message to at least one intelligent home device which is currently in network connection with the intelligent home gateway.
optionally, before sending the notification message to the at least one smart home device currently establishing network connection with the smart home gateway, the method further includes:
closing the DHCP service of the intelligent home gateway;
correspondingly, the reestablishing the network connection with the at least one smart home device according to the changed configuration information includes:
Starting the DHCP service of the intelligent home gateway;
And when a network connection request sent by the at least one intelligent household device is received, according to the changed configuration information, network connection with the at least one intelligent household device is reestablished through a DHCP service of the intelligent household gateway.
optionally, the reestablishing, according to the changed configuration information, a network connection with the at least one smart home device includes:
sending a network connection reestablishing message to the at least one intelligent home device, so that the at least one intelligent home device sends a network connection request to the intelligent home gateway to carry out network connection again;
And when a network connection request sent by the at least one intelligent household device is received, according to the changed configuration information, network connection with the at least one intelligent household device is reestablished through a DHCP service of the intelligent household gateway.
Optionally, the sending a notification message to at least one smart home device currently establishing network connection with the smart home gateway includes:
When the network address range of the DHCP service included in the configuration information of the intelligent home gateway changes, selecting the intelligent home equipment of which the network address does not belong to the network address range after the DHCP service changes from the at least one intelligent home equipment;
and sending the notification message to the selected intelligent household equipment.
On the other hand, an intelligent home gateway is provided, which comprises:
The system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a notification message to at least one piece of intelligent home equipment which is currently in network connection with an intelligent home gateway when detecting that the configuration information of the intelligent home gateway changes, and the notification message is used for notifying the intelligent home equipment of the change situation of the configuration information of the intelligent home gateway so that the intelligent home equipment can reestablish network connection with the intelligent home gateway according to the changed configuration information;
The setting module is used for setting the configuration information of the intelligent home gateway to changed configuration information when the at least one intelligent home device receives the notification message so as to enable the changed configuration information to take effect;
And the establishing module is used for reestablishing the network connection with the at least one intelligent household device according to the changed configuration information.
optionally, the smart home gateway further includes:
The detection module is used for detecting whether the Dynamic Host Configuration Protocol (DHCP) service of the intelligent home gateway is set to be forbidden or not;
The generation module is used for generating prompt information when the DHCP service is set to be forbidden, wherein the prompt information is used for prompting that the at least one intelligent home equipment cannot establish network connection with the intelligent home gateway after the DHCP service is set to be forbidden;
And the cancelling module is used for cancelling the forbidden setting of the DHCP service and executing the step of sending a notification message to at least one intelligent home device which is currently in network connection with the intelligent home gateway when a forbidden setting cancelling instruction is received according to the prompt message.
Optionally, the smart home gateway further includes:
The closing module is used for closing the DHCP service of the intelligent home gateway;
accordingly, the establishing module comprises:
the starting unit is used for starting the DHCP service of the intelligent home gateway;
and the first establishing unit is used for reestablishing the network connection with the at least one intelligent household device through the DHCP service of the intelligent household gateway according to the changed configuration information when receiving the network connection request sent by the at least one intelligent household device.
optionally, the establishing module includes:
A sending unit, configured to send a network connection reestablishment message to the at least one smart home device, so that the at least one smart home device sends a network connection request to the smart home gateway to perform network connection again;
And the second establishing unit is used for reestablishing the network connection with the at least one intelligent household device through the DHCP service of the intelligent household gateway according to the changed configuration information when receiving the network connection request sent by the at least one intelligent household device.
Optionally, the sending module includes:
The selection unit is used for selecting the intelligent home equipment of which the network address does not belong to the network address range after the DHCP service change from the at least one intelligent home equipment when the network address range of the DHCP service included in the configuration information of the intelligent home gateway changes;
and the sending unit is used for sending the notification message to the selected intelligent household equipment.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the embodiment of the invention, when the change of the configuration information of the intelligent home gateway is detected, before the configuration information takes effect, the intelligent home gateway actively sends a notification message to at least one intelligent home device which is currently in network connection with the intelligent home gateway. Because the notification message is used for notifying the intelligent home devices of the change condition of the configuration information of the intelligent home gateway, when the at least one intelligent home device receives the notification message, the network connection with the intelligent home gateway can be reestablished according to the changed configuration information of the intelligent home gateway, and the network connection with the intelligent home gateway is established without manually starting the intelligent home device by a user, so that the network connection efficiency between the intelligent home devices and the intelligent home gateway is improved.
Drawings
in order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
fig. 1 is a flowchart of a network connection method for smart home devices according to an embodiment of the present invention;
Fig. 2A is a block diagram of an intelligent home gateway according to an embodiment of the present invention;
Fig. 2B is a block diagram of another smart home gateway provided in the embodiment of the present invention;
Fig. 2C is a block diagram of another smart home gateway provided in the embodiment of the present invention;
FIG. 2D is a block diagram of an establishment module provided by an embodiment of the present invention;
FIG. 2E is a block diagram of another setup module provided by embodiments of the present invention;
Fig. 2F is a block diagram of a sending module according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
the embodiment of the invention provides a network connection method of intelligent home equipment, which is used in an intelligent home gateway and is shown in figure 1, and the method comprises the following steps:
step 101: and detecting whether the configuration information of the intelligent home gateway changes.
In the embodiment of the present invention, the smart home device establishes a network connection with the smart home gateway through a network address allocated to the smart home gateway by the smart home gateway, that is, the smart home device establishes a network connection with the smart home gateway through a Dynamic Host Configuration Protocol (DHCP) service on the smart home gateway. For convenience of explanation, the function of the DHCP service will be briefly described: for the intelligent home gateway based on the DHCP service, when receiving a network connection request sent by the intelligent home equipment, the intelligent home gateway dynamically allocates a network address for the intelligent home equipment according to the configuration information of the intelligent home gateway so as to establish network connection with the intelligent home equipment. Therefore, the network address allocated by the intelligent home gateway to the intelligent home device is related to the configuration information of the intelligent home gateway. Therefore, in the embodiment of the present invention, in order to maintain the effective network connection between the smart home device and the smart home gateway, the smart home gateway needs to detect whether the configuration information of the smart home gateway changes, so as to take effective measures to avoid the network connection disconnection between the smart home device and the smart home gateway.
the configuration information of the smart home gateway includes, but is not limited to, a local area network address, such as an IP (Internet Protocol) address, a DNS (Domain Name System) server address of a local area network, a network address range of a DHCP service, and the like, and the network address range of the DHCP service is determined according to the local area network address of the smart home gateway. The network address allocated by the intelligent home gateway to the intelligent home device is a network address within a network address range of the DHCP service, and the network address allocated by the intelligent home gateway to the intelligent home device may be an IP (internet protocol) address or the like.
Specifically, the smart home gateway detects whether the configuration information of the smart home gateway changes, and can be implemented in the following two ways.
the first mode is as follows: and the intelligent home gateway detects whether the configuration information changes in real time. That is, a preset time duration is set in the smart home gateway, and the smart home gateway performs an operation of detecting whether the configuration information changes every time of the preset time duration.
it should be noted that, in order to enable the intelligent home gateway to detect that the configuration information of the intelligent home gateway changes in time when the configuration information of the intelligent home gateway changes, the preset time duration should not be too long, for example, the preset time duration may be 1s, 2s, or 5s, and the like.
The second mode is as follows: when the intelligent home gateway detects a modification instruction for the configuration information of the intelligent home gateway, whether the configuration information of the intelligent home gateway changes or not is judged.
in the second mode, the intelligent home gateway does not need to detect whether the configuration information of the intelligent home gateway changes in real time, but when a modification instruction for the configuration information of the intelligent home gateway is detected, whether the configuration information really changes is judged. That is, when a user modifies the configuration information of the intelligent home gateway through a computer or other terminal, the intelligent home gateway detects a modification instruction for the configuration information, and when the intelligent home gateway detects the modification instruction, whether the configuration information of the intelligent home gateway changes or not can be judged by running a specified script program. The appointed script program is used for judging whether the configuration information of the intelligent home gateway really changes. Whether the configuration information of the intelligent home gateway changes or not is detected through the second mode, and the efficiency of detecting whether the configuration information changes or not by the intelligent home gateway can be improved.
it should be noted that, in the embodiment of the present invention, the intelligent home gateway establishes network connection with the intelligent home device through a DHCP service. Therefore, when the smart home gateway detects that the configuration information of the smart home gateway changes, in order to ensure that the smart home device can reestablish the network connection with the smart home gateway, the smart home gateway further needs to detect whether the DHCP service is set to be disabled.
Specifically, when the intelligent home gateway detects that the DHCP service is set to be disabled, prompt information is generated, where the prompt information is used to prompt that after the DHCP service is set to be disabled, the at least one intelligent home device cannot establish a network connection with the intelligent home gateway. When receiving a disable setting cancel instruction according to the prompt message, canceling the disable setting for the DHCP service, and then performing the operation in step 102; when receiving the continue disable setting instruction, the prompt message is ignored, and the DHCP service is still set to disable.
in a possible implementation manner, when the smart home gateway generates the prompt message, the prompt message further includes two options of "cancel disable" and "continue disable", and when the smart home gateway detects a trigger operation for the "cancel disable" option according to the prompt message, that is, when a cancel disable setting instruction is received, the disable setting for the DHCP service is cancelled, and then the operation in step 102 is executed. When the intelligent home gateway detects the trigger operation aiming at the 'continue forbidding' option, the intelligent home gateway determines that a continue forbidding setting instruction is received, and ignores the prompt message to enable the DHCP service to be still set to be forbidden.
step 102: when detecting that the configuration information of the intelligent home gateway changes, sending a notification message to at least one piece of intelligent home equipment which is currently in network connection with the intelligent home gateway, wherein the notification message is used for notifying the at least one piece of intelligent home equipment of the change situation of the configuration information of the intelligent home gateway, so that the at least one piece of intelligent home equipment can reestablish network connection with the intelligent home gateway according to the changed configuration information.
When detecting that the configuration information of the smart home gateway changes, in order to enable the smart home device connected with the smart home gateway to know that the configuration information of the smart home gateway changes, the smart home gateway needs to send a notification message to the smart home device. That is, the smart home gateway sends a notification message to the at least one smart home device, and when the at least one smart home device receives the notification message, it is determined that the configuration information of the smart home gateway accessed by the at least one smart home device changes.
in the embodiment of the present invention, the smart home gateway may send the notification message to the at least one smart home device in a broadcast manner, may also send the notification message in a multicast manner, or may send the notification message in a unicast manner. When the intelligent home gateway sends the notification message in a broadcasting mode, the notification message also carries the network address range of the DHCP service of the intelligent home gateway, when the intelligent home device receives the notification message sent in the broadcasting mode, the network address of the intelligent home device is compared with the network address range of the DHCP service of the intelligent home gateway, when the network address of the intelligent home device is determined to be in the network address range of the DHCP service of the intelligent home gateway, the configuration information of the intelligent home gateway accessed by the intelligent home gateway is determined to be changed according to the received notification message, and otherwise, no processing is performed. When the intelligent home gateway sends the notification message in a multicast mode, the intelligent home gateway determines the network address allocated by the intelligent home gateway to the at least one intelligent home device in advance, and then sends the notification message to the at least one intelligent home device at the same time. When the intelligent home gateway sends the notification message in a unicast mode, after the network address allocated to the at least one intelligent home device by the intelligent home gateway is determined, the notification message is sent to one of the intelligent home devices in a unicast mode according to the network address of the at least one intelligent home device, and when the feedback message sent by the intelligent home device is received, the notification message is sent to the next intelligent home device until the notification message is sent to each intelligent home device in the at least one intelligent home device.
Optionally, the notification message may also carry configuration information of the changed intelligent home gateway, and when the intelligent home device receives the notification message, it is determined that the configuration information of the intelligent home gateway accessed by the intelligent home device changes according to the configuration information of the changed intelligent home gateway.
it should be noted that, when the smart home gateway sends the notification message in a multicast or unicast manner, the smart home gateway needs to determine the network address of the at least one smart home device first, and then sends the notification message to the at least one smart home device according to the network address of the at least one smart home device. However, the network address allocated by the smart home gateway to the at least one smart home device may already be stored in the smart home gateway, or the network address allocated by the smart home gateway to the at least one smart home device may not be stored in the smart home gateway. When the network address allocated by the smart home gateway to the at least one smart home device is stored in the smart home gateway, the smart home gateway may directly send the notification message to the at least one smart home device in a multicast or unicast manner according to the network address of the at least one smart home device. When the network address allocated by the intelligent home gateway for the at least one intelligent home device is not stored in the intelligent home gateway, the intelligent home gateway may obtain the network address of the at least one intelligent home device by sending a broadcast message. That is, the smart home gateway transmits a broadcast message for acquiring the network address of the at least one smart home device, and the broadcast message carries the network address range of the DHCP service of the smart home gateway, when the intelligent home equipment receives the broadcast message, judging whether the network address of the intelligent home equipment belongs to the network address in the network address range of the DHCP service of the intelligent home gateway or not, when the intelligent home equipment determines that the network address of the intelligent home equipment belongs to the network address in the network address range of the DHCP service of the intelligent home gateway, the intelligent home gateway sends network address reporting information to the intelligent home gateway, the network address reporting information carries the network address of the intelligent home device, and the network address reporting information is used for prompting the intelligent home gateway that the intelligent home device is one of the at least one intelligent home device. And when the intelligent home gateway receives the network address reporting information, determining the network address of the intelligent home equipment.
particularly, when the smart home gateway sends the notification message to the smart home device in a unicast manner, in order to ensure that the smart home device receives the notification message, the smart home gateway may further set a timing time after sending the notification message to the smart home device, and start timing. And when the timing time is up and the intelligent home gateway does not receive the feedback message sent by the intelligent home equipment, resending the notification message, recording the sending times, continuously executing the timing operation, and circularly executing the operation until the intelligent home gateway receives the feedback message sent by the intelligent home equipment or the sending times reaches the preset sending times. And when the sending times reach the preset sending times, if the intelligent home gateway still does not receive the feedback message, ignoring the intelligent home equipment.
The feedback message is used to indicate that the smart home gateway has received the notification message, and the preset sending times are preset sending times in the smart home gateway, where the preset sending times may be 3 times, 5 times, or 10 times, and the like. The timing time is set in the smart home gateway and can be 10s, 30s or 50s, and the like.
For example, the preset sending times is 3 times, the timing time is 10s, when the intelligent home gateway sends the notification message to the intelligent home device in a unicast mode, timing is started, when the timing time is up to 10s, the intelligent home gateway does not receive the feedback message, the notification message is sent to the intelligent home device again, and the operation is executed in a circulating mode until the sending times exceed 3 times or the intelligent home gateway receives the feedback message.
in the embodiment of the present invention, when the network address range of the DHCP service included in the configuration information of the smart home gateway changes, the network address range of the DHCP service after the change may intersect with the network address range of the DHCP service before the change, so that the network address of the smart home device may still be in the network address range of the DHCP service after the change, that is, the smart home device does not need to reestablish network connection with the smart home gateway. In the embodiment of the present invention, in order to avoid sending the notification message to the smart home devices that do not need to reestablish network connection, the smart home gateway may select, from the at least one smart home device, a smart home device whose network address does not belong to the network address range after the DHCP service is changed, and send the notification message to the selected smart home device. That is, after the smart home gateway determines the at least one smart home device, the network address allocated by the smart home gateway for the at least one smart home device is determined, and then the network address of the at least one smart home device is compared with the network address range after the DHCP service is changed, if the network address of the smart home device does not belong to the network address range after the DHCP service is changed, a notification message is sent to the smart home device, and accordingly, for the smart home devices whose network addresses are still within the network address range after the DHCP service is changed, the notification message does not need to be sent to the smart home devices.
step 103: when the at least one piece of intelligent home equipment receives the notification message, the configuration information of the intelligent home gateway is set to be changed configuration information, so that the changed configuration information becomes effective.
When the intelligent home gateway sends the notification message in a broadcast or multicast mode, after the intelligent home gateway sends the notification message, the at least one intelligent home device is defaulted to receive the notification message. When the intelligent home gateway sends the notification message to each intelligent home device in the at least one intelligent home device in a unicast mode, when the intelligent home device receives the notification message, the intelligent home device sends a feedback message to the intelligent home gateway. When the intelligent home gateway receives feedback messages sent by all the intelligent home devices in the at least one intelligent home device, it is determined that the at least one intelligent home device receives the notification message.
therefore, whether the notification message is sent in a broadcast manner or in a unicast manner, the smart home gateway may determine that the at least one smart home device receives the notification message. When the intelligent home gateway determines that the at least one intelligent home device receives the notification message, the configuration information of the intelligent home gateway is set to be changed configuration information so that the changed configuration information becomes effective, that is, when the intelligent home device establishes network connection with the intelligent home gateway again, the intelligent home gateway reallocates a network address for the intelligent home gateway according to the changed configuration information.
it should be noted that, in the embodiment of the present invention, when the smart home device receives the notification message, it is determined that the configuration information of the smart home gateway to which the smart home device is connected changes, and at this time, the smart home device may send a network connection request to the smart home gateway to reestablish a network connection with the smart home gateway. However, when the smart home gateway receives the network connection request, the process of sending the notification message to the at least one smart home device by the smart home gateway may not be completed. For example, when the smart home devices send the notification message in a broadcast or multicast manner, because distances between the smart home devices and the smart home gateway are different, when one of the smart home devices receives the notification message and sends a network connection request to the smart home gateway, there may be a case that the other smart home devices have not received the notification message; or, when the smart home gateway sends the notification message in a unicast manner, if the smart home device that has received the notification message first directly sends the network connection request to the smart home gateway, the smart home gateway may still execute an operation of sending the notification message to other smart home devices. That is, when the intelligent home gateway receives the network connection request, the intelligent home gateway does not set the configuration information of the intelligent home gateway to the changed configuration information, at this time, if the intelligent home gateway reestablishes the network connection with the intelligent home device, the network connection is still the network connection established according to the configuration information before the change, and when the changed configuration information becomes effective, the network connection is still invalid. In the embodiment of the present invention, the above-described situation can be avoided by the following two strategies.
In the first strategy, before the intelligent home gateway sends the notification message to the at least one intelligent home device, the DHCP service of the intelligent home gateway is closed, and after the intelligent home gateway sets the configuration information of the intelligent home gateway to the changed configuration information, the DHCP service of the intelligent home gateway is opened.
In the first strategy, before the configuration information of the smart home gateway is set as the changed configuration information, that is, before the changed configuration information becomes effective, the DHCP service of the smart home gateway is closed, and at this time, the smart home device cannot reestablish network connection with the smart home gateway. And when the changed configuration information takes effect, starting the DHCP service, and executing step 104 to ensure that the reestablishment of the network connection between the intelligent home equipment and the intelligent home gateway is executed after the changed configuration information takes effect.
and the second strategy is that after the intelligent home gateway sets the configuration information of the intelligent home gateway to the changed configuration information, a network connection reestablishment message is sent to the at least one intelligent home device, so that the at least one intelligent home device sends a network connection request to the intelligent home gateway to carry out network connection again.
in the second strategy, when the smart home device receives the notification message, the smart home device does not send the network connection request to the smart home gateway, but sends the network connection request to the smart home gateway when receiving the network connection reestablishment message sent by the smart home gateway. The network connection reestablishment message is sent to the smart home device after the smart home gateway determines that the at least one smart home device receives the notification message and sets the configuration information thereof to the changed configuration information. Therefore, through the second policy, it can also be ensured that the reestablishment of the network connection between the smart home device and the smart home gateway is performed after the changed configuration information becomes effective.
Step 104: and according to the changed configuration information, reestablishing network connection with the at least one intelligent household device.
In the embodiment of the present invention, when the at least one smart home device receives the notification message, it is determined that the configuration information of the smart home gateway accessed by the at least one smart home device changes, and in order to continue establishing network connection with the smart home gateway, the at least one smart home device needs to send a network connection request to the smart home gateway to obtain a network address allocated to the smart home gateway according to the changed configuration information, and reestablish network connection with the smart home gateway.
Specifically, for the two strategies in step 103, after the intelligent home gateway starts the DHCP service or after the intelligent home gateway sends a network connection reestablishment message, when a network connection request of the intelligent home device is received, the intelligent home gateway allocates a network address to the intelligent home device according to the changed configuration information, and after the intelligent home device receives the network address, the intelligent home device reestablishes the network connection with the intelligent home gateway according to the network address. Since the starting of the DHCP service or the sending of the network connection reestablishment message is performed after the changed configuration information becomes effective, the network address received by the smart home device is a network address allocated according to the changed configuration information, that is, an effective network address. After the changed configuration information takes effect, the intelligent home equipment can successfully establish network connection with the intelligent home gateway.
In the embodiment of the invention, when the change of the configuration information of the intelligent home gateway is detected, before the configuration information takes effect, the intelligent home gateway actively sends a notification message to at least one intelligent home device which is currently in network connection with the intelligent home gateway. Because the notification message is used for notifying the intelligent home devices of the change condition of the configuration information of the intelligent home gateway, when the at least one intelligent home device receives the notification message, the network connection with the intelligent home gateway can be reestablished according to the changed configuration information of the intelligent home gateway, and the network connection with the intelligent home gateway is established without manually starting the intelligent home device by a user, so that the network connection efficiency between the intelligent home devices and the intelligent home gateway is improved.
referring to fig. 2A, an embodiment of the present invention provides an intelligent home gateway 200, where the intelligent home gateway 200 includes a sending module 201, a setting module 202, and an establishing module 203:
a sending module 201, configured to send a notification message to at least one piece of smart home equipment currently establishing network connection with the smart home gateway when detecting that configuration information of the smart home gateway changes, where the notification message is used to notify the at least one piece of smart home equipment of a change situation of the configuration information of the smart home gateway, so that the at least one piece of smart home equipment reestablishes network connection with the smart home gateway according to the changed configuration information;
a setting module 202, configured to set, when all of the at least one smart home device receive the notification message, the configuration information of the smart home gateway to the changed configuration information, so that the changed configuration information becomes effective;
the establishing module 203 is configured to reestablish a network connection with the at least one smart home device according to the changed configuration information.
Optionally, referring to fig. 2B, the smart home gateway 200 further includes a detection module 204, a generation module 205, and a cancellation module 206:
The detection module 204 is configured to detect whether a dynamic host configuration protocol DHCP service of the smart home gateway is set to be disabled;
The generating module 205 is configured to generate, when the DHCP service is set to be disabled, a prompt message for prompting that at least one smart home device cannot establish a network connection with the smart home gateway after the DHCP service is set to be disabled;
a canceling module 206, configured to cancel the disable setting for the DHCP service when a disable setting canceling instruction is received according to the prompt information, and execute a step of sending a notification message to at least one smart home device currently establishing network connection with the smart home gateway.
optionally, referring to fig. 2C, the smart home gateway further includes a closing module 207:
the closing module 207 is used for closing the DHCP service of the intelligent home gateway;
accordingly, referring to fig. 2D, the establishing module 203 includes an opening unit 2031 and a first establishing unit 2032:
An opening unit 2031, configured to open a DHCP service of the smart home gateway;
The first establishing unit 2032 is configured to, when receiving the network connection request sent by the at least one smart home device, reestablish a network connection with the at least one smart home device through a DHCP service of the smart home gateway according to the changed configuration information.
Optionally, referring to fig. 2E, the establishing module 203 includes a sending unit 2033 and a second establishing unit 2034:
A sending unit 2033, configured to send a network connection reestablishment message to the at least one smart home device, so that the at least one smart home device sends a network connection request to the smart home gateway to perform network connection again;
The second establishing unit 2034 is configured to, when receiving the network connection request sent by the at least one smart home device, reestablish the network connection with the at least one smart home device through a DHCP service of the smart home gateway according to the changed configuration information.
optionally, referring to fig. 2F, the sending module 201 includes a selecting unit 2011 and a sending unit 2012:
the selecting unit 2011 is configured to, when a network address range of the DHCP service included in the configuration information of the smart home gateway changes, select, from the at least one smart home device, a smart home device whose network address does not belong to the network address range after the DHCP service changes;
the sending unit 2012 is configured to send the notification message to the selected smart home device.
in the embodiment of the invention, when the change of the configuration information of the intelligent home gateway is detected, before the configuration information takes effect, the intelligent home gateway actively sends a notification message to at least one intelligent home device which is currently in network connection with the intelligent home gateway. Because the notification message is used for notifying the intelligent home devices of the change condition of the configuration information of the intelligent home gateway, when the at least one intelligent home device receives the notification message, the network connection with the intelligent home gateway can be reestablished according to the changed configuration information of the intelligent home gateway, and the network connection with the intelligent home gateway is established without manually starting the intelligent home device by a user, so that the network connection efficiency between the intelligent home devices and the intelligent home gateway is improved.
It should be noted that: the smart home gateway provided in the above embodiment is only illustrated by dividing the functional modules when the smart home device performs network connection, and in practical applications, the function distribution may be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the network connection method between the smart home gateway and the smart home device provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the embodiments of the method and are not described herein again.
it will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. a network connection method of intelligent home equipment is applied to an intelligent home gateway, and is characterized by comprising the following steps:
When detecting that the configuration information of the intelligent home gateway changes and the network address range of the Dynamic Host Configuration Protocol (DHCP) service included in the configuration information of the intelligent home gateway changes, sending a notification message to at least one intelligent home device which currently establishes network connection with the intelligent home gateway, wherein the at least one intelligent home device comprises an intelligent home device of which the network address does not belong to the network address range after the DHCP service changes, and the notification message is used for notifying the at least one intelligent home device of the change condition of the configuration information of the intelligent home gateway so that the at least one intelligent home device reestablishes network connection with the intelligent home gateway according to the changed configuration information;
when the at least one piece of intelligent home equipment receives the notification message, setting the configuration information of the intelligent home gateway as changed configuration information so as to enable the changed configuration information to take effect;
And according to the changed configuration information, reestablishing network connection with the at least one intelligent household device.
2. The method of claim 1, wherein before sending the notification message to the at least one smart home device currently establishing network connection with the smart home gateway, the method further comprises:
detecting whether the DHCP service of the intelligent home gateway is set to be forbidden or not;
when the DHCP service is set to be forbidden, generating prompt information, wherein the prompt information is used for prompting that the at least one intelligent home device cannot establish network connection with the intelligent home gateway after the DHCP service is set to be forbidden;
And when a disable setting canceling instruction is received according to the prompt information, canceling the disable setting of the DHCP service, and executing the step of sending a notification message to at least one intelligent home device which is currently in network connection with the intelligent home gateway.
3. the method of claim 1, wherein before sending the notification message to the at least one smart home device currently establishing network connection with the smart home gateway, the method further comprises:
closing the DHCP service of the intelligent home gateway;
correspondingly, the reestablishing the network connection with the at least one smart home device according to the changed configuration information includes:
Starting the DHCP service of the intelligent home gateway;
and when a network connection request sent by the at least one intelligent household device is received, according to the changed configuration information, network connection with the at least one intelligent household device is reestablished through a DHCP service of the intelligent household gateway.
4. the method according to claim 1, wherein the reestablishing the network connection with the at least one smart home device according to the changed configuration information comprises:
sending a network connection reestablishing message to the at least one intelligent home device, so that the at least one intelligent home device sends a network connection request to the intelligent home gateway to carry out network connection again;
and when a network connection request sent by the at least one intelligent household device is received, according to the changed configuration information, network connection with the at least one intelligent household device is reestablished through a DHCP service of the intelligent household gateway.
5. The utility model provides an intelligent home gateway, its characterized in that, intelligent home gateway includes:
The system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a notification message to at least one piece of intelligent home equipment which is currently in network connection with the intelligent home gateway when detecting that the configuration information of the intelligent home gateway changes and the network address range of the dynamic host configuration protocol DHCP service included in the configuration information of the intelligent home gateway changes, the at least one piece of intelligent home equipment comprises intelligent home equipment of which the network address does not belong to the network address range after the DHCP service changes, and the notification message is used for notifying the at least one piece of intelligent home equipment of the change situation of the configuration information of the intelligent home gateway so that the at least one piece of intelligent home equipment reestablishes network connection with the intelligent home gateway according to the changed configuration information;
The setting module is used for setting the configuration information of the intelligent home gateway to changed configuration information when the at least one intelligent home device receives the notification message so as to enable the changed configuration information to take effect;
And the establishing module is used for reestablishing the network connection with the at least one intelligent household device according to the changed configuration information.
6. The smart home gateway of claim 5, wherein the smart home gateway further comprises:
the detection module is used for detecting whether the DHCP service of the intelligent home gateway is set to be forbidden or not;
The generation module is used for generating prompt information when the DHCP service is set to be forbidden, wherein the prompt information is used for prompting that the at least one intelligent home equipment cannot establish network connection with the intelligent home gateway after the DHCP service is set to be forbidden;
and the cancelling module is used for cancelling the forbidden setting of the DHCP service and executing the step of sending a notification message to at least one intelligent home device which is currently in network connection with the intelligent home gateway when a forbidden setting cancelling instruction is received according to the prompt message.
7. the smart home gateway of claim 5, wherein the smart home gateway further comprises:
the closing module is used for closing the DHCP service of the intelligent home gateway;
Accordingly, the establishing module comprises:
The starting unit is used for starting the DHCP service of the intelligent home gateway;
and the first establishing unit is used for reestablishing the network connection with the at least one intelligent household device through the DHCP service of the intelligent household gateway according to the changed configuration information when receiving the network connection request sent by the at least one intelligent household device.
8. the smart home gateway of claim 5, wherein the establishing module comprises:
A sending unit, configured to send a network connection reestablishment message to the at least one smart home device, so that the at least one smart home device sends a network connection request to the smart home gateway to perform network connection again;
And the second establishing unit is used for reestablishing the network connection with the at least one intelligent household device through the DHCP service of the intelligent household gateway according to the changed configuration information when receiving the network connection request sent by the at least one intelligent household device.
CN201611086029.1A 2016-11-30 2016-11-30 network connection method of intelligent household equipment and intelligent household gateway Active CN106453011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611086029.1A CN106453011B (en) 2016-11-30 2016-11-30 network connection method of intelligent household equipment and intelligent household gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611086029.1A CN106453011B (en) 2016-11-30 2016-11-30 network connection method of intelligent household equipment and intelligent household gateway

Publications (2)

Publication Number Publication Date
CN106453011A CN106453011A (en) 2017-02-22
CN106453011B true CN106453011B (en) 2019-12-10

Family

ID=58222924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611086029.1A Active CN106453011B (en) 2016-11-30 2016-11-30 network connection method of intelligent household equipment and intelligent household gateway

Country Status (1)

Country Link
CN (1) CN106453011B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107105014A (en) * 2017-03-30 2017-08-29 联想(北京)有限公司 Communication means and the first equipment and the second equipment
CN108093097A (en) * 2017-12-28 2018-05-29 深圳市双翼科技股份有限公司 The connection method of camera and home gateway and home gateway
CN111414208B (en) * 2020-03-13 2023-08-01 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment
CN113701314B (en) * 2021-08-24 2022-11-29 青岛海信日立空调系统有限公司 Central air-conditioning control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450495A (en) * 2014-09-18 2016-03-30 中国电信股份有限公司 Method, device and system for re-establishing secure communication channel
CN105847022A (en) * 2015-01-14 2016-08-10 海信集团有限公司 Network configuration methods and system of local area network of power line communication (PLC)
KR20160118813A (en) * 2015-04-03 2016-10-12 한국전자통신연구원 Gateway device being connected to remote server through mobile network and ip management method thereof
CN106034299A (en) * 2015-03-09 2016-10-19 中兴通讯股份有限公司 SCTP connection reestablishment method and SCTP connection reestablishment device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450495A (en) * 2014-09-18 2016-03-30 中国电信股份有限公司 Method, device and system for re-establishing secure communication channel
CN105847022A (en) * 2015-01-14 2016-08-10 海信集团有限公司 Network configuration methods and system of local area network of power line communication (PLC)
CN106034299A (en) * 2015-03-09 2016-10-19 中兴通讯股份有限公司 SCTP connection reestablishment method and SCTP connection reestablishment device
KR20160118813A (en) * 2015-04-03 2016-10-12 한국전자통신연구원 Gateway device being connected to remote server through mobile network and ip management method thereof

Also Published As

Publication number Publication date
CN106453011A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106453011B (en) network connection method of intelligent household equipment and intelligent household gateway
US9401874B2 (en) Minimizing coverage holes in a communication network
CN106535238B (en) Link switching method and device
CN106789468A (en) A kind of appliances equipment control method and system based on intelligent terminal
JP2020524448A (en) Service quality control method and related apparatus
US20180048633A1 (en) Perception-free authentication method and system, and control method and system based on the same
RU2008143720A (en) METHOD OF USER DEVICE MANAGEMENT THROUGH NAT GATEWAY (CONVERSION OF NETWORK ADDRESSES)
US20120269126A1 (en) Method for controlling wireless router and wireless router
CN109314723A (en) A kind of method, apparatus and terminal for realizing data service
CN105142116B (en) A kind of the communication network switching method and switching system of smart machine
CN113518134A (en) Method and device for accessing main router through domain name under MESH networking
CN108322557B (en) Application equipment discovery method and device, computer equipment and storage medium
CN105187387B (en) A kind of service discovery method and terminal
CN108983627A (en) Household appliance and its data sharing method, device and computer readable storage medium
CN111726429B (en) Communication method, device, equipment and medium
US11246065B2 (en) Method, apparatus, terminal and storage medium for measurement report
WO2018006684A1 (en) Message processing method and device, and router
WO2014169859A1 (en) Network data processing method, terminal and data card
CN114641023B (en) Method, system, computer device and storage medium for repairing network connection
CN112055341A (en) Networking method, device and equipment of low-power-consumption Bluetooth Mesh network
CN111385371B (en) MAC address acquisition method, device and equipment
CN112312425B (en) Internet access method and device for household electrical appliance
CN102802236B (en) Method for scanning wireless network, and device for realizing thereof
CN108667944B (en) DHCP configuration method and DHCP client
CN107147524B (en) intelligent home networking method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant