Household appliance network distribution method and systemTechnical Field
The invention relates to the field of intelligent household appliance distribution networks, in particular to a household appliance distribution network method and system.
Background
At present, network household appliances need to configure a network by inputting passwords, the operation is troublesome, and as more and more intelligent household appliances are produced, each device needs the same operation to realize the internet surfing function, so that inconvenience is brought to users. And for intelligent household appliances without input interfaces, it is more inconvenient to configure network settings. In the prior art, methods for configuring a WIreless Fidelity (WIFI) account for an intelligent device without an input interface mainly include three methods, one is to set a network port in the intelligent device, configure a network cable, transfer WIFI account information to the intelligent device through a cloud server, and unplug the network cable after the intelligent device receives the WIFI account, thereby connecting the WIFI; secondly, starting a WIFI hotspot of a fixed SSID (Service Set Identifier) at the intelligent household appliance, switching WIFI of the mobile terminal by a user to connect to the intelligent device, and then transmitting a WIFI account required by the intelligent device to the intelligent device, thereby configuring WIFI parameters for the intelligent device. And thirdly, a monitoring mode is started through the intelligent household appliance WIFI module to receive WiFi parameters set by the APP terminal.
However, the three schemes have respective disadvantages, and the first scheme needs the intelligent device to be provided with a network port and a network cable, so that the manufacturing cost of the intelligent device is high, and inconvenience is brought to users; when the second scheme is used, a user is required to select an intelligent device hotspot in a mobile terminal system, then WIFI network configuration is input in APP configuration, and the user mobile terminal is required to be switched to a home wireless route again if the user mobile terminal needs to surf the internet again, so that the experience is poor. According to the third scheme, the intelligent household appliance WIFI module starts a monitoring mode, the problems of packet loss and the like exist, and the failure rate of configuration is relatively high. With the increase of home intelligent products, firstly, the bearing capacity of the home router is limited, and the home router cannot be connected with so many devices.
Disclosure of Invention
The invention provides a household appliance network distribution method and a household appliance network distribution system, which can realize that after an intelligent household appliance is configured with a network, the product can configure the network for other equipment, and realize the networking requirements of other equipment.
In order to achieve the purpose of the invention, the technical scheme adopted by the invention is as follows:
a household appliance network distribution method comprises the following steps:
the networked equipment broadcasts or multicasts the distribution network information to the coverage area; the distribution network information comprises a networking user name and a password;
and the equipment to be distributed is connected with a preset router or networked equipment by using the received distribution network information.
Preferably, the method further comprises, before:
and the networked equipment and one or more equipment to be distributed are associated through a preset server.
Preferably, after the networked device and the one or more devices to be networked are associated by a preset server, the method includes:
when the server detects that one or more associated devices to be networked are not networked successfully; sending indication information to the networked device; or,
when the server does not receive the network connection information of the associated equipment to be networked within the preset time, sending indication information to the networked equipment;
the indication information is used for indicating the networked device to broadcast or multicast the distribution network information in the coverage area of the networked device.
Preferably, the method further comprises, after:
when the server receives the network connection information of the associated equipment to be networked within the preset time, sending stop information to the networked equipment; or,
when the server detects that all associated devices to be networked are successfully networked, stop information is sent to the networked devices;
the stop information is used for indicating the networked device to stop broadcasting or multicasting the distribution network information in the coverage area of the networked device.
Preferably, the way in which the networked devices broadcast or multicast the distribution network information to their coverage includes at least one of:
the networking equipment periodically broadcasts or multicasts the distribution network information;
the networked devices broadcast or multicast the distribution network information regularly.
Preferably, the method further comprises:
and the networked equipment sends heartbeat information to a preset server.
The embodiment of the present invention further provides a network distribution system for home appliances, including: the device to be networked comprises the networked device, the device to be networked and a preset router:
the networked equipment is set to broadcast or multicast the distribution network information to the coverage area; the distribution network information comprises a networking user name and a password;
and the equipment to be distributed is set to be connected with a preset router or the networked equipment by utilizing the received distribution network information.
Preferably, the networked device and one or more devices to be distributed are associated through a preset server,
the server is set to detect that one or more associated devices to be networked are not networked successfully; sending indication information to the networked device; or,
the server is set to send indication information to the networked equipment when the network connection information of the associated equipment to be networked is not received within preset time;
the indication information is used for indicating the networked device to broadcast or multicast the distribution network information in the coverage area of the networked device.
Preferably, the server is configured to send stop information to the networked device when receiving the network connection information of the associated device to be networked within a preset time; or,
the server is set to send stop information to the networked equipment when detecting that all the associated equipment to be networked successfully network;
the stop information is used for indicating the networked device to stop broadcasting or multicasting the distribution network information in the coverage area of the networked device.
Preferably, the way in which the networked devices broadcast or multicast the distribution network information to their coverage includes at least one of:
the networking equipment periodically broadcasts or multicasts the distribution network information;
the networked devices broadcast or multicast the distribution network information regularly.
Compared with the prior art, the invention has the following beneficial effects:
when a user uses the technical scheme of the invention, when an intelligent household appliance is configured with a network, other products which are not configured with the network can obtain a networking user name and a password through the products which are configured with the network, so that the automatic network distribution of the household appliance is realized to connect a router or networked equipment, the network distribution process of the user is reduced, the equipment is automatically connected with the network, the complexity and complexity of the network configuration of the household appliance are reduced, and the user experience is greatly improved. Furthermore, the technical scheme of the invention can inform the networked equipment to start or stop broadcasting or multicasting the distribution network information in the coverage area of the networked equipment through the server, thereby reducing the operation load of the networked equipment and simultaneously reducing the potential safety hazard.
Drawings
Fig. 1 is a flowchart of a household appliance network distribution method according to an embodiment of the present invention;
fig. 2 is a flowchart of a server distribution network according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a household appliance distribution network system according to an embodiment of the present invention;
fig. 4 is a flowchart of a household appliance network distribution method according to embodiment 2 of the present invention;
fig. 5 is a distribution network flow chart in a state to be distributed according to embodiment 4 of the present invention:
fig. 6 is a distribution network flow chart in a state to be distributed according to embodiment 5 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following description of the embodiments of the present invention with reference to the accompanying drawings is provided, and it should be noted that, in the case of conflict, features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
As shown in fig. 1, an embodiment of the present invention provides a method for distributing a network of home appliances, including:
the networked equipment broadcasts or multicasts the distribution network information to the coverage area; the distribution network information comprises a networking user name and a password;
and the equipment to be distributed is connected with a preset router or networked equipment by using the received distribution network information.
The method for broadcasting or multicasting the distribution network information to the coverage area of the networked device comprises at least one of the following steps:
the networking equipment periodically broadcasts or multicasts the distribution network information;
the networked devices broadcast or multicast the distribution network information regularly.
The embodiment of the invention broadcasts or multicasts the distribution network information to the coverage area by the networked equipment at regular time or periodically or according to the preset rule, realizes the distribution of the distribution network to other equipment to be distributed, and can monitor the distribution network information according to the method provided by the embodiment of the invention if the other equipment to be distributed cannot be connected with a router or the network after being electrified, thereby realizing the automatic distribution of the network.
In order to reduce the operation load of the networked devices and reduce the potential safety hazard, the embodiment of the invention can notify the networked devices to start or stop broadcasting or multicasting the distribution network information in the coverage range of the networked devices through the server.
The method is also preceded by:
and the networked equipment and one or more equipment to be distributed are associated through a preset server.
As shown in fig. 2, after the networked device and one or more devices to be networked are associated by a preset server, the method includes:
when the server detects that one or more associated devices to be networked are not networked successfully; sending indication information to the networked device; or,
when the server does not receive the network connection information of the associated equipment to be networked within the preset time, sending indication information to the networked equipment;
the indication information is used for indicating the networked device to broadcast or multicast the distribution network information in the coverage area of the networked device.
When the server receives the network connection information of the associated equipment to be networked within the preset time, sending stop information to the networked equipment; or,
when the server detects that all associated devices to be networked are successfully networked, stop information is sent to the networked devices;
the stop information is used for indicating the networked device to stop broadcasting or multicasting the distribution network information in the coverage area of the networked device.
The method further comprises the following steps:
and the networked equipment sends heartbeat information to a preset server.
In the embodiment of the invention, in order to provide a distribution network technology more intelligently, a preset server is used for controlling networked equipment to distribute a network; the method comprises the steps that firstly, a unique code is registered in a preset server when each device leaves a factory, when a user purchases the device, association relations can be established among a plurality of devices, if the associated devices exist, the associated devices are notified, and distribution network information is sent at regular time. When all the devices are networked successfully, the preset server detects that no device to be networked exists in the associated devices, and then the networked devices are notified to cancel the timing transmission of the distribution network information.
As shown in fig. 3, an embodiment of the present invention further provides a home appliance distribution network system, including: the device to be networked comprises the networked device, the device to be networked and a preset router:
the networked equipment is set to broadcast or multicast the distribution network information to the coverage area; the distribution network information comprises a networking user name and a password;
and the equipment to be distributed is set to be connected with a preset router or the networked equipment by utilizing the received distribution network information.
The networked equipment and one or more equipment to be distributed are associated through a preset server,
the server is set to detect that one or more associated devices to be networked are not networked successfully; sending indication information to the networked device; or,
the server is set to send indication information to the networked equipment when the network connection information of the associated equipment to be networked is not received within preset time;
the indication information is used for indicating the networked device to broadcast or multicast the distribution network information in the coverage area of the networked device.
The server is configured to send stop information to the networked device when receiving the network connection information of the associated device to be networked within a preset time; or,
the server is set to send stop information to the networked equipment when detecting that all the associated equipment to be networked successfully network;
the stop information is used for indicating the networked device to stop broadcasting or multicasting the distribution network information in the coverage area of the networked device.
The way in which the networked devices broadcast or multicast distribution network information to their coverage includes at least one of:
the networking equipment periodically broadcasts or multicasts the distribution network information;
the networked devices broadcast or multicast the distribution network information regularly.
The embodiment of the present invention further provides a network distribution device for home appliances, including: a memory and a processor; the memory is used for storing a program for a household appliance distribution network, and the program for the household appliance distribution network performs the following operations when being read and executed by the processor:
the networked equipment broadcasts or multicasts the distribution network information to the coverage area; the distribution network information comprises a networking user name and a password;
and the equipment to be distributed is connected with a preset router or networked equipment by using the received distribution network information.
Further, when being read and executed by the processor, the program for the household appliance distribution network performs the following operations:
when the server detects that one or more associated devices to be networked are not networked successfully; sending indication information to the networked device; or,
when the server does not receive the network connection information of the associated equipment to be networked within the preset time, sending indication information to the networked equipment;
the indication information is used for indicating the networked device to broadcast or multicast the distribution network information in the coverage area of the networked device.
When the server receives the network connection information of the associated equipment to be networked within the preset time, sending stop information to the networked equipment; or,
when the server detects that all associated devices to be networked are successfully networked, stop information is sent to the networked devices;
the stop information is used for indicating the networked device to stop broadcasting or multicasting the distribution network information in the coverage area of the networked device.
The embodiment of the invention also provides a storage medium for realizing the household appliance distribution network, wherein the storage medium is used for storing the program for the household appliance distribution network, and when the program for the household appliance distribution network is executed, the following operations are executed:
the networked equipment broadcasts or multicasts the distribution network information to the coverage area; the distribution network information comprises a networking user name and a password;
and the equipment to be distributed is connected with a preset router or networked equipment by using the received distribution network information.
Further, when the program for the household appliance distribution network is executed, the following operations are performed:
when the server detects that one or more associated devices to be networked are not networked successfully; sending indication information to the networked device; or,
when the server does not receive the network connection information of the associated equipment to be networked within the preset time, sending indication information to the networked equipment;
the indication information is used for indicating the networked device to broadcast or multicast the distribution network information in the coverage area of the networked device.
When the server receives the network connection information of the associated equipment to be networked within the preset time, sending stop information to the networked equipment; or,
when the server detects that all associated devices to be networked are successfully networked, stop information is sent to the networked devices;
the stop information is used for indicating the networked device to stop broadcasting or multicasting the distribution network information in the coverage area of the networked device.
Example 1
If the networked device is already in the home, the networked device already acquires the user name and the password of the home router, and then the networked device broadcasts and transmits the user name and the password of the router according to a certain protocol at regular time or periodically or according to a preset rule (the user name and the password form a data packet by taking a length group of a transmission character string as a unit during broadcast transmission), or transmits the user name and the password in a multicast mode (the user name and the password realize data transmission through analysis of different multicast addresses during multicast transmission).
When the equipment to be distributed is powered on, firstly scanning surrounding information, searching whether stored router information exists, if so, directly networking, and if not, entering a state to be distributed; and monitoring the user name and the password of the live multicast broadcast by the networked equipment, and connecting the home router by using the received user name and the received password.
Example 2
As shown in fig. 4, the embodiment of the present invention illustrates a manner in which, when all home devices are not networked, the embodiment can implement silent configuration:
when a user uses a household appliance for networking for the first time, the user is required to select and input a password of the home router; then the home device remembers the username and password of the home router; in this way, the household appliance can be used as a networked device to send a broadcast packet or a multicast packet of distribution network information every 10-30 s, so that once the to-be-distributed device is powered on and is in a to-be-distributed state, the to-be-distributed device can configure a user name and a password according to the received distribution network information;
when the networking equipment changes the use scene or place, the networking equipment detects that the stored user name and password of the router are different from the current router user name, and inquires whether the user adds a new network user name and password; the household appliance can store a plurality of groups of user names and passwords, so that the passwords do not need to be switched back and forth when the user changes the environment.
Example 3
This embodiment illustrates a process of controlling a network distribution by a preset server for networked devices:
the method comprises the following steps that an intelligent soybean milk machine A is provided, the identification number of the soybean milk machine A is D000011, user identity information is name Zhang III (or a bound mobile phone number), and a manufacturer cloud server establishes an association relation between the intelligent soybean milk machine A and Zhang III;
zhang III completes network configuration of a soybean milk machine A according to an operation instruction, the soybean milk machine A successfully accesses a network, at the moment, the soybean milk machine A is connected with a server according to a built-in server address, equipment is registered after the legality is confirmed through information verification, a control server address is obtained after the registration is successful, then the soybean milk machine A is connected with the control server according to the obtained control server address, equipment information is reported after the connection is successful, long connection is kept, heartbeat information is sent every minute, the self identification number D000011 is reported, and a manufacturer server obtains the association relation between the intelligent soybean milk machine A and Zhang;
and the identification number of the intelligent rice cooker B is F000011, and the manufacturer cloud server establishes the association relationship between the intelligent rice cooker B and Zhang III.
And if the manufacturer cloud server does not receive the network connection information of the intelligent rice cooker B within the preset time, judging that the intelligent rice cooker B is not finished to be distributed with the network.
The manufacturer cloud server obtains that the intelligent soymilk machine A completes distribution network setting through inquiry, and then sends a distribution network command to the intelligent soymilk machine A, and the intelligent soymilk machine A sends a broadcast packet or a multicast packet according to distribution network information at regular time.
The intelligent rice cooker B completes router connection according to the acquired distribution network information, connection is established with a manufacturer cloud server through a network, the manufacturer cloud server inquires that three pieces of intelligent household appliances complete distribution, distribution network stop information is sent to the intelligent soybean milk machine A, and the intelligent soybean milk machine A stops sending a distribution network information broadcast packet or multicast packet.
Example 4
As shown in fig. 5, this embodiment illustrates a network distribution process when devices in a to-be-distributed state in the first embodiment and the second embodiment:
the device to be networked can receive 802.11 packets on the network when being in a state to be networked, at the moment, the device to be networked continuously switches between channels 1-13, a network communication data broadcast packet (255.255.255.255) leading packet of a user name and a password sent by other device ends in the network environment is monitored in a circulating mode, if relevant information is received, the channel switching is stopped, the relevant information is continuously received until all information is received, the device to be networked analyzes correct user name and password information according to a corresponding decoding rule, and the device to be networked is configured to be connected to a received router, so that automatic networking is realized.
Example 5
As shown in fig. 6, this embodiment illustrates a network distribution process when devices in a to-be-distributed state in the first embodiment and the second embodiment:
the network equipment to be distributed can receive 802.11 packets on the network when in a network state to be distributed, at the moment, the household appliances are continuously switched between channels 1-13, a network communication data multicast packet (224.0.0.1-239.255.255.255) leading packet of user names and passwords sent by other intelligent terminals in the network environment is monitored in a circulating mode, if relevant information is received, the switching of the channels is stopped, the relevant information is continuously received until all information is received, the network equipment to be distributed analyzes correct user name and password information according to corresponding decoding rules, and the network equipment to be distributed is configured to be connected to a received router, so that the purpose of automatic networking is achieved.
Although the embodiments of the present invention have been described above, the contents thereof are merely embodiments adopted to facilitate understanding of the technical aspects of the present invention, and are not intended to limit the present invention. It will be apparent to persons skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined in the appended claims.