CN114745259A - Intelligent device batch network distribution method and device and computer readable storage medium - Google Patents
Intelligent device batch network distribution method and device and computer readable storage medium Download PDFInfo
- Publication number
- CN114745259A CN114745259A CN202011537840.3A CN202011537840A CN114745259A CN 114745259 A CN114745259 A CN 114745259A CN 202011537840 A CN202011537840 A CN 202011537840A CN 114745259 A CN114745259 A CN 114745259A
- Authority
- CN
- China
- Prior art keywords
- intelligent
- information
- equipment
- networked
- network
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 239000000523 sample Substances 0.000 claims description 28
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 claims description 28
- 238000001514 detection method Methods 0.000 claims description 20
- 238000012163 sequencing technique Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 150000003839 salts Chemical class 0.000 description 4
- 239000000284 extract Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000002035 prolonged effect Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2854—Wide area networks, e.g. public data networks
- H04L12/2856—Access arrangements, e.g. Internet access
- H04L12/2869—Operational details of access network equipments
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method and a device for distributing intelligent equipment in batches and a computer readable storage medium, wherein the method for distributing the intelligent equipment in batches comprises the following steps: when a distribution network instruction sent by a user is received, acquiring equipment information broadcasted by intelligent equipment in a target WIFI area; generating list information of intelligent equipment to be networked according to a network distribution equipment selection instruction of a user and the equipment information; and sending target WIFI information to the intelligent equipment to be networked according to the list information, and registering the intelligent equipment to be networked to a cloud server. According to the method and the device, the list information of the intelligent device to be networked is obtained by receiving the distribution network command and the distribution network device selection command sent by the user, the target WIFI information is sent to the intelligent device to be networked in batches according to the list information, the intelligent device to be networked can automatically access the network according to the target WIFI information, the user does not need to manually operate a plurality of devices to be networked in sequence, the operation of the user is reduced, and the distribution network efficiency is improved.
Description
Technical Field
The invention relates to the technical field of distributed distribution networks, in particular to a method and equipment for distributing intelligent equipment in batches and a computer readable storage medium.
Background
In the current times of everything interconnection, intelligent devices such as unmanned aerial vehicles, network cameras, intelligent automobiles and intelligent home products are rapidly promoting popularization of intelligent life. However, with the increase of smart devices, the heat points in a unit area increase exponentially, for example, the performance of numerous products in a wireless network range is collectively shown to users in a large marketplace. The existing distribution network technology requires a user to manually connect the softAp to input SSID, passwords and the like, so that the operation of the user is increased, the distribution network time is prolonged, and the existing distribution network technology cannot meet the requirement of large-scale link.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, a device and a computer-readable storage medium for distributing network in batches of intelligent devices, aiming at solving the problems that in the prior art, a user needs to manually connect to a softAp to input operations such as SSID and password for network distribution, user operations are increased, and the time for network distribution is prolonged.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a method for distributing intelligent equipment in batch comprises the following steps:
when a distribution network instruction sent by a user is received, acquiring equipment information broadcasted by intelligent equipment in a target WIFI area;
generating list information of intelligent equipment to be networked according to a network distribution equipment selection instruction of a user and the equipment information;
and sending target WIFI information to the intelligent equipment to be networked according to the list information, and registering the intelligent equipment to be networked to a cloud server.
Further, when a distribution network instruction sent by a user is received, acquiring device information broadcasted by the intelligent device in the target WIFI area, including:
when a distribution network instruction sent by a user is received, acquiring the intelligent device type, the device SSID, the MAC address and the distance information broadcasted by the intelligent device in the target WIFI area;
sorting the equipment to be networked according to the distance information to generate distance sorting information;
and reporting the intelligent device type, the device SSID, the MAC address and the distance sequencing information to a cloud server.
Further, the distance information is a distance value between the intelligent device and a preset point; the sorting the to-be-configured network devices according to the distance information to generate distance sorting information includes:
and sequencing the equipment to be distributed according to the sequence of the distance values from small to large to generate distance sequencing information.
Further, the generating of the list information of the intelligent device to be networked according to the network-distribution-device selection instruction of the user and the device information includes:
acquiring an MAC address and a binding code of intelligent equipment to be distributed according to a distribution network equipment selection instruction of a user;
and adding the MAC address of the intelligent equipment to be networked in the target WIFI area into a white list, and generating list information of the intelligent equipment to be networked.
Further, the sending target WIFI information to the to-be-configured network smart device according to the list information and registering the to-be-configured network smart device to a cloud server includes:
according to the MAC address in the list information, sending a target WIFI SSID, a KEY and a binding code to the corresponding intelligent equipment to be networked;
and reporting the binding codes to a cloud server, and controlling the cloud server to register the intelligent equipment to be networked in sequence according to the priority weights distributed by the distance sorting information.
Further, the sending a target WIFI SSID, a KEY, and a binding code to a corresponding to-be-networked intelligent device according to the MAC address in the list information includes:
broadcasting a first probe request frame, wherein a self-defined IE1 field is carried in the first probe request frame, and the IE1 field carries ciphertext KEY 1;
receiving a second detection request frame fed back by the intelligent equipment in the target WIFI region according to the first detection request frame;
if the MAC address of the intelligent device corresponding to the second detection request frame exists in the list information, sending a third detection request frame to the intelligent device;
the third probe request frame carries an IE3 field, and the IE3 field carries an encrypted target WIFI SSID, a KEY, and a binding code.
Further, the reporting the binding code to a cloud server, and controlling the cloud server to sequentially register the to-be-configured network intelligent device according to the priority weight distributed by the distance sorting information includes:
reporting the binding code to a cloud server;
the cloud server is controlled to obtain a user name according to the priority weight distributed by the distance sorting information and the binding code, and the user name is bound with the equipment ID of the intelligent equipment to be networked, which corresponds to the priority weight;
and traversing all the intelligent devices to be networked.
Further, when a distribution network instruction sent by a user is received, acquiring device information broadcasted by the intelligent device in the target WIFI area, including:
and when the infrared remote control signal is detected, acquiring equipment information broadcasted by the intelligent equipment in the target WIFI area.
The invention provides equipment, a memory, a processor and an intelligent equipment batch distribution network program which is stored on the memory and can run on the processor, wherein the intelligent equipment batch distribution network program realizes the steps of the intelligent equipment batch distribution network method when being executed by the processor.
The invention provides a computer-readable storage medium, which stores a computer program, wherein the computer program can be executed to realize the steps of the intelligent device batch network distribution method.
The invention provides a method and a device for distributing intelligent equipment in batches and a computer readable storage medium, wherein the method for distributing the intelligent equipment in batches comprises the following steps: when a distribution network instruction sent by a user is received, acquiring equipment information broadcasted by intelligent equipment in a target WIFI area; generating list information of intelligent equipment to be networked according to a network distribution equipment selection instruction of a user and the equipment information; and sending target WIFI information to the intelligent equipment to be networked according to the list information, and registering the intelligent equipment to be networked to a cloud server. According to the method and the device, the list information of the intelligent device to be networked can be obtained by directly receiving the distribution network instruction and the distribution network device selection instruction sent by the user, the target WIFI information is automatically sent to the intelligent device to be networked in batches according to the list information, and the intelligent device to be networked can automatically access the network according to the target WIFI information, so that the user does not need to manually operate a plurality of devices to be networked in sequence, the operation of the user is reduced, and the distribution network efficiency is improved.
Drawings
Fig. 1 is a flowchart of a preferred embodiment of a method for distributing networks of intelligent devices in batches according to the present invention.
Fig. 2 is a detailed flowchart of step S100 in the preferred embodiment of the method for distributing networks in batches by using intelligent devices in the present invention.
Fig. 3 is a detailed flowchart of step S200 in the preferred embodiment of the method for distributing networks in batches by using intelligent devices in the present invention.
Fig. 4 is a detailed flowchart of step S300 in the preferred embodiment of the method for distributing networks in batches by using intelligent devices in the present invention.
Fig. 5 is a specific flowchart of step S310 in the preferred embodiment of the method for distributing networks in batches by using intelligent devices in the present invention.
Fig. 6 is a specific flowchart of step S320 in the preferred embodiment of the method for distributing networks in batches by using intelligent devices in the present invention.
Fig. 7 is a functional block diagram of a preferred embodiment of the apparatus of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart of a method for distributing networks in batches by using intelligent devices according to the present invention. As shown in fig. 1, the method for distributing networks of intelligent devices in batches according to the embodiment of the present invention includes the following steps:
s100, when a distribution network instruction sent by a user is received, acquiring equipment information broadcasted by intelligent equipment in a target WIFI area.
The premise of the distribution network is that at least one device is required to be networked in the target WIFI and bound with the user, and the WIFI module in the device supports the AP and the STA to exist simultaneously. Therefore, when a distribution network instruction sent by a user is received, the networked equipment acquires the equipment information broadcasted by the intelligent equipment in the target WIFI area. The AP is a HUB in a conventional wired network, and is also the most commonly used device for building a small wireless local area network; the AP acts as a bridge connecting the network and the wireless network, and mainly functions to connect the wireless network clients together and then to access the wireless network to the ethernet. An STA (Single-threaded) Single-threaded unit is a mode of program operation in WINDOWS systems.
Specifically, when a plurality of intelligent devices in a target WIFI area need to be distributed, the plurality of intelligent devices are distributed in batches. Firstly, the intelligent equipment to be distributed is powered on, and the intelligent equipment to be distributed starts to broadcast the information of the intelligent equipment to be distributed after being powered on.
When the user sends the distribution network instruction, the networked device can be operated. In another implementation manner, the step S100 is: and when the infrared remote control signal is detected, acquiring equipment information broadcasted by the intelligent equipment in the target WIFI area. That is to say, a remote control device, such as an infrared remote controller, can be connected to the distribution network control system where the target WIFI is located, when a user needs to distribute a network, the user only needs to operate the infrared remote controller, the infrared remote controller sends out an infrared remote control signal after receiving the user's operation, the distribution network control system starts the distribution network module after detecting an external infrared remote control signal, and the distribution network module establishes and starts a non-inductive distribution network mode.
In one implementation, referring to fig. 2, the step S100 includes:
s110, when a distribution network instruction sent by a user is received, acquiring the intelligent device type, the device SSID, the MAC address and the distance information broadcasted by the intelligent device in the target WIFI area;
s120, sorting the equipment to be networked according to the distance information to generate distance sorting information;
s130, reporting the intelligent device type, the device SSID, the MAC address and the distance sequencing information to a cloud server.
That is to say, the intelligent device in the target WIFI area broadcasts information such as the intelligent device type, the device SSID, the MAC address, and the distance information, and the networked devices can acquire the information, sequence the distance information, and generate distance sequencing information, so that the cloud server processes the plurality of intelligent terminals according to the distance sequencing information. It can be understood that the smart devices in the target WIFI area not only refer to the smart devices to be networked, but also refer to all powered-on smart devices in the target WIFI area.
In a further implementation manner, the distance information is a distance value between the intelligent device and a preset point; the step S120 includes: and sequencing the equipment to be distributed according to the sequence of the distance values from small to large to generate distance sequencing information.
Specifically, the intelligent device in the target WIFI area establishes and starts an AP + STA mode, the intelligent device takes a preset point as an origin (0,0), the position of the intelligent device is taken as a coordinate point of the intelligent device, a two-dimensional plane coordinate system is established, and then a distance value between the coordinate point of the intelligent device and the origin is obtained. For example, a preset point is set as a WIFI center of a target WIFI area, two-dimensional plane coordinates are created according to a plane distance of each smart device from an origin, if a coordinate point (x, y) of a certain smart device is (3,4), a distance of the device from a WIFI center point is calculated according to the plane coordinates, that is, a distance value Z between the coordinate point (3,4) and the origin (0,0) is 5, and a distance map is drawn according to the distance value and the two-dimensional plane coordinates and stored. And the intelligent equipment in the target WIFI region automatically and continuously broadcasts the distance value and the sent probe request frame signal. The specific broadcasting mode is that the intelligent equipment adds a self-defined IE field in a probe request frame to declare the existence of the intelligent equipment and defaults to overtime within 5 minutes; a self-defined IE0 field is carried in the frame, an IE0 field carries information such as ssid and the like, ciphertext transmission is adopted, and preset fixed KEY0+ IV0 AES is used for encryption.
In this way, when a distribution network instruction sent by a user is received, the networked devices can acquire the special probe request frame fields and the distance values broadcast by the intelligent devices in the target WiFi area, and sort according to the size of the distance values. If the distance value is small, the fact that the intelligent terminal is close to the WIFI center and is arranged in the front row is meant; if the distance value is large, the distance value is far from the WIFI center and is arranged in the rear row. For example, the distance values 3<4<5.5<7m are sorted and combined in the order of small arrival, stored, and then reported to the cloud server. The reported information includes, in addition to the distance ranking information, the type of the intelligent device (the AP needs to preferentially select the operation discovered by the G3 router), deviceId of the device (i.e., the networked device ID is convenient for cloud delivery), SSID (APP display device picture) of the new device, and MAC address (convenient for adding white list).
The step S100 is followed by: s200, generating list information of the intelligent equipment to be networked according to the network distribution equipment selection instruction of the user and the equipment information.
Specifically, after the cloud server obtains the reported information (including the type of the intelligent device, the SSID of the device, the MAC address and the distance sorting information), the distance value sorting information is assigned with necessary priority weights, the priority weights are higher before the sorting names are closer, if the priority weights from the first name to the first ten names are 100% -90%, the priority weights are lower after the sorting names are closer, if the priority weights after the last ten names are 10% -1%, and the sorting names are stored after the completion. The distribution network control system can also be connected with an intelligent terminal, such as a mobile phone, and a distribution network APP is installed in the intelligent terminal. And the cloud server pushes the report information and the priority weight to the APP.
And after receiving the reported information and the priority weight, the intelligent terminal APP displays the intelligent equipment to be networked on a screen and sends a prompt. And the intelligent terminal APP detects that the user selects all the equipment needing to be distributed, sends the information of the intelligent equipment to be distributed to the cloud server according to the priority weight, and stores the information. That is to say, the user selects the smart devices needing the distribution network from all the smart devices powered on in the target WIFI area.
After receiving the information of the intelligent equipment to be networked, the cloud server extracts relevant information (IP address, port number and the like) of the intelligent equipment in the target WiFi area in the reported information, and then sends the MAC address and the bindcode (binding code) of the equipment to be networked to the networked equipment and stores the binding code.
In one implementation, referring to fig. 3, the step S200 includes:
s210, acquiring an MAC address and a binding code of the intelligent equipment to be distributed according to a distribution network equipment selection instruction of a user;
s220, adding the MAC address of the intelligent device to be networked in the target WIFI area into a white list, and generating list information of the intelligent device to be networked.
Specifically, after the cloud server issues the MAC address and the bindcode of the to-be-distributed network device to the networked device, the networked device can obtain a network-distribution-device selection instruction of the user, and receive the MAC address and the bindcode of the to-be-distributed network device issued by the cloud server. And the networked equipment adds the MAC address of the intelligent equipment to be networked in the target WiFi area into a white list, stores the MAC address as list information after the white list is completed, and enters a batch distribution network.
The step S200 is followed by: s300, sending target WIFI information to the intelligent device to be networked according to the list information, and registering the intelligent device to be networked to a cloud server. That is to say, the networked devices automatically send target WIFI information to the intelligent devices to be networked in batches according to the list information, so that a user does not need to manually operate the multiple devices to be networked in sequence, the network distribution efficiency is improved, and the network distribution time is saved.
In one implementation, referring to fig. 4, the step S300 includes:
s310, sending a target WIFI SSID, a KEY and a binding code to corresponding intelligent equipment to be networked according to the MAC address in the list information;
and S320, reporting the binding codes to a cloud server, and controlling the cloud server to register the intelligent equipment to be networked according to the priority weights distributed by the distance sorting information.
In a further implementation manner, referring to fig. 5, the step S310 includes:
s311, broadcasting a first probe request frame, wherein a self-defined IE1 field is carried in the first probe request frame, and the IE1 field carries ciphertext KEY 1;
s312, receiving a second detection request frame fed back by the intelligent device in the target WIFI region according to the first detection request frame;
s313, if the MAC address of the intelligent device corresponding to the second detection request frame exists in the list information, a third detection request frame is sent to the intelligent device;
the third probe request frame carries an IE3 field, and the IE3 field carries an encrypted target WIFI SSID, a KEY, and a binding code.
Specifically, the networked device broadcasts a probe request frame, that is, a first probe request frame, and the self-defined IE1 field is carried in the first probe request frame, and the IE1 field carries content as ciphertext KEY1 (ciphertext transmission, using preset fixed Salt + IV0 AES encryption). The KEY1 is shown as a payload, the KEY1 is IV0 and Salt encrypted ciphertext, and the encryption algorithm is aes256(cbc mode), and the encrypted frame information is completed and stored.
And the intelligent equipment in the target WIFI region extracts the first detection request frame to obtain a ciphertext KEY1 to be stored, encrypts KEY1 by using IV1, and finally obtains and stores KEY 3. At the same time, ciphertext KEY2 (ciphertext transport, encrypted using the preset fixed Salt + IV0 AES) is placed in IE2 field in the probe response frame and transmitted to the networked device. The KEY2 is a payload, the KEY2 is IV1 and Salt encrypted ciphertext, and the encryption algorithm is aes256(cbc mode).
After receiving a probe response frame (namely, a second probe request frame) sent by the intelligent device to be networked in the target WIFI area, the networked device judges whether the MAC address is in a white list, if so, the networked device sends a probe request frame (namely, a third probe request frame), wherein an IE3 field carries encrypted WIFI SSID, KEY, bindcode and the like, and AES encryption is carried out by using KEY2+ IV 2. If not, the networked device does not send the third detection request frame, and after the intelligent device in the target WIFI area is overtime for 5 seconds, the intelligent device continues to broadcast information such as the type of the intelligent device, the SSID of the device, the MAC address and the distance information. Wherein, the Probe Response frame is used for responding to the Probe Request frame, and the Probe Request frame is used by the mobile workstation for scanning whether the network exists around.
And after the network-accessing intelligent equipment receives the third detection request frame, returning a probe response frame again, and confirming the receipt information by ack. And the intelligent device to be networked receives and stores the information such as the WIFI SSID, the KEY, the bindcode and the like in the third detection request frame, and then performs operation of connecting the home router. If the router is connected incorrectly or the registration is incorrect, the peripheral equipment is informed of the error information in a probe request frame mode, and the user is informed of the error information.
In a further implementation manner, referring to fig. 6, the step S320 includes:
s321, reporting the binding code to a cloud server;
s322, controlling the cloud server to obtain a user name according to the priority weight distributed by the distance sorting information and the binding code, wherein the user name binds the equipment ID of the intelligent equipment to be networked, which corresponds to the priority weight;
and S323, traversing all the intelligent devices to be networked.
Specifically, the networked devices report basic information of the intelligent devices to be networked in batches to the cloud server, the basic information includes binding codes, registration is performed according to distance sorting information and the size of the priority weight, the binding codes with small distance values and large weight preferentially obtain userId (user name), the userId binds deviceId (device ID) of the intelligent devices to be networked corresponding to the priority weight, and the binding codes with large distance values and small weight are performed subsequently until all the intelligent devices to be networked are traversed.
Further, the cloud server returns information such as deviceId, port of browser, accessoken, refreshhtoken and the like of the intelligent device to be networked, and the registration is successful. And the cloud server sends a push notification to the user to inform the user that the intelligent device to be networked is successfully bound, and the intelligent device is connected with the Broker by utilizing an MQTT protocol. Mqtt (message Queuing remote Transport protocol) is an abbreviation of message queue remote sensing transmission protocol, is a message transmission protocol based on a lightweight proxy publish/subscribe mode, operates on a TCP protocol stack, and provides network connection guarantee of ordered, reliable and bidirectional connection for the message transmission protocol.
Therefore, the method for distributing the network without sensing is adopted, the network distribution can be successfully realized only by pressing the remote controller by the user to trigger the network distribution, the user does not need to manually connect the softAp to input SSID, passwords and the like, the user operation is reduced, the network distribution time is shortened, the network distribution can be added in batches, the manual operation is hardly needed under the condition of replacing a G3 router or modifying the G3 passwords, the sub-equipment is updated and connected, the time is effectively saved, and the method is very suitable for distributing the network to the intelligent equipment in a large-scale marketplace.
Further, as shown in fig. 7, based on the method for distributing the network in batches by the intelligent device, the invention further provides a device, which includes a processor 10 and a memory 20. Fig. 7 shows only some of the components of the terminal, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 20 may in some embodiments be an internal storage unit of the terminal, such as a hard disk or a memory of the terminal. The memory 20 may also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the terminal. The memory 20 is used for storing application software installed in the terminal and various types of data, such as program codes for installing the terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In an embodiment, the memory 20 stores a batch distribution network program 30 of the intelligent devices, and the batch distribution network program 30 of the intelligent devices can be executed by the processor 10, so as to implement the batch distribution network method of the intelligent devices in the present application.
The processor 10 may be, in some embodiments, a Central Processing Unit (CPU), a microprocessor or other data Processing chip, and is configured to run program codes stored in the memory 20 or process data, for example, execute the method for distributing network in batch for the smart device.
In one embodiment, when the processor 10 executes the smart device batch distribution network program 30 in the memory 20, the following steps are implemented:
when a distribution network instruction sent by a user is received, acquiring equipment information broadcasted by intelligent equipment in a target WIFI area;
generating list information of intelligent equipment to be networked according to a network distribution equipment selection instruction of a user and the equipment information;
and sending target WIFI information to the intelligent equipment to be networked according to the list information, and registering the intelligent equipment to be networked to a cloud server.
When a distribution network instruction sent by a user is received, acquiring equipment information broadcasted by intelligent equipment in a target WIFI region, wherein the equipment information comprises:
when a distribution network instruction sent by a user is received, acquiring the intelligent device type, the device SSID, the MAC address and the distance information broadcasted by the intelligent device in a target WIFI area;
sorting the equipment to be networked according to the distance information to generate distance sorting information;
and reporting the intelligent device type, the device SSID, the MAC address and the distance sequencing information to a cloud server.
The distance information is a distance value between the intelligent equipment and a preset point; the sorting the devices to be networked according to the distance information to generate distance sorting information includes:
and sequencing the equipment to be distributed according to the sequence of the distance values from small to large to generate distance sequencing information.
The generating of the list information of the intelligent device to be networked according to the network distribution device selection instruction of the user and the device information comprises:
acquiring an MAC address and a binding code of intelligent equipment to be distributed according to a distribution network equipment selection instruction of a user;
and adding the MAC address of the intelligent equipment to be networked in the target WIFI area into a white list, and generating list information of the intelligent equipment to be networked.
The sending of target WIFI information to the intelligent device to be networked according to the list information and the registering of the intelligent device to be networked to a cloud server include:
according to the MAC address in the list information, sending a target WIFI SSID, a KEY and a binding code to the corresponding intelligent equipment to be networked;
and reporting the binding codes to a cloud server, and controlling the cloud server to register the intelligent equipment to be networked in sequence according to the priority weights distributed by the distance sorting information.
The sending of the target WIFI SSID, the KEY and the binding code to the corresponding intelligent equipment to be networked according to the MAC address in the list information comprises the following steps:
broadcasting a first probe request frame, wherein a self-defined IE1 field is carried in the first probe request frame, and the IE1 field carries ciphertext KEY 1;
receiving a second detection request frame fed back by the intelligent equipment in the target WIFI region according to the first detection request frame;
if the MAC address of the intelligent device corresponding to the second detection request frame exists in the list information, sending a third detection request frame to the intelligent device;
the third probe request frame carries an IE3 field, and the IE3 field carries an encrypted target WIFI SSID, a KEY, and a binding code.
The reporting of the binding code to a cloud server and the control of the cloud server to register the to-be-configured network intelligent device in sequence according to the priority weight distributed by the distance sorting information include:
reporting the binding code to a cloud server;
the cloud server is controlled to obtain a user name according to the priority weight distributed by the distance sorting information and the binding code, and the user name is bound with the equipment ID of the intelligent equipment to be networked, which corresponds to the priority weight;
and traversing all the intelligent devices to be networked.
When a distribution network instruction sent by a user is received, acquiring equipment information broadcasted by intelligent equipment in a target WIFI area, wherein the equipment information comprises:
and when the infrared remote control signal is detected, acquiring equipment information broadcasted by the intelligent equipment in the target WIFI area.
The invention also provides a computer-readable storage medium, which stores a computer program, wherein the computer program can be executed to implement the steps of the intelligent device batch network distribution method.
In summary, the method, the device and the computer-readable storage medium for distributing the network of the intelligent devices in batch disclosed by the invention comprise the following steps: when a distribution network instruction sent by a user is received, acquiring equipment information broadcasted by intelligent equipment in a target WIFI area; generating list information of intelligent equipment to be networked according to a network distribution equipment selection instruction of a user and the equipment information; and sending target WIFI information to the intelligent equipment to be networked according to the list information, and registering the intelligent equipment to be networked to a cloud server. According to the method and the device, the list information of the intelligent device to be networked can be obtained by directly receiving the distribution network instruction and the distribution network device selection instruction sent by the user, the target WIFI information is automatically sent to the intelligent device to be networked in batches according to the list information, and the intelligent device to be networked can automatically access the network according to the target WIFI information, so that the user does not need to manually operate a plurality of devices to be networked in sequence, the operation of the user is reduced, and the distribution network efficiency is improved.
It will be understood that the invention is not limited to the examples described above, but that modifications and variations will occur to those skilled in the art in light of the above teachings, and that all such modifications and variations are considered to be within the scope of the invention as defined by the appended claims.
Claims (10)
1. The method for distributing the network for the intelligent equipment in batches is characterized by comprising the following steps of:
when a distribution network instruction sent by a user is received, acquiring equipment information broadcasted by intelligent equipment in a target WIFI area;
generating list information of intelligent equipment to be networked according to a network distribution equipment selection instruction of a user and the equipment information;
and sending target WIFI information to the intelligent equipment to be networked according to the list information, and registering the intelligent equipment to be networked to a cloud server.
2. The method for distributing the network in batches of the intelligent devices according to claim 1, wherein when a network distribution instruction sent by a user is received, device information broadcasted by the intelligent devices in a target WIFI area is obtained, and the method comprises the following steps:
when a distribution network instruction sent by a user is received, acquiring the intelligent device type, the device SSID, the MAC address and the distance information broadcasted by the intelligent device in the target WIFI area;
sorting the equipment to be networked according to the distance information to generate distance sorting information;
and reporting the intelligent device type, the device SSID, the MAC address and the distance sequencing information to a cloud server.
3. The method for distributing the network in batches of the intelligent devices according to claim 2, wherein the distance information is a distance value between the intelligent device and a preset point; the sorting the to-be-configured network devices according to the distance information to generate distance sorting information includes:
and sequencing the equipment of the network to be distributed according to the sequence of the distance values from small to large to generate distance sequencing information.
4. The method for distributing the network in batches of the intelligent devices according to claim 2, wherein the generating of the list information of the intelligent devices to be distributed according to the distribution device selection instruction of the user and the device information comprises:
acquiring an MAC address and a binding code of intelligent equipment to be distributed according to a distribution network equipment selection instruction of a user;
and adding the MAC address of the intelligent equipment to be networked in the target WIFI area into a white list, and generating list information of the intelligent equipment to be networked.
5. The method for distributing the network in batches by the intelligent devices according to claim 4, wherein the sending target WIFI information to the intelligent devices to be distributed according to the list information and registering the intelligent devices to be distributed to a cloud server comprises:
according to the MAC address in the list information, sending a target WIFI SSID, a KEY and a binding code to the corresponding intelligent equipment to be networked;
and reporting the binding codes to a cloud server, and controlling the cloud server to register the intelligent equipment to be networked in sequence according to the priority weights distributed by the distance sequencing information.
6. The method for distributing the network in batches of the intelligent devices according to claim 5, wherein the sending of the target WIFI SSID, the KEY and the binding code to the corresponding intelligent device to be distributed according to the MAC address in the list information comprises:
broadcasting a first probe request frame, wherein a self-defined IE1 field is carried in the first probe request frame, and the IE1 field carries a ciphertext KEY 1;
receiving a second detection request frame fed back by the intelligent equipment in the target WIFI region according to the first detection request frame;
if the MAC address of the intelligent device corresponding to the second detection request frame exists in the list information, a third detection request frame is sent to the intelligent device;
the third probe request frame carries an IE3 field, and the IE3 field carries an encrypted target WIFI SSID, a KEY, and a binding code.
7. The method for distributing the network in batches of the intelligent devices according to claim 5, wherein the reporting the binding code to a cloud server and controlling the cloud server to register the intelligent devices to be distributed in sequence according to the priority weights distributed by the distance sorting information comprises:
reporting the binding code to a cloud server;
the cloud server is controlled to obtain a user name according to the priority weight distributed by the distance sorting information and the binding code, and the user name is bound with the equipment ID of the intelligent equipment to be networked, which corresponds to the priority weight;
and traversing all the intelligent devices to be networked.
8. The method for distributing the network in batches by the intelligent devices according to claim 1, wherein when a network distribution instruction sent by a user is received, acquiring device information broadcasted by the intelligent devices in a target WIFI area comprises:
and when the infrared remote control signal is detected, acquiring equipment information broadcasted by the intelligent equipment in the target WIFI area.
9. An apparatus, comprising: the intelligent device batch distribution network method comprises a memory, a processor and an intelligent device batch distribution network program which is stored on the memory and can run on the processor, wherein when the intelligent device batch distribution network program is executed by the processor, the steps of the intelligent device batch distribution network method according to any one of claims 1-8 are realized.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, which can be executed to implement the steps of the method for batch distribution of network for intelligent devices according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011537840.3A CN114745259B (en) | 2020-12-23 | 2020-12-23 | Intelligent equipment batch network distribution method, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011537840.3A CN114745259B (en) | 2020-12-23 | 2020-12-23 | Intelligent equipment batch network distribution method, equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114745259A true CN114745259A (en) | 2022-07-12 |
CN114745259B CN114745259B (en) | 2024-02-06 |
Family
ID=82274020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011537840.3A Active CN114745259B (en) | 2020-12-23 | 2020-12-23 | Intelligent equipment batch network distribution method, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114745259B (en) |
Citations (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104540237A (en) * | 2014-11-28 | 2015-04-22 | 普联技术有限公司 | Method and system for connecting intelligent device to network |
US20160007391A1 (en) * | 2014-07-02 | 2016-01-07 | Alibaba Group Holding Limited | Network access method, apparatus, server and terminal |
US20160191266A1 (en) * | 2014-12-29 | 2016-06-30 | Xiaomi Inc. | Method and apparatus for binding intelligent device |
WO2016107078A1 (en) * | 2014-12-29 | 2016-07-07 | 小米科技有限责任公司 | Binding method and apparatus of intelligent device |
CN106059837A (en) * | 2016-07-29 | 2016-10-26 | 海尔优家智能科技(北京)有限公司 | Device network access configuration method and device, and cloud platform |
CN106255104A (en) * | 2016-07-29 | 2016-12-21 | 海尔优家智能科技(北京)有限公司 | A kind of smart machine Auto-reconnect method and apparatus |
CN106301785A (en) * | 2016-08-09 | 2017-01-04 | Tcl集团股份有限公司 | The binding method of a kind of intelligent home device and intelligent terminal and system |
WO2017097093A1 (en) * | 2015-12-08 | 2017-06-15 | 中兴通讯股份有限公司 | Implementation method for home internet of things, set top box, and internet-of-things server |
WO2017206314A1 (en) * | 2016-05-30 | 2017-12-07 | 深圳市贝美互动科技有限公司 | Method of linking to smart apparatus, and device |
CN108092919A (en) * | 2017-12-11 | 2018-05-29 | 上海斐讯数据通信技术有限公司 | A kind of method and system of dynamically distributes terminal device flow |
WO2018127200A1 (en) * | 2017-01-09 | 2018-07-12 | 云丁网络技术(北京)有限公司 | Method for smart device to access network, mobile terminal, cloud server, device, and system |
CN108551690A (en) * | 2018-01-30 | 2018-09-18 | 京信通信系统(中国)有限公司 | A kind of radio equipment access method, device and terminal device |
CN109996314A (en) * | 2017-12-29 | 2019-07-09 | 阿里巴巴集团控股有限公司 | A kind of methods, devices and systems to distribution net equipment access network hotspot equipment |
CN110139271A (en) * | 2019-04-30 | 2019-08-16 | 普联技术有限公司 | A kind of method, system and device that smart home device batch configuration networks |
WO2019233310A1 (en) * | 2018-06-08 | 2019-12-12 | 阿里巴巴集团控股有限公司 | Method and apparatus for device to be configured with network to access network hotspot device |
CN110601870A (en) * | 2019-07-31 | 2019-12-20 | 华为技术有限公司 | Method, device and system for registering device distribution network |
CN110708688A (en) * | 2019-09-18 | 2020-01-17 | 芋头科技(杭州)有限公司 | Intelligent equipment network distribution method and device, controller and medium |
CN110972232A (en) * | 2019-12-16 | 2020-04-07 | 北京小米移动软件有限公司 | Network connection method, device, terminal and storage medium |
CN111741513A (en) * | 2020-06-18 | 2020-10-02 | 深圳市晨北科技有限公司 | Network distribution method of Internet of things equipment and related equipment |
CN111867001A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | Intelligent equipment batch network distribution method, system and storage medium |
CN111867007A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | Automatic network distribution method and system for intelligent equipment and storage medium |
KR20200123498A (en) * | 2019-04-11 | 2020-10-30 | 주식회사 유비벨록스모바일 | IOT device setting system and method thereof |
KR20200136759A (en) * | 2019-05-28 | 2020-12-08 | 주식회사 코맥스 | USER DEVICE AND METHOD FOR SETTING IoT GATEWAY THEREOF |
-
2020
- 2020-12-23 CN CN202011537840.3A patent/CN114745259B/en active Active
Patent Citations (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160007391A1 (en) * | 2014-07-02 | 2016-01-07 | Alibaba Group Holding Limited | Network access method, apparatus, server and terminal |
CN104540237A (en) * | 2014-11-28 | 2015-04-22 | 普联技术有限公司 | Method and system for connecting intelligent device to network |
US20160191266A1 (en) * | 2014-12-29 | 2016-06-30 | Xiaomi Inc. | Method and apparatus for binding intelligent device |
WO2016107078A1 (en) * | 2014-12-29 | 2016-07-07 | 小米科技有限责任公司 | Binding method and apparatus of intelligent device |
WO2017097093A1 (en) * | 2015-12-08 | 2017-06-15 | 中兴通讯股份有限公司 | Implementation method for home internet of things, set top box, and internet-of-things server |
WO2017206314A1 (en) * | 2016-05-30 | 2017-12-07 | 深圳市贝美互动科技有限公司 | Method of linking to smart apparatus, and device |
CN106059837A (en) * | 2016-07-29 | 2016-10-26 | 海尔优家智能科技(北京)有限公司 | Device network access configuration method and device, and cloud platform |
CN106255104A (en) * | 2016-07-29 | 2016-12-21 | 海尔优家智能科技(北京)有限公司 | A kind of smart machine Auto-reconnect method and apparatus |
CN106301785A (en) * | 2016-08-09 | 2017-01-04 | Tcl集团股份有限公司 | The binding method of a kind of intelligent home device and intelligent terminal and system |
WO2018127200A1 (en) * | 2017-01-09 | 2018-07-12 | 云丁网络技术(北京)有限公司 | Method for smart device to access network, mobile terminal, cloud server, device, and system |
US20200015153A1 (en) * | 2017-01-09 | 2020-01-09 | Yun Ding Network Technology (Beijing) Co., Ltd. | Method for smart device to access network, mobile terminal, cloud server, device, and system |
CN108092919A (en) * | 2017-12-11 | 2018-05-29 | 上海斐讯数据通信技术有限公司 | A kind of method and system of dynamically distributes terminal device flow |
CN109996314A (en) * | 2017-12-29 | 2019-07-09 | 阿里巴巴集团控股有限公司 | A kind of methods, devices and systems to distribution net equipment access network hotspot equipment |
CN108551690A (en) * | 2018-01-30 | 2018-09-18 | 京信通信系统(中国)有限公司 | A kind of radio equipment access method, device and terminal device |
WO2019233310A1 (en) * | 2018-06-08 | 2019-12-12 | 阿里巴巴集团控股有限公司 | Method and apparatus for device to be configured with network to access network hotspot device |
KR20200123498A (en) * | 2019-04-11 | 2020-10-30 | 주식회사 유비벨록스모바일 | IOT device setting system and method thereof |
CN110139271A (en) * | 2019-04-30 | 2019-08-16 | 普联技术有限公司 | A kind of method, system and device that smart home device batch configuration networks |
KR20200136759A (en) * | 2019-05-28 | 2020-12-08 | 주식회사 코맥스 | USER DEVICE AND METHOD FOR SETTING IoT GATEWAY THEREOF |
CN110601870A (en) * | 2019-07-31 | 2019-12-20 | 华为技术有限公司 | Method, device and system for registering device distribution network |
CN110708688A (en) * | 2019-09-18 | 2020-01-17 | 芋头科技(杭州)有限公司 | Intelligent equipment network distribution method and device, controller and medium |
CN110972232A (en) * | 2019-12-16 | 2020-04-07 | 北京小米移动软件有限公司 | Network connection method, device, terminal and storage medium |
CN111741513A (en) * | 2020-06-18 | 2020-10-02 | 深圳市晨北科技有限公司 | Network distribution method of Internet of things equipment and related equipment |
CN111867001A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | Intelligent equipment batch network distribution method, system and storage medium |
CN111867007A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | Automatic network distribution method and system for intelligent equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
周纯杰;於光灿;秦元庆;陈开;: "工业以太网控制系统中网络节点位置信息自动绑定协议研究", 计算机科学, no. 10 * |
李昱兵;汪伟;辛钧;: "智能产品配网绑定时效问题的定位方法", 计算机系统应用, no. 04 * |
Also Published As
Publication number | Publication date |
---|---|
CN114745259B (en) | 2024-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10970951B2 (en) | Data management method, apparatus, device, system and storage medium for smart lock | |
CN113133086B (en) | Intelligent device network distribution method and device, electronic device and storage medium | |
CA2549223A1 (en) | Wireless classroom response system | |
CN106793007B (en) | Interactive communication method and system of cloud and Bluetooth device and wireless router | |
US7419100B2 (en) | Method and system for executing document scanning jobs that are intended for a remote work station through using a wireless interconnection between the work station and a scanner facility | |
US20070066280A1 (en) | Connection management system, method and program | |
US8810839B2 (en) | Information processing apparatus for transferring image data, server apparatus for receiving transferred image data, and control methods and storage media therefor | |
CN112448873B (en) | Binding method and device for equipment and computer readable storage medium | |
CN104780080A (en) | DPI (deep packet inspection) method and system | |
TW200402961A (en) | Data communication method | |
WO2017076109A1 (en) | Software upgrading method and device | |
KR20110131995A (en) | Server and method for providing device management service and device to be provided the service | |
CN112422518A (en) | Network access method, device and storage medium | |
CN112637221B (en) | Equipment control method and device | |
CN113596792B (en) | Binding method and device of electronic equipment, storage medium and electronic device | |
CN114554470A (en) | Interaction method based on Bluetooth device and related device | |
CN108769210B (en) | Attendance tracking method, device, terminal, server and storage medium | |
US8456671B2 (en) | Communication system, information storage device, management device, and terminal device | |
CN114745259B (en) | Intelligent equipment batch network distribution method, equipment and computer readable storage medium | |
CN114025349A (en) | Network service method, device, system and storage medium | |
CN103188662B (en) | A kind of method and device verifying WAP (wireless access point) | |
CN115103359A (en) | Network distribution method and device, network to be distributed equipment, electronic device and readable storage medium | |
CN111314492A (en) | Air conditioner, data transmission method thereof and computer readable storage medium | |
CN111918268A (en) | Control method and device of intelligent equipment, electronic equipment and storage medium | |
CN113453300B (en) | Equipment hot spot processing method and device, storage medium and electronic device |
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 |