CN111565396B - System and method for rapidly realizing distribution of multiple WiFi (Wireless Fidelity) devices - Google Patents

System and method for rapidly realizing distribution of multiple WiFi (Wireless Fidelity) devices Download PDF

Info

Publication number
CN111565396B
CN111565396B CN202010349301.0A CN202010349301A CN111565396B CN 111565396 B CN111565396 B CN 111565396B CN 202010349301 A CN202010349301 A CN 202010349301A CN 111565396 B CN111565396 B CN 111565396B
Authority
CN
China
Prior art keywords
distribution
equipment
network
information
distribution 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.)
Active
Application number
CN202010349301.0A
Other languages
Chinese (zh)
Other versions
CN111565396A (en
Inventor
齐广保
赵柱
牛利峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xinchuang Ruisheng Science & Technology Co ltd
Original Assignee
Beijing Xinchuang Ruisheng Science & Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xinchuang Ruisheng Science & Technology Co ltd filed Critical Beijing Xinchuang Ruisheng Science & Technology Co ltd
Priority to CN202010349301.0A priority Critical patent/CN111565396B/en
Publication of CN111565396A publication Critical patent/CN111565396A/en
Application granted granted Critical
Publication of CN111565396B publication Critical patent/CN111565396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • H04W16/20Network planning tools for indoor coverage or short range network deployment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a system and a method for quickly realizing distribution of a plurality of WiFi (wireless fidelity) devices, wherein the system comprises a distribution network terminal and a plurality of devices to be distributed, the devices to be distributed initiate connection requests to a target AP according to target AP information in distribution network information of a received terminal, and after the devices to be distributed are successfully connected with the target AP, the devices to be distributed are disconnected from the distribution network terminal and become distribution network devices; the distribution network equipment can send equipment distribution network information, after the equipment to be distributed and the distribution network equipment are connected, the equipment distribution network information sent by the connected distribution network equipment can be received, the equipment to be distributed and the distribution network equipment can send a connection request to a target AP according to target AP information in the equipment distribution network information, and after the equipment to be distributed and the target AP are successfully connected, the equipment to be distributed and the distribution network equipment are disconnected with the currently connected distribution network equipment and become the distribution network equipment. The invention can effectively and quickly realize the distribution of a plurality of WiFi devices, and greatly improves the safety of the distribution network.

Description

System and method for rapidly realizing distribution of multiple WiFi devices
Technical Field
The invention relates to a network distribution system and a network distribution method, in particular to a system and a method for quickly realizing network distribution of a plurality of WiFi devices, and belongs to the technical field of WiFi connection of smart homes.
Background
WiFi connection is the short-distance wireless local area network communication technology which is used most at present, and has the advantages of high speed, networking, simplicity and convenience in use, data safety and the like. The mobile communication network is widely used in home, office and partial industrial fields, is complementary with a mobile communication network, and has important technical position and application market.
Before WiFi connection, a newly-accessed device needs to complete authentication, and the most important step is to input an SSID (the name of a WiFi hotspot, which is generally a character string) and a corresponding password of a target AP, and then to perform connection. Since the mobile phone and the computer (hereinafter, collectively referred to as a terminal) have rich computing and interactive resources, the SSID can be obtained through WiFi hardware scanning, and the password is input by using a keyboard, so that connection is completed. However, for embedded hardware devices applied in the fields of smart home and internet of things, the SSID cannot be directly screened by a user and complicated passwords cannot be input because of being limited by interactive resources.
Therefore, the distribution network of the WiFi device is a key and important process for the embedded device with simple structure and limited resources. If the special design is not adopted, the use experience of a user is greatly influenced, and even the solution can be solved by paying the cost of structure, cost and the like.
As shown in fig. 1, the network is a conventional one-key distribution network, and specifically, the network is a WiFi module in an embedded device, and operates in a packet capture mode, and then monitors WiFi messages in an environment. And the message embeds the coded SSID and password in the specific field. The terminal places information such as SSID (service set identifier) and password of the target AP at a specific position in the message according to the requirement of the WiFi module, broadcasts the information in a circulating way, unpacks the information after the WiFi module captures the message and obtains the SSID and the password; and then initiates the final connection.
The method for distributing the network is simple for users. However, there are several problems, and very prominent, mainly: 1) And safety problems: the password is broadcast in the environment and can be intercepted by anyone. 2) Poor compatibility: because the WiFi module is in a random packet capturing state and is influenced by factors such as environmental channel fluctuation, other AP (WiFi access point: an opposite end to which WiFi equipment is connected, which can be a common access point or a router), interference, a network mode of a terminal and the like, the failure rate can be randomly increased; if the frequencies of the terminal connections do not match, it may even fail 100%. 3) And the terminal cannot acquire the information of the peripheral equipment because of one-way communication.
Security issues are fatal to sensitive users. Compatibility problems can affect almost all users, and users are usually very confused due to the randomness of the environment, and user satisfaction is greatly reduced. Furthermore, the process of the terminal discovering the device in the local area network requires that the terminal must establish a connection with the target AP, and usually introduces significant delay, which also degrades the user experience.
As shown in fig. 2, the existing commonly used AP distribution network form is provided, specifically, the existing commonly used AP distribution network form is a WiFi module in an embedded device essentially, and works in a single AP mode, and then the terminal establishes a connection with the AP to exchange information required by both sides, including information such as a target SSID, a password, and a device serial number. And after the WiFi module acquires the information, switching the mode, actively connecting the target AP, and if the information is effective, finishing the connection.
The success rate of the pure AP distribution network is good. However, the disadvantages of this approach are evident: 1) Only WiFi networking information is transmitted, and no user information exists; 2) And whether the transmitted information is valid or not cannot be known. 3) Only one device can be distributed at a time, and the efficiency is low.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, and provides a system and a method for quickly realizing the distribution of a plurality of WiFi devices, which can effectively and quickly realize the distribution of a plurality of WiFi devices and greatly improve the safety of the distribution network.
According to the technical scheme provided by the invention, the system for quickly realizing the distribution of the plurality of WiFi equipment comprises a distribution network terminal and a plurality of equipment to be distributed, wherein at least one of the plurality of equipment to be distributed can be directly connected with the distribution network terminal, the distribution network terminal can send terminal distribution network information to the equipment to be distributed, and the terminal distribution network information comprises target AP information;
the method comprises the steps that a to-be-configured network device which can be directly connected with a distribution network terminal can send a connection request to the distribution network terminal through an appointed SSID and a password corresponding to the appointed SSID, and after connection, the to-be-configured network device can receive terminal distribution network information sent by the distribution network terminal; the method comprises the steps that a to-be-distributed network device initiates a connection request to a target AP according to target AP information in distribution network information of a received terminal, and after the to-be-distributed network device is successfully connected with the target AP, the to-be-distributed network device is disconnected with a distribution network terminal and becomes a distribution network device;
the method comprises the steps that the distribution network equipment can send equipment distribution network information, the equipment distribution network information comprises target AP information, and a terminal to be distributed adjacent to the distribution network equipment can send a connection request to the corresponding distribution network equipment through an appointed SSID and a password corresponding to the appointed SSID;
after the network distribution equipment is connected with the network distribution equipment, the network distribution equipment can receive equipment network distribution information sent by the connected network distribution equipment, the network distribution equipment can send a connection request to a target AP according to target AP information in the equipment network distribution information, and after the network distribution equipment is successfully connected with the target AP, the network distribution equipment is disconnected from the currently connected network distribution equipment and becomes the network distribution equipment.
The distribution network terminal works in an AP mode, and the terminal distribution network information further comprises user information, terminal information and/or task information.
The equipment to be networked comprises an information exchange control module, a WiFi STA module and a WiFi AP module, wherein the WiFi STA module and the WiFi AP module are connected with the information exchange control module;
the information exchange control module controls the WiFi STA module to establish connection between the distribution network terminal, the target AP or the distribution network equipment; the information exchange control module can send the equipment distribution network information through the WiFi AP module so as to realize the connection with the equipment to be distributed.
The equipment to be networked can work in a receiving mode or a distribution mode; when a network is distributed, the equipment to be distributed firstly enters a receiving mode;
when the wireless network distribution system works in a receiving mode, the information exchange control module scans nearby appointed APs through the WiFi STA module, sends a connection request to the appointed APs according to an appointed SSID and a password corresponding to the appointed SSID, sends a request to a target AP according to obtained target AP information after the connection with the appointed APs is successful, and starts the WiFi AP module after the connection with the target AP is successful so that a device to be distributed enters a distribution mode;
when the distribution network management system works in a distribution mode, the information exchange control module controls the WiFi AP module to be in the working state of the appointed AP so as to allow the connection between the nearby equipment to be distributed and the WiFi AP module, and the information exchange control module can send equipment distribution network information to the equipment to be distributed, which is connected to the WiFi AP module, through the WiFi AP module.
A method for rapidly realizing distribution of a plurality of WiFi devices comprises a distribution network terminal and a plurality of devices to be distributed, wherein at least one of the plurality of devices to be distributed can be directly connected with the distribution network terminal, the distribution network terminal can send terminal distribution network information to the devices to be distributed, and the terminal distribution network information comprises target AP information;
the method comprises the steps that a to-be-configured network device which can be directly connected with a distribution network terminal can send a connection request to the distribution network terminal through an appointed SSID and a password corresponding to the appointed SSID, and after connection, the to-be-configured network device can receive terminal distribution network information sent by the distribution network terminal; the method comprises the steps that a to-be-distributed network device initiates a connection request to a target AP according to target AP information in distribution network information of a received terminal, and after the to-be-distributed network device is successfully connected with the target AP, the to-be-distributed network device is disconnected with a distribution network terminal and becomes a distribution network device;
the method comprises the steps that the distribution network equipment can send equipment distribution network information, the equipment distribution network information comprises target AP information, and a terminal to be distributed adjacent to the distribution network equipment can send a connection request to the corresponding distribution network equipment through an appointed SSID and a password corresponding to the appointed SSID;
after the network distribution equipment is connected with the network distribution equipment, the network distribution equipment can receive equipment network distribution information sent by the connected network distribution equipment, the network distribution equipment can send a connection request to a target AP according to target AP information in the equipment network distribution information, and after the network distribution equipment is successfully connected with the target AP, the network distribution equipment is disconnected from the currently connected network distribution equipment and becomes the network distribution equipment.
The distribution network terminal works in an AP mode, and the terminal distribution network information further comprises user information, terminal information and/or task information.
The device to be networked comprises an information exchange control module, and a WiFi STA module and a WiFi AP module which are connected with the information exchange control module;
the information exchange control module can be connected with the distribution network terminal, the target AP or the distribution network equipment through the WiFi STA module; the information exchange control module can send equipment distribution network information through the WiFi AP module so as to realize connection with equipment to be distributed.
The equipment to be networked can work in a receiving mode or a distribution mode; when a network is distributed, the equipment to be distributed firstly enters a receiving mode;
when the wireless network distribution system works in a receiving mode, the information exchange control module scans nearby appointed APs through the WiFi STA module, sends a connection request to the appointed APs according to an appointed SSID and a password corresponding to the appointed SSID, sends a request to a target AP according to obtained target AP information after the connection with the appointed APs is successful, and starts the WiFi AP module after the connection with the target AP is successful so that a device to be distributed enters a distribution mode;
when the distribution network management system works in a distribution mode, the information exchange control module controls the WiFi AP module to be in the working state of the appointed AP so as to allow the connection between the nearby equipment to be distributed and the WiFi AP module, and the information exchange control module can send equipment distribution network information to the equipment to be distributed, which is connected to the WiFi AP module, through the WiFi AP module.
After the distribution is completed or the idle time is out, the information exchange control module closes the WiFi AP module to exit the current distribution mode.
The invention has the advantages that:
the reliability is high, the success rate is high: the WiFi AP connection mode is adopted to realize bidirectional communication between the distribution network terminal and the equipment to be distributed, and between the distribution network equipment and the equipment to be distributed, so that data can be exchanged quickly and reliably without being influenced by external factors.
The safety is high: the WiFi AP connection and information confirmation mode is used, the whole process is independent and closed, and therefore the risk that the target AP password is leaked can be avoided.
The success rate is high: by using the mode of the appointed AP, the probability of failure is greatly reduced as long as software and hardware work normally in connection establishment and information exchange.
The speed is high: and each device to be configured finishes the network distribution as long as receiving the effective target AP information, and further works in a distribution mode to serve as a new information distribution node. The distribution network can work in parallel in space, capacity and time, and the speed of the distribution network is improved in an exponential mode.
Drawings
Fig. 1 is a schematic diagram of a conventional distribution network.
Fig. 2 is a schematic diagram of another distribution network in the prior art.
Fig. 3 is a schematic diagram of a distribution network system according to the present invention.
Fig. 4 is a schematic diagram of a network to be distributed between adjacent devices to be distributed according to the present invention.
Fig. 5 is a schematic diagram of the working state of the network to be distributed according to the present invention.
Fig. 6 is a flowchart illustrating the operation of the information exchange control module and the WiFi STA module according to the present invention.
Fig. 7 is a flowchart illustrating the operation of the information exchange control module and the WiFi AP module according to the present invention.
Description of reference numerals: the system comprises 0-distribution network terminal, 1-equipment to be distributed, 11-WiFi STA module, 12-information exchange control module and 13-WiFi AP module.
Detailed Description
The invention is further illustrated by the following specific figures and examples.
As shown in fig. 3: in order to effectively and quickly realize the distribution of a plurality of WiFi (wireless fidelity) devices and greatly improve the safety of a distribution network, the system comprises a distribution network terminal 0 and a plurality of devices to be distributed 1, wherein at least one of the devices to be distributed 1 can be directly connected with the distribution network terminal 0, the distribution network terminal 0 can send terminal distribution network information to the devices to be distributed 1, and the terminal distribution network information comprises target AP (access point) information;
the device 1 to be configured, which can be directly connected with the distribution network terminal 0, can send a connection request to the distribution network terminal 0 through an agreed SSID and a password corresponding to the agreed SSID, and after connection, the device 1 to be configured can receive terminal distribution network information sent by the distribution network terminal 0; the method comprises the steps that a to-be-distributed network device 1 initiates a connection request to a target AP according to target AP information in distribution network information of a received terminal, and after the to-be-distributed network device 1 is successfully connected with the target AP, the to-be-distributed network device 1 is disconnected with a distribution network terminal 0 and becomes a distribution network device;
the method comprises the steps that the distribution network equipment can send equipment distribution network information, the equipment distribution network information comprises target AP information, and the equipment 1 to be distributed adjacent to the distribution network equipment can send a connection request to the corresponding distribution network equipment through an appointed SSID and a password corresponding to the appointed SSID;
after the distribution network equipment 1 is connected with the distribution network equipment, the distribution network equipment 1 can receive equipment distribution network information sent by the connected distribution network equipment, the distribution network equipment 1 can send a connection request to a target AP according to the target AP information in the equipment distribution network information, and after the distribution network equipment 1 is successfully connected with the target AP, the distribution network equipment 1 is disconnected from the current connected distribution network equipment and becomes the distribution network equipment.
Specifically, the distribution network terminal 0 is a source of information distribution, and terminal distribution network information can be sent through the distribution network terminal 0, where the terminal distribution network information includes and is not limited to target AP information, and in addition, the terminal distribution network information may further include user information, terminal information, task information, and the like, generally, the user information includes status information such as an identity of a user, the terminal information includes related information such as a terminal identity, and the task information may be a related status of the user information, the terminal information, and the like, and specific contents may be selected as needed, and are not described herein again. The target AP information includes an SSID of the target AP and a password corresponding to the SSID of the target AP. The target AP is a WiFi AP hotspot to which all the devices 1 to be networked will eventually connect.
In the embodiment of the invention, the distribution network terminal 0 has a WiFi connection function, works in an AP mode, establishes an AP hotspot which can be connected by other equipment 1 to be distributed, waits for the connection of the equipment 1 to be distributed, and distributes terminal distribution network information for the equipment. The distribution network terminal 0 mainly has a distribution mode. Specifically, the distribution network terminal 0 may provide an AP hotspot function by corresponding WiFi function hardware, and perform external services with an agreed SSID and a password known to the network device 1 to be distributed. When the network distribution equipment 1 is connected to the AP hotspot of the network distribution terminal 1, handshaking is performed to determine mutual information after the connection is successful, and the process and manner of specifically determining the information may be in a conventional form, and the specific process is well known to those skilled in the art and is not described herein again. The distribution network terminal 0 sends terminal distribution network information to the equipment 1 to be distributed, and distribution network information distribution is completed.
In summary, the distribution network terminal 0 mainly works in two parts: 1) Generating networking information of the target AP; 2) And starting the WiFi AP hotspot with the appointed SSID and the password corresponding to the appointed SSID as parameters for connecting the to-be-configured network equipment 1. The distribution network terminal 0 can be implemented by using an existing intelligent terminal, such as a smart phone, a computer, etc., and specific types and structural forms can be selected as required, which are not described herein again. The nearby device 1 to be configured with the network automatically connects to the agreed SSID, and if the SSID succeeds, the device 1 to be configured with the network acquires the target AP information from the network distribution terminal 0, so that the device 1 to be configured with the network can be connected to the target AP.
In the embodiment of the invention, in the actual working process of the plurality of devices 1 to be distributed, at least one device 1 to be distributed exists, which can be directly connected to the distribution network terminal 0, the device 1 to be distributed and the distribution network terminal 0 adopt the existing WiFi connection mode, the device 1 to be distributed and the distribution network terminal can be generally an intelligent home or other corresponding devices of the Internet of things, and the selection can be specifically carried out according to the requirements. The number of the devices 1 to be connected to the distribution network terminal 0 directly can be selected according to the requirement, and the devices 1 to be connected to the distribution network terminal 0 close to the distribution network terminal 0 can be generally selected to be directly connected with the distribution network terminal 0. Of course, all the devices 1 to be connected to the network distribution terminal 0 may be selected to be connected to the network distribution terminal 0, or the devices 1 to be connected to the adjacent network distribution devices may be connected to each other, and the specific position relationship is based on that after all the devices 1 to be connected to the network can acquire the target AP signal, the effective connection with the target AP can be finally established.
As can be seen from the above description, the distribution network terminal 0 operates in the AP mode, the to-be-distributed network device 1 can be connected to the distribution network terminal 0 according to the agreed SSID and the password corresponding to the agreed SSID, and the connection process between the to-be-distributed network device 1 and the distribution network terminal 0 is consistent with the existing WiFi connection form, and the agreed SSID and the password corresponding to the agreed SSID are stored in advance in each to-be-distributed network device 1, so that the to-be-distributed network device 1 can send a connection request to the distribution network terminal 0 or the distribution network device through the agreed SSID and the password corresponding to the agreed SSID only after scanning the agreed SSID, and after confirmation by the distribution network terminal 0 or the distribution network device, the to-be-distributed network device 1 can be connected to the corresponding distribution network terminal 0 or the distribution network device.
In the embodiment of the present invention, the device 1 to be configured is a device to be networked, and after the device 1 to be configured is connected to the target AP, the device 1 to be configured automatically becomes a network distribution device, that is, the device 1 to be configured connected to the target AP realizes a network distribution, and at this time, the device 1 to be configured becomes a network distribution device. The distribution network device needs to be disconnected from the distribution network terminal 0 or other distribution network devices. In order to quickly realize the distribution network of a plurality of devices 1 to be distributed, the distribution network device successfully connected with the target AP can also send device distribution network information, the devices 1 to be distributed can be connected with the adjacent distribution network devices by using the appointed SSID and the passwords corresponding to the appointed SSID, after connection, the distribution network devices can send device distribution network information to the successfully connected devices 1 to be distributed, according to the target AP information in the device distribution network information, the devices 1 to be distributed can send connection requests to the target AP, and after the devices 1 to be distributed are successfully connected with the target AP, the distribution network is successful, so that the distribution network devices are changed into the distribution network devices. When the distribution network equipment 1 becomes the distribution network equipment and can send the distribution network information of the equipment, the connection state between the distribution network equipment and the target AP can be kept, the connection state between the distribution network equipment and the target AP can also be disconnected, the connection state between the distribution network equipment and the target AP can be specifically selected as required, and the detailed description is omitted here.
When all the devices 1 to be distributed are connected with the target AP and become distribution network devices, the distribution network operation among the devices 1 to be distributed can be realized. In the whole process, the distribution network terminal 0 is only required to send terminal distribution network information to the adjacent to-be-distributed network equipment 1, and the to-be-distributed network equipment 1 is connected with the distribution network terminal 0 and can be connected with the target AP according to the terminal distribution network information. After the device to be configured with the network is connected with the target AP, the device distribution network information can be sent to the adjacent device 1 to be configured with the network, so that the connection between the rest devices 1 to be configured with the network distribution device and the connection with the target AP can be realized, and the purpose of rapidly realizing the distribution of the plurality of devices 1 to be configured with the network can be achieved. In specific implementation, when a plurality of distribution network devices and/or distribution network terminals 0 exist near the to-be-distributed network device 1, the to-be-distributed network device 1 may select a mode with a closest distance or a strongest signal to realize connection with the corresponding distribution network device or distribution network terminal 0.
As shown in fig. 4, the device to be configured 1 includes an information exchange control module 12, and a WiFi STA module 11 and a WiFi AP module 13 connected to the information exchange control module 12;
the information exchange control module 12 can be connected with the distribution network terminal 0, the target AP or the distribution network equipment through the WiFi STA module 11; the information exchange control module 12 can send the device distribution network information through the WiFi AP module 13, so as to implement connection with the device 1 to be distributed.
In the embodiment of the present invention, the WiFi STA module 11 and the WiFi AP module 13 may adopt the existing common form, that is, the WiFi STA module 11 needs to be connected to the WiFi AP to realize network communication. The WiFi AP module 13 is a WiFi access point, that is, an opposite end to which the WiFi device is to be connected, and may be a common access point or a router. The information exchange control module 12 may adopt the existing commonly used implementation form, such as a circuit, a chip, or a microprocessor chip with a control function, which may be specifically selected according to the needs and will not be described herein again.
Further, the device to be networked 1 can operate in a receiving mode or a distribution mode; when the network is distributed, the equipment 1 to be distributed enters a receiving mode;
when the wireless network distribution device works in a receiving mode, the information exchange control module 12 scans nearby appointed APs through the WiFi STA module 11, sends connection requests to the appointed APs by the appointed SSID and the passwords corresponding to the appointed SSID, sends the requests to the target APs according to the obtained target AP information after the connection with the appointed APs is successful, and starts the WiFi AP module 13 by the information exchange control module 12 after the connection with the target APs is successful so that the device 1 to be distributed enters a distribution mode;
when the distribution network equipment works in the distribution mode, the information exchange control module 12 controls the WiFi AP module 13 to be in the working state of the appointed AP, so as to allow the connection between the nearby network equipment 1 to be distributed and the WiFi AP module 13, and the information exchange control module 12 can send the equipment distribution network information to the network equipment 1 to be distributed, which is connected to the WiFi AP module 13, through the WiFi AP module 13.
In the embodiment of the invention, the equipment 1 to be configured works in the receiving mode before the terminal distribution network information or the equipment distribution network information is obtained. In the receiving mode, the information exchange control module 12 controls the WiFi STA module 11 to scan the default AP of the nearby default SSID (the device 1 to be networked can connect with the default AP by using the default SSID and the password corresponding to the default SSID). After the scanning, the WiFi STA module 11 actively connects to the agreed AP, sends a request for reading the distribution network information (terminal distribution network information or device distribution network information), and tries to connect to the target AP after returning the information. If the connection is successful, the working mode is switched, the information exchange control module 12 starts the WiFi AP module 13, establishes an AP point with the agreed SSID as the name, enters the distribution mode, and can send the device distribution network information to the outside.
Specifically, the WiFi STA module 11 is used to implement connection with other AP hotspots, and the opposite end may be a distribution network information distribution hotspot or a target WiFi hotspot. The WiFi AP module 13 is used to start an AP hotspot, and can distribute the device distribution network information to other devices 1 to be distributed. The information exchange control module 12 is configured to control start and stop of the WiFi STA module 11 and the WiFi AP module 13 and read or send data, so as to manage acquisition, maintenance, and sending of distribution network information in the entire system.
Once the device 1 to be distributed enters the network-to-be-distributed mode, the device will first enter the receiving mode. In a receive mode: the information exchange control module 12 starts the WiFi STA module 11 and turns off the WiFi AP module 13. And then controls the WiFi STA module 11 to scan for the agreed SSID. If the scanning is finished, the connection is immediately established, and the distribution process is started. The distribution process includes several steps of mutual authentication confirmation, request sending, request responding, connection confirmation, etc., and the specific process and step implementation of the specific distribution process may adopt the existing common technical means, and the specific implementation process is well known to those skilled in the art and will not be described herein again.
After the receiving mode is completed, it indicates that the correct and effective distribution network information (equipment distribution network information or terminal distribution network information) is received. The received information may then be used to distribute to other devices 1 to be networked for distribution, and the devices may go into distribution mode.
In the distribution mode: the information exchange control module 12 activates the WiFi AP module 13. And waiting for the WiFi STA module 11 of other equipment 1 to be networked to access. When other devices 1 to be distributed access to the network in a receiving mode, a distribution process is started, which comprises several steps of mutual authentication confirmation, request acceptance, request response and the like. In the distribution mode, the information exchange control module 12 may close the WiFi STA module 11, and certainly, may also keep the working state of the WiFi STA module 11, and may specifically select according to actual needs, which is not described herein again.
As shown in fig. 5, in the state transition of the device 1 to be networked, there are two main states: a reception mode and a distribution mode. Specifically, the user operates to enter the distribution network mode, and first enters the receiving mode, that is, prepares to receive the distribution network information. In the receiving mode, a receiving work flow is executed, which includes processes of scanning for an SSID of a default AP, connecting, identifying, sending a request, receiving distribution network information, and the like, and a specific receiving work flow can be realized by a conventional and commonly-used technical means, and a specific realizing process is well known by those skilled in the art and is not described herein again.
And after the receiving process is finished, the information is transferred to an information confirmation state. And confirming the information, namely confirming the received distribution network information. Including attempting to establish a WiFi connection with the target AP in order to confirm the networking information; other ancillary information is confirmed including, but not limited to, user information, task information, and the like.
And if the information is confirmed to be completed successfully, switching to a distribution mode to work. The distribution mode is a passive service mode, i.e. listening for requests and then servicing the requests. The distribution mode starts to work according to a distribution flow, and comprises the steps of waiting for connection, identifying a terminal, receiving a request and sending distribution network information confirmed to be effective before. The distribution mode is repeated monitoring, when no new access equipment exists, the distribution mode is quitted overtime, and the whole process is ended.
As shown in fig. 6, it is a flow chart of a receiving mode of the device 1 to be configured, specifically, the device 1 to be configured is triggered by a user first, and enters a network distribution state. At this time, the device 1 to be networked is in a receiving mode. The information exchange control module 12 controls the WiFi STA module 11 to start working, scans nearby WiFi APs, and checks whether there is an agreed AP (i.e., SSID, such as AP _ CFG, which is described later). If the appointed AP is not scanned, the retry is delayed, and if the retry is overtime, the distribution network state is directly exited.
If the agreed AP is found in the list of WiFi AP names nearby, the information exchange control module 12 controls the WiFi STA module 11 to initiate connection to the agreed AP with the agreed password so as to receive the distribution network information of the distributed target AP.
After establishing connection with the agreed AP, the information exchange control module 12 is responsible for establishing connection of network layer, and then exchanging information (including but not limited to device information of both parties, name and password of target AP). The device information of the two parties can be used for mutual validity verification to prevent misconnection of non-cooperative endpoints. The name and password of the target AP are necessary information of the distribution network.
After the name and password of the target AP are obtained, the information exchange module 12 controls the STA module 11 to initiate connection to the target AP. If the connection is successful, it indicates that the networking information of the target AP is valid, and the network distribution process of the device to be distributed 1 is completed, and becomes a network distribution device, and can be used as an information distribution source of other devices, and can also directly exit. And switching the specific modes according to the selection of the user.
As shown in fig. 7, a flow chart of a distribution mode of the device 1 to be configured with a network, specifically, after the device 1 to be configured with a network receives a valid target AP name and password through a receiving mode, if a user selects to enter the distribution mode, the device to be configured with a network will serve as a distribution AP to work. The distribution mode is favorable for rapidly completing the distribution of a plurality of devices 1 to be distributed, and the distribution mode has exponential improvement compared with the mode of connecting one device each time.
After entering the distribution mode, the information exchange control module 12 controls the WiFi AP module 13 to start up, and establishes a distribution AP hotspot according to an agreed name and password. And waiting for the access of other devices 1 to be distributed.
If the network-to-be-distributed device 1 is to be accessed, the information exchange control module 12 establishes a network service, monitors the appointed port, and waits for the device to initiate a request. When the request packet is received, the information exchange control module 12 decodes the request data, and confirms the validity thereof. After the validity is confirmed, the information control module 12 controls the WiFi AP module 13 to distribute the networking information of the target AP to the accessed device. The device 1 to be networked, which fails to confirm validity, cannot receive a response of the device itself, and the design can protect the password from being revealed.
After receiving the networking information, the accessed device 1 to be connected to the network operates according to its own "receiving mode", and at this time, the device 1 to be connected to the WiFi AP module 13 of the current network distribution device is disconnected.
After the distribution work is completed or the idle time is out, the information exchange control module 12 may turn off the WiFi AP module 13, and exit the distribution mode. And ending the whole distribution network process.
According to the description, the specific distribution network method can be obtained, and the method for rapidly realizing distribution of the plurality of WiFi (wireless fidelity) devices comprises a distribution network terminal 0 and a plurality of to-be-distributed network devices 1, wherein at least one of the plurality of to-be-distributed network devices 1 can be directly connected with the distribution network terminal 0, the distribution network terminal 0 can send terminal distribution network information to the to-be-distributed network devices 1, and the terminal distribution network information comprises target AP (access point) information;
the method comprises the steps that a to-be-configured network device 1 which can be directly connected with a distribution network terminal 0 sends a connection request to the distribution network terminal 0 through an agreed SSID and a password energy corresponding to the agreed SSID, and after connection, the to-be-configured network device 1 can receive terminal distribution network information sent by the distribution network terminal 0; the method comprises the steps that a connection request is sent to a target AP by a to-be-distributed network device 1 according to target AP information in distribution network information of a received terminal, and after the to-be-distributed network device 1 is successfully connected with the target AP, the to-be-distributed network device 1 is disconnected with a distribution network terminal 0 and becomes a distribution network device;
the distribution network equipment can send equipment distribution network information, the equipment distribution network information target AP information, and the equipment 1 to be distributed adjacent to the distribution network equipment can send a connection request to the corresponding distribution network equipment through an agreed SSID and a password corresponding to the agreed SSID;
after the distribution network equipment 1 is connected with the distribution network equipment, the distribution network equipment 1 can receive equipment distribution network information sent by the connected distribution network equipment, the distribution network equipment 1 can send a connection request to a target AP according to the target AP information in the equipment distribution network information, and after the distribution network equipment 1 is successfully connected with the target AP, the distribution network equipment 1 is disconnected from the current connected distribution network equipment and becomes the distribution network equipment.
In summary, when a plurality of devices 1 to be distributed are distributed, the invention has the following advantages:
the reliability is high, the success rate is high: the WiFi AP connection mode is adopted to complete bidirectional communication between the distribution network terminal 0 and the equipment 1 to be distributed, and between the distribution network equipment and the equipment 1 to be distributed, so that data can be exchanged quickly and reliably without being influenced by external factors.
The safety is high: the WiFi AP connection and information confirmation mode is used, the whole process is independent and closed, and therefore the risk of target AP password leakage can be avoided.
The success rate is high: by using the mode of the appointed AP, the probability of failure is greatly reduced as long as software and hardware work normally in connection establishment and information exchange.
The speed is high: each device 1 to be distributed completes distribution as long as it receives valid target AP information, and further works in a distribution mode as a new information distribution node. The distribution network can work in parallel in space, capacity and time, and the speed of the distribution network is improved in an exponential mode.

Claims (5)

1. A system for rapidly realizing distribution of a plurality of WiFi (wireless fidelity) devices is characterized by comprising a distribution network terminal (0) and a plurality of devices (1) to be distributed, wherein at least one of the plurality of devices (1) to be distributed can be directly connected with the distribution network terminal (0), the distribution network terminal (0) can send terminal distribution network information to the devices (1) to be distributed, and the terminal distribution network information comprises target AP (access point) information;
the method comprises the steps that a to-be-configured network device (1) capable of being directly connected with a distribution network terminal (0) can send a connection request to the distribution network terminal (0) through an appointed SSID and a password corresponding to the appointed SSID, and after connection, the to-be-configured network device (1) can receive terminal distribution network information sent by the distribution network terminal (0); the method comprises the steps that a to-be-distributed network device (1) initiates a connection request to a target AP according to target AP information in distribution network information of a received terminal, and after the to-be-distributed network device (1) is successfully connected with the target AP, the to-be-distributed network device (1) is disconnected with a distribution network terminal (0) and becomes a distribution network device;
the method comprises the steps that the distribution network equipment can send equipment distribution network information, the equipment distribution network information comprises target AP information, and a terminal (1) to be distributed adjacent to the distribution network equipment can send a connection request to the corresponding distribution network equipment through an appointed SSID and a password corresponding to the appointed SSID;
after the network distribution equipment (1) is connected with the network distribution equipment, the network distribution equipment information sent by the connected network distribution equipment can be received, the network distribution equipment (1) can send a connection request to a target AP according to target AP information in the network distribution information of the equipment, and after the network distribution equipment (1) is successfully connected with the target AP, the network distribution equipment (1) is disconnected from the current connected network distribution equipment and becomes the network distribution equipment;
the distribution network terminal (0) works in an AP mode, and the terminal distribution network information further comprises user information, terminal information and/or task information;
the equipment (1) to be distributed comprises an information exchange control module (12), a WiFi STA module (11) and a WiFi AP module (13), wherein the WiFi STA module and the WiFi AP module are connected with the information exchange control module (12);
the information exchange control module (12) controls the WiFi STA module (11) to establish connection between the distribution network terminal (0), the target AP or the distribution network equipment; the information exchange control module (12) can send the equipment distribution network information through the WiFi AP module (13) so as to realize the connection with the equipment (1) to be distributed.
2. The system for rapidly implementing a distribution network with a plurality of WiFi devices as claimed in claim 1, wherein: the equipment (1) to be distributed can work in a receiving mode or a distribution mode; when a network is distributed, the equipment (1) to be distributed enters a receiving mode;
when the distribution network equipment works in a receiving mode, the information exchange control module (12) scans nearby appointed APs through the WiFi STA module (11), sends a connection request to the appointed APs according to an appointed SSID and a password corresponding to the appointed SSID, sends a request to the target AP according to the obtained target AP information after the connection with the appointed APs is successful, and starts the WiFi AP module (13) through the information exchange control module (12) after the connection with the target AP is successful so that the equipment (1) to be distributed enters a distribution mode;
when the distribution network distribution system works in a distribution mode, the information exchange control module (12) controls the WiFi AP module (13) to be in an AP-agreed working state so as to allow the connection between the nearby equipment (1) to be distributed and the WiFi AP module (13), and the information exchange control module (12) can send equipment distribution network information to the equipment (1) to be distributed and connected to the WiFi AP module (13) through the WiFi AP module (13).
3. A method for rapidly realizing distribution of a plurality of WiFi devices is characterized by comprising the following steps: the network distribution system comprises a network distribution terminal (0) and a plurality of devices (1) to be distributed, wherein at least one of the devices (1) to be distributed can be directly connected with the network distribution terminal (0), the network distribution terminal (0) can send terminal network distribution information to the devices (1) to be distributed, and the terminal network distribution information comprises target AP information;
the method comprises the steps that a to-be-configured network device (1) capable of being directly connected with a distribution network terminal (0) can send a connection request to the distribution network terminal (0) through an appointed SSID and a password corresponding to the appointed SSID, and after connection, the to-be-configured network device (1) can receive terminal distribution network information sent by the distribution network terminal (0); the method comprises the steps that a to-be-distributed network device (1) initiates a connection request to a target AP according to target AP information in distribution network information of a received terminal, and after the to-be-distributed network device (1) is successfully connected with the target AP, the to-be-distributed network device (1) is disconnected with a distribution network terminal (0) and becomes a distribution network device;
the method comprises the steps that the distribution network equipment can send equipment distribution network information, the equipment distribution network information comprises target AP information, and a terminal (1) to be distributed adjacent to the distribution network equipment can send a connection request to the corresponding distribution network equipment through an appointed SSID and a password corresponding to the appointed SSID;
after the network distribution equipment (1) is connected with the network distribution equipment, the network distribution equipment information sent by the connected network distribution equipment can be received, the network distribution equipment (1) can send a connection request to a target AP according to target AP information in the network distribution information of the equipment, and after the network distribution equipment (1) is successfully connected with the target AP, the network distribution equipment (1) is disconnected from the current connected network distribution equipment and becomes the network distribution equipment;
the distribution network terminal (0) works in an AP mode, and the terminal distribution network information further comprises user information, terminal information and/or task information;
the equipment (1) to be distributed comprises an information exchange control module (12), and a WiFi STA module (11) and a WiFi AP module (13) which are connected with the information exchange control module (12);
the information exchange control module (12) can be connected with the distribution network terminal (0), the target AP or the distribution network equipment through the WiFi STA module (11); the information exchange control module (12) can send the equipment distribution network information through the WiFi AP module (13) so as to realize the connection with the equipment (1) to be distributed.
4. The method for rapidly realizing the distribution network of the plurality of WiFi equipment as claimed in claim 3, wherein: the equipment (1) to be distributed can work in a receiving mode or a distribution mode; when a network is distributed, the equipment (1) to be distributed enters a receiving mode;
when the distribution network equipment works in a receiving mode, the information exchange control module (12) scans nearby appointed APs through the WiFi STA module (11), sends a connection request to the appointed APs according to an appointed SSID and a password corresponding to the appointed SSID, sends a request to the target AP according to the obtained target AP information after the connection with the appointed APs is successful, and starts the WiFi AP module (13) through the information exchange control module (12) after the connection with the target AP is successful so that the equipment (1) to be distributed enters a distribution mode;
when the distribution network management system works in a distribution mode, the information exchange control module (12) controls the WiFi AP module (13) to be in an AP-agreed working state so as to allow the connection between the nearby network equipment to be distributed (1) and the WiFi AP module (13), and the information exchange control module (12) can send equipment distribution network information to the network equipment to be distributed (1) connected to the WiFi AP module (13) through the WiFi AP module (13).
5. The method for rapidly realizing the distribution network of the plurality of WiFi equipment as claimed in claim 4, wherein: after the distribution is completed or the idle time is out, the information exchange control module (12) closes the WiFi AP module (13) to exit the current distribution mode.
CN202010349301.0A 2020-04-28 2020-04-28 System and method for rapidly realizing distribution of multiple WiFi (Wireless Fidelity) devices Active CN111565396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010349301.0A CN111565396B (en) 2020-04-28 2020-04-28 System and method for rapidly realizing distribution of multiple WiFi (Wireless Fidelity) devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010349301.0A CN111565396B (en) 2020-04-28 2020-04-28 System and method for rapidly realizing distribution of multiple WiFi (Wireless Fidelity) devices

Publications (2)

Publication Number Publication Date
CN111565396A CN111565396A (en) 2020-08-21
CN111565396B true CN111565396B (en) 2022-12-02

Family

ID=72074479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010349301.0A Active CN111565396B (en) 2020-04-28 2020-04-28 System and method for rapidly realizing distribution of multiple WiFi (Wireless Fidelity) devices

Country Status (1)

Country Link
CN (1) CN111565396B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132989B (en) * 2021-04-20 2023-09-15 宁波奥克斯电气股份有限公司 Network distribution method and intelligent home system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507330A (en) * 2016-09-26 2017-03-15 海尔优家智能科技(北京)有限公司 A kind of equipment networking collocation method and device
CN108063702A (en) * 2017-07-27 2018-05-22 宁波方太厨具有限公司 A kind of apparatus self-adaptation matches somebody with somebody network method
CN109495358A (en) * 2018-12-10 2019-03-19 美的集团武汉制冷设备有限公司 Household electrical appliance match network method and distribution network systems
CN109996314A (en) * 2017-12-29 2019-07-09 阿里巴巴集团控股有限公司 A kind of methods, devices and systems to distribution net equipment access network hotspot equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018104006A1 (en) * 2016-12-08 2018-06-14 British Telecommunications Public Limited Company Configuration of wireless-equipped devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507330A (en) * 2016-09-26 2017-03-15 海尔优家智能科技(北京)有限公司 A kind of equipment networking collocation method and device
CN108063702A (en) * 2017-07-27 2018-05-22 宁波方太厨具有限公司 A kind of apparatus self-adaptation matches somebody with somebody network method
CN109996314A (en) * 2017-12-29 2019-07-09 阿里巴巴集团控股有限公司 A kind of methods, devices and systems to distribution net equipment access network hotspot equipment
CN109495358A (en) * 2018-12-10 2019-03-19 美的集团武汉制冷设备有限公司 Household electrical appliance match network method and distribution network systems

Also Published As

Publication number Publication date
CN111565396A (en) 2020-08-21

Similar Documents

Publication Publication Date Title
CN111565137A (en) System and method for binding WiFi distribution network and equipment
RU2564251C2 (en) Dynamic creation of account in protected network with wireless access point
CN102315864B (en) For the method and apparatus of mobile device Point-to-Point Data Transmission
CN105682093A (en) Wireless network access method and access device, and client
US8638689B2 (en) Communication apparatus and communication parameter configuration method thereof
US20240073019A1 (en) Cloud based wifi network setup for multiple access points
CN105072012A (en) Quick network access method of intelligent device
US8547946B2 (en) Efficient creation of WLAN connections
US8984287B2 (en) Wireless personal area network access method based on primitive
US9001762B2 (en) Communication method between a device and another device
CN101621800A (en) Method for exchanging authentication information between wireless terminal and wireless router
KR20160137919A (en) Method and apparatus for providing information
CN103874065A (en) Method and device for judging user position abnormity
CN101616017A (en) Method, equipment and system that network application apparatus is configured
US20230291799A1 (en) Method and Apparatus of Network Configuration for Internet-of-Things Device
CN113068181B (en) Multi-type intelligent terminal safety network access method
CN111565396B (en) System and method for rapidly realizing distribution of multiple WiFi (Wireless Fidelity) devices
CN102970680A (en) Method and device for network switching
US10070289B1 (en) Client association for provisioning devices in a communication network
WO2013189533A1 (en) Device to machine communications
CN103442450A (en) Wireless communication method and wireless communication equipment
US20190261436A1 (en) Device networking method, apparatus and system
CN103281693A (en) Wireless communication authentication method, network translation equipment and terminal
WO2015196687A1 (en) Authentication management method and apparatus, wlan access device and communication system
WO2022068669A1 (en) Session establishment method and apparatus, access network device and storage medium

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