Method and system for distributing network for intelligent equipment in batchesTechnical Field
The invention belongs to the technical field of Internet of things, and particularly relates to a method and a system for distributing networks in batches by intelligent equipment.
Background
Nowadays, more and more intelligent devices including intelligent household appliances need to be connected with a cloud platform to achieve the purpose of interconnection of everything. But with the following problems: all the intelligent devices need to be operated in a distribution network, and if a user newly buys a batch of intelligent household appliances from a company, all the intelligent devices need to be newly distributed with the network, and all the intelligent devices need to enter a distribution network mode one by one and then go to the distribution network according to the original mode. In this case, repeated operations are performed, which makes the user feel very troublesome and deteriorates the user experience.
Disclosure of Invention
In order to solve the problems and the defects in the prior art, the invention aims to provide a method and a system for distributing networks of intelligent devices in batches, which can realize one-time batch distribution of the networks of a plurality of intelligent devices.
In order to achieve the above object, the present invention firstly provides a method for distributing networks in batches for intelligent devices, which is used for connecting the intelligent devices to the internet or the internet of things, and comprises the following steps:
s1, setting the user side and the intelligent devices into a near field communication mode;
s2, inputting distribution network information on the user terminal, and transmitting the distribution network information to each intelligent device in a near field communication mode;
and S3, each intelligent device automatically distributes the network according to the distribution network information.
Further, step S2 includes, after the smart device enters the near field communication mode, starting to broadcast the data.
Further, step S2 includes that, after the distribution network information is input, the user starts to automatically search and filter the smart devices according to the preset filtering rule, and performs near field communication connection with the filtered smart devices.
Further, step S2 includes displaying the filtered information of the smart device on the user side, providing a selection interface of the filtered smart device for the user to select on the user side, and transmitting the distribution network information to the selected smart device in a near field communication manner according to the user selection instruction.
Further, the filtering rules include at least one of: broadcast name filtering, UUID filtering.
Further, step S4 is included, a message is returned to the user side, and the distribution network result is displayed at the user side.
Further, step S4 further includes: if the intelligent equipment is successfully distributed with the network, returning the information of successful distribution of the network to the user side; if the intelligent equipment fails to distribute the network, returning the information of network distribution failure to the user side, and prompting the user side of network distribution failure and checking whether the information of the network distribution is correct or not.
Further, the protocol of the near field communication is bluetooth.
Further, the distribution network information comprises a WiFi password.
The invention also provides a system for distributing the intelligent equipment in batches, which comprises a user side, a plurality of intelligent equipment and a wireless routing module, wherein the user side sends distribution network information to the intelligent equipment through a near-field communication protocol, and the intelligent equipment is in wireless network connection with the wireless routing module according to the distribution network information.
Compared with the prior art, the invention has the beneficial effects that: on the user end, the distribution network information is sent to the intelligent equipment in batches through the near field communication protocol, the intelligent equipment is automatically connected with the wireless router according to the distribution network information, the distribution network information does not need to be manually input into the intelligent equipment one by one, the batch distribution of the intelligent equipment is realized, the operation is simplified, and the distribution network efficiency is improved.
Drawings
FIG. 1 is a diagram of method steps according to a first embodiment of the present invention;
fig. 2 is a module connection diagram of a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
the embodiment of the invention provides a method for distributing networks of intelligent equipment in batches, which is used for connecting the intelligent equipment to the Internet or the Internet of things and comprises the following steps:
s1, setting the user side and the intelligent devices into a near field communication mode;
s2, inputting distribution network information on the user terminal, and transmitting the distribution network information to each intelligent device in a near field communication mode;
and S3, each intelligent device automatically distributes the network according to the distribution network information.
By adopting the method, the distribution network information is sent to the intelligent equipment in batch through the near-field communication protocol on the user terminal, the intelligent equipment automatically distributes the network according to the distribution network information and is connected with the wireless router, the distribution network information does not need to be manually input into the intelligent equipment one by one, the batch distribution of the plurality of intelligent equipment is realized, the operation is simplified, and the distribution network efficiency is improved.
Before step S2, the method includes that after the smart device enters the near field communication mode, the smart device starts to broadcast data so that the user end can search for a match.
After the distribution network information is input, the user side starts to automatically search and filter the intelligent equipment according to the preset filtering rule, and the user side is connected with the filtered intelligent equipment in a near field communication mode. This avoids the need for connections to equipment that do not require a distribution network.
Step S2 further includes displaying the filtered information of the intelligent device on the user side, providing a selection interface of the filtered intelligent device for the user to select on the user side, and transmitting the distribution network information to the selected intelligent device in a near field communication manner according to a user selection instruction. And the user further filters the equipment needing the distribution network on the user end.
The filtering rules include at least one of: broadcast name filtering, UUID filtering. The broadcast name filtering can filter out intelligent devices with specified broadcast names, and the UUID filtering can filter out intelligent devices with specified UUIDs. Therefore, the equipment needing to be distributed can be accurately filtered.
And step S4, after the intelligent device successfully distributes the network, the information of successful distribution of the network is returned to the user side, and the user side displays the result of successful distribution of the network. If the intelligent equipment fails to distribute the network, returning the information of network distribution failure to the user side, prompting the network distribution failure by the user side, and automatically checking whether the network distribution information is correct or not by the user side or checking whether the network distribution information is correct or not by the user side.
The protocol of near field communication in this embodiment is bluetooth, and bluetooth can the multiterminal be connected, and connection speed is fast, and data transmission is stable high-efficient.
In this embodiment, the distribution network information includes a WiFi password.
The specific process of this embodiment is as follows:
the user side is a mobile phone provided with a one-key distribution network APP; firstly, a user respectively triggers various intelligent devices to enter a Bluetooth distribution network mode, and the devices start Bluetooth broadcasting; then, after the user opens the APP and inputs a WiFi password, clicking to determine, and automatically filtering and displaying the nearby intelligent equipment meeting the conditions by the APP; then, the user selects multiple choices on the APP, selects the intelligent equipment needing one-key batch distribution network, and clicks one-key batch distribution network after selection; the equipment end receives the configuration information of the WiFi and starts to connect the wireless router; the device is successfully connected with the wireless router, and APP is informed of the distribution network result respectively; and finally displaying the result by the APP, and ending the process.
Example two:
the second embodiment of the invention provides a system for distributing network in batches of intelligent equipment, which comprises auser side 1, a plurality ofintelligent equipment 2 and awireless routing module 3, wherein theuser side 1 sends network distribution information to theintelligent equipment 2 through a near field communication protocol, and theintelligent equipment 2 is in wireless network connection with thewireless routing module 3 according to the network distribution information.
The system operating method for distributing the networks of the intelligent devices in batches in the second embodiment adopts the method for distributing the networks of the intelligent devices in batches provided in the first embodiment, and details are not described here.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.