CN111787595A - Network distribution method, network distribution equipment and terminal equipment - Google Patents

Network distribution method, network distribution equipment and terminal equipment Download PDF

Info

Publication number
CN111787595A
CN111787595A CN202010301056.6A CN202010301056A CN111787595A CN 111787595 A CN111787595 A CN 111787595A CN 202010301056 A CN202010301056 A CN 202010301056A CN 111787595 A CN111787595 A CN 111787595A
Authority
CN
China
Prior art keywords
channel
access point
distribution network
beacon signal
wireless access
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
Application number
CN202010301056.6A
Other languages
Chinese (zh)
Other versions
CN111787595B (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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010301056.6A priority Critical patent/CN111787595B/en
Publication of CN111787595A publication Critical patent/CN111787595A/en
Application granted granted Critical
Publication of CN111787595B publication Critical patent/CN111787595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a network distribution method, network distribution equipment and terminal equipment, and relates to the technical field of wireless communication. One embodiment of the method comprises: after the distribution network equipment enters the AP mode, a target channel is set for a wireless access point of the distribution network equipment, and a beacon signal is sent through the target channel; detecting whether the wireless access point is connected by the terminal equipment, if the wireless access point is not connected by the terminal equipment, switching a current channel used by a wireless communication module of the distribution network equipment into a new channel, and sending a beacon signal through the new channel so that the terminal equipment receives the beacon signal on a corresponding channel and is connected with the wireless access point; and if the wireless access point is connected by the terminal equipment, receiving network configuration data from the terminal equipment through a target channel to complete the distribution network. According to the method, the wireless access point channel is kept unchanged, and the beacon signal is sent by circularly switching the channel, so that the terminal equipment can be quickly connected with the wireless access point, the distribution network speed is increased, and the distribution network flow is simplified.

Description

Network distribution method, network distribution equipment and terminal equipment
Technical Field
The invention relates to the technical field of wireless communication, in particular to a network distribution method, network distribution equipment and terminal equipment.
Background
With the development of the internet of things technology, more and more electronic devices (such as air conditioners, sockets, refrigerators, and the like) are internally configured with WiFi (Wireless-Fidelity) modules, so that the electronic devices can perform information interaction with other devices through the internet. We refer to such devices as WiFi devices. Before the WiFi device accesses the internet, a network distribution needs to be performed, that is, network configuration data required for connecting a router is sent to the WiFi device by a terminal device (e.g., a mobile phone) so that the WiFi device can be connected to the router, and network communication is achieved through the router.
The existing part of WiFi equipment is only provided with a WiFi module, but is not provided with a display module, an input module and other human-computer interaction modules, so that the existing part of WiFi equipment cannot display and input information. When the devices are connected to the router, the devices are generally distributed in any one of three ways: a softAP mode, a one-key distribution network mode and a rapid distribution network mode. In the softAP mode, the WiFi module itself acts as a router, and other devices can connect to the signal transmitted by the module.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
the operation of the softAP mode is complex, and a user can complete the distribution network only by multi-step operation; the reliability and compatibility of the one-key distribution network mode are poor, and the distribution network failure rate is high; the rapid distribution network mode relates to bottom data, does not support the use of a mobile phone distribution network, and has poor compatibility.
Disclosure of Invention
In view of this, embodiments of the present invention provide a network distribution method, a network distribution device, and a terminal device, where the network distribution method enables the terminal device to quickly connect to a wireless access point by keeping the channel of the wireless access point unchanged and circularly switching the channel to send a beacon signal, so that the network distribution speed is increased, the network distribution process is simplified, and the network distribution method has a high success rate of network distribution, high reliability, and good compatibility.
In order to achieve the above object, according to an aspect of the embodiments of the present invention, a network distribution method is provided.
The network distribution method provided by the embodiment of the invention comprises the following steps: after a distribution network device enters an AP mode, a target channel is set for a wireless access point of the distribution network device, and a beacon signal is sent through the target channel; wherein the beacon signal comprises an access point identification and a target channel identification; detecting whether the wireless access point is connected by terminal equipment, if the wireless access point is not connected by the terminal equipment, switching a current channel used by a wireless communication module of the distribution network equipment into a new channel, sending the beacon signal through the new channel so that the terminal equipment receives the beacon signal on a corresponding channel, and connecting the wireless access point according to the access point identifier and the target channel identifier; and if the wireless access point is connected by the terminal equipment, receiving network configuration data from the terminal equipment through the target channel to complete the network distribution.
Optionally, switching a current channel used by the wireless communication module of the network distribution device to a new channel includes: determining a next channel of a current channel used by a wireless communication module of the distribution network equipment according to a set channel switching sequence; and switching the current channel to the next channel.
Optionally, the set channel switching sequence satisfies any one or more of the following principles: a preset interval is formed between adjacent channels with the channel numbers; the channel switching sequence includes switching sequences of all channels supported by a wireless local area network standard adopted by the distribution network equipment.
Optionally, after the step of transmitting the beacon signal through the new channel, the method further comprises: cutting back: after the beacon signal is sent, switching the wireless communication module from the new channel back to the target channel; and circularly executing the step of detecting whether the wireless access point is connected by the terminal equipment, switching a channel to send the beacon signal when the wireless access point is not connected, and the step of switching back until the distribution network equipment detects that the wireless access point is connected by the terminal equipment.
To achieve the above object, according to still another aspect of the embodiments of the present invention, a network distribution method is provided.
The network distribution method provided by the embodiment of the invention comprises the following steps: scanning a plurality of channels, and receiving a beacon signal on a channel corresponding to the beacon signal sent by the distribution network equipment; the beacon signal comprises an access point identifier and a target channel identifier, and is sent through a target channel set for a wireless access point or a new channel switched circularly after the distribution network equipment enters an AP mode; acquiring the access point identification and the target channel identification from the beacon signal, and connecting the wireless access point through a corresponding target channel according to the access point identification and the target channel identification; and sending network configuration data through the target channel so that the distribution network equipment completes distribution network according to the network configuration data.
Optionally, after the step of receiving the beacon signal on a channel corresponding to the distribution network device sending the beacon signal, the method further includes: outputting prompt information; the prompt information is used for prompting that the distribution network equipment is in a distribution network mode; acquiring the access point identifier and the target channel identifier from the beacon signal, including: and after receiving a connection confirmation instruction, acquiring the access point identifier and the target channel identifier from the beacon signal.
In order to achieve the above object, according to another aspect of the embodiments of the present invention, a distribution network device is provided.
The distribution network equipment of the embodiment of the invention comprises: the device comprises a setting module, a sending module and a receiving module, wherein the setting module is used for setting a target channel for a wireless access point after entering an AP mode and sending a beacon signal through the target channel; wherein the beacon signal comprises an access point identification and a target channel identification; the detection module is used for detecting whether the wireless access point is connected by the terminal equipment; the switching module is used for switching the current channel used by the wireless communication module of the distribution network equipment into a new channel when the wireless access point is not detected to be connected by the terminal equipment, transmitting the beacon signal through the new channel so that the terminal equipment receives the beacon signal on the corresponding channel, and connecting the wireless access point according to the access point identifier and the target channel identifier; and the distribution network module is used for receiving network configuration data from the terminal equipment through the target channel after the wireless access point is detected to be connected by the terminal equipment, so as to complete distribution network.
Optionally, the switching module is further configured to: determining a next channel of a current channel used by a wireless communication module of the distribution network equipment according to a set channel switching sequence; and switching the current channel to the next channel.
Optionally, the set channel switching sequence satisfies any one or more of the following principles: a preset interval is formed between adjacent channels with the channel numbers; the channel switching sequence includes switching sequences of all channels supported by a wireless local area network standard adopted by the distribution network equipment.
Optionally, the apparatus further comprises: a switch-back module, configured to switch back the wireless communication module from the new channel to the target channel after the beacon signal is sent; and the circulating module is used for circularly executing the processing processes of the detecting module, the switching module and the switching-back module until the distribution network equipment detects that the wireless access point is connected by the terminal equipment.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a terminal device.
A terminal device according to an embodiment of the present invention includes: the receiving module is used for scanning a plurality of channels and receiving the beacon signals on the channels corresponding to the beacon signals sent by the distribution network equipment; the beacon signal comprises an access point identifier and a target channel identifier, and is sent through a target channel set for a wireless access point or a new channel switched circularly after the distribution network equipment enters an AP mode; a connection module, configured to obtain the access point identifier and the target channel identifier from the beacon signal, and connect the wireless access point through a corresponding target channel according to the access point identifier and the target channel identifier; and the sending module is used for sending the network configuration data through the target channel so that the distribution network equipment completes distribution network according to the network configuration data.
Optionally, the apparatus further comprises: the output module is used for outputting prompt information; the prompt information is used for prompting that the distribution network equipment is in a distribution network mode; the connection module is further configured to: and after receiving a connection confirmation instruction, acquiring the access point identifier and the target channel identifier from the beacon signal.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement a network distribution method according to an embodiment of the present invention.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention stores thereon a computer program, which, when executed by a processor, implements a network distribution method of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: the wireless access point channel of the distribution network equipment is kept unchanged, and the beacon signal is sent by circularly switching the channel, so that the terminal equipment can be quickly connected with the wireless access point, the distribution network speed is improved, the distribution network process is simplified, and the distribution network has high success rate, high reliability and good compatibility; switching channels for sending beacon signals according to a set channel switching sequence to avoid interference of adjacent channels to an application layer; after the beacon signal is sent, switching back to the channel where the wireless access point is located immediately to ensure the stability of the wireless access point; the channel switching sequence comprises all channels, so that the channels can be traversed when the channels are switched, and the terminal equipment can be ensured to be successfully connected with the wireless access point.
One embodiment of the above invention has the following advantages or benefits: the terminal equipment acquires the access point identification and the target channel identification from the beacon signal by receiving the beacon signal, and then establishes connection with the corresponding wireless access point, so that a user does not need to manually select distribution network equipment, and the distribution network flow is simplified; after the terminal equipment receives the beacon signal, the user is automatically prompted, the user can automatically complete the distribution network by sending a connection confirmation instruction through the terminal equipment, the distribution network operation steps of the user are reduced, and the user experience is improved; the distribution network equipment sends the beacon signals through the target channel where the wireless access point is located and the switching channel, so that the terminal equipment can receive the information of the distribution network equipment for multiple times in the channel scanning process, the distribution network success rate is improved, and the distribution network speed is increased.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of the main steps of a network distribution method according to an embodiment of the present invention;
fig. 2 is a schematic main flow diagram of a network distribution method according to another embodiment of the present invention;
FIG. 3 is a timing diagram of a method of distributing a network according to yet another embodiment of the present invention;
fig. 4 is a schematic view illustrating a channel switching principle of a distribution network method according to still another embodiment of the present invention;
fig. 5 is a schematic diagram of the main modules of a distribution network device according to an embodiment of the invention;
fig. 6 is a schematic diagram of main modules of a terminal device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of the main modules of a distribution network system according to an embodiment of the invention;
FIG. 8 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 9 is a schematic diagram of a computer apparatus suitable for use in an electronic device to implement an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As described in the background art, WiFi devices configured with only WiFi modules, such as non-screen WiFi devices, cannot directly inform which router they connect and the password of the router, so that a network needs to be distributed in three special ways, namely, a softAP way, a one-key network distribution way, and a rapid network distribution way.
The softAP mode is to enable the WiFi device to be in a Wireless Access Point (AP) mode, and then connect the WiFi device to the AP using the terminal device, establish network communication, and send network configuration data to the WiFi device. In this way, the user needs to perform multiple operations: enabling the WiFi equipment to work in an AP mode; selecting a device to be distributed by using an Application (APP) of a terminal device; inputting the name and the password of the router; starting the softAP network distribution, namely, the AP hotspot connected with the WiFi equipment, sending network configuration data, and then manually or automatically switching back to the original hotspot.
The network distribution mode with one key is to make the WiFi equipment in a promiscuous (sniffer) mode, then use the terminal equipment to send the broadcast or multicast packet after special processing, and the WiFi equipment obtains the network configuration data after the packet capturing and filtering processing. The rapid distribution network mode is that data interaction is performed between the WiFi equipment and the terminal equipment through 802.11 wireless communication management frames (probe request/response) so as to transmit network configuration data to the WiFi equipment. Wherein, the probe request is a probe request frame, and the proberesponse is a probe response frame for responding to the probe request frame.
Among the three modes, the softAP mode has stable and reliable communication and good compatibility, but has complex operation and can complete the distribution network only by multi-step operation of a user; although the one-key distribution network mode is simple to operate, the reliability and the compatibility are poor, and the distribution network failure rate is high; although the rapid network distribution mode is simple to operate and good in stability, the rapid network distribution mode relates to bottom layer data, does not support a mobile phone network distribution and is poor in compatibility. In view of the above problems, an embodiment of the present invention provides a method for distributing network that solves the above disadvantages and is compatible with the above advantages, and the following details are provided.
Fig. 1 is a schematic diagram of main steps of a network distribution method according to an embodiment of the present invention. As shown in fig. 1, the network distribution method according to the embodiment of the present invention is executed by a network distribution device, and mainly includes the following steps:
step S101: after the distribution network equipment enters the AP mode, a target channel is set for a wireless access point of the distribution network equipment, and a beacon signal is sent through the target channel. The network distribution equipment, i.e. one or more devices to be connected to the wireless local area network, may be any internet of things equipment based on the Wireless Local Area Network (WLAN) technology, including but not limited to intelligent household appliances such as sound boxes, sockets, table lamps, air conditioners, refrigerators, washing machines, kitchen appliances (induction cookers, electric cookers, smoke exhaust ventilators), and the like.
After the distribution network device enters the AP mode, the wireless communication module (i.e., WiFi module) of the distribution network device is a wireless access point, which is also called an AP hotspot and can be connected. And randomly selecting a channel from the channels supported by the wireless local area network standard adopted by the distribution network equipment, and using the selected channel as a target channel adopted by the wireless access point for data transmission. The wireless access point then transmits a beacon signal to the surrounding space over the target channel. Wherein the beacon signal includes an access point identification and a target channel identification of the wireless access point.
Step S102: detecting whether the wireless access point is connected by a terminal device, and if the wireless access point is not connected by the terminal device, executing a step S103; if the wireless access point has been connected by the terminal device, step S104 is performed. After the distribution network equipment sends the beacon signal each time, whether the wireless access point is connected with a certain terminal equipment is detected.
Step S103: and switching the current channel used by the wireless communication module of the distribution network equipment into a new channel, sending the beacon signal through the new channel so that the terminal equipment receives the beacon signal on the corresponding channel, connecting the wireless access point according to the access point identifier and the target channel identifier, and executing the step S102.
And if the wireless access point is not connected by the terminal equipment, switching the current channel used by the wireless communication module of the distribution network equipment into a new channel, and sending a beacon signal to the surrounding space by using the switched new channel for announcing the existence of the distribution network equipment. The initial value of the current channel is a target channel, and the new channel is a currently unused channel in the channels supported by the wireless communication module.
The terminal equipment scans a plurality of channels to obtain beacon signals in the coverage area of the terminal equipment, then analyzes an access point identifier and a target channel identifier from the beacon signals, and adopts the target channel corresponding to the target channel identifier to connect a corresponding wireless access point.
Step S104: and receiving network configuration data from the terminal equipment through the target channel to complete the distribution network. If the wireless access point is connected by the terminal equipment, the channel switching is stopped, network communication is established with the terminal equipment, network configuration data sent by the terminal equipment is received, and the wireless access point is connected to a corresponding router based on a Service Set Identifier (SSID) and a password carried in the network configuration data, so that the distribution network is realized.
Fig. 2 is a schematic diagram of main steps of a network distribution method according to another embodiment of the present invention. As shown in fig. 2, the network distribution method according to the embodiment of the present invention is executed by a terminal device, and mainly includes the following steps:
step S201: and scanning a plurality of channels, and receiving the beacon signals on the channels corresponding to the beacon signals sent by the distribution network equipment. Wherein the beacon signal includes an access point identification and a target channel identification. After the distribution network equipment enters the AP mode, the beacon signal is sent through a target channel set for a wireless access point of the distribution network equipment and a new channel which is switched circularly. The terminal equipment scans each channel of the WiFi module, detects the beacon signal of each channel when scanning each channel, and receives the beacon signal sent by the distribution network equipment on the channel.
Step S202: and acquiring the access point identification and the target channel identification from the beacon signal, and connecting the wireless access point through a corresponding target channel according to the access point identification and the target channel identification. And after receiving the beacon signal, the terminal equipment acquires the access point identification and the target channel identification, and then is connected with the wireless access point of the distribution network equipment corresponding to the access point identification through the corresponding target channel.
Step S203: and sending network configuration data through the target channel so that the distribution network equipment completes distribution network according to the network configuration data. After the terminal device is successfully connected with the wireless access point of the distribution network device, the terminal device can send network configuration data to the wireless access point, wherein the network configuration data comprises an SSID (service set identifier) and a password of the router. And the distribution network equipment is connected to the corresponding router according to the SSID and the password of the router, so that the distribution network is realized.
Fig. 3 is a timing diagram of a network distribution method according to still another embodiment of the present invention. As shown in fig. 3, the network distribution method according to the embodiment of the present invention is implemented by a network distribution device and a terminal device, and mainly includes the following steps:
step S301: the distribution network equipment enters an AP mode, sets a target channel for an AP hotspot of the distribution network equipment, and sends a beacon signal through the target channel. After the distribution network equipment enters the AP mode, the distribution network equipment is equivalent to a router, and then a channel can be randomly selected from all channels supported by a wireless local area network standard adopted by the distribution network equipment as a target channel. No matter the current main distribution network equipment is 802.11b/g or 802.11b/g/n, 13 channels are generally supported, and as the WiFi module is arranged in the distribution network equipment in the embodiment of the invention, one channel can be randomly selected from 1-13 channels of the WiFi module in the distribution network equipment as a target channel in the embodiment.
The beacon signal comprises an access point identifier and a target channel identifier, the access point identifier is used for indicating an AP hot spot name, and the specific equipment of the distribution network can be known through the AP hot spot name, so that the equipment information can be conveniently inquired; the target channel identification is the channel number of the selected target channel, say 6. In an embodiment, the Beacon signal is a Beacon frame (Beacon frame) including an access point identifier, a target channel identifier, a timestamp for synchronization, a transmission interval, and the like. Beacon refers to regular wireless signals which are sent at regular intervals in sequence at regular time in wireless equipment, and the Beacon is mainly used for positioning and synchronous use.
Step S302: the distribution network equipment detects whether the AP hot spot is connected by the terminal equipment, if the AP hot spot is not connected by the terminal equipment, the step S303 is executed; if the AP hotspot is connected by the terminal device, step S306 is performed. After the distribution network equipment sends the beacon signal each time, whether the terminal equipment is connected with the AP hotspot of the distribution network equipment is detected, and when the terminal equipment is not connected, the beacon signal is sent by the circulating channel switching to declare the existence of the terminal equipment, and the channel switching is stopped until the distribution network equipment detects that the terminal equipment is connected with the AP hotspot of the terminal equipment.
Step S303: and switching the current channel used by the wireless communication module of the distribution network equipment to a new channel according to the set channel switching sequence, transmitting a beacon signal through the new channel, and executing the step S302. And presetting a channel switching sequence, determining a next channel of the current channel based on the channel switching sequence under the condition that the distribution network equipment detects that the AP hotspot is not connected by the terminal equipment, and sending a beacon signal by taking the next channel as a new channel. In an embodiment, the channel switching order satisfies one or more of the following principles: and a preset interval is formed between adjacent channels of the channel numbers, and the preset interval comprises the switching sequence of all channels supported by the wireless local area network standard adopted by the distribution network equipment.
As described above, the distribution network device generally supports 1-13 channels, and therefore, this step may cyclically switch 1-13 channels of the WiFi module in the distribution network device, and may also cyclically switch 12 channels other than the target channel, and after each channel switching, the beacon signal is sent using the switched channel to announce its existence. If the target channel is the same as the switched channel, the switching process is not needed, and the next channel switching can be carried out after waiting for the channel switching time interval.
It should be noted that, while the distribution network device announces its own existence, the target channel of the AP hotspot is kept unchanged, so that the AP hotspot can stably wait for the access of the terminal device. The channel switching mode can enable the terminal equipment to detect the distribution network equipment in the STA mode, and can also improve the success rate of the terminal equipment in scanning the AP hot spot. The STA mode is a Station mode, and when the device works in the Station mode, the device does not accept wireless access but can connect to an AP hotspot.
Step S304: the terminal device scans a plurality of channels to receive the beacon signal on a channel corresponding to the beacon signal transmitted by the distribution network device. The terminal device scans the 1-13 channels. The sequence of scanning each channel by the terminal device may be a mode of scanning channel 1 first, then scanning channels 2 and 3, and finally scanning channel 13, or the scanning sequence may be a sequence of scanning common channels first, such as scanning channel 6 first, and then scanning other channels.
When scanning each channel, the terminal device stays for a set scanning time in each channel to detect the beacon signal of the corresponding channel, and receives the beacon signal sent by the distribution network device on the corresponding channel. For example, when the terminal device scans channel 1, the distribution network device is transmitting a beacon signal in channel 1, and the terminal device may detect the beacon signal at this time.
The nature of the terminal equipment scanning channels is channel switching, but the frequency of the channel switching is lower than that of the distribution network equipment. That is to say, when the terminal device stays in a certain channel, the distribution network device has switched a plurality of channels, so that the terminal device can receive the beacon signal sent by the distribution network device for a plurality of times by switching the channels. And the distribution network equipment can continuously send beacon signals in the target channel, so that the success rate of scanning AP hot spots by the terminal equipment can be improved, and the distribution network speed is further improved.
Step S305: and the terminal equipment acquires the access point identification and the target channel identification from the beacon signal and connects the corresponding AP hotspot according to the access point identification and the target channel identification. And after receiving the beacon signal, the terminal equipment acquires the access point identification and the target channel identification, and then connects the AP hotspot corresponding to the access point identification through the corresponding target channel. For example, if the target channel identifier is 6 and the current channel where the terminal device is located is channel 1, the terminal device is switched from channel 1 to channel 6 and then connected to the AP hotspot of the distribution network device.
Step S306: and the distribution network equipment sends an authentication request to the terminal equipment. And after the AP hot spot of the distribution network equipment is connected, TCP/IP network communication can be carried out immediately. And the TCP/IP establishes connection and data communication, the distribution network equipment can know the connection and the data communication, and the Beacon frame can be stopped from being sent at the moment to carry out the next operation.
After the distribution network equipment confirms that the terminal equipment is successfully connected with the AP hotspot, the terminal equipment and the distribution network equipment can establish network communication. Before programming, the distribution network equipment firstly goes to a developer background for registration and creation, and then information generated by the developer background is written into an internal program, wherein the information comprises key information issued by a cloud, and the key information can be used for security authentication.
Step S307: the terminal equipment acquires authentication information according to the access point identification, encrypts network configuration data by using the authentication information, and sends the encrypted network configuration data to the distribution network equipment through a target channel. Here, the authentication information is key information. When the terminal equipment scans the AP hotspot, the key corresponding to the distribution network equipment is inquired from the cloud according to the access point identification of the beacon signal, the key is used for encrypting the network configuration data, and the network configuration data is sent to the distribution network equipment.
In an embodiment, the network configuration data includes the SSID of the router, the password of the router, and other information. Other information here is some information needed by the distribution network, such as: the method comprises the steps of obtaining a server domain name to be connected after the network distribution of the network distribution equipment is finished, and obtaining user binding information required after the network distribution equipment is connected with a cloud.
Step S308: and the distribution network equipment decrypts the received encrypted network configuration data and is connected to a corresponding router according to the obtained decrypted data, so that the distribution network is realized. The distribution network equipment decrypts the network configuration data by using the key thereof, and if the decryption is successful, the security authentication is passed. And then, according to the SSID and the password in the network configuration data obtained by decryption, the network configuration data can be connected to corresponding router equipment to realize network configuration.
It is understood that, after the beacon signal is transmitted through the target channel in step S301, the steps of switching the channel and transmitting the beacon signal through the new channel in step S303 may be performed first, and then the step of detecting whether the AP hotspot is connected by the terminal device in step S302 may be performed. And the execution of steps S301 to S303 by the distribution network device does not affect the terminal device to scan the channel to obtain the beacon signal in step S304 and to connect the AP hotspot in step S305.
In a preferred embodiment, after receiving the beacon signal in step S304, the terminal device may output a prompt message, and after the user confirms, automatically connect to the AP hotspot of the distribution network device. The output prompt information can be a pop-up window prompt, a voice prompt and the like. The prompt aims at informing the user that the distribution network equipment is in the distribution network mode, and the user can click a button to distribute the network to the equipment. For the user, the embodiment can automatically complete the distribution network only by clicking the button for starting the distribution network or other indication terminal equipment to start the distribution network after receiving the prompt message, thereby reducing the step of selecting the equipment to be distributed through the APP by the user and simplifying the distribution network process.
It should be noted that, for terminal devices that have already been distributed with a network, that is, terminal devices that have already established connection with a router, such as a refrigerator, a smart speaker, etc., the SSID and the password of the connected router can be directly acquired, the distribution of the network is automatically completed, and steps of inputting the name and the password of the router by a user can be further reduced. For terminal equipment such as a mobile phone and the like, if the SSID and the password of the router are stored, the network distribution can be automatically completed; if it does not store the SSID and password of the router, it still needs to enter the router name and password.
According to the embodiment, the beacon signals are transmitted through the switching channel in the AP mode, so that the stability and reliability of the distribution network are ensured, the operation is simple and convenient, and the distribution network flow is simplified. The method is suitable for a mobile phone APP to supply a network for the distribution network equipment, and is compatible with intelligent equipment such as a refrigerator and an intelligent sound box to supply the network for the distribution network equipment.
Fig. 4 is a schematic view illustrating a channel switching principle of a network distribution method according to still another embodiment of the present invention. As shown in fig. 4, the channel 6 is a target channel set by the AP hotspot. In the channel switching process of step S303, any one or more of the following three switching policies need to be satisfied: switching back to the target channel after the beacon signal is sent; switching channels by adopting a mode of interval hopping; all channels are traversed.
The interval hopping is that a plurality of channels hop at intervals according to the channel numbers, so that the longer the interval between the channels with adjacent numbers, the better. In the embodiment, the interval hopping is realized by presetting a channel switching sequence, and the numbered adjacent channels have a preset interval. The specific value of the interval can be set by self. When the distribution network equipment detects that the wireless access point is not connected by the terminal equipment, the current channel used by the wireless communication module can be switched to the next channel according to the set channel switching sequence.
For example, the channel switching sequence of any two adjacent channels with the number 2 channels apart is as follows: channel 1 → channel 6 → channel 11 → channel 2 → channel 7 → channel 12 → channel 3 → channel 8 → channel 13 → channel 4 → channel 9 → channel 5 → channel 10, and the current channel is channel 1, the next channel is channel 6, and the wireless communication module is switched from channel 1 to channel 6, and the beacon signal is transmitted from channel 6. And the channel is switched by adopting a mode of interval hopping, so that the interference of adjacent channels to an application layer during hopping can be eliminated.
In a preferred embodiment, after the beacon signal is sent in step S103, the target channel where the AP hotspot is located is immediately switched back, and then step S102 is executed, so that the AP hotspot can be ensured to be stable. Traversing all channels can ensure that the terminal equipment can be successfully connected with the AP hot spot. In the embodiment, the channel traversal is ensured by including the switching sequence of all channels supported by the wireless local area network standard adopted by the distribution network equipment in the channel switching sequence.
In another preferred embodiment, the channel switching satisfies the above three switching strategies. Traversing channels 1-13 according to a preset channel switching sequence, switching from a target channel to a traversed current channel in the traversing process, transmitting a beacon signal through the current channel, and switching back to the target channel after the beacon signal is transmitted; and repeatedly executing the process until the channel traversal is finished, or the distribution network equipment detects that the AP hot spot is connected by the terminal equipment. And if the AP hot spot is not connected by the terminal equipment after the current round of channel traversal is finished, continuing the next round of channel switching.
In conjunction with fig. 3, in this embodiment, a round of channel switching process, i.e., channel 6 → channel 1 → channel 6 → channel 11 → channel 6 → channel 2 → channel 6 → channel 7 → channel 6 → channel 12 → channel 6 → channel 3 → channel 6 → channel 8 → channel 6 → channel 13 → channel 6 → channel 4 → channel 6 → channel 9 → channel 6 → channel 5 → channel 6 → channel 10 → channel 6. In the process, if the distribution network equipment detects that the AP hotspot is connected by the terminal equipment, the channel switching is stopped, and the beacon signal is stopped being sent; and if the AP hot spot is not connected by the terminal equipment after the traversal is finished, continuing the next round of circulation.
According to the network distribution method, the wireless access point channel of the network distribution equipment is kept unchanged, and the beacon signal is sent by circularly switching the channel, so that the terminal equipment can be quickly connected with the wireless access point, the network distribution speed is improved, the network distribution process is simplified, and the network distribution success rate is high, the reliability is high, and the compatibility is good; switching channels for sending beacon signals according to a set channel switching sequence to avoid interference of adjacent channels to an application layer; after the beacon signal is sent, switching back to the channel where the wireless access point is located immediately to ensure the stability of the wireless access point; the channel switching sequence comprises all channels, so that the channels can be traversed when the channels are switched, and the terminal equipment can be ensured to be successfully connected with the wireless access point.
Fig. 5 is a schematic diagram of main modules of a distribution network device according to an embodiment of the present invention. As shown in fig. 5, a distribution network device 500 according to an embodiment of the present invention mainly includes:
a setting module 501, configured to set a target channel for a wireless access point after entering an AP mode, and send a beacon signal through the target channel. After the distribution network device enters the AP mode, the WiFi module of the distribution network device is an AP hotspot and can be connected.
And randomly selecting a channel from the channels supported by the wireless local area network standard adopted by the distribution network equipment, and using the selected channel as a target channel adopted by the wireless access point for data transmission. The wireless access point then transmits a beacon signal to the surrounding space over the target channel. Wherein the beacon signal includes an access point identification and a target channel identification of the wireless access point.
A detecting module 502, configured to detect whether the wireless access point is connected by a terminal device. After the distribution network equipment sends the beacon signal each time, whether the wireless access point is connected with a certain terminal equipment is detected.
A switching module 503, configured to switch, when it is detected that the wireless access point is not connected by the terminal device, a current channel used by the wireless communication module of the distribution network device to a new channel, send the beacon signal through the new channel, so that the terminal device receives the beacon signal on a corresponding channel, and connect the wireless access point according to the access point identifier and the target channel identifier.
If the wireless access point is not connected by the terminal equipment, the current channel used by the wireless communication module of the distribution network equipment is switched to a new channel, and a beacon signal is sent to the surrounding space by using the switched new channel for announcing the existence of the distribution network equipment. The initial value of the current channel is a target channel, and the new channel is a currently unused channel in the channels supported by the wireless communication module.
The terminal equipment scans a plurality of channels to obtain beacon signals in the coverage area of the terminal equipment, then analyzes an access point identifier and a target channel identifier from the beacon signals, and adopts the target channel corresponding to the target channel identifier to connect a corresponding wireless access point.
A distribution network module 504, configured to receive, through the target channel, network configuration data from the terminal device after detecting that the wireless access point is connected by the terminal device, so as to complete a distribution network. And if the wireless access point is connected by the terminal equipment, stopping switching channels, establishing network communication with the terminal equipment, receiving network configuration data sent by the terminal equipment, and connecting to a corresponding router based on an SSID (service set identifier) and a password carried in the network configuration data to realize a distribution network.
Fig. 6 is a schematic diagram of main blocks of a terminal device according to an embodiment of the present invention. As shown in fig. 6, a terminal device 600 according to an embodiment of the present invention mainly includes:
the receiving module 601 is configured to scan multiple channels, and receive a beacon signal on a channel corresponding to the beacon signal sent by the distribution network device. Wherein the beacon signal includes an access point identification and a target channel identification. After the distribution network equipment enters the AP mode, the beacon signal is sent through a target channel set for a wireless access point of the distribution network equipment and a new channel which is switched circularly. The terminal equipment scans each channel of the WiFi module, detects the beacon signal of each channel when scanning each channel, and receives the beacon signal sent by the distribution network equipment on the channel.
A connection module 602, configured to obtain the access point identifier and the target channel identifier from the beacon signal, and connect the wireless access point through a corresponding target channel according to the access point identifier and the target channel identifier. And after receiving the beacon signal, the terminal equipment acquires the access point identification and the target channel identification, and then is connected with the wireless access point of the distribution network equipment corresponding to the access point identification through the corresponding target channel.
A sending module 603, configured to send network configuration data through the target channel, so that the distribution network device completes a distribution network according to the network configuration data. After the terminal device is successfully connected with the wireless access point of the distribution network device, the terminal device can send network configuration data to the wireless access point, wherein the network configuration data comprises an SSID (service set identifier) and a password of the router. And the distribution network equipment is connected to the corresponding router according to the SSID and the password of the router, so that the distribution network is realized.
In addition, the terminal device 600 of the embodiment of the present invention may further include: the output module is used for outputting prompt information; and the prompt information is used for prompting that the distribution network equipment is in a distribution network mode.
Fig. 7 is a schematic diagram of main modules of a distribution network system according to an embodiment of the present invention. As shown in fig. 7, a distribution network system 700 according to an embodiment of the present invention mainly includes: the functions of the distribution network device 500 and the terminal device 600, and the functions of the distribution network device 500 and the terminal device 600 are as described above, and are not described herein again.
From the above description, it can be seen that the wireless access point channel of the distribution network device is kept unchanged, and the beacon signal is sent by circularly switching the channel, so that the terminal device can be quickly connected with the wireless access point, the distribution network speed is improved, the distribution network flow is simplified, and the distribution network has high success rate, high reliability and good compatibility. The terminal equipment acquires the access point identification and the target channel identification from the beacon signal by receiving the beacon signal, and then establishes connection with the corresponding wireless access point, so that a user does not need to manually select distribution network equipment, and the distribution network flow is simplified.
Fig. 8 shows an exemplary system architecture 800 of a distribution network method or distribution network system to which embodiments of the invention may be applied.
As shown in fig. 8, the system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a distribution network device 805. The network 804 is used to provide a medium for communication links, such as wireless communication links, between the terminal devices 801, 802, 803 and the distribution network device 805.
A user may use the terminal devices 801, 802, 803 to interact with the distribution network device 805 through the network 804 to receive or send messages, etc. The terminal devices 801, 802, 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The distribution network device 805 may be an intelligent appliance such as a sound box, a socket, a desk lamp, an air conditioner, a refrigerator, a washing machine, a kitchen appliance, and the like.
It should be noted that the network distribution method provided in the embodiment of the present application is generally executed by the terminal devices 801, 802, and 803 and the network distribution device 805 together, and accordingly, the network distribution system is also implemented by the terminal devices 801, 802, and 803 and the network distribution device 805.
It should be understood that the number of terminal devices, networks, and distribution network devices in fig. 8 is merely illustrative. Any number of terminal devices, networks and distribution network devices may be present, as desired for implementation.
The invention also provides an electronic device and a computer readable medium according to the embodiment of the invention.
The electronic device of the present invention includes: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement a network distribution method according to an embodiment of the present invention.
The computer readable medium of the present invention stores thereon a computer program, which when executed by a processor implements a network distribution method of an embodiment of the present invention.
Referring now to FIG. 9, shown is a block diagram of a computer system 900 suitable for use in implementing an electronic device of an embodiment of the present invention. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 9, the computer system 900 includes a Central Processing Unit (CPU)901 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the computer system 900 are also stored. The CPU 901, ROM 902, and RAM 903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
The following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
In particular, the processes described above with respect to the main step diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program containing program code for performing the method illustrated in the main step diagram. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The above-described functions defined in the system of the present invention are executed when the computer program is executed by a Central Processing Unit (CPU) 901.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises a setting module, a detection module, a switching module and a distribution network module. The names of these modules do not limit the modules themselves in some cases, and for example, the setting module may be further described as a "module that sets a target channel for a wireless access point and transmits a beacon signal through the target channel after entering the AP mode".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: after a distribution network device enters an AP mode, a target channel is set for a wireless access point of the distribution network device, and a beacon signal is sent through the target channel; wherein the beacon signal comprises an access point identification and a target channel identification; detecting whether the wireless access point is connected by terminal equipment, if the wireless access point is not connected by the terminal equipment, switching a current channel used by a wireless communication module of the distribution network equipment into a new channel, sending the beacon signal through the new channel so that the terminal equipment receives the beacon signal on a corresponding channel, and connecting the wireless access point according to the access point identifier and the target channel identifier; and if the wireless access point is connected by the terminal equipment, receiving network configuration data from the terminal equipment through the target channel to complete the network distribution.
According to the technical scheme of the embodiment of the invention, the wireless access point channel of the distribution network equipment is kept unchanged, and the beacon signal is sent by circularly switching the channel, so that the terminal equipment can be quickly connected with the wireless access point, the distribution network speed is improved, the distribution network process is simplified, and the distribution network has high success rate, high reliability and good compatibility.
The product can execute the method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method for network distribution, comprising:
after a distribution network device enters an AP mode, a target channel is set for a wireless access point of the distribution network device, and a beacon signal is sent through the target channel; wherein the beacon signal comprises an access point identification and a target channel identification;
detecting whether the wireless access point is connected by terminal equipment, if the wireless access point is not connected by the terminal equipment, switching a current channel used by a wireless communication module of the distribution network equipment into a new channel, sending the beacon signal through the new channel so that the terminal equipment receives the beacon signal on a corresponding channel, and connecting the wireless access point according to the access point identifier and the target channel identifier;
and if the wireless access point is connected by the terminal equipment, receiving network configuration data from the terminal equipment through the target channel to complete the network distribution.
2. The method of claim 1, wherein switching the current channel used by the wireless communication module of the distribution network device to a new channel comprises:
determining a next channel of a current channel used by a wireless communication module of the distribution network equipment according to a set channel switching sequence;
and switching the current channel to the next channel.
3. The method of claim 2, wherein the channel switching sequence is configured to satisfy any one or more of the following principles:
a preset interval is formed between adjacent channels with the channel numbers;
the channel switching sequence includes switching sequences of all channels supported by a wireless local area network standard adopted by the distribution network equipment.
4. The method according to any of claims 1 to 3, wherein after the step of transmitting the beacon signal over the new channel, the method further comprises:
cutting back: after the beacon signal is sent, switching the wireless communication module from the new channel back to the target channel;
and circularly executing the step of detecting whether the wireless access point is connected by the terminal equipment, switching a channel to send the beacon signal when the wireless access point is not connected, and the step of switching back until the distribution network equipment detects that the wireless access point is connected by the terminal equipment.
5. A method for network distribution, comprising:
scanning a plurality of channels, and receiving a beacon signal on a channel corresponding to the beacon signal sent by the distribution network equipment; the beacon signal comprises an access point identifier and a target channel identifier, and is sent through a target channel set for a wireless access point or a new channel switched circularly after the distribution network equipment enters an AP mode;
acquiring the access point identification and the target channel identification from the beacon signal, and connecting the wireless access point through a corresponding target channel according to the access point identification and the target channel identification;
and sending network configuration data through the target channel so that the distribution network equipment completes distribution network according to the network configuration data.
6. The method of claim 5, wherein after the step of receiving the beacon signal on a channel corresponding to a distribution network device transmitting the beacon signal, the method further comprises:
outputting prompt information; the prompt information is used for prompting that the distribution network equipment is in a distribution network mode;
acquiring the access point identifier and the target channel identifier from the beacon signal, including:
and after receiving a connection confirmation instruction, acquiring the access point identifier and the target channel identifier from the beacon signal.
7. A network distribution device, comprising:
the device comprises a setting module, a sending module and a receiving module, wherein the setting module is used for setting a target channel for a wireless access point after entering an AP mode and sending a beacon signal through the target channel; wherein the beacon signal comprises an access point identification and a target channel identification;
the detection module is used for detecting whether the wireless access point is connected by the terminal equipment;
the switching module is used for switching the current channel used by the wireless communication module of the distribution network equipment into a new channel when the wireless access point is not detected to be connected by the terminal equipment, transmitting the beacon signal through the new channel so that the terminal equipment receives the beacon signal on the corresponding channel, and connecting the wireless access point according to the access point identifier and the target channel identifier;
and the distribution network module is used for receiving network configuration data from the terminal equipment through the target channel after the wireless access point is detected to be connected by the terminal equipment, so as to complete distribution network.
8. The distribution network device of claim 7, wherein the switching module is further configured to:
determining a next channel of a current channel used by a wireless communication module of the distribution network equipment according to a set channel switching sequence;
and switching the current channel to the next channel.
9. A terminal device, comprising:
the receiving module is used for scanning a plurality of channels and receiving the beacon signals on the channels corresponding to the beacon signals sent by the distribution network equipment; the beacon signal comprises an access point identifier and a target channel identifier, and is sent through a target channel set for a wireless access point or a new channel switched circularly after the distribution network equipment enters an AP mode;
a connection module, configured to obtain the access point identifier and the target channel identifier from the beacon signal, and connect the wireless access point through a corresponding target channel according to the access point identifier and the target channel identifier;
and the sending module is used for sending the network configuration data through the target channel so that the distribution network equipment completes distribution network according to the network configuration data.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
11. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202010301056.6A 2020-04-16 2020-04-16 Network distribution method, network distribution equipment and terminal equipment Active CN111787595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010301056.6A CN111787595B (en) 2020-04-16 2020-04-16 Network distribution method, network distribution equipment and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010301056.6A CN111787595B (en) 2020-04-16 2020-04-16 Network distribution method, network distribution equipment and terminal equipment

Publications (2)

Publication Number Publication Date
CN111787595A true CN111787595A (en) 2020-10-16
CN111787595B CN111787595B (en) 2023-03-10

Family

ID=72753492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010301056.6A Active CN111787595B (en) 2020-04-16 2020-04-16 Network distribution method, network distribution equipment and terminal equipment

Country Status (1)

Country Link
CN (1) CN111787595B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114521A (en) * 2021-02-24 2021-07-13 浙江大华技术股份有限公司 Link quality judging method, network camera and readable storage medium
CN113727324A (en) * 2021-08-17 2021-11-30 珠海格力电器股份有限公司 Network distribution method, device and equipment of equipment and storage medium
CN114531344A (en) * 2020-11-06 2022-05-24 深圳Tcl新技术有限公司 Network distribution method, device, terminal and computer storage medium
CN114666255A (en) * 2022-03-16 2022-06-24 京东科技信息技术有限公司 Method for testing distribution network performance of Internet of things equipment and related equipment thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323824A (en) * 2015-11-16 2016-02-10 北京京东世纪贸易有限公司 WIFI equipment, electronic device and method for assisting WIFI equipment access to network
CN105721221A (en) * 2016-03-14 2016-06-29 美的集团股份有限公司 Household appliance network distribution method and device and household appliance
CN106332143A (en) * 2016-09-28 2017-01-11 四川长虹电器股份有限公司 Method for rapidly configuring a network for smart device
US9900919B1 (en) * 2014-03-19 2018-02-20 Amazon Technologies, Inc. Adaptive beacon rate system
WO2018076546A1 (en) * 2016-10-31 2018-05-03 广东美的制冷设备有限公司 Network distribution method for domestic appliances, system and device thereof
CN109787843A (en) * 2019-03-14 2019-05-21 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine
CN110650070A (en) * 2018-06-26 2020-01-03 九阳股份有限公司 Household appliance network configuration method and WiFi module
CN110798493A (en) * 2018-08-02 2020-02-14 青岛经济技术开发区海尔热水器有限公司 Network configuration method, device, terminal equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9900919B1 (en) * 2014-03-19 2018-02-20 Amazon Technologies, Inc. Adaptive beacon rate system
CN105323824A (en) * 2015-11-16 2016-02-10 北京京东世纪贸易有限公司 WIFI equipment, electronic device and method for assisting WIFI equipment access to network
CN105721221A (en) * 2016-03-14 2016-06-29 美的集团股份有限公司 Household appliance network distribution method and device and household appliance
CN106332143A (en) * 2016-09-28 2017-01-11 四川长虹电器股份有限公司 Method for rapidly configuring a network for smart device
WO2018076546A1 (en) * 2016-10-31 2018-05-03 广东美的制冷设备有限公司 Network distribution method for domestic appliances, system and device thereof
CN110650070A (en) * 2018-06-26 2020-01-03 九阳股份有限公司 Household appliance network configuration method and WiFi module
CN110798493A (en) * 2018-08-02 2020-02-14 青岛经济技术开发区海尔热水器有限公司 Network configuration method, device, terminal equipment and storage medium
CN109787843A (en) * 2019-03-14 2019-05-21 杭州涂鸦信息技术有限公司 A kind of distribution method, apparatus, equipment and the storage medium of smart machine

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531344A (en) * 2020-11-06 2022-05-24 深圳Tcl新技术有限公司 Network distribution method, device, terminal and computer storage medium
CN114531344B (en) * 2020-11-06 2023-08-01 深圳Tcl新技术有限公司 Distribution network method, device, terminal and computer storage medium
CN113114521A (en) * 2021-02-24 2021-07-13 浙江大华技术股份有限公司 Link quality judging method, network camera and readable storage medium
CN113727324A (en) * 2021-08-17 2021-11-30 珠海格力电器股份有限公司 Network distribution method, device and equipment of equipment and storage medium
CN114666255A (en) * 2022-03-16 2022-06-24 京东科技信息技术有限公司 Method for testing distribution network performance of Internet of things equipment and related equipment thereof
CN114666255B (en) * 2022-03-16 2024-04-05 京东科技信息技术有限公司 Method for testing network distribution performance of Internet of things equipment and related equipment thereof

Also Published As

Publication number Publication date
CN111787595B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
CN111787595B (en) Network distribution method, network distribution equipment and terminal equipment
CN109348458B (en) Network access configuration method and device, electronic equipment and network system
US10187451B2 (en) Method, mobile device and system for transmitting files
US20200245386A1 (en) Wireless connection method and device
WO2019128906A1 (en) Method, apparatus, and system for accessing network hotspot device by device to be distributed a network
US9204470B2 (en) Method for a wireless target device to automatically connect to a target network, wireless network system with automatic network setting ability, and wireless target device thereof
WO2019029271A1 (en) Network assigning method and apparatus, storage medium, terminal, and home appliance
CN108366362A (en) MESH network and its MESH equipment safeties match network method
CN103607751A (en) Wireless device configuration method and system
CN107567017B (en) Wireless connection system, device and method
JP2015507387A (en) One-click connect / disconnect function for wireless devices forming a mesh network
CN110740460A (en) device network access method, device, network device and storage medium
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
US20090274065A1 (en) Method and apparatus for setting wireless local area network by using button
EP3893595B1 (en) Establishment by a second terminal device of a wlan hotspot connection to a first terminal device for connecting to the internet
CN113099440A (en) Network configuration method, device, equipment and system
EP3442250B1 (en) Data transmission
CN111726886A (en) Network configuration method and device and electronic equipment
JP2017523741A (en) Information providing method, apparatus, program, and recording medium
CN111918256A (en) Intelligent device network distribution method and device based on Bluetooth and storage medium
CN106453370B (en) Method and device for registering IPC (inter-programmable logic controller) to NVR (network video recorder)
CN112188488A (en) Network distribution method, device and system
CN113543150A (en) Network distribution method and device of intelligent device, electronic device and computer readable medium
CN111065137A (en) Method for accessing intelligent equipment to network based on Bluetooth and wireless network
US20230379799A1 (en) Device network configuration method and first 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