CN112469055A - Equipment network distribution method, related equipment and storage medium - Google Patents

Equipment network distribution method, related equipment and storage medium Download PDF

Info

Publication number
CN112469055A
CN112469055A CN202011319173.1A CN202011319173A CN112469055A CN 112469055 A CN112469055 A CN 112469055A CN 202011319173 A CN202011319173 A CN 202011319173A CN 112469055 A CN112469055 A CN 112469055A
Authority
CN
China
Prior art keywords
equipment
wireless access
network
router
intranet
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.)
Pending
Application number
CN202011319173.1A
Other languages
Chinese (zh)
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.)
Shenzhen Shuliantianxia Intelligent Technology Co Ltd
Original Assignee
Shenzhen Shuliantianxia Intelligent 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 Shenzhen Shuliantianxia Intelligent Technology Co Ltd filed Critical Shenzhen Shuliantianxia Intelligent Technology Co Ltd
Priority to CN202011319173.1A priority Critical patent/CN112469055A/en
Publication of CN112469055A publication Critical patent/CN112469055A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The application discloses a device network distribution method, related devices and a storage medium. The method is applied to a router which has access to the Internet and has the function of simultaneously providing two different access points; the method specifically comprises the following steps: starting an external network wireless access point; starting a pre-appointed intranet wireless access point to enable equipment to be networked to establish intranet wireless access connection with a router based on the intranet wireless access point, wherein the intranet wireless access connection is local area network communication connection established between the equipment within the range of the access point of the intranet wireless access point and the router; receiving a distribution network request from equipment to be distributed through an intranet wireless access connection; responding to the distribution network request, sending distribution network response information to the equipment to be distributed so that the equipment to be distributed establishes external network wireless access connection with the router according to the distribution network response information to access the Internet, wherein the distribution network response information comprises a service set identifier and an access password of an external network wireless access point.

Description

Equipment network distribution method, related equipment and storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a device network distribution method, related devices and a storage medium.
Background
With the rapid development of the internet of things industry, big data and artificial intelligence are generated, great changes are brought to life, and especially, intelligent equipment directly influences all aspects of people.
The management, control, operation and other capabilities of the intelligent device are more and more frequent at the cloud (cloud server platform), and if the home gateway (such as a router) is used as an edge computing node to bear, the working load of the cloud can be reduced, and the intelligent device can still work normally under the condition of network failure. The demand for home gateways is increasing.
The intelligent equipment generally adopts a wireless communication technology, such as Wi-Fi, Bluetooth, Zigbee and the like, in order to enable the data of the intelligent equipment to reach a cloud end and provide intelligent service through big data operation, the intelligent equipment is directly or indirectly connected to the cloud end so as to enable the intelligent equipment to communicate with each other, wherein the first solution is to connect the intelligent equipment to the Wi-Fi of a router, and the first step of the Wi-Fi connection is to form a network for the equipment.
Since most of intelligent devices do not have an input interface, currently, a terminal device is generally connected to a router in a station (station) mode, a user inputs an Access password of the router on the input interface of an APP of the terminal to establish connection with the router to obtain a service set identifier and a password of the router, and then the terminal device is connected to the intelligent device in an Access Point (AP) mode to send the service set identifier and the password of the router to the intelligent device, so that the intelligent device is connected to the router. This needs the artificial access password of inputing the router and needs terminal equipment's APP to participate in, and it is more loaded down with trivial details to join in marriage the net flow, and it is low to join in marriage net processing speed.
Disclosure of Invention
The application provides a device network distribution method, related devices and a storage medium.
In a first aspect, a device network distribution method is provided, which is applied to a router, wherein the router has access to the internet and has a function of simultaneously providing two different access points; the method comprises the following steps:
starting an external network wireless access point;
starting a pre-agreed intranet wireless access point to enable equipment to be networked to establish intranet wireless access connection with the router based on the intranet wireless access point, wherein the intranet wireless access connection is local area network communication connection established between the equipment located in the range of the access point of the intranet wireless access point and the router;
receiving a distribution network request from the equipment to be distributed through the intranet wireless access connection;
responding to the distribution network request, sending distribution network response information to the equipment to be distributed so that the equipment to be distributed establishes external network wireless access connection with the router according to the distribution network response information to access the internet, wherein the distribution network response information comprises a service set identifier and an access password of the external network wireless access point.
In a second aspect, another method for distributing a network for a device is provided, and is applied to a first terminal device, and the method includes:
under the condition that a preset intranet wireless access point is detected to be opened, establishing a first intranet wireless access connection with a router for opening the intranet wireless access point based on an intranet wireless access point of the router, wherein the intranet wireless access connection is a local area network communication connection established between equipment within the range of the access point of the intranet wireless access point and the router, the router has access to the internet, and an extranet wireless access point of the router is opened;
sending a first distribution network request to the router through the first intranet wireless access connection;
receiving first distribution network response information sent by the router in response to the first distribution network request, wherein the first distribution network response information comprises a service set identifier and an access password of the external network wireless access point;
disconnecting the first intranet wireless access connection;
and establishing a first external network wireless access connection with the router according to the service set identifier and the access password so as to access the Internet.
In a third aspect, another device network distribution method is provided, which is applied to a distributed device, where the distributed device is connected to a router and accesses the internet, and an external network wireless access point of the router is already opened; the method comprises the following steps:
starting a pre-agreed intranet wireless access point to enable equipment to be networked to establish an intranet wireless access connection with the distributed network equipment based on the intranet wireless access point, wherein the intranet wireless access connection is a local area network communication connection established between the equipment within the range of the access point of the intranet wireless access point and the distributed network equipment;
receiving distribution network request information from equipment to be distributed through the intranet wireless access connection, wherein the equipment to be distributed is in the communication range of the distributed equipment and the communication range of the router;
responding to the distribution network request information, sending distribution network response information to the equipment to be distributed so that the equipment to be distributed establishes external network wireless access connection with the router according to the distribution network response information to access the internet, wherein the distribution network response information comprises a service set identifier and an access password of the external network wireless access point.
In a fourth aspect, a router is provided, which includes a distribution network service module, configured to:
starting an external network wireless access point;
starting a pre-agreed intranet wireless access point to enable equipment to be networked to establish intranet wireless access connection with the router based on the intranet wireless access point, wherein the intranet wireless access connection is local area network communication connection established between the equipment located in the range of the access point of the intranet wireless access point and the router;
receiving a distribution network request from the equipment to be distributed through the intranet wireless access connection;
responding to the distribution network request, sending distribution network response information to the equipment to be distributed so that the equipment to be distributed establishes external network wireless access connection with the router according to the distribution network response information to access the internet, wherein the distribution network response information comprises a service set identifier and an access password of the external network wireless access point.
In a fifth aspect, a first terminal device is provided, which includes:
the local area network connection module is used for establishing a first intranet wireless access connection with the router for opening the intranet wireless access point based on the intranet wireless access point under the condition that the preset intranet wireless access point is detected to be opened, wherein the intranet wireless access connection is a local area network communication connection established between equipment within the range of the access point of the intranet wireless access point and the router, the router has access to the internet, and an extranet wireless access point of the router is opened;
a distribution network module for:
sending a first distribution network request to the router through the first intranet wireless access connection;
receiving first distribution network response information sent by the router in response to the first distribution network request, wherein the first distribution network response information comprises a service set identifier and an access password of the external network wireless access point;
disconnecting the first intranet wireless access connection;
and establishing a first external network wireless access connection with the router according to the service set identifier and the access password so as to access the Internet.
The sixth aspect provides a terminal device, where the terminal device is connected to a router and accesses the internet, and an extranet wireless access point of the router is already opened; the terminal device includes:
the hot spot module is used for starting a pre-agreed intranet wireless access point so that intranet wireless access connection is established between equipment to be networked and the terminal equipment based on the intranet wireless access point, and the intranet wireless access connection is local area network communication connection established between the equipment within the access point range of the intranet wireless access point and the terminal equipment;
a distribution network module for:
receiving distribution network request information from the equipment to be distributed through the intranet wireless access connection, wherein the equipment to be distributed is in the communication range of the terminal equipment and the communication range of the router;
responding to the distribution network request information, sending distribution network response information to the equipment to be distributed so that the equipment to be distributed establishes external network wireless access connection with the router according to the distribution network response information to access the internet, wherein the distribution network response information comprises a service set identifier and an access password of the external network wireless access point.
In a seventh aspect, there is provided a communication device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps as described in the first, second or third aspect above and any possible implementation thereof.
In an eighth aspect, there is provided a computer storage medium storing one or more instructions adapted to be loaded by a processor and to perform the steps of the first, second or third aspect and any possible implementation thereof as described above.
The method of the embodiment of the application can be applied to a router which has access to the Internet and has the function of simultaneously providing two different access points; specifically, an external network wireless access point can be started; starting a pre-agreed intranet wireless access point to enable equipment to be distributed to establish intranet wireless access connection with a router based on the intranet wireless access point, wherein the intranet wireless access connection is local area network communication connection established between the equipment and the router within the range of the access point of the intranet wireless access point, receiving a distribution network request from the equipment to be distributed through the intranet wireless access connection, responding to the distribution network request, sending distribution network response information to the equipment to be distributed to enable the equipment to be distributed to establish extranet wireless access connection with the router according to the distribution network response information to access the internet, and the distribution network response information comprises a service set identifier and an access password of the extranet wireless access point; the method can utilize the function that the router can open two modes of the intranet access point and the extranet access point, thereby supporting the to-be-configured network equipment accessed to the opened intranet, and providing the service set identification and the access password of the extranet wireless access point for the to-be-configured network equipment so as to connect the to-be-configured network equipment to the extranet, namely realizing the network distribution of the to-be-configured network equipment; the operation of artificial participation and App is not needed, the distribution network flow is simplified, and the experience effect is improved.
Drawings
In order to more clearly explain the technical solutions in the embodiments or the background of the present application, the drawings used in the embodiments or the background of the present application will be described below.
Fig. 1A is a schematic diagram of a device management topology according to an embodiment of the present application;
fig. 1B is a schematic flowchart of a method for configuring a network by using a device according to an embodiment of the present application;
fig. 2 is a schematic diagram of a network distribution mode starting process provided in the embodiment of the present application;
fig. 3 is a schematic diagram of a distribution network communication flow provided in an embodiment of the present application;
fig. 4 is a schematic view of a device management process provided in an embodiment of the present application;
fig. 5 is a schematic flowchart of a UDP request mechanism according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another method for distributing a network by using devices according to an embodiment of the present application;
fig. 7 is a schematic diagram of a topology structure of a cascaded distribution network according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a router according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived by a person skilled in the art from the embodiments given herein without making any creative effort shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiments of the present application will be described below with reference to the drawings.
The router in the embodiment of the application may be an IoT router, and the IoT router supports simultaneous opening of an extranet wireless access point and an intranet access point, so that a device distribution network can be realized. The IoT router may manage smart devices including WiFi-enabled electronic devices, such as WiFi-enabled air conditioners, hot water jugs, refrigerators, etc.; the IoT router can be accessed to the cloud platform, so that a user can monitor and centrally manage the state of a large number of intelligent devices through the cloud platform, the working efficiency of network deployment and maintenance is improved, and meanwhile, the IoT router has data transmission, operation and storage capacity and certain edge computing capacity. The Internet of things (Internet of ThingsIoT) is an information carrier such as the Internet and a traditional telecommunication network, and enables all common objects capable of performing independent functions to realize an interconnected network.
The Access Point (AP) mentioned in the embodiment of the present application is equivalent to a bridge connected with a wired network and a Wireless network, and accesses the Wireless network to the internet, and its main function is to enable devices in the Wireless network to Access the internet. The IoT router supports the AP mode, i.e., an access point can be opened for other devices to access, including two modes, i.e., the extranet wireless access point and the intranet access point.
The extranet in the embodiment of the application refers to a wireless Wi-Fi network capable of accessing and connecting with the internet, and the extranet wireless access point, also called an extranet AP, can be opened by a router to provide a function of accessing the internet for other devices accessing the extranet AP.
The router in the embodiment of the application can be responsible for starting an intranet wireless access point, also called an intranet AP. The intranet wireless access point in the embodiment of the application is an access point belonging to an internal network of a router, after the access, the intranet AP can be regarded as a local area network, and data interaction can be performed between equipment within the range of the access point of the intranet wireless access point and the router, but the equipment cannot access the Internet.
On this basis, the overall system structure is first outlined. Referring to fig. 1A, fig. 1A is a schematic diagram of a device management topology provided by an embodiment of the present application, which includes an IoT router and a plurality of distributed Wi-Fi devices, where the Wi-Fi devices may include electronic devices without an input interface (a web input interface or a screen), such as a refrigerator, a hot water kettle, and the like with a WiFi function. In an alternative embodiment, the Wi-Fi device can also be another router.
The distributed Wi-Fi equipment accesses an extranet wireless access point, also called an extranet AP, started by the IoT router, so that the Internet can be accessed. Wherein App indicates that the user can communicate with the IoT router through the terminal device, so that the device management function of the IoT router can be used to query the state, control and the like of the distribution network device.
In the embodiment of the application, a device to be distributed (which may be called a Wi-Fi device to be distributed) supporting a Wi-Fi function can access an intranet AP started by an IoT router, acquire an SSID and an access password of an extranet AP of the router from the intranet AP, access the extranet AP started by the IoT router, and realize internet access. Specifically, as shown in fig. 1A, at this time, the device accessing the extranet AP is the configured Wi-Fi device in the figure, and the IoT router may record and manage the configured Wi-Fi device. The IoT router may support networking of multiple devices, without limitation herein. This topology will be explained further later.
Fig. 1B is a schematic flowchart of a method for distributing a network by using a device according to an embodiment of the present application. As shown in fig. 1B, the method may include:
101. and starting the external network wireless access point.
The execution subject of the embodiment of the present application is a router, which may be the IoT router described above.
The management, control, operation and other capabilities of the intelligent device are increasingly frequent in the cloud (cloud server platform), and if the home gateway (including the IoT router) is used as an edge computing node to bear, the workload of the cloud can be reduced, and the intelligent device can still work normally under the condition of network failure. The demand for home gateways is also increasing.
The intelligent equipment generally adopts a wireless communication technology, such as Wi-Fi, Bluetooth (BLE), Zigbee and the like, in order to enable the data of the intelligent equipment to reach a cloud end and provide intelligent service through big data operation, the intelligent equipment must be directly or indirectly connected to the cloud end so as to enable the intelligent equipment to communicate with each other, wherein the first solution is that the intelligent equipment is connected with the Wi-Fi of a router, and the first step of the Wi-Fi connection is that the intelligent equipment is connected with a network, namely the equipment is connected with the network.
Specifically, the router is connected to the internet after being powered on, and the router can be connected to the internet through manual operation, for example, a PPPOE virtual dialing (ADSL dialing) mode, and the connection is performed by inputting a broadband internet access account number and a password of a user.
The internet accessed by the router can be regarded as an 'external network', and on the basis, the router can open an external network AP, namely an access hotspot of the accessed internet, and is used for other equipment to access the external network through the router. The Service Set Identifier (SSID) and the access password of the external network AP may be randomly allocated or manually preconfigured.
102. And starting a pre-appointed intranet wireless access point to enable the equipment to be networked to establish intranet wireless access connection with the router based on the intranet wireless access point, wherein the intranet wireless access connection is local area network communication connection established between the equipment within the range of the access point of the intranet wireless access point and the router.
The preset intranet wireless access point indicates that the SSID of the intranet AP and the corresponding access password are stored in the router and the equipment to be networked, the router can open the intranet AP according to the preset SSID and the corresponding access password, and the SSID of the intranet AP and the corresponding access password are fixed and unchangeable. The device to be networked with the Wi-Fi function in the communication range of the router can search the intranet AP (SSID), access the intranet AP started by the router by adopting a pre-agreed access password and is also a wireless local area network, and under the condition, the device to be networked can communicate with the router.
In an optional implementation manner, after the pre-agreed intranet wireless access point is started, the method further includes:
closing the intranet wireless access point within preset closing time;
or, under the condition that no equipment is accessed within the preset intranet time length, closing the intranet wireless access point.
Specifically, the router in the embodiment of the present application may include a distribution network service module and a distribution network device management module. The distribution network equipment management module is mainly responsible for equipment control (message distribution, network state statistics and the like) of accessed terminal equipment (distributed network equipment). The distribution network service module is in charge of the distribution network access of the router on one hand and is in charge of providing distribution network service for other equipment to be distributed on the other hand.
In this application embodiment, can manage and control the life cycle of above-mentioned intranet AP, can close the distribution network service module of intranet AP and router automatically or manually, optional:
the preset closing time can be issued to a distribution network service module of the router through a distribution network equipment management module in advance through an App, a front-end web page of the router, a cloud platform and the like, and when the closing is determined; and the router can close the intranet AP within preset closing time.
In addition, when no equipment is detected to be accessed to the intranet AP within the specified time (preset intranet duration), the router can automatically close the functions of the intranet AP and/or the distribution network service module, and network overhead is saved.
103. And receiving a distribution network request from the equipment to be distributed through the intranet wireless access connection.
In an embodiment, the network device to be distributed may connect to the intranet AP in a Station mode, as described above, the service set identifier and the access password of the intranet AP in the router are preset, and after the router opens the intranet AP based on the service set identifier and the access password, the network device to be distributed having a Wi-Fi function in a communication range of the router may search the intranet AP, specifically may search an SSID of the intranet AP, and access the intranet AP opened by the router by using a predetermined access password, which is also a wireless local area network, in which case the network device to be distributed may communicate with the router.
The router can receive the access request and verify the access password, and if the verification is successful, feedback information corresponding to the access request can be sent to the equipment to be distributed, and the equipment to be distributed is connected to the intranet AP.
Further, when the device to be configured with the network accesses the intranet AP of the router, the device to be configured with the network may send a network distribution request to the router, where the network distribution request is used to transmit information of the device to be configured with the router, and request the router to perform network distribution for the device to be configured with the network, and mainly aims to obtain, through the router, network distribution response information, including a service set identifier and an access password of the extranet AP, so as to access the internet. The router can receive a distribution network request of the equipment to be distributed and distribute the network for the equipment to be distributed. The Station mode is a mode of performing wireless network access through the established wireless Wi-Fi Station, and the equipment in the Station mode can be used as the wireless Wi-Fi Station and is accessed to the external network AP by using the access password of the external network AP. The router in the embodiment of the present application needs to satisfy the coexistence of AP and Station modes, which can be understood as that the Station mode is connected to the external network AP, and the AP mode is configured to start the internal network AP.
The non-inductive network distribution method in the embodiment of the application mainly realizes network distribution through the Station mode of Wi-Fi, and is completely compatible with other network distribution modes, and the method is not limited here. Such as optional:
the IoT router can be added into the AP distribution network and the BLE distribution network functional module;
the distribution network device to be distributed can be added with a SmartConfig distribution network, an AP distribution network and a BLE distribution network functional module.
The distribution network mode can be preset in a memory or dynamically adjusted, and different strategies are selected according to different requirements.
As shown in fig. 2, a schematic diagram of a distribution network mode starting process may be seen, and as shown in fig. 2, a distribution network mode configuration item may be preset in a router, so that a corresponding distribution network mode configuration may be read;
1) the distribution network mode may include other distribution networks besides the non-inductive distribution network (Station mode), such as a SmartConfig distribution network, a BLE distribution network, a general AP distribution network, or a combination thereof;
2) the distribution network mode can be preset or dynamically adjusted, and when the distribution network is started, the distribution network process can be executed in the mode by selecting which distribution network mode;
3) optionally, the distribution network mode may preset a priority, and the distribution network mode with a high priority may interrupt the distribution network mode with a low priority;
4) after the distribution network is started, the abnormal overtime of the distribution network is judged by using configurable overtime time.
In one embodiment, before the step 103, the method further includes:
receiving an access request to the intranet wireless access point, which is sent by the to-be-distributed network equipment based on a service set identifier of the intranet wireless access point agreed in advance, wherein the access request comprises an access password of the intranet wireless access point agreed in advance;
responding to the access request, and sending an access response message to the equipment to be distributed so as to establish intranet wireless access connection with the equipment to be distributed;
receiving a transmission protocol connection request from the equipment to be networked through the intranet wireless access connection;
and responding to the transmission protocol connection request, establishing transmission protocol connection with the equipment to be distributed, wherein the transmission protocol connection is used for configuring the data transmission mode of the equipment to be distributed and the router to be transmission by adopting a preset encryption algorithm.
The equipment distribution network in the embodiment of the application can be called a non-inductive distribution network, namely in the distribution network process in the embodiment of the application, the App can not participate, and compared with a general distribution network, the number of manual operations is reduced; the needed communication equipment comprises a non-inductive network service end device (such as an IoT router) and a non-inductive network client end device (such as a network to be distributed with Wi-Fi function) to complete the network distribution. The non-inductive distribution network server mentioned in the embodiment of the application refers to a Wi-Fi device function module capable of providing SSID (service set identifier) and access password information of an external network; the non-inductive network configuration client is a Wi-Fi device function module which needs to acquire the SSID (service set identifier) and access password information of the external network.
The non-inductive distribution network server side equipment is used for starting an external network AP and an internal network AP, and the non-inductive distribution network client side equipment can be accessed to the internal network AP started by the non-inductive distribution network server side equipment, and is accessed to the external network AP through the distribution network method in the embodiment of the application to access the Internet. Specifically, the device to be configured in the embodiment of the present application, serving as the non-inductive network distribution client device, may be connected to the intranet AP, or may communicate with the router. The equipment to be configured can search the SSID of the intranet AP, an access request is sent based on the SSID of the intranet AP, the equipment to be configured is connected to the intranet AP through a pre-agreed access password request, and the router can respond to the access request and feed back an access response message to the equipment to be configured, so that the wireless access connection of the intranet is established with the equipment to be configured. The access response message indicates that the router successfully receives the access request of the device to be configured and passes the verification, but bidirectional data transceiving cannot be performed under the intranet wireless access connection established at this time and a transmission protocol connection needs to be established, and the access response message may indicate that the device to be configured may send the transmission protocol connection request to perform the transmission protocol connection under the intranet wireless access connection.
Different transmission protocols specify different data transmission strategies, including encryption schemes in data transmission. In an embodiment, the established transport protocol connection may execute a corresponding encryption manner in data interaction between the router and the device to be networked according to an adopted transport protocol (preset). For example, TCP and HTTP protocol communication, an Advanced Encryption Algorithm (AES) is used to encrypt the whole interactive data, and the Encryption key is agreed and fixed, which is not limited in the embodiment of the present application.
104. And responding to the distribution network request, sending distribution network response information to the equipment to be distributed so as to enable the equipment to be distributed to establish external network wireless access connection with the router according to the distribution network response information so as to access the internet, wherein the distribution network response information comprises a service set identifier and an access password of the external network wireless access point.
After receiving a distribution network request of a device to be distributed, which is accessed to an intranet, the router may send distribution network response information to the device to be distributed, where the distribution network response information includes an SSID of an extranet AP opened by the router and an access password. The device to be configured may receive and use the distribution network response information to access the external network AP, which may specifically include disconnecting the intranet wireless access connection originally with the router, then establishing the external network wireless access connection with the router, and accessing the internet, thereby completing the distribution network of the device to be configured. The external network wireless access connection is a connection for accessing the internet by the equipment within the range of the access point of the external network AP, and can enable a mobile phone, a tablet or a notebook or other WiFi equipment to access the internet, so as to realize network resource sharing.
Fig. 3 is a schematic diagram of a distribution network communication process provided in an embodiment of the present application, and as shown in fig. 3, a data interaction process of a router and a device to be distributed in a distribution network is described. Specifically, the router starts an intranet AP, and the intranet AP adopts an SSID and an access password of the intranet AP. After the network equipment to be configured starts a non-sensing distribution network, the SSID of the intranet AP is searched, an access request is sent based on the SSID of the intranet AP, the network equipment to be configured is connected to the intranet AP through a pre-agreed access password request, after the wireless access connection of the intranet is successfully established, the network equipment to be configured initiates a transmission protocol connection request through the intranet, a router responds and establishes transmission protocol connection (TCP/HTTP/HTTPS connection) with the network equipment to be configured, after the transmission protocol connection is successfully established, the network equipment to be configured sends a distribution network request to the router, and the router feeds back distribution network response information which carries the SSID and the access password of the extranet AP, so that the network equipment to be configured can access the extranet based on the SSID and the access password of the extranet AP and access the Internet (at this time, the.
In one embodiment, the communication protocol based on the local area network is optional: for example, the TCP and HTTP protocols may be used for communication between the router and the device, and the preset Encryption algorithm may be an Advanced Encryption Standard (AES), and encrypts the entire interactive data, and the Encryption key is agreed and fixed; HTTPS protocol communication may also be used. Wherein the local area network communication timeout time can be appointed and fixed; the access request and the access response message can both adopt encryption transmission, so that the security of the key data is ensured.
In the embodiment of the application, the distribution network response information can be transmitted by using a local area network communication protocol. Optionally, in this embodiment of the application, the local area network communication protocols in the intranet AP and the extranet AP are not limited to UDP, TCP, HTTP, and HTTPs, and may also use a main internet of things communication protocol such as coach and MQTT.
In an optional implementation manner, the network topology in the embodiment of the present application may be based on a local area network UDP communication protocol, and a star (one-to-many) model is adopted, so that a plurality of devices to be connected to a network may access an internal network of a router through an intranet AP started by the router, and the router is used for network distribution, so as to implement extranet access. The device uses unicast communication to the router, and the router may be unicast or broadcast to the device.
Unicast (Unicast) is the communication between a single sender and a recipient over a network. In the embodiment of the present application, point-to-point connection between a device to be networked and a router may be understood as that each device to be networked receives data from the router, and only when the device to be networked sends a request, the router sends the data to the device to be networked correspondingly. The broadcast is also called multicast, and corresponds to unicast, where multicast refers to communication between one sender and multiple receivers, that is, for a router, multiple devices to be connected to a network, which access an intranet AP, are multiple receivers, and one piece of information may be sent to the receivers at the same time, for example, broadcast may be performed when an access password of an extranet is changed; and the router may adopt unicast similar to the foregoing description in the process of network distribution with the device to be network distributed.
In an optional implementation manner, the router may store a distribution network device list, where the distribution network device list may include device information of the distributed device, and the device to be distributed may be recorded in the distribution network device list after accessing the external network AP. After receiving the confirmation feedback information from the device to be configured, the router determines that the device to be configured is the configured device, and updates a distribution network device list, that is, the device information of the device to be configured is added to the distribution network device list, wherein the confirmation feedback information is used for indicating that the device to be configured has access to the internet.
The condition of the distribution network equipment can be reflected in time by updating the distribution network equipment list, so that the distribution network equipment can be managed by the router conveniently, and the current quantity of the distribution network equipment can be controlled in time, for example, the quantity of the distribution network equipment can be limited within the preset quantity, the phenomenon that the router is overloaded is avoided, and the network stability is ensured. Optionally, an operation may be performed in the network distribution device list, for example, to query device information of the network distribution devices, or to count the number of the current network distribution devices; optionally, the distribution network device list may be displayed on a front-end web page of the router, and may be operated (e.g., data query); the cloud platform may also synchronize the distribution network device list in the router, and may operate the distribution network device list (e.g., query data), which is not limited herein.
In an optional embodiment, in a case where the distribution network response information is changed, the changed distribution network response information is sent to the existing distribution network device, and the external network wireless access point is restarted based on the changed distribution network response information, so that the existing distribution network device re-accesses the internet based on the changed distribution network response information.
Specifically, the distribution network response information of the external network AP may be changed as needed, that is, the SSID and the access password of the external network AP may be modified, and the change may be controlled by a client application program corresponding to the router. In this application, the WiFi device and the router may implement a "request \ response" mechanism in the process based on the local area network UDP communication protocol.
Fig. 4 is a schematic diagram of a device management process provided in the embodiment of the present application, as shown in fig. 4, the process may be always on in a process of connecting a WiFi device and a router, which is specifically described as follows:
1) the IoT router starts a UDP server, and the WiFi equipment starts a UDP client;
2) the WiFi equipment is used as equipment of a network to be distributed and reports equipment information by using UDP unicast every time the WiFi equipment is connected with an external network AP; the IoT router can verify the reported device information, if the reported device information conforms to the rule, the WiFi device is allowed to access and sends a reporting reply to the WiFi device, the WiFi device is added into the device control list, and if not, the WiFi device is refused to be added;
3) after the WiFi equipment receives the reporting reply of the IoT router, the WiFi equipment and the IoT router establish a connection relationship, and the WiFi equipment is the distributed equipment at the moment;
after the connection relationship is established, the WiFi device may report a device function list once (for example, changing SSID, access password, status query function, etc. of the external network AP) using UDP unicast according to its own capability and functional key points; the IoT router may generate a control list function mapping of the WiFi device according to the reported function list, and reply that the WiFi device may use the device functions; optionally, the device function list of the Wi-Fi device is determined according to the function set (maximum support function entry) of the IoT router, and the Wi-Fi device does not have to fully support all functions as long as it is inside the IoT router function set;
after determining the device function list, the IoT router may request a device function from the WiFi device according to the device function list, if the device function is common to the distributed network devices managed by the IoT router, the IoT may broadcast the request using UDP, otherwise unicast the request using UDP; after receiving the request, the Wi-Fi equipment can confirm the function of the Wi-Fi equipment and reply the request, and if an execution action exists, the function is executed; such as changing the SSID and access password of the extranet AP.
On the basis of the interactive flow description, when the IoT router changes the SSID and the access password of the extranet, the password change notification is firstly issued to all the distributed network equipment through UDP broadcast, after the distributed network equipment receives the notification, the IoT router is replied, then the password is changed, and the new SSID and the access password of the extranet are reconnected.
Further optionally, all the above "request" mechanism flows may be as shown in fig. 5, where the UDP request mechanism flow is specifically described as follows:
the device information reporting, the device function list reporting and the device function request are all request messages, and the replies thereof are all response messages;
the response (reply is received) waiting window time m seconds (the minimum unit is second) can be preset (for example, default 60 seconds) or can be dynamically adjusted;
the number N of overlapping responses is fixed and agreed (for example, N is 3).
In a general network distribution method, a device is connected to a router only at a network layer or a protocol layer below, which is equivalent to the operation of plugging a network cable in a wired network, and only an IP address is allocated. In the embodiment of the application, under the condition that the UDP protocol is adopted, the router needs to start a UDP server in a transmission layer (an upper layer protocol of a network layer), and corresponding to-be-configured network equipment starts a UDP client, so that data communication and management of a corresponding protocol layer can be performed, that is, the IoT router starts the local area network UDP server in an extranet AP network segment, and appears to start the extranet AP in the network layer, so as to support broadcast communication; the configured network device may use a local area network UDP service to implement unicast communication in the external AP, and connect as a client to the IoT router, which may be understood as UDP defining a transmission mode in the network. The service is started mainly for the purpose that a subsequent router can inform the operation of the distributed network equipment and the like after changing the SSID and the access password, for example, when the distribution network response information is changed, the router restarts the external network AP based on the changed distribution network response information, and can send the changed SSID and the access password to the recorded distributed network equipment in the external network AP in a broadcasting mode, so that the distributed network equipment can be accessed to the Internet again in time based on the changed distribution network response information.
The embodiment of the application adds the equipment management capability of the router, and the method can inform the changed SSID and access password of the external network of the configured equipment before the router changes the SSID and the access password, then the configured equipment can be changed in time and reconnect the router, the network cannot be disconnected, manual operation reconnection through an App is not needed, the network reconnection process of the configured equipment under the condition that the router changes the AP of the external network is simplified, and the network connection stability of the configured equipment is maintained.
Optionally, after receiving the access response message, the device to be configured may reply a frame of acknowledgement frame, that is, the acknowledgement feedback information, to ensure that data is completely transmitted; after the completion, the connection with the intranet AP can be disconnected, and the extranet AP is accessed. Therefore, after receiving the confirmation feedback information from the device to be configured, the router determines that the device to be configured accesses the internet, and can update the distribution network device list for the configured device, and timely acquire the state information of the configured device. Such as:
the distribution network equipment list can be inquired in a distribution network equipment management module of the router through an application program, and the distribution network equipment list can be operated (such as data inquiry);
the front-end web page of the router can show the distribution network equipment list and can operate the distribution network equipment list (such as data query); the cloud platform may also synchronize the distribution network device list in the router and may operate it (e.g., perform data queries).
In an alternative embodiment, the method further comprises:
receiving an inquiry request from electronic equipment, wherein the inquiry request comprises a target equipment identifier;
inquiring in the distribution network equipment list according to the target equipment identification to obtain an equipment distribution network result corresponding to the target equipment identification;
and sending the equipment distribution network result to the electronic equipment.
Specifically, the target device identifier is a device identifier for querying a distribution network result, for example, the device identifier includes a device name, a number, and the like, the electronic device may query a distribution network result of a certain terminal device (target device), and may send a query request including the target device identifier to the router, so that the router queries in a distribution network device list according to the target device identifier, obtains a device distribution network result corresponding to the target device identifier, and feeds back the device distribution network result to the electronic device.
The network distribution result of the target equipment can be timely and conveniently inquired through the steps so as to determine whether the network distribution of the target equipment is successful or not, namely whether the network is successfully accessed to the internet or not, the network distribution result of the target equipment can also comprise the real-time flow of the target equipment, the network distribution state of the target equipment can be known, the inquiry can be conveniently carried out when a network problem occurs, for example, the network on the side of the target equipment is blocked, the network distribution result of the target equipment corresponding to the target equipment can be inquired, the current occupied data flow of the target equipment can be known, the network state analysis can be carried out, and.
The conventional router itself cannot provide the distribution network service, and there is no device management service above the device transport layer, and the IoT router herein has the distribution network service and the device management (transport layer) service. The distribution network mode of the router in the embodiment of the application can be summarized as a non-inductive distribution network service. In a general AP distribution network, an AP is started by equipment to be distributed, then App scanning connection is used, information of an external network AP is transmitted to the equipment to be distributed, the non-inductive distribution network is equipment (such as an IoT router) for providing distribution network service, the equipment to be distributed is connected with the AP, and the App does not need to participate in a distribution network process, so that distribution can be performed on a plurality of equipment to be distributed at the same time.
Distribution networks popular in the industry at present include but are not limited to SmartConfig distribution networks, AP distribution networks, BLE distribution networks and the like, and a common point of the distribution network modes is that the participation degree of a user using an App is very high, for example, in the aforementioned AP distribution network method, a distribution network hotspot needs to be opened by a device to be distributed, the App is switched to the distribution network hotspot by a router hotspot, and is switched back to the router after an SSID and an access password are transmitted, so that the App is frequently operated; and the whole distribution network fails due to the fact that problems occur in the hot spot process of App router switching and distribution network switching.
In the embodiment of the application, the non-inductive distribution network is a network distribution hotspot (including an internal network AP and an external network AP) opened by the router, and the method does not need the equipment to be distributed to open the distribution network hotspot, so that the processing operation of App in the equipment to be distributed is reduced, and the router can realize a multi-equipment distribution network.
The method is applied to a router which has access to the Internet and has the function of simultaneously providing two different access points; specifically, an external network wireless access point can be started; starting a pre-agreed intranet wireless access point to enable equipment to be networked to establish intranet wireless access connection with a router based on the intranet wireless access point, wherein the intranet wireless access connection is local area network communication connection established between the equipment and the router within the range of the access point of the intranet wireless access point, receiving a network distribution request from the equipment to be networked through the intranet wireless access connection, responding to the network distribution request, sending network distribution response information to the equipment to be networked to enable the equipment to be networked to establish extranet wireless access connection with the router according to the network distribution response information to access the internet, and the network distribution response information comprises a service set identifier and an access password of the extranet wireless access point; the method can utilize the router to open the functions of two modes of an intranet access point and an extranet access point, thereby supporting the to-be-configured network equipment accessed to the opened intranet, providing the service set identification and the access password of the extranet wireless access point for the to-be-configured network equipment to connect the to-be-configured network equipment to the extranet, and realizing the distribution network of the to-be-configured network equipment; generally, an App (application program) is required to be used for controlling in the process of a network distribution of equipment to be distributed, the App is frequently operated and often needs more people to participate in, the method starts an intranet AP (access point) by a router, and the equipment to be distributed does not need to start a distribution network hotspot, so that the App is not required to control and switch the distribution network hotspot and the router hotspot, the operation of the App is not required in the process of the network distribution, the people participation can be reduced, the process of the network distribution is simplified, and the experience effect is improved.
Fig. 6 is a schematic flowchart of another method for distributing a network by using devices according to an embodiment of the present application, where as shown in fig. 6, the method includes:
601. the router starts the extranet wireless access point.
602. The router starts a pre-agreed intranet wireless access point, and the intranet wireless access point is a local area network communication connection established between equipment within the access point range of the intranet wireless access point and the router.
The router in the embodiment of the application has access to the internet and has the function of simultaneously providing two different access points. The steps 601-602 and 605-606 can refer to the detailed descriptions of the steps 101-104 in the embodiment shown in fig. 1B, and are not repeated herein.
603. And the first terminal equipment establishes a first intranet wireless access connection with the router for starting the intranet wireless access point based on the intranet wireless access point of the router under the condition that the pre-agreed intranet wireless access point is detected to be started.
604. And the first terminal equipment sends a first distribution network request to the router through the first intranet wireless access connection.
605. And the router receives a first distribution network request from the first terminal device through the first intranet wireless access connection.
606. And the router responds to the first distribution network request and sends first distribution network response information to the first terminal equipment, wherein the first distribution network response information comprises the service set identification and the access password of the external network wireless access point.
607. The first terminal equipment receives the first distribution network response information; disconnecting the first intranet wireless access connection; and establishing a first external network wireless access connection with the router according to the service set identifier and the access password so as to access the Internet.
The first terminal device may be an electronic device with a WiFi function, and may be mainly a device without an input interface (a web input interface or a screen), such as a refrigerator, a hot water kettle, etc. with a WiFi function. In an optional implementation mode, the method can realize the non-inductive network distribution and form the Internet of things of an intelligent home scene.
In an alternative embodiment, the step 603 includes:
the first terminal equipment sends an access request to the intranet wireless access point to the router based on a service set identifier of the intranet wireless access point agreed in advance, wherein the access request comprises an access password of the intranet wireless access point agreed in advance;
receiving an access response message sent by the router in response to the access request so as to establish a first intranet wireless access connection with the router;
and sending a transmission protocol connection request to the router through the first intranet wireless access connection to establish a transmission protocol connection with the router, wherein the transmission protocol connection is used for configuring a data transmission mode of the first terminal device and the router to transmit by adopting a preset encryption algorithm.
The method in the embodiment shown in fig. 6 is a process in which a first terminal device (serving as a device to be configured) performs network distribution via a router, which has been described in the embodiment shown in fig. 1B specifically, and is not described here again.
In an alternative embodiment, after step 607, the method further comprises:
a first terminal device starts an intranet wireless access point, the second intranet wireless access connection is a local area network communication connection established between a device located in the access point range of the intranet wireless access point and the first terminal device, and the second terminal device is located in the communication range of the first terminal device and the communication range of the router;
the second terminal equipment sends a second network distribution request to the first terminal equipment through the second intranet wireless access connection;
the first terminal equipment receives the second distribution network request through the second intranet wireless access connection; responding to the second distribution network request, and sending second distribution network response information to the second terminal device, wherein the second distribution network response information comprises a service set identifier and an access password of the external network wireless access point;
and the second terminal equipment receives the second distribution network response information and establishes external network wireless access connection with the router according to the second distribution network response information so as to access the internet.
The second terminal device may be an electronic device with a WiFi function, and may mainly be a device without an input interface (a web input interface or a screen), and a non-inductive network can be configured by the method. In this case, the second terminal device may access the intranet AP started by the first terminal device, and perform a similar distribution network process based on the first terminal device, where the first terminal device is equivalent to a router in the process.
Based on the device network distribution method in the foregoing embodiment, the embodiment of the present application further provides a method for cascading network distribution, that is, a distributed network device may use the same network distribution scheme for other devices not distributed with a network.
In the embodiment of the application, the AP mode of the communication equipment supports the starting of the wireless access point, and the Station mode supports the request access and the connection of the wireless access point. If the configured network device supports the above AP mode and Station mode coexistence mechanism, that is, the device can access the AP and start the AP, and the device resources (memory and storage space) are sufficient, the function of the distribution network service management module provided by the router may be implemented. That is, optionally, as long as the ordinary Wi-Fi device has the capability of the IoT router, the IoT router may be replaced by the Wi-Fi device, and the device network distribution method in the embodiment of the present application is executed, which is not limited herein.
Specifically, referring to the schematic diagram of the cascade distribution network topology shown in fig. 7, as shown in fig. 7, the distributed network device may start an intranet AP to provide a distribution network service for other devices not distributed with the network. On the basis of the foregoing embodiment, the first terminal device serves as a configured network device after accessing the external network AP of the previous router; at this time, the first terminal device may also start an intranet AP, and execute the steps of the router in the embodiment shown in fig. 1B, that is, a similar device distribution network process is performed to distribute a network to the devices (the second terminal devices) not distributed in the network-non-distributed device cluster, so that the second terminal devices can also access the network. Here, it is necessary that the second terminal device is also within the communication range of the same router as the first terminal device to access the external network AP started by the router.
In this embodiment, optionally, the cascaded distribution network may have at least two usage scenarios. The specific can include:
1) the last-level router connected with the distributed network equipment can not support the non-inductive distribution network service, so that other non-distributed network clusters in the Wi-Fi communication range of the router and in the Wi-Fi communication range of the distributed network equipment can realize a fast and convenient non-inductive distribution network through the distributed network equipment without using a SmartConfig distribution network, a BLE distribution network and an AP distribution network;
2) if the last-level router connected with the distributed network equipment supports the non-inductive distribution network service, the cluster of the non-distributed network equipment outside the Wi-Fi communication range of the router and in the Wi-Fi communication range of the distributed network equipment can realize a fast and convenient non-inductive distribution network through the distributed network equipment;
3) the non-inductive distribution network App has little or no participation, and can be rapidly distributed for multiple devices.
The distribution network service module of the router in the embodiment of the application is optionally started, for example, the distribution network service module can be started by triggering of a peripheral hardware facility (such as a key); app issues a command to start; the cloud platform issues a command to start; the method for issuing the command of the web front-end page of the router to be opened and the like is not limited in the embodiment of the present application.
The timeout mechanism for scanning and connecting the intranet AP by the network equipment to be distributed can be set, for example, the timeout time is agreed and the value is fixed, but after the network equipment to be distributed scans or is connected with the intranet AP, the timeout time value can be reset and agreed and fixed.
The cascade in this application embodiment is joined in marriage the net: as long as the equipment with the distributed network meets the hard condition (AP and Station modes coexist and the storage space of the equipment is enough) (most Wi-Fi chips or modules support), the distribution network service can be started, and a non-inductive distribution network is provided for the equipment without the distributed network; the device without the distribution network can be connected to the external network AP only by the existence of the device and the external network AP of the IoT router without using App.
The embodiment of the application is also compatible with other distribution network modes: the scheme mainly uses the Wi-Fi equipment Station mode to carry out distribution, does not conflict with a SmartConfig distribution network (Sniffer mode), a BLE distribution network (Bluetooth mode) and an AP distribution network (AP mode), can configure trigger modes and priorities for various distribution network schemes, supports the distribution network to independently operate, and can enlarge the equipment access range and quantity on the whole.
The equipment distribution network scheme in the embodiment of the application can be combined with the binding scheme of each Internet of things cloud platform to form a set of whole Internet of things communication scheme, so that the distribution network flow can be simplified, the experience effect is improved, and the application mode is flexible.
Based on the description of the method embodiment, the embodiment of the application also discloses a router. Referring to a schematic structural diagram of a router shown in fig. 8, the router 1000 includes a distribution network service module 11 and a distribution network device management module 12, where:
the distribution network service module 11 is configured to:
starting an external network wireless access point;
starting a pre-agreed intranet wireless access point to enable equipment to be networked to establish intranet wireless access connection with the router based on the intranet wireless access point, wherein the intranet wireless access connection is local area network communication connection established between the equipment located in the range of the access point of the intranet wireless access point and the router;
receiving a distribution network request from the equipment to be distributed through the intranet wireless access connection;
and responding to the distribution network request, sending distribution network response information to the equipment to be distributed so as to enable the equipment to be distributed to establish external network wireless access connection with the router according to the distribution network response information to access the internet, wherein the distribution network response information comprises a service set identifier and an access password of the external network wireless access point.
The distribution network device management module 12 may implement a management function for the distributed network devices. Specifically, reference may be made to the description in the foregoing embodiments, which are not repeated herein.
According to an embodiment of the present application, each step involved in the method shown in fig. 1B may be performed by each module in the router 1000 shown in fig. 8, and is not described herein again.
The router 1000 in the embodiment of the present application accesses the internet and has a function of providing two different access points simultaneously; the router 1000 may specifically start an extranet wireless access point; starting a pre-agreed intranet wireless access point to enable equipment to be networked to establish intranet wireless access connection with a router based on the intranet wireless access point, wherein the intranet wireless access connection is local area network communication connection established between the equipment within the access point range of the intranet wireless access point and the router, receiving a network distribution request from the equipment to be networked through the intranet wireless access connection, responding to the network distribution request, and sending network distribution response information to the equipment to be networked to enable the equipment to be networked to establish extranet wireless access connection with the router according to the network distribution response information to access the internet, wherein the network distribution response information comprises a service set identifier and an access password of the extranet wireless access point; the method can utilize the function that the router can open two modes of the intranet access point and the extranet access point, thereby supporting the to-be-configured network equipment accessed to the opened intranet, and providing the service set identification and the access password of the extranet wireless access point for the to-be-configured network equipment so as to connect the to-be-configured network equipment to the extranet, namely realizing the network distribution of the to-be-configured network equipment; generally, an App is used for controlling in the process of a network distribution of equipment to be distributed, the App is frequently operated and often needs more people to participate in, the method starts an intranet AP through a router, and the equipment to be distributed does not need to start a distribution network hotspot, so that the App does not need to control and switch the distribution network hotspot and the router hotspot, the operation of the App is not needed in the process of the network distribution, the people participation can be reduced, the process of the network distribution is simplified, and the experience effect is improved.
Based on the description of the method embodiment and the device embodiment, an embodiment of the present application further provides a device distribution network system, which includes the router and the terminal device in the above embodiments, and implements the device distribution network method in the embodiment of the present application, and a network topology structure of the device distribution network system may be as shown in fig. 1A or fig. 7, which is not described herein again.
Based on the description of the foregoing method embodiment and apparatus embodiment, an embodiment of the present application further provides a communication device, including a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor executes any step of the method executed by the router or the terminal device in the foregoing method embodiment, which is not described herein again.
An embodiment of the present application further provides a computer storage medium (Memory), which is a Memory device in an electronic device and is used to store programs and data. It is understood that the computer storage medium herein may include a built-in storage medium in the router, and may also include an extended storage medium supported by the router. The computer storage medium provides a storage space storing one or more instructions adapted to be loaded and executed by the router, which may be one or more computer programs (including program code) to implement the method steps executable by the router or the terminal device as mentioned in the embodiments of the present application.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the division of the modules into only one logical function may be implemented in an alternate manner, e.g., multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. The shown or discussed mutual coupling, direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some interfaces, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are wholly or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)), or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media.

Claims (11)

1. The equipment network distribution method is characterized by being applied to a router, wherein the router has access to the Internet and has the function of simultaneously providing two different access points; the method comprises the following steps:
starting an external network wireless access point;
starting a pre-agreed intranet wireless access point to enable equipment to be networked to establish intranet wireless access connection with the router based on the intranet wireless access point, wherein the intranet wireless access connection is local area network communication connection established between the equipment within the access point range of the intranet wireless access point and the router;
receiving a distribution network request from the equipment to be distributed through the intranet wireless access connection;
responding to the distribution network request, sending distribution network response information to the equipment to be distributed so that the equipment to be distributed establishes external network wireless access connection with the router according to the distribution network response information to access the internet, wherein the distribution network response information comprises a service set identifier and an access password of the external network wireless access point.
2. The device network distribution method according to claim 1, wherein before receiving the distribution network request information from the device to be distributed through the intranet wireless access connection, the method further comprises:
receiving an access request to the intranet wireless access point, which is sent by the to-be-distributed network equipment based on a pre-agreed service set identifier of the intranet wireless access point, wherein the access request comprises a pre-agreed access password of the intranet wireless access point;
responding to the access request, and sending an access response message to the equipment to be networked so as to establish intranet wireless access connection with the equipment to be networked;
receiving a transmission protocol connection request from the equipment to be networked through the intranet wireless access connection;
and responding to the transmission protocol connection request, establishing transmission protocol connection with the equipment to be distributed, wherein the transmission protocol connection is used for configuring the data transmission mode of the equipment to be distributed and the router to be transmission by adopting a preset encryption algorithm.
3. The device network distribution method according to claim 1, wherein after sending network distribution response information to the device to be networked in response to the network distribution request information, the method further comprises:
after receiving confirmation feedback information from the equipment to be networked, determining that the equipment to be networked is the equipment already networked, and updating a distribution network equipment list, wherein the distribution network equipment list comprises equipment information of the equipment already networked, and the confirmation feedback information is used for indicating that the equipment to be networked has access to the internet.
4. The device network distribution method according to claim 3, further comprising:
receiving a query request from an electronic device, wherein the query request comprises a target device identification;
inquiring in the distribution network equipment list according to the target equipment identification to obtain an equipment distribution network result corresponding to the target equipment identification;
and sending the equipment distribution network result to the electronic equipment.
5. The device network distribution method according to claim 3, further comprising:
and under the condition that the distribution network response information is changed, sending changed distribution network response information to the changed distribution network equipment, and restarting the external network wireless access point based on the changed distribution network response information so that the changed distribution network equipment is accessed to the Internet again based on the changed distribution network response information.
6. A method for distributing a network for equipment is applied to a first terminal equipment, and comprises the following steps:
under the condition that a preset intranet wireless access point is detected to be opened, establishing a first intranet wireless access connection with a router for opening the intranet wireless access point based on the intranet wireless access point, wherein the first intranet wireless access connection is a local area network communication connection established between equipment within the range of the access point of the intranet wireless access point and the router, and the router has access to the internet and an extranet wireless access point of the router is opened;
sending a first distribution network request to the router through the first intranet wireless access connection;
receiving first distribution network response information sent by the router in response to the first distribution network request, wherein the first distribution network response information comprises a service set identifier and an access password of the external network wireless access point;
disconnecting the first intranet wireless access connection;
and establishing a first external network wireless access connection with the router according to the service set identifier and the access password so as to access the Internet.
7. The device network distribution method according to claim 6, wherein the establishing a first intranet wireless access connection based on the intranet wireless access point and the router that opens the intranet wireless access point comprises:
based on a service set identifier of the intranet wireless access point agreed in advance, sending an access request for the intranet wireless access point to the router, wherein the access request comprises an access password of the intranet wireless access point agreed in advance;
receiving an access response message sent by the router in response to the access request so as to establish the first intranet wireless access connection with the router;
and sending a transmission protocol connection request to the router through the first intranet wireless access connection so as to establish transmission protocol connection with the router, wherein the transmission protocol connection is used for configuring a data transmission mode of the first terminal equipment and the router and adopting a preset encryption algorithm for transmission.
8. The device network distribution method according to claim 6, wherein after establishing the first extranet wireless access connection with the router according to the service set identifier and the access password to access the internet, the method further comprises:
starting the intranet wireless access point to enable second terminal equipment to establish a second intranet wireless access connection with the first terminal equipment based on the intranet wireless access point, wherein the second intranet wireless access connection is a local area network communication connection established between equipment within the range of the access point of the intranet wireless access point and the first terminal equipment, and the second terminal equipment is within the communication range of the first terminal equipment and the communication range of the router;
receiving a second distribution network request from the second terminal equipment through the second intranet wireless access connection;
and responding to the second distribution network request, sending second distribution network response information to the second terminal equipment so that the second terminal equipment establishes an external network wireless access connection with the router according to the second distribution network response information to access the internet, wherein the second distribution network response information comprises a service set identifier and an access password of the external network wireless access point.
9. The equipment network distribution method is characterized by being applied to terminal equipment, wherein the terminal equipment is connected with a router and accesses the Internet, and an external network wireless access point of the router is opened; the method comprises the following steps:
starting a pre-appointed intranet wireless access point to enable equipment to be networked to establish intranet wireless access connection with the terminal equipment based on the intranet wireless access point, wherein the intranet wireless access connection is local area network communication connection established between the equipment within the access point range of the intranet wireless access point and the terminal equipment;
receiving distribution network request information from the equipment to be distributed through the intranet wireless access connection, wherein the equipment to be distributed is in the communication range of the terminal equipment and the communication range of the router;
responding to the distribution network request information, sending distribution network response information to the equipment to be distributed so that the equipment to be distributed establishes external network wireless access connection with the router according to the distribution network response information to access the internet, wherein the distribution network response information comprises a service set identifier and an access password of the external network wireless access point.
10. A communication device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the device networking method of any of claims 1 to 5 or any of claims 6 to 8 or claim 9.
11. A computer-readable storage medium, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of the device network distribution method according to any one of claims 1 to 6 or 6 to 8 or 9.
CN202011319173.1A 2020-11-23 2020-11-23 Equipment network distribution method, related equipment and storage medium Pending CN112469055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011319173.1A CN112469055A (en) 2020-11-23 2020-11-23 Equipment network distribution method, related equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011319173.1A CN112469055A (en) 2020-11-23 2020-11-23 Equipment network distribution method, related equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112469055A true CN112469055A (en) 2021-03-09

Family

ID=74799424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011319173.1A Pending CN112469055A (en) 2020-11-23 2020-11-23 Equipment network distribution method, related equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112469055A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112688968A (en) * 2021-03-12 2021-04-20 深圳市乙辰科技股份有限公司 Network security configuration method and system based on wireless network equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112688968A (en) * 2021-03-12 2021-04-20 深圳市乙辰科技股份有限公司 Network security configuration method and system based on wireless network equipment

Similar Documents

Publication Publication Date Title
CN106878923B (en) Quick networking method for ultra-low power consumption intelligent equipment and intelligent home system
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
WO2018077018A1 (en) Networking method and device, network connection method and device, router, and smart home appliance
US20140241252A1 (en) Method and apparatus for switching service of multi-mode terminal
JP5402926B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION CONTROL PROGRAM
TW201513710A (en) A method, apparatus and system of configuring equipments for joining a network group
CN107231606B (en) WiFi network access method, intelligent hardware equipment and electronic terminal
CN105392181B (en) A kind of networking method of smart machine, apparatus and system
CN105392185B (en) A kind of networking method of smart machine, apparatus and system
CN103716393A (en) Resource sharing method and device and terminal used for LAN communication
CN103200601A (en) Wireless access point fat-thin mode switching method
CN105612805A (en) Communication method, communication system and relevant device of wearable device
WO2015051701A1 (en) Method for realizing multi-channel concurrent internet accessing by synchronizing wifi with apn network, and automatically choosing wifi networking preferentially
WO2020082633A1 (en) Radio frequency parameter configuration method and device and smart home appliance
WO2021057160A1 (en) Method for establishing communication connection after device is offline and smart home system
CN105450779A (en) Method for achieving connection between one household electric appliance and multiple servers
CN105471983A (en) Method and system for establishing internet-of-things communication
US20210235516A1 (en) Network access method, device, and system
US20170251428A1 (en) Methods and Nodes for M2M Communication
US9425982B2 (en) Server and method for providing device management service and device receiving the device management service
CN112469055A (en) Equipment network distribution method, related equipment and storage medium
CN109561340B (en) Multimedia service processing method, device, multimedia service group and storage medium
WO2019218951A1 (en) Method and terminal for transmitting file
CN105721189A (en) Network port configuration method and device for network equipment
US10693714B2 (en) Communication method for Wi-Fi internet of things equipment and Wi-Fi internet of things system

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