CN112866065B - Equipment network distribution method and device, electronic equipment and computer readable medium - Google Patents

Equipment network distribution method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112866065B
CN112866065B CN202110017980.6A CN202110017980A CN112866065B CN 112866065 B CN112866065 B CN 112866065B CN 202110017980 A CN202110017980 A CN 202110017980A CN 112866065 B CN112866065 B CN 112866065B
Authority
CN
China
Prior art keywords
networked
equipment
target terminal
authentication information
networking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110017980.6A
Other languages
Chinese (zh)
Other versions
CN112866065A (en
Inventor
王兆琦
肖岱云
李喜林
覃广志
唐杰
刘洪钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110017980.6A priority Critical patent/CN112866065B/en
Publication of CN112866065A publication Critical patent/CN112866065A/en
Application granted granted Critical
Publication of CN112866065B publication Critical patent/CN112866065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The application provides a device network distribution method, a device, electronic equipment and a computer readable medium, and belongs to the technical field of network distribution. The method comprises the following steps: a method for distributing a network to a device is applied to the device to be networked, and comprises the following steps: acquiring a first data packet sent by a target terminal through a first access point, wherein the equipment to be networked comprises a plurality of access points; acquiring first authentication information from the first data packet, and performing equipment networking through the first authentication information; and under the condition of networking failure, acquiring a second data packet sent by the target terminal through a second access point until networking is successful, wherein the first access point is different from the second access point. The method and the device can continuously and actively receive the new data packet under the condition of networking failure, and improve the success rate of the distribution network.

Description

Equipment network distribution method and device, electronic equipment and computer readable medium
Technical Field
The present application relates to the field of distribution network technologies, and in particular, to a method and an apparatus for distributing a network for a device, an electronic device, and a computer-readable medium.
Background
Along with the improvement of living standard, various smart homes can be added in a user home, and the user can freely control the smart homes through terminals such as a mobile phone or a computer, so that great convenience is brought to the life of the user. The intelligent home needs to be distributed with networks before being formally started, and the target distribution network has various modes including automatic distribution network, manual distribution, Bluetooth distribution, mesh distribution and the like.
When a user is in a network distribution, authentication information, namely a wifi account and a password in the current environment, needs to be input on a terminal, an access point is arranged on a common smart home and can receive the authentication information sent by the terminal, and if the user inputs the authentication information incorrectly, the access point always analyzes the incorrect authentication information, so that the network distribution is not successful, and the success rate of the network distribution is low.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for distributing a network by equipment, electronic equipment and a computer readable medium, so as to solve the problem of low success rate of distribution network. The specific technical scheme is as follows:
in a first aspect, a device network distribution method is provided, which is applied to a device to be networked, and includes:
acquiring a first data packet sent by a target terminal through a first access point, wherein the equipment to be networked comprises a plurality of access points;
acquiring first authentication information from the first data packet, and performing equipment networking through the first authentication information;
and under the condition of networking failure, acquiring a second data packet sent by the target terminal through a second access point until networking is successful, wherein the first access point is different from the second access point.
Optionally, after determining that the networking fails, the method further comprises: sending prompt information to a target terminal, wherein the prompt information is used for prompting a user to input authentication information again;
after the second data packet sent by the target terminal is acquired by the second access point, the method further includes: acquiring second authentication information from the second data packet, and performing equipment networking through the second authentication information; and in case of networking success, closing other access points except the second access point.
Optionally, after obtaining the second authentication information from the second data packet, the method further includes: sending a data message to a server, wherein the data message contains equipment information of the equipment to be networked;
after the device networking is performed through the second authentication information, the method further comprises the following steps: if the target duration intranet fails, sending a request instruction to the target terminal, wherein the request instruction is used for requesting the target terminal to acquire the current network fluctuation state; receiving a message instruction sent by the target terminal; and reducing the message capacity and the sending rate of the data message according to the message instruction, wherein the message instruction indicates that the current network fluctuation is first fluctuation data.
Optionally, the method further comprises:
receiving network stability information sent by the target terminal, wherein the network stability information indicates that the current network fluctuation is second fluctuation data, and the second fluctuation data is smaller than the first fluctuation data;
sending an initialization request to the target terminal, wherein the initialization request is used for requesting the target terminal to initialize a plug-in;
acquiring initialization completion information sent by the target terminal;
and performing equipment networking again according to the stored second authentication information.
Optionally, after the device networking is performed through the second authentication information, the method further includes: and saving the second authentication information.
In a second aspect, a device distribution network method is provided, which is applied to a target terminal, and the method includes:
receiving a request instruction sent by equipment to be networked;
acquiring a current network fluctuation state according to the request instruction;
and under the condition that the current network fluctuation is determined to be first fluctuation data, sending a message instruction to the equipment to be networked, wherein the message instruction is used for indicating the equipment to be networked to reduce the message capacity and the sending rate of the data message.
Alternatively,
after acquiring the current network fluctuation state according to the request instruction, the method further comprises:
under the condition that the current network fluctuation is determined to be second fluctuation data, sending network stability information to the equipment to be networked;
receiving an initialization request sent by the equipment to be networked, and initializing a plug-in according to the initialization request;
and sending initialization completion information to the equipment to be networked so that the equipment to be networked performs equipment networking again according to the stored second authentication information.
In a third aspect, an apparatus network distribution apparatus is provided, which is applied to an apparatus to be networked, and includes:
the device to be networked comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first data packet sent by a target terminal through a first access point, and the device to be networked comprises a plurality of access points;
the second acquisition module is used for acquiring first authentication information from the first data packet and performing equipment networking through the first authentication information;
and a third obtaining module, configured to obtain, by a second access point, a second data packet sent by the target terminal until networking is successful under the condition that networking fails, where the first access point is different from the second access point.
In a fourth aspect, an apparatus for a device distribution network is provided, which is applied to a target terminal, and the apparatus includes:
the receiving module is used for receiving a request instruction sent by the equipment to be networked;
the fourth acquisition module is used for acquiring the current network fluctuation state according to the request instruction;
and the sending module is used for sending a message instruction to the equipment to be networked under the condition that the current network fluctuation is determined to be first fluctuation data, wherein the message instruction is used for indicating the equipment to be networked to reduce the message capacity and the sending rate of the data message.
In a fifth aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing any of the method steps described herein when executing the program stored in the memory.
In a sixth aspect, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out any of the method steps.
The embodiment of the application has the following beneficial effects: the embodiment of the application provides a network distribution method for equipment, which comprises the following steps: the method comprises the steps that equipment to be networked acquires a first data packet sent by a target terminal through a first access point, wherein the equipment to be networked comprises a plurality of access points; acquiring first authentication information from the first data packet, and performing equipment networking through the first authentication information; and under the condition of networking failure, acquiring a second data packet sent by the target terminal through a second access point until networking is successful. In the application, after the networking equipment fails to be networked at every time, other access points are adopted to receive the data packet sent by the target terminal and perform networking, the situation that the access points do not receive other data packets after receiving wrong data packets is avoided, new data packets can be continuously and actively received under the condition of networking failure, the success rate of network distribution is improved, and the intelligent home experience of a user is improved.
Of course, not all of the above advantages need be achieved in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a method for device distribution provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an apparatus distribution network device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of another device distribution network apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which 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 invention.
The embodiment of the application provides a device network distribution method, which can be applied to a device to be networked and a target terminal and is used for improving the network distribution success rate of the device to be networked.
A detailed description will be given below of a device network distribution method provided in the embodiment of the present application, with reference to a specific implementation manner and taking a device to be networked as an example, as shown in fig. 1, the specific steps are as follows:
step 101: and acquiring a first data packet sent by the target terminal through the first access point.
Wherein the device to be networked comprises a plurality of access points.
In the embodiment of the present application, the device to be networked includes a plurality of APs (wireless access points), and in the networking process, the target terminal needs to send authentication information to the device to be networked, and then the device to be networked performs networking according to the authentication information. Specifically, a target terminal sends a UDP (User Datagram Protocol) data packet to a device to be networked, and the device to be networked obtains a first data packet sent by the target terminal through a first access point. The first access point is any one of a plurality of access points. Illustratively, the authentication information may be an SSID (Service Set Identifier).
Step 102: and acquiring first authentication information from the first data packet, and performing equipment networking through the first authentication information.
In the embodiment of the application, the device to be networked analyzes the first authentication information from the first data packet, and performs device networking through the first authentication information. If the first authentication information is correct authentication information and indicates that the equipment to be networked is successfully connected with the router, the equipment to be networked sends a data message to the server through the router, and the server and the equipment to be networked are networked, so that the equipment can normally work. The data packet includes device information of the device to be networked, and illustratively, the data packet includes device information such as a device serial number and a device name.
Step 103: and under the condition of networking failure, acquiring a second data packet sent by the target terminal through a second access point until networking is successful. Wherein the first access point is different from the second access point.
In the embodiment of the application, if the first authentication information is wrong authentication information, the networking of the device to be networked fails. And the equipment to be networked sends prompt information to the target terminal, and the user re-inputs the authentication information according to the prompt information. And the target terminal sends a second data packet containing second authentication information to the equipment to be networked, and the equipment to be networked receives the second data packet through the second access point and performs networking. If the networking of the device to be networked fails, the prompt message is continuously sent to the target terminal, the user inputs the authentication information again, and then the device to be networked receives the data packet sent by the target terminal through different access points and conducts networking until the networking is successful.
In the application, after the networking device fails to network each time, other access points are adopted to receive the data packet sent by the target terminal and perform networking, so that the situation that the access points do not receive other data packets any more after receiving wrong data packets is avoided. The method and the device can continuously and actively receive the new data packet under the condition of networking failure, improve the success rate of the distribution network, and improve the experience of the smart home of the user.
As an optional implementation manner, after determining that the networking fails, the method further includes: sending prompt information to a target terminal, wherein the prompt information is used for prompting a user to input authentication information again; after the second data packet sent by the target terminal is acquired by the second access point, the method further includes: acquiring second authentication information from the second data packet, and performing equipment networking through the second authentication information; and in case of networking success, closing other access points except the second access point.
In the embodiment of the application, if the first authentication information is wrong authentication information, the device to be networked fails to be networked, the device to be networked sends prompt information to the target terminal, and the user re-inputs the authentication information according to the prompt information. And the target terminal sends a second data packet containing the re-input authentication information to the equipment to be networked, the equipment to be networked receives the second data packet through a second access point, acquires second authentication information from the second data packet, and performs equipment networking through the second authentication information. And if the networking is successful, closing other access points except the second access point to avoid energy consumption.
As an optional implementation manner, after obtaining the second authentication information from the second data packet, the method further includes: sending a data message to a server, wherein the data message contains equipment information of the equipment to be networked; after the device networking is performed through the second authentication information, the method further comprises the following steps: if the target duration intranet fails, sending a request instruction to the target terminal, wherein the request instruction is used for requesting the target terminal to acquire the current network fluctuation state; receiving a message instruction sent by the target terminal; and reducing the message capacity and the sending rate of the data message according to the message instruction, wherein the message instruction indicates that the current network fluctuation is first fluctuation data.
In this embodiment of the application, after the device to be networked acquires the second authentication information from the second data packet, if the second authentication information is correct authentication information, the device to be networked may connect to the router according to the authentication information, and the device to be networked sends a data packet to the server through the router, where the data packet includes device information of the device to be networked.
And if the equipment to be networked cannot be connected to the router within the target time length, indicating that the networking fails. When the equipment is distributed with a network, many hidden factors can affect the efficiency of the distribution network, such as signal interference, the current packet capturing state of the WiFi module of the equipment, complex operation of the distribution network of a user and the like, and the hidden factors can directly or indirectly affect the fluency of the distribution network. In order to judge whether the networking fails due to network reasons, the equipment to be networked sends a request instruction to the target terminal to request the target terminal to acquire the current network fluctuation state. The target terminal receives a request instruction sent by the equipment to be networked, and then acquires the current network fluctuation state according to the request instruction.
If the target terminal determines that the current network fluctuation is first fluctuation data, which indicates that the current network is really abnormal, the network stability is poor, the network fluctuation is large, the data transmission is slow and the data is easy to miss, the target terminal sends a message instruction to the equipment to be networked, the equipment to be networked receives the message instruction sent by the target terminal, and the message capacity and the sending rate of the data message are reduced according to the message instruction, so that the stability of message data transmission is ensured, and the phenomenon of packet loss is reduced.
If the target terminal determines that the current network fluctuation is the second fluctuation data, the current network is stable, and the data transmission performance is good, the target terminal may be the target terminal and the plug-in of the application software matched with the device to be networked may generate error data. And the target terminal sends network stability information to the equipment to be networked, the equipment to be networked receives the network stability information sent by the target terminal, and if the network is determined to be in a stable state, the data message is stopped from being sent to the server, and the interaction with the target terminal is recovered. Specifically, the device to be networked sends an initialization request to the target terminal, the target terminal performs plug-in initialization, after initialization is completed, initialization completion information is sent to the device to be networked, and the device to be networked performs device networking again according to the stored second authentication information.
As an optional implementation manner, after the device to be networked performs device networking through the second authentication information, if it is determined that the second authentication information is correct authentication information, the second authentication information is stored. Therefore, after the to-be-networked equipment receives the initialization completion information, the to-be-networked equipment needs to be newly connected with the router and needs second authentication information, the stored second authentication information can be directly acquired, the target terminal does not need to resend the authentication information, the situation that a plurality of access points are opened again is avoided, the network distribution efficiency is improved, and energy is saved. Illustratively, the device to be networked can save the second authentication information to the flash.
In the embodiment of the application, since the correct authentication information is stored, when the device to be networked resets and re-networks the network, the device to be networked can send inquiry information to the target terminal for inquiring whether the authentication information changes, that is, whether the router environment changes, if the device to be networked receives an unchanged result sent by the target terminal, the device to be networked can directly perform networking according to the stored authentication information, and if the device to be networked receives a changed result sent by the target terminal, the device to be networked can send a change request to the target terminal, and the target terminal re-inputs the authentication information according to the change request.
As an optional implementation manner, if the user finds that the user inputs an error in time after the user inputs the wrong authentication information at the target terminal, the user exits from the networking interface of the current application software and re-inputs the authentication information. If the user exits the networking interface and the data packet is not sent, the equipment to be networked always starts the first access point to capture the data packet; if the user exits the networking interface and the data packet is sent out, the signal polling state is started after the networking of the device to be networked fails through the first access point, and the second access point is started to continuously capture the data packet.
The embodiment of the application also provides a process of the equipment network distribution method, which comprises the following specific steps:
1. the user inputs wrong first authentication information, and if the user finds that the authentication information is wrong in time, the step 2 is executed; if the user does not find the authentication information is wrong, step 3 is executed.
2. When the user exits the current distribution network interface and the data packet is not sent out, the equipment to be networked continues to start the first access point to capture the data packet; and if the data packet is sent out, the network distribution fails after the equipment to be networked captures the data packet through the first access point, and then the second access point is started.
3. And the equipment to be networked performs network distribution according to the first authentication information, and the network distribution fails.
4. And the equipment to be networked sends prompt information to the target terminal, the user re-inputs second authentication information according to the prompt information, the equipment to be networked distributes the network according to the second authentication information, the second authentication information is correct authentication information, but the equipment to be networked fails to display the network distribution after the target duration.
5. And the equipment to be networked sends a request instruction to the target terminal, if the target terminal determines that the current network fluctuation is large, the target terminal sends a message instruction to the equipment to be networked, and the equipment to be networked reduces the message capacity and the sending rate of the data message according to the message instruction.
6. And if the target terminal determines that the current network has small fluctuation, performing plug-in initialization, and after the initialization is completed, performing equipment networking again by the equipment to be networked according to the stored second authentication information.
An embodiment of the present application further provides an apparatus distribution network device, as shown in fig. 2, the apparatus includes:
a first obtaining module 201, configured to obtain, through a first access point, a first data packet sent by a target terminal, where the device to be networked includes multiple access points;
a second obtaining module 202, configured to obtain first authentication information from the first data packet, and perform device networking through the first authentication information;
a third obtaining module 203, configured to obtain, by a second access point, a second data packet sent by the target terminal until networking is successful under the condition that networking fails, where the first access point is different from the second access point.
Optionally, the apparatus further comprises:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending prompt information to a target terminal, and the prompt information is used for prompting a user to input authentication information again;
the fourth acquisition module is used for acquiring second authentication information from the second data packet and performing equipment networking through the second authentication information;
and the closing module is used for closing other access points except the second access point under the condition of successful networking.
Optionally, the apparatus further comprises:
the second sending module is used for sending a data message to a server, wherein the data message contains the equipment information of the equipment to be networked;
a third sending module, configured to send a request instruction to the target terminal if the target duration intranet fails, where the request instruction is used to request the target terminal to obtain a current network fluctuation state;
the first receiving module is used for receiving the message instruction sent by the target terminal;
and the reducing module is used for reducing the message capacity and the sending rate of the data message according to the message instruction, wherein the message instruction indicates that the current network fluctuation is first fluctuation data.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive network stability information sent by the target terminal, where the network stability information indicates that the current network fluctuation is second fluctuation data, and the second fluctuation data is smaller than the first fluctuation data;
a fourth sending module, configured to send an initialization request to the target terminal, where the initialization request is used to request the target terminal to perform plug-in initialization;
a fifth obtaining module, configured to obtain initialization completion information sent by the target terminal;
and the networking module is used for carrying out equipment networking again according to the stored second authentication information.
Optionally, the apparatus further comprises:
and the storage module is used for storing the second authentication information.
The present application further provides a device distribution network apparatus, which is applied to a target terminal, as shown in fig. 3, the apparatus includes:
a first receiving module 301, configured to receive a request instruction sent by a device to be networked;
a first obtaining module 302, configured to obtain a current network fluctuation state according to the request instruction;
a first sending module 303, configured to send a message instruction to the device to be networked, where the message instruction is used to instruct the device to be networked to reduce the message capacity and sending rate of the data message, when it is determined that the current network fluctuation is the first fluctuation data.
Optionally, the apparatus further comprises:
the second sending module is used for sending the network stability information to the equipment to be networked under the condition that the current network fluctuation is determined to be second fluctuation data;
the second receiving module is used for receiving the initialization request sent by the equipment to be networked and carrying out plug-in initialization according to the initialization request;
and the third sending module is used for sending initialization completion information to the equipment to be networked so as to enable the equipment to be networked to perform equipment networking again according to the stored second authentication information.
Based on the same technical concept, the embodiment of the present invention further provides an electronic device, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403 and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401 is configured to implement the above steps when executing the program stored in the memory 403.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In a further embodiment provided by the present invention, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any of the methods described above.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the methods of the above embodiments.
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. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. 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 in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (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 incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A method for distributing a network to a device is applied to the device to be networked, and is characterized by comprising the following steps:
acquiring a first data packet sent by a target terminal through a first access point, wherein the equipment to be networked comprises a plurality of access points;
acquiring first authentication information from the first data packet, and performing equipment networking through the first authentication information;
under the condition of networking failure, a second data packet sent by the target terminal is obtained through a second access point until networking is successful, wherein the first access point is different from the second access point;
wherein, after determining that networking has failed, the method further comprises: sending prompt information to a target terminal, wherein the prompt information is used for prompting a user to input authentication information again;
after the second data packet sent by the target terminal is acquired by the second access point, the method further includes: acquiring second authentication information from the second data packet, and performing equipment networking through the second authentication information; in case of successful networking, closing other access points except the second access point;
after obtaining the second authentication information from the second data packet, the method further includes: sending a data message to a server, wherein the data message contains equipment information of the equipment to be networked;
after the device networking is performed through the second authentication information, the method further comprises the following steps: if the target duration intranet fails, sending a request instruction to the target terminal, wherein the request instruction is used for requesting the target terminal to acquire the current network fluctuation state; receiving a message instruction sent by the target terminal; and reducing the message capacity and the sending rate of the data message according to the message instruction, wherein the message instruction indicates that the current network fluctuation is first fluctuation data, and the first fluctuation data is used for indicating that the current network is unstable.
2. The method of claim 1, wherein after sending the request instruction to the target terminal, the method further comprises:
receiving network stability information sent by the target terminal, wherein the network stability information indicates that the current network fluctuation is second fluctuation data, and the second fluctuation data is used for indicating the current network stability;
sending an initialization request to the target terminal, wherein the initialization request is used for requesting the target terminal to initialize a plug-in;
acquiring initialization completion information sent by the target terminal;
and performing equipment networking again according to the stored second authentication information.
3. The method of claim 1,
after the device networking is performed through the second authentication information, the method further comprises the following steps: and saving the second authentication information.
4. A method for distributing a network for equipment is applied to a target terminal, and is characterized in that the method comprises the following steps:
receiving a request instruction sent by a device to be networked, wherein the request instruction is sent by the device to be networked after the intranet fails in a target time length;
acquiring a current network fluctuation state according to the request instruction;
and under the condition that the current network fluctuation is determined to be first fluctuation data, sending a message instruction to the equipment to be networked, wherein the message instruction is used for indicating the equipment to be networked to reduce the message capacity and the sending rate of the sent data message, and the first fluctuation data is used for indicating that the current network is unstable.
5. The method of claim 4, wherein after obtaining the current network fluctuation status according to the request instruction, the method further comprises:
under the condition that the current network fluctuation is determined to be second fluctuation data, sending network stability information to the equipment to be networked, wherein the second fluctuation data is used for indicating the current network stability;
receiving an initialization request sent by the equipment to be networked, and initializing a plug-in according to the initialization request;
and sending initialization completion information to the equipment to be networked so that the equipment to be networked performs equipment networking again according to the stored second authentication information.
6. An equipment distribution network device is applied to equipment to be networked, and is characterized in that the device comprises:
the device to be networked comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first data packet sent by a target terminal through a first access point, and the device to be networked comprises a plurality of access points;
the second acquisition module is used for acquiring first authentication information from the first data packet and performing equipment networking through the first authentication information;
a third obtaining module, configured to obtain, by a second access point, a second data packet sent by the target terminal under the condition of a failure of networking until the networking is successful, where the first access point is different from the second access point;
wherein the apparatus further comprises:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending prompt information to a target terminal, and the prompt information is used for prompting a user to input authentication information again;
the fourth acquisition module is used for acquiring second authentication information from the second data packet and performing equipment networking through the second authentication information;
a closing module, configured to close other access points except the second access point when the networking is successful;
wherein the apparatus further comprises:
the second sending module is used for sending a data message to a server, wherein the data message contains the equipment information of the equipment to be networked;
a third sending module, configured to send a request instruction to the target terminal if the target duration intranet fails, where the request instruction is used to request the target terminal to obtain a current network fluctuation state;
the first receiving module is used for receiving the message instruction sent by the target terminal;
and the reducing module is used for reducing the message capacity and the sending rate of the data message according to the message instruction, wherein the message instruction indicates that the current network fluctuation is first fluctuation data, and the first fluctuation data is used for indicating that the current network is unstable.
7. An equipment distribution network device is applied to a target terminal, and is characterized by comprising:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a request instruction sent by a device to be networked, and the request instruction is sent by the device to be networked after the intranet fails in a target time length;
the fourth acquisition module is used for acquiring the current network fluctuation state according to the request instruction;
and the sending module is used for sending a message instruction to the equipment to be networked under the condition that the current network fluctuation is determined to be first fluctuation data, wherein the message instruction is used for indicating the equipment to be networked to reduce the message capacity and the sending rate of the sent data message, and the first fluctuation data is used for indicating that the current network is unstable.
8. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-3 or 4-5 when executing a program stored in the memory.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 3 or 4 to 5.
CN202110017980.6A 2021-01-07 2021-01-07 Equipment network distribution method and device, electronic equipment and computer readable medium Active CN112866065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110017980.6A CN112866065B (en) 2021-01-07 2021-01-07 Equipment network distribution method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110017980.6A CN112866065B (en) 2021-01-07 2021-01-07 Equipment network distribution method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112866065A CN112866065A (en) 2021-05-28
CN112866065B true CN112866065B (en) 2021-12-24

Family

ID=76004808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110017980.6A Active CN112866065B (en) 2021-01-07 2021-01-07 Equipment network distribution method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112866065B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792316A (en) * 2016-04-19 2016-07-20 欧普照明股份有限公司 Network configuration method and network configuration device for intelligent equipment
CN109525976A (en) * 2018-12-05 2019-03-26 深圳创维数字技术有限公司 With network method, system and readable storage medium storing program for executing
CN110677840A (en) * 2019-09-30 2020-01-10 珠海格力电器股份有限公司 Distribution network failure reason determining method, equipment and readable medium
CN111130828A (en) * 2018-10-31 2020-05-08 深圳市冠旭电子股份有限公司 Intelligent network distribution method and device and terminal equipment
CN111132267A (en) * 2018-10-31 2020-05-08 深圳市冠旭电子股份有限公司 Network distribution method and device and terminal equipment
CN111225077A (en) * 2019-11-20 2020-06-02 四川虹美智能科技有限公司 Network distribution method, device and system for Internet of things equipment
CN111372300A (en) * 2020-02-19 2020-07-03 珠海格力电器股份有限公司 Method and device for connecting network
EP3740025A1 (en) * 2018-02-07 2020-11-18 Huawei Technologies Co., Ltd. Network access method, device, and system
CN112104532A (en) * 2020-09-10 2020-12-18 中移(杭州)信息技术有限公司 Network connection method, network distribution device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108064071B (en) * 2018-02-13 2020-06-16 Oppo广东移动通信有限公司 Network connection method, device, storage medium and electronic equipment
CN111200760A (en) * 2019-11-26 2020-05-26 安徽文香信息技术有限公司 Data processing method and device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792316A (en) * 2016-04-19 2016-07-20 欧普照明股份有限公司 Network configuration method and network configuration device for intelligent equipment
EP3740025A1 (en) * 2018-02-07 2020-11-18 Huawei Technologies Co., Ltd. Network access method, device, and system
CN111130828A (en) * 2018-10-31 2020-05-08 深圳市冠旭电子股份有限公司 Intelligent network distribution method and device and terminal equipment
CN111132267A (en) * 2018-10-31 2020-05-08 深圳市冠旭电子股份有限公司 Network distribution method and device and terminal equipment
CN109525976A (en) * 2018-12-05 2019-03-26 深圳创维数字技术有限公司 With network method, system and readable storage medium storing program for executing
CN110677840A (en) * 2019-09-30 2020-01-10 珠海格力电器股份有限公司 Distribution network failure reason determining method, equipment and readable medium
CN111225077A (en) * 2019-11-20 2020-06-02 四川虹美智能科技有限公司 Network distribution method, device and system for Internet of things equipment
CN111372300A (en) * 2020-02-19 2020-07-03 珠海格力电器股份有限公司 Method and device for connecting network
CN112104532A (en) * 2020-09-10 2020-12-18 中移(杭州)信息技术有限公司 Network connection method, network distribution device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112866065A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
US8352569B2 (en) Full mesh rates transaction in a network
WO2018077018A1 (en) Networking method and device, network connection method and device, router, and smart home appliance
CN109417691B (en) Bluetooth cluster online upgrading method and device
CN110830968A (en) Networking method and device, Bluetooth equipment and computer readable medium
CN108667699B (en) Method and device for interconnecting terminal equipment and gateway equipment
CN110740460A (en) device network access method, device, network device and storage medium
CN111194035B (en) Network connection method, device and storage medium
CN111372300A (en) Method and device for connecting network
WO2021042612A1 (en) Wireless screen projection method and apparatus, device and storage medium
CN110324193A (en) A kind of terminal upgrade management method and device
CN113490218A (en) Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium
CN112770308A (en) Network distribution method and device of intelligent device, electronic device and computer readable medium
CN111277505B (en) Multi-terminal joint control method, device, equipment and storage medium based on local area network
CN111405059A (en) Data transmission method of cloud equipment, electronic equipment and Internet of things system
CN108055172B (en) Bidirectional forwarding detection method and device
CN112672352B (en) Network distribution method for intelligent equipment, mesh relay node, intelligent equipment and server
CN112866065B (en) Equipment network distribution method and device, electronic equipment and computer readable medium
CN113709142B (en) Hot spot distribution network method and device, intelligent terminal and storage medium
US10979287B2 (en) Method and apparatus for receiving a solution when configuration function verification fails in a terminal
CN115103359A (en) Network distribution method and device, network to be distributed equipment, electronic device and readable storage medium
CN113132333B (en) Networking login method, household appliance equipment, household appliance system and storage medium
CN109729016B (en) Message sending method, message sending equipment and computer readable storage medium
CN112087745A (en) Network distribution method and device of household appliance, electronic device and storage medium
CN109361682B (en) Communication method, device, equipment and storage medium
CN114245405B (en) Equipment network distribution method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant