[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113691427B - Distribution network method, first equipment, second equipment, distribution network system and processor - Google Patents

Distribution network method, first equipment, second equipment, distribution network system and processor Download PDF

Info

Publication number
CN113691427B
CN113691427B CN202110969863.XA CN202110969863A CN113691427B CN 113691427 B CN113691427 B CN 113691427B CN 202110969863 A CN202110969863 A CN 202110969863A CN 113691427 B CN113691427 B CN 113691427B
Authority
CN
China
Prior art keywords
equipment
gateway
network
information
gateway device
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
CN202110969863.XA
Other languages
Chinese (zh)
Other versions
CN113691427A (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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110969863.XA priority Critical patent/CN113691427B/en
Publication of CN113691427A publication Critical patent/CN113691427A/en
Application granted granted Critical
Publication of CN113691427B publication Critical patent/CN113691427B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a network distribution method, a first device, a second device, a network distribution system and a processor, wherein the network distribution method comprises the following steps: under the condition that the first equipment and the gateway equipment are successfully allocated, the first equipment establishes communication connection with the second equipment; the first device sends the distribution network information to the second device, so that the second device and the gateway device successfully distribute the network. The scheme of the network distribution method and the network distribution device can realize the network distribution of the network equipment which is not distributed through the equipment which is distributed successfully, and compared with the situation that the network distribution is carried out on the second equipment which is not distributed successfully manually in the prior art, the network distribution method and the network distribution device realize the automatic network re-distribution of the equipment which is not distributed successfully, so that the problem that the network distribution of the equipment is required to be carried out manually when the network distribution failure occurs on related equipment in the prior art is solved.

Description

Distribution network method, first equipment, second equipment, distribution network system and processor
Technical Field
The present application relates to the field of distribution networks, and in particular, to a distribution network method, a first device, a second device, a distribution network system, a computer readable storage medium, and a processor.
Background
When the user equipment sends a linkage request to the intelligent home, the intelligent home equipment has the problem of linkage failure and does not respond to the command. At this time, the equipment with failed linkage needs to be manually reconnected, and the network distribution is performed on the equipment again.
Therefore, a method for automatically distributing network for related devices in the prior art is needed.
The above information disclosed in the background section is only for enhancement of understanding of the background art from the technology described herein and, therefore, may contain some information that does not form the prior art that is already known in the country to a person of ordinary skill in the art.
Disclosure of Invention
The main objective of the present application is to provide a network distribution method, a first device, a second device, a network distribution system, a computer readable storage medium and a processor, so as to solve the problem that in the prior art, when a related device fails in network distribution, the device needs to be manually distributed.
According to an aspect of the embodiment of the present invention, there is provided a network allocation method, including: under the condition that the first equipment and the gateway equipment are successfully allocated, the first equipment establishes communication connection with the second equipment; and the first equipment sends the distribution network information to the second equipment so that the second equipment and the gateway equipment successfully distribute the network.
Optionally, after the first device establishes a communication connection with the second device, before the first device sends the network allocation information to the second device, the method further includes: the first device sends the received linkage command to the second device; the first device receives first response information sent by the second device, wherein the first response information is information which responds to the linkage command and characterizes the second device to execute and complete the linkage command.
Optionally, the gateway device includes a first gateway device and a second gateway device, and the first device sends the distribution network information to the second device, so that the second device distributes a network with the gateway device, including: the first device sends distribution network information to the second device, so that the second device and the first gateway device distribute a network, and the second device and the second gateway device successfully distribute the network under the condition that the second device sends second response information to the second gateway device, wherein the second response information is information responding to distribution network request information sent by the second gateway device.
Optionally, in the case that the network configuration between the first device and the gateway device is successful, and before the first device establishes a communication connection with the second device, the method further includes: the first device disconnects the communication with the gateway device.
Optionally, the gateway device includes a first gateway device and a second gateway device, and after the first device sends the distribution network information to the second device, the method further includes: the first equipment is connected with the first gateway equipment according to the network distribution information; and receiving the network allocation request information sent by the second gateway equipment at the first equipment, and responding to the network allocation request information to send third response information to the second gateway equipment, wherein the third response information characterizes that the first equipment and the second gateway equipment are successfully allocated with the network again.
Optionally, the first device establishes a communication connection with the second device, including: the first device sends connection request information to the second device, wherein the connection request information is request information for requesting connection with the second device; and under the condition that the first equipment receives fourth response information sent by the second equipment, establishing communication connection with the second equipment.
According to another aspect of the embodiment of the present invention, there is also provided a network allocation method, including: the second equipment establishes communication connection with first equipment, wherein the first equipment is equipment which is successfully matched with the gateway equipment; and the second equipment receives the distribution network information sent by the first equipment and distributes a network with the gateway equipment according to the distribution network information.
Optionally, the gateway device includes a first gateway device and a second gateway device, and the second device receives the network allocation information sent by the first device, and successfully allocates a network with the gateway device according to the network allocation information, including: the second equipment receives the distribution network information and distributes a network with the corresponding first gateway equipment according to the distribution network information; the second device receives the network allocation request information sent by the second gateway device, and if the second device sends second response information to the second gateway device, the second device successfully allocates the network with the second gateway device, wherein the second response information is information responding to the network allocation request information sent by the second gateway device.
Optionally, after the second device establishes a communication connection with the first device, before the second device receives the network allocation information sent by the first device, the method further includes: the second equipment receives a linkage command sent by the first equipment; the second device executes the linkage command and returns first response information to the first device, wherein the first response information is information representing that the second device executes the linkage command.
Optionally, before the second device establishes a communication connection with the first device, the first device is in a state of being disconnected from the gateway device.
Optionally, the gateway device includes a first gateway device and a second gateway device, and after the second device receives the configuration network information sent by the first device, the method further includes: the first equipment is connected with the first gateway equipment according to the network distribution information; and receiving the network allocation request information sent by the second gateway equipment at the first equipment, and responding to the network allocation request information to send third response information to the second gateway equipment, wherein the third response information characterizes that the first equipment and the second gateway equipment are successfully allocated with the network again.
Optionally, the second device establishes a communication connection with the first device, including: the second device receives connection request information sent by the first device, wherein the connection request information is request information of the first device for connection with the second device; and the second equipment responds to the connection request information and sends third response information to the first equipment, and the communication connection is established with the first equipment.
According to still another aspect of the embodiment of the present invention, there is further provided a network allocation method, including: under the condition that the first equipment and the gateway equipment are successfully allocated, establishing communication connection between the first equipment and the second equipment; the first device sends distribution network information to the second device; and the second equipment receives the distribution network information and successfully distributes the network with the gateway equipment according to the distribution network information.
Optionally, the gateway device includes a first gateway device and a second gateway device, and the second device receives the network allocation information sent by the first device, and successfully allocates a network with the gateway device according to the network allocation information, including: the second equipment receives the distribution network information and distributes a network with the corresponding first gateway equipment according to the distribution network information; the second device receives the network allocation request information sent by the second gateway device, and if the second device sends second response information to the second gateway device, the second device successfully allocates the network with the second gateway device, wherein the second response information is information responding to the network allocation request information sent by the second gateway device.
Optionally, before the first device sends the distribution network information to the second device, the method further includes: the first device sends the received linkage command to the second device; the second equipment receives a linkage command sent by the first equipment; the second device executes the linkage command and returns first response information to the first device, wherein the first response information is information representing that the second device executes the linkage command.
Optionally, in the case that the network configuration between the first device and the gateway device is successful, and before the first device establishes a communication connection with the second device, the method further includes: the first device disconnects the communication with the gateway device.
Optionally, establishing a communication connection between the first device and the second device includes: the first device sends connection request information to the second device, wherein the connection request information is request information for requesting connection with the second device; the second device receives the connection request information and responds to the connection request information to send third response information to the first device; and under the condition that the first equipment receives the third response information, establishing communication connection with the second equipment.
According to still another aspect of the embodiment of the present invention, there is also provided a first apparatus including: the first communication establishing unit is used for establishing communication connection between the first equipment and the second equipment under the condition that the network allocation between the first equipment and the gateway equipment is successful; and the first sending unit is used for sending the distribution network information to the second equipment by the first equipment so that the second equipment and the gateway equipment can successfully distribute the network.
According to an aspect of the embodiment of the present invention, there is also provided a second apparatus including: the second communication establishing unit is used for establishing communication connection with the first equipment by the second equipment, wherein the first equipment is equipment which is successfully matched with the gateway equipment; the first receiving unit is used for receiving the network distribution information sent by the first equipment by the second equipment and successfully distributing the network with the gateway equipment according to the network distribution information.
According to still another aspect of the embodiment of the present invention, there is also provided a distribution network system, including: a first device for performing any of the methods; a second device for performing any of the methods; gateway equipment, which is used for distributing network with the first equipment and the second equipment; and the server is in communication connection with the gateway equipment.
Optionally, the gateway device includes a first gateway device and a second gateway device, where the second gateway device is communicatively connected to the server, the first gateway device is communicatively connected to the second gateway device, and the first gateway device is configured to directly connect to the first device and the second device.
Optionally, the first device and the second device are smart home devices respectively.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program performs any one of the methods.
According to yet another aspect of the embodiments of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes any one of the methods.
In the network distribution method, under the condition that the network distribution of the first equipment and the gateway equipment is successful, the first equipment firstly establishes communication connection with the second equipment, then the first equipment sends network distribution information to the second equipment, and the second equipment successfully distributes the network with the gateway equipment according to the network distribution information. In the method, the first equipment which has successfully allocated the network sends the network allocation information to the second equipment, so that the second equipment can receive the network allocation information, and the second equipment automatically allocates the network with the gateway equipment according to the network allocation information. The network distribution method and the network distribution system can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the network distribution of the second equipment without the network distribution success in the prior art, the network distribution method and the network distribution system realize the automatic network re-distribution of the equipment without the network distribution success, thereby solving the problem that the equipment is required to be manually distributed when the related equipment fails in the network distribution in the prior art.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 illustrates a schematic diagram of a distribution network method according to one embodiment of the present application;
FIG. 2 shows a first apparatus schematic diagram according to an embodiment of the present application;
FIG. 3 illustrates a schematic diagram of a device ganged connection failure according to one embodiment of the present application;
FIG. 4 illustrates a device linkage failure timing diagram according to one embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Furthermore, in the description and in the claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
As described in the background art, in order to solve the above problem, in an exemplary embodiment of the present application, a network distribution method, a first device, a second device, a network distribution system, a computer readable storage medium and a processor are provided.
According to an embodiment of the application, a network distribution method is provided.
Fig. 1 is a flowchart of a network allocation method according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, under the condition that the first equipment and the gateway equipment are successfully allocated, the first equipment establishes communication connection with the second equipment;
in step S102, the first device sends the distribution network information to the second device, so that the second device and the gateway device successfully distribute the network.
In the network allocation method, under the condition that the network allocation between the first equipment and the gateway equipment is successful, the first equipment firstly establishes communication connection with the second equipment, then the first equipment sends network allocation information to the second equipment, and the second equipment successfully allocates the network with the gateway equipment according to the network allocation information. In the method, the first equipment which has successfully allocated the network sends the network allocation information to the second equipment, so that the second equipment can receive the network allocation information, and the second equipment automatically allocates the network with the gateway equipment according to the network allocation information. The network distribution method and the network distribution system can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the network distribution of the second equipment without the network distribution success in the prior art, the network distribution method and the network distribution system realize the automatic network re-distribution of the equipment without the network distribution success, thereby solving the problem that the equipment is required to be manually distributed when the related equipment fails in the network distribution in the prior art.
The first device and the second device in the application may be smart home devices, or may be a plurality of devices that need to implement a network configuration with the same gateway device, and a person skilled in the art may apply the method to different first devices and second devices according to actual requirements.
In addition, the first device can be one or more, in the case that the first device is one, the second device can be one or more, one second device and gateway device can be configured through the first device, and a plurality of second devices can be respectively configured with the gateway device through the first device; in the case that there are a plurality of first devices, there may be one or a plurality of second devices, when there is one second device, the network is allocated to the second device through one first device of the plurality of first devices, and when there is a plurality of second devices, the network allocation of one second device to the gateway device may be implemented through one first device, that is, the second devices are in one-to-one correspondence with the first devices, or the network allocation of a plurality of second devices (may be part of all second devices) to the gateway device may be implemented through one-to-many manner, that is, one first device.
Of course, in the actual application process, the first gateway device may be a router, but not limited to the router, and when the first gateway device is a router, the network configuration information may be information such as an account number and a password of the router, a user ID, etc., but not limited to information such as an account number and a password of the router, an ID, etc., and may be other information that can enable the second device and the first gateway device to reconfigure the network.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
In order to enable the second device to execute the linkage command as soon as possible and improve the usability of the user, in one embodiment of the present application, after the first device establishes a communication connection with the second device, before the first device sends the network allocation information to the second device, the method further includes: the first equipment sends the received linkage command to the second equipment; the first device receives first response information sent by the second device, wherein the first response information is information which responds to the linkage command and characterizes the second device to execute the linkage command.
Specifically, in the actual application process, the server sends the linkage command to the gateway device, the gateway device respectively sends the received linkage command to the first device and the second device, the first device executes the linkage command and sends the information of the linkage command to the gateway device after receiving the linkage command, and the gateway device considers that the linkage network allocation of the first device is successful when receiving the response information sent by the first device. When the gateway device does not receive the response information of the second device, the second device is considered to fail to link, and the first device stores the linking command sent by the gateway device, so after the first device establishes communication connection with the second device, the first device can send the linking command to the second device, so that the second device can receive the linking command in the fastest time and execute the linking command.
In a specific embodiment of the present application, the following three cases exist for the second device linkage failure: first case: the second equipment does not receive the linkage command sent by the gateway equipment; second case: the second equipment receives the linkage command sent by the gateway equipment, but does not send corresponding response information to the gateway equipment; third case: the second device receives the linkage command sent by the gateway device and sends corresponding response information to the gateway device, but the gateway device does not receive the response information of the second device within a preset time. Of course, the preset time is not limited, and in a specific use process, the time can be flexibly set according to actual situations.
In still another embodiment of the present application, the gateway device includes a first gateway device and a second gateway device, where the first device sends distribution network information to the second device, so that the second device distributes a network with the gateway device, and the method includes: the first device sends distribution network information to the second device, so that the second device and the first gateway device distribute a network, and if the second device sends second response information to the second gateway device, the second device and the second gateway device successfully distribute a network, where the second response information is information responding to the distribution network request information sent by the second gateway device. In this embodiment, the second device joins in marriage the network with the first gateway device according to joining in marriage the network information, so can guarantee that the second device joins in marriage the network successfully, and subsequent second device sends second response information to the second gateway device for the second device joins in marriage the network with the second gateway device successfully, after joining in marriage the network successfully, so that subsequent can in time receive other linkage command through the second gateway device.
In an actual application process, in order to achieve efficient data transmission, in a specific embodiment of the present application, the first device may only establish a communication connection with one device, after the first device is successfully connected with the first gateway device, the first device may not be connected with other devices, so that, in order to enable the first device to establish a communication connection with the second device, in a case that the first device is successfully configured with the gateway device, and before the first device establishes a communication connection with the second device, the method further includes: the first device disconnects the communication with the gateway device.
In still another embodiment of the present application, the gateway device includes a first gateway device and a second gateway device, and after the first device sends the network allocation information to the second device, the method further includes: the first equipment is connected with the first gateway equipment according to the network distribution information; and the first equipment receives the network distribution request information sent by the second gateway equipment, and responds to the network distribution request information to send third response information to the second gateway equipment, wherein the third response information characterizes that the first equipment and the second gateway equipment successfully distribute the network again.
In one embodiment of the present application, the first device establishes a communication connection with the second device, including: the first device sends connection request information to the second device, wherein the connection request information is request information for requesting connection with the second device; and under the condition that the first equipment receives fourth response information sent by the second equipment, establishing communication connection with the second equipment. In this embodiment, the first device sends the connection request information to the second device, and receives the fourth response information sent by the second device, so that the first device and the second device can efficiently establish communication connection, and subsequently after the first device and the second device establish communication connection, the first device sends the linkage command to the second device, so that it is further ensured that the second device can receive the linkage command in the fastest time, and execute the linkage command, and further the use experience of the user is improved.
Of course, in the actual application process, the connection request information carries the response information identifier, so that the second device that receives the connection request information responds to the first device, and sends fourth response information to the first device.
In an exemplary embodiment of the present application, there is also provided a network allocation method, including: the second equipment establishes communication connection with the first equipment, wherein the first equipment is equipment which is successfully matched with the gateway equipment; and the second equipment receives the distribution network information sent by the first equipment and successfully distributes the network with the gateway equipment according to the distribution network information.
In the network distribution method, a second device establishes communication connection with a first device, wherein the first device is a device which successfully distributes a network with a gateway device, and after the second device establishes communication connection with the first device, the second device receives network distribution information sent by the first device, and the second device distributes the network with the gateway device according to the network distribution information. The scheme of the application can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the situation that the network distribution is carried out on the second equipment without the network distribution success manually in the prior art, the equipment without the network distribution success is automatically subjected to network re-distribution, so that the problem that the equipment is required to be manually distributed when the intelligent household equipment fails in linkage in the prior art is solved.
In an embodiment of the present application, the gateway device includes a first gateway device and a second gateway device, where the second device receives the network allocation information sent by the first device, and successfully allocates a network with the gateway device according to the network allocation information, and the method includes: the second equipment receives the distribution network information and distributes a network according to the distribution network information and the corresponding first gateway equipment; and the second equipment receives the network allocation request information sent by the second gateway equipment, and if the second equipment sends second response information to the second gateway equipment, the second equipment successfully allocates the network with the second gateway equipment, wherein the second response information is information responding to the network allocation request information sent by the second gateway equipment. In this embodiment, the second device joins in marriage the network with the first gateway device according to joining in marriage the network information, so can guarantee that the second device joins in marriage the network successfully, follow-up will second device send second response information to the second gateway device for the second device joins in marriage the network with the second gateway device successfully, after joining in marriage the network successfully, in order to follow-up through the second gateway device can also receive other linkage command in time.
In order to enable the second device to execute the linkage command as soon as possible and improve the usage degree of the user, in another embodiment of the present application, after the second device establishes a communication connection with the first device, before the second device receives the network allocation information sent by the first device, the method further includes: the second equipment receives a linkage command sent by the first equipment; the second device executes the linkage command and returns first response information to the first device, wherein the first response information is information representing that the second device executes the linkage command.
In an actual application process, in order to efficiently transmit data, in a specific embodiment of the present application, the first device may only establish a communication connection with one device, and after the first device is successfully connected with the first gateway device, the first device may not be connected with other devices, so that, in order to enable the first device to establish a communication connection with the second device, before the second device establishes a communication connection with the first device, the first device is in a state of being disconnected from the gateway device.
In still another embodiment of the present application, the gateway device includes a first gateway device and a second gateway device, and after the second device receives the network allocation information sent by the first device, the method further includes: the first equipment is connected with the first gateway equipment according to the network distribution information; and the first equipment receives the network distribution request information sent by the second gateway equipment, and responds to the network distribution request information to send third response information to the second gateway equipment, wherein the third response information characterizes that the first equipment and the second gateway equipment successfully distribute the network again.
In one embodiment of the present application, the establishing, by the second device, a communication connection with the first device includes: the second device receives connection request information sent by the first device, wherein the connection request information is request information of the first device for connection with the second device; the second device responds to the connection request information and sends third response information to the first device, and the communication connection is established with the first device. In this embodiment, the second device receives the connection request information sent by the first device and sends the third response information to the first device, so that the first device and the second device can efficiently establish communication connection, and subsequently after the first device and the second device establish communication connection, the first device sends the linkage command to the second device, so that it is further ensured that the second device can receive the linkage command in the fastest time and execute the linkage command, and the use experience of the user is further improved.
In an exemplary embodiment of the present application, there is also provided a network allocation method, including: under the condition that the first equipment and the gateway equipment are successfully allocated, establishing communication connection between the first equipment and the second equipment; the first equipment sends distribution network information to the second equipment; and the second equipment receives the distribution network information and successfully distributes the network according to the distribution network information and the gateway equipment.
In the network allocation method, firstly, under the condition that the network allocation between the first equipment and the gateway equipment is successful, communication connection between the first equipment and the second equipment is established, and secondly, the first equipment sends network allocation information to the second equipment; and finally, the second equipment receives the distribution network information and successfully distributes the network according to the distribution network information and the gateway equipment. In the network distribution method, the second device performs network distribution with the gateway device according to the received network distribution information. The scheme of the application can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the situation that the network distribution is carried out on the second equipment without the network distribution success manually in the prior art, the equipment without the network distribution success is automatically subjected to network re-distribution, so that the problem that the equipment is required to be manually distributed when the intelligent household equipment fails in linkage in the prior art is solved.
In an embodiment of the present application, the gateway device includes a first gateway device and a second gateway device, where the second device receives the network allocation information sent by the first device, and successfully allocates a network with the gateway device according to the network allocation information, and the method includes: the second equipment receives the distribution network information and distributes a network according to the distribution network information and the corresponding first gateway equipment; and the second equipment receives the network allocation request information sent by the second gateway equipment, and if the second equipment sends second response information to the second gateway equipment, the second equipment successfully allocates the network with the second gateway equipment, wherein the second response information is information responding to the network allocation request information sent by the second gateway equipment. In this embodiment, the second device joins in marriage the network with the first gateway device according to joining in marriage the network information, so can guarantee that the second device joins in marriage the network successfully, follow-up will second device send second response information to the second gateway device for the second device joins in marriage the network with the second gateway device successfully, after joining in marriage the network successfully, in order to follow-up through the second gateway device can also receive other linkage command in time.
In order to enable the second device to execute the linkage command as soon as possible and improve the usage of the user, in another embodiment of the present application, before the first device sends the distribution network information to the second device, the method further includes: the first equipment transmits the received linkage command to the second equipment; the second equipment receives a linkage command sent by the first equipment; the second device executes the linkage command and returns first response information to the first device, wherein the first response information is information representing that the second device executes the linkage command.
In an actual application process, in order to achieve efficient data transmission, in a specific embodiment of the present application, the first device may only establish a communication connection with one device, after the first device is successfully connected with the first gateway device, the first device may not be connected with other devices, so that, in order to enable the first device to establish a communication connection with the second device, in a case that the first device is successfully configured with the gateway device, and before the first device establishes a communication connection with the second device, the method further includes: the first device disconnects the communication with the gateway device.
After the first device disconnects the communication connection with the gateway device, in order to realize linkage between the first device and other devices, the first device needs to be re-configured again. The first device sends connection request information to the second device, wherein the connection request information is request information for requesting connection with the second device; the second device receives the connection request information and responds to the connection request information to send third response information to the first device; and when the first equipment receives the third response information, establishing communication connection with the second equipment.
The embodiment of the application also provides a first device, and the first device of the embodiment of the application can be used for executing the network distribution method provided by the embodiment of the application. The first device provided in the embodiment of the present application is described below.
Fig. 2 is a schematic diagram of a first device according to an embodiment of the present application. As shown in fig. 2, the first device includes:
a first communication establishing unit 10, configured to establish a communication connection between a first device and a second device when a network allocation between the first device and a gateway device is successful;
And a first sending unit 20, configured to send the network allocation information to the second device by using the first device, so that the second device and the gateway device successfully allocate a network.
In the first device, a first communication establishing unit is configured to establish a communication connection with the second device when the first device and the gateway device are successfully configured; the first sending unit is configured to send the network allocation information to the second device by using the first device, so that the second device and the gateway device successfully allocate a network. The network distribution method and the network distribution system can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the network distribution of the second equipment without the network distribution success in the prior art, the network distribution method and the network distribution system realize the automatic network re-distribution of the equipment without the network distribution success, thereby solving the problem that the equipment is required to be manually distributed when the related equipment fails in the network distribution in the prior art.
The first device and the second device in the application may be smart home devices, or may be a plurality of devices that need to implement a network configuration with the same gateway device, and a person skilled in the art may apply the method to different first devices and second devices according to actual requirements.
In addition, the first device can be one or more, in the case that the first device is one, the second device can be one or more, one second device and gateway device can be configured through the first device, and a plurality of second devices can be respectively configured with the gateway device through the first device; in the case that there are a plurality of first devices, there may be one or a plurality of second devices, when there is one second device, the network is allocated to the second device through one first device of the plurality of first devices, and when there is a plurality of second devices, the network allocation of one second device to the gateway device may be implemented through one first device, that is, the second devices are in one-to-one correspondence with the first devices, or the network allocation of a plurality of second devices (may be part of all second devices) to the gateway device may be implemented through one-to-many manner, that is, one first device.
Of course, in the actual application process, the first gateway device may be a router, but not limited to the router, and when the first gateway device is a router, the network configuration information may be information such as an account number and a password of the router, a user ID, etc., but not limited to information such as an account number and a password of the router, an ID, etc., and may be other information that can enable the second device and the first gateway device to reconfigure the network.
In order to enable the second device to execute the linkage command as soon as possible and improve the usage degree of the user, in one embodiment of the present application, after the first device establishes a communication connection with the second device, before the first device sends the network allocation information to the second device, the first device further includes a second sending unit and a second receiving unit, where the second sending unit is configured to send the received linkage command to the second device by using the first device; the second receiving unit is configured to receive, by the first device, first response information sent by the second device, where the first response information is information that responds to the linkage command and characterizes that the second device performs the linkage command.
Specifically, in the actual application process, the server sends the linkage command to the gateway device, the gateway device respectively sends the received linkage command to the first device and the second device, the first device executes the linkage command and sends the information of the linkage command to the gateway device after receiving the linkage command, and the gateway device considers that the linkage network allocation of the first device is successful when receiving the response information sent by the first device. When the gateway device does not receive the response information of the second device, the second device is considered to fail to link, and the first device stores the linking command sent by the gateway device, so after the first device establishes communication connection with the second device, the first device can send the linking command to the second device, so that the second device can receive the linking command in the fastest time and execute the linking command.
In a specific embodiment of the present application, the following three cases exist for the second device linkage failure: first case: the second equipment does not receive the linkage command sent by the gateway equipment; second case: the second equipment receives the linkage command sent by the gateway equipment, but does not send corresponding response information to the gateway equipment; third case: the second device receives the linkage command sent by the gateway device and sends corresponding response information to the gateway device, but the gateway device does not receive the response information of the second device within a preset time. Of course, the preset time is not limited, and in a specific use process, the time can be flexibly set according to actual situations.
In still another embodiment of the present application, the gateway device includes a first gateway device and a second gateway device, and the first sending unit further includes a first sending module, configured to send, by using the first device, distribution network information to the second device, so that the second device distributes a network with the first gateway device, where, when the second device sends second response information to the second gateway device, the second device successfully distributes a network with the second gateway device, where the second response information is information responding to distribution network request information sent by the second gateway device. In this embodiment, the second device joins in marriage the network with the first gateway device according to joining in marriage the network information, so can guarantee that the second device joins in marriage the network successfully, follow-up will second device send second response information to the second gateway device for the second device joins in marriage the network with the second gateway device successfully, after joining in marriage the network successfully, in order to follow-up can in time receive other linkage command through the second gateway device.
In an actual application process, in order to achieve efficient data transmission, in a specific embodiment of the present application, the first device may only establish a communication connection with one device, after the first device is successfully connected with the first gateway device, the first device may not be connected with other devices, so that, in order to enable the first device to establish a communication connection with the second device, in a case that the first device is successfully configured with the gateway device and before the first device establishes a communication connection with the second device, the first device further includes a disconnection unit, configured to disconnect the first device from the communication connection with the gateway device.
In still another embodiment of the present application, the gateway device includes a first gateway device and a second gateway device, and after the first device sends the network allocation information to the second device, the first device further includes a first network allocation unit and a third receiving unit, where the first network allocation unit is configured to allocate a network with the first gateway device according to the network allocation information by the first device, so as to implement linkage between the first device and other devices; the third receiving unit is configured to receive, by using the first device, the network allocation request information sent by the second gateway device, and send, in response to the network allocation request information, third response information to the second gateway device, where the third response information indicates that the first device and the second gateway device successfully allocate a network again.
In an embodiment of the present application, the first communication unit further includes a second sending module and a communication connection module, where the second sending module is configured to send connection request information to the second device by using the first device, where the connection request information is request information for requesting connection with the second device; the communication connection module is configured to establish a communication connection with the second device when the first device receives the fourth response information sent by the second device. In this embodiment, the first device sends the connection request information to the second device, and receives the fourth response information sent by the second device, so that the first device and the second device can efficiently establish communication connection, and subsequently after the first device and the second device establish communication connection, the first device sends the linkage command to the second device, so that it is further ensured that the second device can receive the linkage command in the fastest time, and execute the linkage command, and further the use experience of the user is improved.
In an exemplary embodiment of the present application, there is also provided a second apparatus including: a second communication establishing unit, configured to establish a communication connection with a first device by using the second device, where the first device is a device that successfully joins in marriage with a gateway device; the first receiving unit is configured to receive the network allocation information sent by the first device by using the second device, and successfully allocate a network according to the network allocation information and the gateway device.
The second device comprises a second communication establishment unit and a first receiving unit, wherein the second communication establishment unit is used for establishing communication connection with first device, and the first device is a device which is successfully matched with the gateway device; the first receiving unit is configured to receive, by the second device, the network allocation information sent by the first device, and successfully allocate a network according to the network allocation information and the gateway device. The scheme of the application can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the situation that the network distribution is carried out on the second equipment without the network distribution success manually in the prior art, the equipment without the network distribution success is automatically subjected to network re-distribution, so that the problem that the equipment is required to be manually distributed when the intelligent household equipment fails in linkage in the prior art is solved.
In an embodiment of the present application, the gateway device includes a first gateway device and a second gateway device, and the first receiving unit further includes a first receiving module and a second receiving module, where the first receiving module is configured to receive the network allocation information by the second device, and allocate a network with a corresponding first gateway device according to the network allocation information; the second receiving module is configured to receive, by the second device, the network allocation request information sent by the second gateway device, where the second device sends second response information to the second gateway device, and the second response information is information that responds to the network allocation request information sent by the second gateway device, where the network allocation with the second gateway device is successful. In this embodiment, the second device joins in marriage the network with the first gateway device according to joining in marriage the network information, so can guarantee that the second device joins in marriage the network successfully, follow-up will second device send second response information to the second gateway device for the second device joins in marriage the network with the second gateway device successfully, after joining in marriage the network successfully, in order to follow-up through the second gateway device can also receive other linkage command in time.
In order to enable the second device to execute the linkage command as soon as possible and improve the usage degree of the user, in another embodiment of the present application, after the second device establishes a communication connection with the first device, before the second device receives the network allocation information sent by the first device, the second device further includes a fourth receiving unit and an executing unit, where the fourth receiving unit is configured to receive the linkage command sent by the first device by the second device; the execution unit is used for the second equipment to execute the linkage command and return first response information to the first equipment, wherein the first response information is information representing that the second equipment executes the linkage command.
In an actual application process, in order to efficiently transmit data, in a specific embodiment of the present application, the first device may only establish a communication connection with one device, and after the first device is successfully connected with the first gateway device, the first device may not be connected with other devices, so that, in order to enable the first device to establish a communication connection with the second device, before the second device establishes a communication connection with the first device, the first device is in a state of being disconnected from the gateway device.
In still another embodiment of the present application, the gateway device includes a first gateway device and a second gateway device, and after the second device receives the network allocation information sent by the first device, the second device further includes a second network allocation unit and a fifth receiving unit, where the second network allocation unit is configured to allocate a network with the first gateway device according to the network allocation information by the first device, so that the first device needs to re-allocate a network again for subsequent implementation of linkage between the first device and other devices; the fifth receiving unit is configured to receive, by using the first device, the network allocation request information sent by the second gateway device, and send, in response to the network allocation request information, third response information to the second gateway device, where the third response information indicates that the first device and the second gateway device successfully allocate a network again.
In an embodiment of the present application, the second communication unit further includes a third receiving module and a response module, where the third receiving module is configured to receive, by the second device, connection request information sent by the first device, where the connection request information is request information that the first device requests to connect with the second device; the response module is configured to send third response information to the first device by the second device in response to the connection request information, and establish the communication connection with the first device. In this embodiment, the second device receives the connection request information sent by the first device and sends the third response information to the first device, so that the first device and the second device can efficiently establish communication connection, and subsequently after the first device and the second device establish communication connection, the first device sends the linkage command to the second device, so that it is further ensured that the second device can receive the linkage command in the fastest time and execute the linkage command, and the use experience of the user is further improved.
Of course, in the actual application process, the connection request information carries the response information identifier, so that the second device that receives the connection request information responds to the first device, and sends fourth response information to the first device.
In yet another exemplary embodiment of the present application, there is also provided a distribution network system including: a first device for performing any of the methods described above; a second device for performing any of the methods described above; gateway equipment, which is used for distributing network with the first equipment and the second equipment; and the server is in communication connection with the gateway equipment.
The network distribution system comprises a first device, a second device, a gateway device and a server, wherein the first device and the second device execute any network distribution method respectively, the network distribution method can realize the network distribution of the network-uncomplexed devices through the network-uncomplexed devices, and compared with the prior art that the network distribution is carried out on the second device which is not successfully distributed manually, the network distribution system realizes the automatic network reconfiguration on the network-uncomplicated devices, thereby solving the problem that the network distribution is carried out manually when the network distribution failure occurs on the related devices in the prior art.
In order to further ensure information security, in one embodiment of the present application, the gateway device includes a first gateway device and a second gateway device, where the second gateway device is communicatively connected to the server, the first gateway device is communicatively connected to the second gateway device, and the first gateway device is configured to directly connect to the first device and the second device.
In another embodiment of the present application, the first device and the second device are smart home devices, respectively.
In order to make the technical solutions of the present application more clearly and clearly understood by those skilled in the art, the following description will be made with reference to specific embodiments:
examples
As shown in fig. 3 and fig. 4, when the second device (device B) fails to link or fails to delay during the linking, the present application does not need to manually reconnect the distribution network to the device B, and directly pulls the device B failed to link through the first device (device a) to reconnect the distribution network to the device B again.
The method comprises the following specific steps:
the server is connected to a second gateway device (gateway) which is connected to the first gateway device (router), where both device a and device B are connected to the same router.
The server sends a linkage command to the gateway, the gateway receives the response information of the equipment A, and discovers that the equipment A can be linked successfully, but the gateway cannot receive the response information of the equipment B, and considers that the equipment B fails to be linked or delays when the equipment B is linked. At this time, the device a automatically disconnects from the gateway, then sends a broadcast to the device B and monitors whether the device B can be connected (the device B is always in a monitoring state), the device B receives the connection request information of the device a, the device B sends fourth response information to the device a, and then the device a and the device B establish a communication connection. The device A will resend the linkage command sent by the server to the device B, and after the device B replies the first response information, the device A resends the distribution network information to enable the device B to be connected with the router, so that the device B can re-distribute the network. The gateway broadcasts and sends the network allocation request information after a certain period of time, and the equipment A and the equipment B receive the network allocation request information and respond to the network allocation request information, so that the network allocation is successfully carried out again by the equipment A and the equipment B.
The first device includes a processor and a memory, the first setup communication unit and the first transmission unit are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The second device includes a processor and a memory, the second setup communication unit and the first receiving unit are stored as program units in the memory, and the processor executes the program units stored in the memory to realize the corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem that the equipment needs to be manually distributed when the related equipment fails in network distribution in the prior art is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a storage medium, on which a program is stored, which when executed by a processor, implements the above-described network allocation method.
The embodiment of the invention provides a processor, which is used for running a program, wherein the network distribution method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
Step S101, under the condition that the first equipment and the gateway equipment are successfully allocated, the first equipment establishes communication connection with the second equipment;
in step S102, the first device sends the distribution network information to the second device, so that the second device and the gateway device successfully distribute the network.
The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform a program initialized with at least the following method steps when executed on a data processing device:
step S101, under the condition that the first equipment and the gateway equipment are successfully allocated, the first equipment establishes communication connection with the second equipment;
in step S102, the first device sends the distribution network information to the second device, so that the second device and the gateway device successfully distribute the network.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units may be a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) In the network distribution method, under the condition that the network distribution between the first equipment and the gateway equipment is successful, the first equipment firstly establishes communication connection with the second equipment, then the first equipment sends network distribution information to the second equipment, and the second equipment successfully distributes the network with the gateway equipment according to the network distribution information. In the method, the first equipment which has successfully allocated the network sends the network allocation information to the second equipment, so that the second equipment can receive the network allocation information, and the second equipment automatically allocates the network with the gateway equipment according to the network allocation information. The network distribution method and the network distribution system can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the network distribution of the second equipment without the network distribution success in the prior art, the network distribution method and the network distribution system realize the automatic network re-distribution of the equipment without the network distribution success, thereby solving the problem that the equipment is required to be manually distributed when the related equipment fails in the network distribution in the prior art.
2) In the network distribution method, a second device establishes communication connection with a first device, wherein the first device is a device which is successfully distributed with a gateway device, after the second device establishes communication connection with the first device, the second device receives network distribution information sent by the first device, and the second device distributes a network with the gateway device according to the network distribution information. The scheme of the application can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the situation that the network distribution is carried out on the second equipment without the network distribution success manually in the prior art, the equipment without the network distribution success is automatically subjected to network re-distribution, so that the problem that the equipment is required to be manually distributed when the intelligent household equipment fails in linkage in the prior art is solved.
3) In the network distribution method, firstly, under the condition that the network distribution of the first equipment and the gateway equipment is successful, communication connection between the first equipment and the second equipment is established, and secondly, the first equipment sends network distribution information to the second equipment; and finally, the second equipment receives the distribution network information and successfully distributes the network according to the distribution network information and the gateway equipment. In the network distribution method, the second device performs network distribution with the gateway device according to the received network distribution information. The scheme of the application can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the situation that the network distribution is carried out on the second equipment without the network distribution success manually in the prior art, the equipment without the network distribution success is automatically subjected to network re-distribution, so that the problem that the equipment is required to be manually distributed when the intelligent household equipment fails in linkage in the prior art is solved.
4) In the first device of the present application, a first communication establishment unit is configured to establish a communication connection with the second device when the first device and the gateway device are successfully configured; the first sending unit is configured to send the network allocation information to the second device by using the first device, so that the second device and the gateway device successfully allocate a network. The network distribution method and the network distribution system can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the network distribution of the second equipment without the network distribution success in the prior art, the network distribution method and the network distribution system realize the automatic network re-distribution of the equipment without the network distribution success, thereby solving the problem that the equipment is required to be manually distributed when the related equipment fails in the network distribution in the prior art.
5) The second device of the application comprises a second communication establishment unit and a first receiving unit, wherein the second communication establishment unit is used for establishing communication connection with the first device by the second device, and the first device is a device which is successfully matched with the gateway device; the first receiving unit is configured to receive, by the second device, the network allocation information sent by the first device, and successfully allocate a network according to the network allocation information and the gateway device. The scheme of the application can realize the network distribution of the equipment without the network distribution through the equipment with the network distribution success, and compared with the situation that the network distribution is carried out on the second equipment without the network distribution success manually in the prior art, the equipment without the network distribution success is automatically subjected to network re-distribution, so that the problem that the equipment is required to be manually distributed when the intelligent household equipment fails in linkage in the prior art is solved.
6) The network distribution system comprises the first equipment, the second equipment, the gateway equipment and the server, wherein the first equipment and the second equipment execute any network distribution method respectively, the network distribution method can realize the network distribution of the equipment which is not distributed through the equipment which is distributed successfully, and compared with the prior art that the equipment which is not distributed successfully is distributed manually, the network distribution system realizes the automatic network reconfiguration of the equipment which is not distributed successfully, thereby solving the problem that the equipment is required to be distributed manually when the related equipment fails in network distribution in the prior art.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (18)

1. A method of distributing a network, comprising:
under the condition that the first equipment and the gateway equipment are successfully allocated, the first equipment establishes communication connection with the second equipment;
the first device sends the distribution network information to the second device so that the second device and the gateway device successfully distribute the network,
after the first device establishes a communication connection with the second device, before the first device sends the distribution network information to the second device, the method further comprises:
the first device sends a received linkage command forwarded by the gateway device to the second device, wherein the linkage command is sent to the gateway device by a server;
the first device receives first response information sent by the second device, wherein the first response information is information which responds to the linkage command and characterizes the second device to execute and complete the linkage command,
The gateway device comprises a first gateway device and a second gateway device, the first gateway device is connected with the second gateway device, the second gateway device is connected with the server, the first device sends distribution network information to the second device, so that the second device and the gateway device are distributed with a network, and the gateway device comprises:
the first device sends distribution network information to the second device, so that the second device and the first gateway device distribute a network, and the second device and the second gateway device successfully distribute the network under the condition that the second device sends second response information to the second gateway device, wherein the second response information is information responding to distribution network request information sent by the second gateway device.
2. The method of claim 1, wherein in the event that the first device and gateway device network configuration is successful and prior to the first device establishing a communication connection with the second device, the method further comprises:
the first device disconnects the communication with the gateway device.
3. The method of claim 2, wherein the gateway device comprises a first gateway device and a second gateway device, and wherein after the first device sends the distribution network information to the second device, the method further comprises:
The first equipment is connected with the first gateway equipment according to the network distribution information;
and receiving the network allocation request information sent by the second gateway equipment at the first equipment, and responding to the network allocation request information to send third response information to the second gateway equipment, wherein the third response information characterizes that the first equipment and the second gateway equipment are successfully allocated with the network again.
4. The method of claim 1, wherein the first device establishing a communication connection with the second device comprises:
the first device sends connection request information to the second device, wherein the connection request information is request information for requesting connection with the second device;
and under the condition that the first equipment receives fourth response information sent by the second equipment, establishing communication connection with the second equipment.
5. A method of distributing a network, comprising:
the second equipment establishes communication connection with first equipment, wherein the first equipment is equipment which is successfully matched with the gateway equipment;
the second equipment receives the distribution network information sent by the first equipment and distributes a network with the gateway equipment according to the distribution network information,
The gateway equipment comprises first gateway equipment and second gateway equipment, the first gateway equipment is connected with the second gateway equipment, the second gateway equipment is connected with a server, the second equipment receives distribution network information sent by the first equipment, and successfully distributes a network with the gateway equipment according to the distribution network information, and the gateway equipment comprises:
the second equipment receives the distribution network information and distributes a network with the corresponding first gateway equipment according to the distribution network information;
the second device receives the network allocation request information sent by the second gateway device, and if the second device sends second response information to the second gateway device, the second device successfully allocates the network with the second gateway device, the second response information is information responding to the network allocation request information sent by the second gateway device,
after the second device establishes a communication connection with the first device, before the second device receives the network allocation information sent by the first device, the method further includes:
the second device receives a linkage command forwarded by the first device, wherein the linkage command is sent to the gateway device by the server and then sent to the first device by the gateway device;
The second device executes the linkage command and returns first response information to the first device, wherein the first response information is information representing that the second device executes the linkage command.
6. The method of claim 5, wherein the first device is in a disconnected communication connection with the gateway device before the second device establishes the communication connection with the first device.
7. The method of claim 5, wherein the gateway device comprises a first gateway device and a second gateway device, and wherein after the second device receives the distribution network information sent by the first device, the method further comprises:
the first equipment is connected with the first gateway equipment according to the network distribution information;
and receiving the network allocation request information sent by the second gateway equipment at the first equipment, and responding to the network allocation request information to send third response information to the second gateway equipment, wherein the third response information characterizes that the first equipment and the second gateway equipment are successfully allocated with the network again.
8. The method of claim 5, wherein the second device establishes a communication connection with the first device, comprising:
The second device receives connection request information sent by the first device, wherein the connection request information is request information of the first device for connection with the second device;
and the second equipment responds to the connection request information and sends third response information to the first equipment, and the communication connection is established with the first equipment.
9. A method of distributing a network, comprising:
under the condition that the first equipment and the gateway equipment are successfully allocated, establishing communication connection between the first equipment and the second equipment;
the first device sends distribution network information to the second device;
the second device receives the network distribution information, and successfully distributes a network with the gateway device according to the network distribution information, wherein the gateway device comprises a first gateway device and a second gateway device, the first gateway device is connected with the second gateway device, the second gateway device is connected with a server, and the second device receives the network distribution information sent by the first device, and successfully distributes a network with the gateway device according to the network distribution information, and comprises:
the second equipment receives the distribution network information and distributes a network with the corresponding first gateway equipment according to the distribution network information;
The second device receives the network allocation request information sent by the second gateway device, and if the second device sends second response information to the second gateway device, the second device successfully allocates the network with the second gateway device, the second response information is information responding to the network allocation request information sent by the second gateway device,
before the first device sends the distribution network information to the second device, the method further comprises:
the first device sends a received linkage command forwarded by the gateway device to the second device, wherein the linkage command is sent to the gateway device by the server;
the second equipment receives a linkage command sent by the first equipment;
the second device executes the linkage command and returns first response information to the first device, wherein the first response information is information representing that the second device executes the linkage command.
10. The method of claim 9, wherein in the event that the first device and gateway device network configuration is successful and prior to the first device establishing a communication connection with the second device, the method further comprises:
The first device disconnects the communication with the gateway device.
11. The method of claim 9, wherein establishing the communication connection between the first device and the second device comprises:
the first device sends connection request information to the second device, wherein the connection request information is request information for requesting connection with the second device;
the second device receives the connection request information and responds to the connection request information to send third response information to the first device;
and under the condition that the first equipment receives the third response information, establishing communication connection with the second equipment.
12. A first device, comprising:
the first communication establishing unit is used for establishing communication connection between the first equipment and the second equipment under the condition that the network allocation between the first equipment and the gateway equipment is successful;
a first sending unit, configured to send network allocation information to the second device by using the first device, so that the second device and the gateway device successfully allocate a network,
after a first device establishes a communication connection with the second device, before the first device sends the distribution network information to the second device, the first device further includes:
The second sending unit is used for sending the received linkage command forwarded by the gateway equipment to the second equipment by the first equipment, wherein the linkage command is sent to the gateway equipment by a server;
a second receiving unit, configured to receive, by the first device, first response information sent by the second device, where the first response information is information that responds to the linkage command and characterizes that the second device performs the linkage command, the gateway device includes a first gateway device and a second gateway device, the first gateway device is connected with the second gateway device, the second gateway device is connected with the server, and the first sending unit includes:
the first sending module is configured to send network allocation information to the second device, so that the second device allocates a network with the first gateway device, and if the second device sends second response information to the second gateway device, the second device successfully allocates a network with the second gateway device, where the second response information is information responding to network allocation request information sent by the second gateway device.
13. A second device, comprising:
The second communication establishing unit is used for establishing communication connection with the first equipment by the second equipment, wherein the first equipment is equipment which is successfully matched with the gateway equipment;
a first receiving unit, configured to receive, by the second device, the network allocation information sent by the first device, and successfully allocate a network with the gateway device according to the network allocation information,
the gateway device comprises a first gateway device and a second gateway device, the first gateway device is connected with the second gateway device, the second gateway device is connected with a server, and the first receiving unit comprises:
the first receiving module is used for receiving the distribution network information by the second equipment and distributing a network according to the distribution network information and the corresponding first gateway equipment;
the second receiving module is configured to receive, by the second device, network allocation request information sent by the second gateway device, where the second device sends second response information to the second gateway device, where the second response information is information in response to the network allocation request information sent by the second gateway device, and after the second device establishes a communication connection with the first device, before the second device receives the network allocation information sent by the first device, the second device further includes:
A fourth receiving unit, configured to receive, by using the second device, a linkage command forwarded by the first device, where the linkage command is sent by the server to the gateway device, and then sent by the gateway device to the first device;
the execution unit is used for the second equipment to execute the linkage command and return first response information to the first equipment, wherein the first response information is information representing that the second equipment executes the linkage command.
14. A distribution network system, comprising:
a first device for performing the method of any one of claims 1 to 4;
a second device for performing the method of any one of claims 5 to 8;
gateway equipment, which is used for distributing network with the first equipment and the second equipment;
and the server is in communication connection with the gateway equipment.
15. The distribution network system of claim 14, wherein the gateway device comprises a first gateway device and a second gateway device, wherein the second gateway device is communicatively coupled to the server, wherein the first gateway device is communicatively coupled to the second gateway device, and wherein the first gateway device is configured to directly distribute the network with the first device and the second device.
16. The distribution network system of claim 14, wherein the first device and the second device are each smart home devices.
17. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program performs the method of any one of claims 1 to 11.
18. A processor for running a program, wherein the program when run performs the method of any one of claims 1 to 11.
CN202110969863.XA 2021-08-23 2021-08-23 Distribution network method, first equipment, second equipment, distribution network system and processor Active CN113691427B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110969863.XA CN113691427B (en) 2021-08-23 2021-08-23 Distribution network method, first equipment, second equipment, distribution network system and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110969863.XA CN113691427B (en) 2021-08-23 2021-08-23 Distribution network method, first equipment, second equipment, distribution network system and processor

Publications (2)

Publication Number Publication Date
CN113691427A CN113691427A (en) 2021-11-23
CN113691427B true CN113691427B (en) 2023-07-14

Family

ID=78581567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110969863.XA Active CN113691427B (en) 2021-08-23 2021-08-23 Distribution network method, first equipment, second equipment, distribution network system and processor

Country Status (1)

Country Link
CN (1) CN113691427B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338774A (en) * 2021-12-31 2022-04-12 深圳Tcl新技术有限公司 Management method and device of Internet of things equipment, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639542A (en) * 2019-02-27 2019-04-16 深圳创维-Rgb电子有限公司 A kind of distribution method and system based on intelligent domestic gateway
CN110493758A (en) * 2018-05-14 2019-11-22 阿里巴巴集团控股有限公司 Bluetooth Mesh network and its match network method, equipment and storage medium
CN110601870A (en) * 2019-07-31 2019-12-20 华为技术有限公司 Method, device and system for registering device distribution network
CN111083765A (en) * 2019-12-30 2020-04-28 四川虹美智能科技有限公司 Method for managing intelligent equipment, intelligent router and intelligent home system
CN112055347A (en) * 2020-09-14 2020-12-08 厦门阳光恩耐照明有限公司 Multi-gateway cooperative work method and system
CN112448873A (en) * 2020-11-17 2021-03-05 深圳Tcl新技术有限公司 Equipment binding method and device and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7072902B2 (en) * 2019-07-23 2022-05-23 深▲セン▼合強電子有限公司 Automatic connection method between smart devices and routers, routers and smart devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493758A (en) * 2018-05-14 2019-11-22 阿里巴巴集团控股有限公司 Bluetooth Mesh network and its match network method, equipment and storage medium
CN109639542A (en) * 2019-02-27 2019-04-16 深圳创维-Rgb电子有限公司 A kind of distribution method and system based on intelligent domestic gateway
CN110601870A (en) * 2019-07-31 2019-12-20 华为技术有限公司 Method, device and system for registering device distribution network
CN111083765A (en) * 2019-12-30 2020-04-28 四川虹美智能科技有限公司 Method for managing intelligent equipment, intelligent router and intelligent home system
CN112055347A (en) * 2020-09-14 2020-12-08 厦门阳光恩耐照明有限公司 Multi-gateway cooperative work method and system
CN112448873A (en) * 2020-11-17 2021-03-05 深圳Tcl新技术有限公司 Equipment binding method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN113691427A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US20150317583A1 (en) Business Scheduling Method and Apparatus and Convergence Device
CN112752240A (en) Direct communication processing method and device, relay terminal and remote terminal
US20180199105A1 (en) Multi-screen control method and device
WO2015048921A1 (en) A movable gateway, a dhcp server and respective methods performed thereby for enabling the gateway to move from a first access point to a second access point
CN104580016A (en) Node distribution method, device and system
CN116996908A (en) Fusion management method, device, equipment and medium of master-slave gateway and wireless AP
CN113691427B (en) Distribution network method, first equipment, second equipment, distribution network system and processor
CN113132434A (en) Distributed service processing method, device, equipment and storage medium
CN104683435A (en) Network System, Constant Connection Method, Electronic Device, Server, And Program
CN106790734B (en) Network address allocation method and device
CN110784939B (en) Data communication method, device and system
CN108551477B (en) Data transmission channel establishing system, network storage device, server and method
CN104219337A (en) IP address allocation method and device applied to SDN
CN104780230A (en) Method of automatically acquiring cloud server IP address, system and cloud system
US20160248751A1 (en) Cm registration method and apparatus
KR20150095507A (en) Method and apparatus for allocating ip address of machine type communication terminal
CN112737827A (en) Resource allocation method, device and system
CN103581354A (en) Network address allocation method and system
CN104581796A (en) Sending method of M2M application request, CSE and system
CN109347966B (en) Server cluster communication method, terminal equipment and communication server
KR101274774B1 (en) System and method for providing push service using reconnection message
CN106302854A (en) A kind of method that many DHCP of control Server dynamically distributes host address
CN114124737A (en) Method and device for controlling user equipment to access network
CN114500548B (en) Method and system for accessing equipment terminal to cloud platform and related components
CN105450602A (en) Mobile terminal control method and apparatus

Legal Events

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