CN111263377B - Network configuration method, device, equipment and system and distribution network testing method and system - Google Patents

Network configuration method, device, equipment and system and distribution network testing method and system Download PDF

Info

Publication number
CN111263377B
CN111263377B CN201811459600.9A CN201811459600A CN111263377B CN 111263377 B CN111263377 B CN 111263377B CN 201811459600 A CN201811459600 A CN 201811459600A CN 111263377 B CN111263377 B CN 111263377B
Authority
CN
China
Prior art keywords
network
devices
distribution
networked
distribution network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811459600.9A
Other languages
Chinese (zh)
Other versions
CN111263377A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811459600.9A priority Critical patent/CN111263377B/en
Publication of CN111263377A publication Critical patent/CN111263377A/en
Application granted granted Critical
Publication of CN111263377B publication Critical patent/CN111263377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Abstract

The embodiment of the invention provides a network configuration method, a device, equipment and a system as well as a distribution network testing method and a system, wherein the network configuration system comprises the following components: the management equipment comprises a plurality of devices to be networked and a plurality of distribution network devices, wherein the devices to be networked and the distribution network devices are connected with the management equipment; the management device is configured to: acquiring identifications of a plurality of distribution network devices, and informing the identifications of the plurality of distribution network devices to a plurality of devices to be accessed in a one-to-one correspondence manner; any one of the plurality of network distribution devices is configured to: broadcasting and sending a distribution network packet comprising the identification of any distribution network equipment; any one of the multiple devices to be networked is configured to: if the identification of any distribution network equipment in the received distribution network packet is consistent with the identification of the distribution network equipment which is notified by any to-be-accessed equipment, analyzing network configuration information from the distribution network packet, and accessing the wireless network according to the network configuration information. By notifying the identifiers of the distribution network equipment for network configuration of the equipment to be accessed in advance, the network configuration of the equipment to be accessed is realized at the same time.

Description

Network configuration method, device, equipment and system and distribution network testing method and system
Technical Field
The invention relates to the technical field of communication, in particular to a network configuration method, a network configuration device, network configuration equipment, a network configuration system, a distribution network testing method and a distribution network testing system.
Background
With the development of mobile internet and artificial intelligence, more and more intelligent products are now appearing in people's lives, such as smart sockets, smart air conditioners, smart speakers, and so on. The communication module (or also called as a communication chip) is embedded in the smart products, for example, a WiFi module is used to enable the smart products to connect to the internet and perform data interaction with the mobile phone/cloud.
However, the intelligent products to which the WiFi module is applied often do not have a human-computer interaction interface like a mobile phone or a computer, and thus cannot autonomously complete configuration operations of network access. Therefore, at present, a mode that a mobile phone and other devices which have access to a wireless network send network configuration information required for accessing the wireless network to an intelligent product is often adopted to perform network configuration on the intelligent product.
In order to ensure that the WiFi module can normally operate the distribution network protocol when being applied to a certain intelligent product and realize successful network access of the corresponding intelligent product, the WiFi module needs to be tested in advance to test whether the WiFi module can effectively support the operation of the distribution network protocol.
Disclosure of Invention
The embodiment of the invention provides a network configuration method, a network configuration device, a network configuration equipment and a network configuration system, and a network configuration testing method and a network configuration testing system, which are used for improving the network configuration testing efficiency of equipment to be networked.
In a first aspect, an embodiment of the present invention provides a network configuration method, which is applied to a device to be networked, and the method includes:
acquiring the identifier of the bound distribution network equipment;
receiving a network distribution packet sent by broadcasting;
if the sender identifier included in the distribution network packet is the same as the identifier of the distribution network equipment, analyzing network configuration information from the distribution network packet;
and performing wireless network access according to the network configuration information.
In a second aspect, an embodiment of the present invention provides a network configuration apparatus, applied to a device to be networked, including:
the acquisition module is used for acquiring the identifier of the bound distribution network equipment;
the receiving module is used for receiving a network distribution packet sent by broadcasting;
the analysis module is used for analyzing the network configuration information from the distribution network packet if the sender identifier included in the distribution network packet is the same as the identifier of the distribution network equipment;
and the networking module is used for performing wireless network access according to the network configuration information.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a first processor and a first memory, where the first memory is used to store one or more computer instructions, and when the one or more computer instructions are executed by the first processor, the network configuration method in the first aspect is implemented.
An embodiment of the present invention provides a computer storage medium, which is used to store a computer program, and the computer program enables a computer to implement the network configuration method in the first aspect when executed.
In a fourth aspect, an embodiment of the present invention provides a network configuration method, which is applied to a management device, and the method includes:
acquiring the identifiers of a plurality of distribution network devices;
and informing the identifications of the plurality of distribution network devices to a plurality of devices to be accessed in a one-to-one correspondence manner, so that when the plurality of devices to be accessed receive the distribution network packets sent by the plurality of distribution network devices, whether the received distribution network packets are analyzed is determined according to the identifications of the respective informed distribution network devices.
In a fifth aspect, an embodiment of the present invention provides a network configuration apparatus, which is applied to a management device, and includes:
the identification acquisition module is used for acquiring the identifications of the plurality of distribution network devices;
and the identifier sending module is used for informing the identifiers of the plurality of distribution network devices to the plurality of devices to be networked one to one, so that when the plurality of devices to be networked receive the distribution network packets sent by the plurality of distribution network devices, whether the received distribution network packets are analyzed is determined according to the identifiers of the respective informed distribution network devices.
In a sixth aspect, an embodiment of the present invention provides an electronic device, which includes a second processor and a second memory, where the second memory is used to store one or more computer instructions, and when the one or more computer instructions are executed by the second processor, the network configuration method in the fourth aspect is implemented.
An embodiment of the present invention provides a computer storage medium, which is used to store a computer program, and the computer program enables a computer to implement the network configuration method in the fourth aspect when executed.
In a seventh aspect, an embodiment of the present invention provides a network configuration system, including:
the system comprises a plurality of devices to be networked, a plurality of distribution network devices and a management device;
the plurality of devices to be networked and the plurality of distribution network devices are respectively connected with the management device; the number of the plurality of devices to be networked is equal to that of the plurality of distribution network devices;
the management device is configured to: acquiring identifiers of the plurality of distribution network devices, and informing the identifiers of the plurality of distribution network devices to the plurality of devices to be networked in a one-to-one correspondence manner;
any one of the plurality of network distribution devices is configured to: broadcasting and sending a distribution network package, wherein the distribution network package comprises an identifier of any distribution network equipment;
any one of the multiple devices to be networked is configured to: and receiving the network distribution packet, if the identification of any network distribution equipment is consistent with the identification of the network distribution equipment which is notified by any equipment to be accessed, analyzing network configuration information from the network distribution packet, and accessing a wireless network according to the network configuration information.
In an eighth aspect, an embodiment of the present invention provides a distribution network testing system, including:
the system comprises a plurality of devices to be networked, a plurality of distribution network devices and a management device;
the plurality of devices to be networked and the plurality of distribution network devices are respectively connected with the management device; the number of the plurality of devices to be networked is equal to that of the plurality of distribution network devices;
the management device is configured to: acquiring identifiers of the plurality of distribution network devices, informing the plurality of devices to be networked of the identifiers of the plurality of distribution network devices in a one-to-one correspondence manner, and determining whether the plurality of devices to be networked support the currently adopted distribution network protocol according to wireless network access results of the plurality of devices to be networked;
any one of the plurality of network distribution devices is configured to: broadcasting and sending a distribution network package, wherein the distribution network package comprises an identifier of any distribution network equipment;
any one of the multiple devices to be networked is configured to: receiving the network distribution package, if the identification of any network distribution equipment is consistent with the identification of the network distribution equipment which is notified by any equipment to be accessed, analyzing network configuration information from the network distribution package, performing wireless network access according to the network configuration information, and sending a wireless network access result to the management equipment.
In a ninth aspect, an embodiment of the present invention provides a distribution network testing method, which is applied to a management device, and includes:
acquiring the identifiers of a plurality of distribution network devices;
the identifiers of the plurality of distribution network devices are informed to a plurality of devices to be networked in a one-to-one correspondence manner, so that when the plurality of devices to be networked receive the distribution network packets sent by the plurality of distribution network devices, whether the received distribution network packets are analyzed is determined according to the identifiers of the respective informed distribution network devices;
receiving wireless network access results respectively sent by the multiple devices to be accessed to the network, wherein the wireless network access results are obtained after the multiple devices to be accessed to the network are accessed to the wireless network according to network configuration information analyzed from the received network configuration packet;
and determining whether the plurality of devices to be networked support the currently adopted distribution network protocol or not according to the wireless network access result.
In a tenth aspect, an embodiment of the present invention provides a network configuration method, applied to a device to be networked, including:
acquiring the identifier of the bound distribution network equipment;
receiving a network distribution packet sent by broadcasting;
if the sender identifier included in the distribution network packet is the same as the identifier of the distribution network equipment, analyzing network configuration information from the distribution network packet;
performing wireless network access according to the network configuration information;
and sending a wireless network access result to management equipment so that the management equipment determines whether the equipment to be accessed supports a distribution network protocol corresponding to the distribution network packet.
In the embodiment of the invention, in order to improve the efficiency of testing whether the equipment to be networked (the equipment which is provided with the WiFi module and does not access the wireless network) can reliably run the distribution network protocol so that the equipment to be networked successfully accesses the wireless network, the following technical scheme for supporting the simultaneous network configuration operation of a plurality of equipment to be networked is provided: the method comprises the steps that a management device is arranged, a plurality of devices to be networked and a plurality of distribution network devices (devices which are accessed to a wireless network) are connected to the management device respectively, the management device can at least obtain the identifications of the distribution network devices, and then the obtained identifications of the distribution network devices are informed to the plurality of devices to be networked in a one-to-one correspondence mode, so that the plurality of devices to be networked know which distribution network device should perform network configuration operation for the devices to be networked, and equivalently, the binding relationship between the devices to be networked and the distribution network devices is established. Therefore, when any distribution network device broadcasts and sends a distribution network packet by operating a certain distribution network protocol, any device to be networked may receive the distribution network packet, but for a certain device to be networked, if the certain device to be networked finds that a sender identifier included in a header of the distribution network packet, that is, an identifier of the distribution network device sending the distribution network packet, is consistent with an identifier of the distribution network device notified before, it is indicated that the distribution network packet is actually sent to itself, the distribution network packet is analyzed by the operating distribution network protocol to obtain network configuration information included in the distribution network packet, and a wireless network is accessed according to the network configuration information. Furthermore, the device to be networked can feed back the wireless network access result to the management device based on the connection relationship with the management device, and the wireless network access result can reflect whether the wireless network access is successful or not, so that the management device can determine whether the device to be networked supports the currently adopted distribution network protocol or not according to the wireless network access result. Therefore, the identification of the distribution network equipment for the network configuration of each equipment to be accessed is informed in advance, so that each equipment to be accessed is not interfered by the distribution network packet sent by other irrelevant distribution network equipment, the network configuration operation of a plurality of equipment to be accessed can be simultaneously carried out to test whether the plurality of equipment to be accessed can reliably run the distribution network protocol, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating a network configuration system according to an embodiment of the present invention;
fig. 2 is a flowchart of a network configuration method according to an embodiment of the present invention;
fig. 3 is a flowchart of another network configuration method according to an embodiment of the present invention;
fig. 4 is a flowchart of a distribution network testing method according to an embodiment of the present invention;
fig. 5 is a flowchart of another distribution network testing method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a network configuration apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device corresponding to the network configuration apparatus provided in the embodiment shown in fig. 6;
fig. 8 is a schematic structural diagram of another network configuration device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device corresponding to the network configuration apparatus provided in the embodiment shown in fig. 8.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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 terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The words "if", as used herein may be interpreted as "at \8230; \8230whenor" when 8230; \8230when or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrases "comprising one of \8230;" does not exclude the presence of additional like elements in an article or system comprising the element.
In addition, the sequence of steps in the embodiments of the methods described below is merely an example, and is not strictly limited.
Fig. 1 is a schematic composition diagram of a network configuration system according to an embodiment of the present invention, and as shown in fig. 1, the network configuration system includes: the network management system comprises a plurality of devices to be networked (such as a device 1 to be networked and a device 2 to be networked shown in fig. 1), a plurality of network distribution devices (such as the network distribution device 1 and the network distribution device 2 shown in fig. 1), and a management device, wherein the plurality of devices to be networked and the plurality of network distribution devices are respectively connected with the management device, and the number of the plurality of devices to be networked and the number of the plurality of network distribution devices are equal.
The management device is configured to: and acquiring the identifications of the plurality of network distribution devices, and informing the identifications of the plurality of network distribution devices to the plurality of devices to be networked in a one-to-one correspondence manner.
Any one of the plurality of network distribution devices is configured to: and broadcasting and sending a distribution network package, wherein the distribution network package comprises the identification of any distribution network equipment.
Any one of the multiple devices to be networked is configured to: and receiving a network distribution packet, if the identifier of any network distribution equipment carried in the received network distribution packet is consistent with the identifier of the network distribution equipment notified by any network equipment to be accessed, analyzing network configuration information from the network distribution packet, and accessing a wireless network according to the network configuration information.
In addition, an embodiment of the present invention further provides a distribution network testing system, including: the network access system comprises a plurality of devices to be accessed to the network, a plurality of network distribution devices and a management device. The network access management system comprises a management device, a plurality of network devices to be accessed and a plurality of network distribution devices, wherein the plurality of network devices to be accessed and the plurality of network distribution devices are respectively connected with the management device; the number of the plurality of devices to be networked is equal to that of the plurality of distribution network devices.
The distribution network test system is used for testing whether each device to be networked supports one or more distribution network protocols, and in the test process:
the management device is configured to: the method comprises the steps of obtaining identifications of a plurality of distribution network devices, informing the identifications of the plurality of distribution network devices to a plurality of devices to be accessed in a one-to-one correspondence manner, and determining whether the plurality of devices to be accessed support the currently adopted distribution network protocol according to a wireless network access result of the plurality of devices to be accessed.
Any one of the plurality of network distribution devices is configured to: and broadcasting and sending a distribution network package, wherein the distribution network package comprises the identification of any distribution network equipment.
Any one of the multiple devices to be networked is configured to: and receiving the distribution network packet, if the identification of any distribution network equipment contained in the distribution network packet is consistent with the identification of the distribution network equipment notified by any equipment to be accessed, analyzing network configuration information from the distribution network packet, performing wireless network access according to the network configuration information, and sending a wireless network access result to the management equipment.
A brief introduction is made to several concepts involved in this document:
first, the device to be networked refers to a device that is equipped with a communication module, such as a WiFi module, and does not access a wireless network. For example, in order to test whether the WiFi module can normally operate one or more distribution network protocols, the WiFi module may be deployed in devices such as a mobile phone, a smart wearable device, and a smart appliance.
Secondly, the distribution network device refers to a device that has access to the wireless network, and the distribution network device is used for performing network configuration operation on the device to be networked. The distribution network device may be, for example, a mobile phone, a tablet computer, or the like. In fact, a specific APP may be run in the distribution network device, so as to implement network configuration of the device to be networked through the APP.
Third, the management device may be a device such as a PC.
Fourth, the distribution network protocol may be, for example, a WiFi fast connection protocol (i.e., smartConfig protocol) of a broadcast mechanism, a WiFi fast connection protocol of a multicast mechanism, and the like, which are widely adopted at present. The difference between the WiFi fast connection protocol of the broadcast mechanism and the WiFi fast connection protocol of the multicast mechanism mainly lies in: the WiFi fast connection protocol of the broadcast mechanism mainly uses Length field (Length) of IEEE 802.11 protocol to transmit network configuration information, and the WiFi fast connection protocol of the broadcast mechanism mainly uses or Destination Medium Access Control (MAC) address field (Destination) to transmit these network configuration information. The network configuration information may include a network name, a network access password, and some auxiliary information, where the network device is accessed. I.e. the network name of the router, i.e. SSID, the access password, i.e. paswd, and some side information.
Fifth, one of the main objectives of the solutions provided herein is to simultaneously implement a test on whether a plurality of devices to be networked support one or more distribution network protocols (for example, the test can be implemented by the distribution network test system), where the test on whether the devices to be networked support the distribution network protocol is implemented by running a certain distribution network protocol through the distribution network devices and performing network configuration on the devices to be networked. In addition, network access configuration for multiple devices to be networked simultaneously (such as may be implemented by the network configuration system shown in fig. 1) may also be implemented based on the scheme provided herein.
As can be seen from the foregoing description, the components of the network configuration system and the distribution network test system may be the same, but the functions of the components of the system are slightly different for the purpose of network configuration and the purpose of network protocol test, and the detailed description below does not repeat the description of the same parts of the two systems.
In the embodiment of the invention, the connection between the plurality of devices to be networked and the plurality of distribution network devices and the management device can be realized in a wired mode such as a serial port.
In the process of simultaneously testing or configuring the network access devices, the corresponding distribution network device needs to be configured for each network access device to complete the test or network access configuration, so that the number of the network access devices is equal to that of the distribution network devices, and the network access devices correspond to the distribution network devices one to one.
The one-to-one correspondence between the multiple devices to be networked and the multiple network distribution devices may be randomly set by a worker on the management device side. When the plurality of devices to be networked and the plurality of distribution network devices are connected with the management device through the serial ports respectively, one-to-one correspondence between the plurality of devices to be networked and the plurality of distribution network devices can be formed by establishing the correspondence between the serial port numbers.
Specifically, assuming that the management device has 10 serial ports in total, wherein five devices to be networked access the serial ports 1 to 5 and five distribution network devices access the serial ports 6 to 10, respectively, a pair of the device to be networked access the serial port 1 and the distribution network device accessing the serial port 6, a pair of the device to be networked access the serial port 2 and the distribution network device accessing the serial port 7, and so on may be set.
In terms of the management device, optionally, the management device may obtain network connection state information of each connected device (including a device to be networked and a network distribution device), and further determine that the device in the wireless network connection state is the network distribution device and the device not accessed to the wireless network state is the device to be networked, so that the management device may know whether each serial port connected device is the device to be networked or the network distribution device.
Or, optionally, when a plurality of devices to be networked and a plurality of distribution network devices are connected to the management device, a serial port list may be displayed on an interface of the management device, and a user may mark, in the serial port list, whether the device connected to each serial port is a device to be networked or a distribution network device. It can be understood that serial port numbers can be marked at serial ports of the management device, so that when a worker connects a certain device to a certain serial port, the worker knows the corresponding relation between the serial port and the device.
In addition, the management device may further obtain respective identifiers of the multiple devices to be networked and the multiple distribution network devices that are connected, where the identifiers may be, for example, MAC addresses. The management device can run a preset script file to automatically read respective corresponding MAC addresses from the connected multiple devices to be networked and the multiple distribution network devices, and can also enable a worker to manually input the respective MAC addresses of the multiple devices to be networked and the multiple distribution network devices in the serial port list.
After the one-to-one correspondence relationship between the devices to be networked and the configuration devices is configured and the respective identifications of the multiple devices to be networked and the multiple distribution network devices are obtained, the management device can notify the identifications of the multiple distribution network devices to the multiple devices to be networked in a one-to-one correspondence manner, so that the multiple devices to be networked know which distribution network device should perform network configuration operation for the multiple devices to be networked, which is equivalent to establishing a binding relationship between the devices to be networked and the distribution network devices.
Therefore, when any distribution network device broadcasts and sends a distribution network packet by operating a certain distribution network protocol, a plurality of devices to be networked within the wireless signal coverage range of any distribution network device can receive the distribution network packet. For a certain device to be networked which receives the distribution network packet, if the device to be networked finds that a sender identifier included in the head of the distribution network packet, that is, an identifier of the distribution network device which sends the distribution network packet is consistent with an identifier of the distribution network device which is notified before, it indicates that the distribution network packet is actually sent to the device, and the device to be networked analyzes the distribution network packet to obtain network configuration information included in the distribution network packet, and accesses a wireless network according to the network configuration information. On the contrary, if the device to be networked finds that the sender identifier of the distribution network packet is inconsistent with the identifier of the distribution network device which is notified before, the distribution network packet is discarded, that is, the distribution network packet is not further analyzed.
The process of sending the distribution network packet by the distribution network equipment is the same as the execution process of the existing distribution network protocol, and is not described again.
Therefore, the identification of the distribution network equipment for network configuration of each to-be-networked equipment is informed in advance, so that each to-be-networked equipment is not interfered by a distribution network packet sent by other unrelated distribution network equipment, network configuration operation on a plurality of to-be-networked equipment can be realized at the same time, and further whether the plurality of to-be-networked equipment can reliably run a distribution network protocol can be tested at the same time, so that the test efficiency is improved.
In the foregoing, the same device to be networked (which may also be considered as the same WiFi module) may support multiple distribution network protocols, and in the test process, the same device to be networked may be tested for each distribution network protocol in sequence.
Thus, in an actual test procedure, there may be one of the following test cases: in a certain test process, a part of the multiple devices to be networked needs to be tested for a certain distribution network protocol, and another part of the multiple devices to be networked needs to be tested for another distribution network protocol. At this time, correspondingly, a plurality of distribution network devices need to be configured to use different distribution network protocols to perform differentiated tests on a plurality of devices to be networked.
Specifically, for each completed test process, the management device may record distribution network protocol test records corresponding to the multiple devices to be networked, so that, in a new test process, the management device may notify, according to the stored distribution network protocol test records, a target distribution network protocol that needs to be used by the distribution network device corresponding to the multiple devices to be networked, so that the corresponding distribution network device uses the target distribution network protocol to trigger a distribution network packet.
The target distribution network protocol refers to a distribution network protocol which is not tested yet.
For example, it is assumed that the plurality of devices to be networked include: equipment A1, equipment B1 and equipment C1, include among a plurality of distribution network equipment: the distribution network protocol comprises a device A2, a device B2 and a device C2, wherein the device A1 corresponds to the device A2, the device B1 corresponds to the device B2, the device C1 corresponds to the device C2, and the distribution network protocol is assumed to comprise a protocol a, a protocol B and a protocol C. After a certain round of test, the device A1 and the device B1 are supposed to finish the test of the protocol a and the protocol B, and the protocol c is not tested; the device C1 has completed the test of protocol a and has not yet performed the tests of protocols b and C. Thus, in the next round of testing, the management device can notify device A2 and device B2 to use protocol C, and notify device C2 to use protocol B or protocol C.
The method comprises the steps that for any equipment to be networked, network configuration information in a received distribution network packet can be obtained through analysis of a certain distribution network protocol, wireless network access results can be fed back to management equipment after wireless network access is carried out according to the network configuration information, the wireless network access results reflect whether the equipment to be networked is successfully accessed to a wireless network, and under the scene that the equipment to be networked needs to be tested with various distribution network protocols, the wireless network access results can include the identification of the adopted distribution network protocol, so that the management equipment can form distribution network protocol test records corresponding to the equipment to be networked, and whether the equipment to be networked supports the currently adopted distribution network protocol or not. Specifically, if the wireless network access result reflects that the device to be networked successfully accesses the wireless network, it is determined that the device to be networked supports the currently adopted distribution network protocol, and otherwise, the device does not support the currently adopted distribution network protocol.
In addition, optionally, the management device may further notify the identifiers of the multiple devices to be networked to the multiple distribution network devices in a one-to-one correspondence manner, so that based on this, the distribution network devices can distinguish whether the device to be networked, which successfully accesses the wireless network, is the device to be networked, which is bound by itself, that is, the device to be networked, which is notified to the identifier of the device to be networked, of itself before.
For example, in fig. 1, the multiple distribution network devices access the same wireless network, which is represented by that the multiple distribution network devices access the same router to indicate that the multiple distribution network devices access the same wireless network. Thus, how can each distribution network device distinguish whether a device to be networked that has successfully distributed a network is a device to be networked that needs to be distributed by itself, in the case where a plurality of distribution network devices use the same router?
Specifically, for any device to be networked, after the network distribution of the device to be networked succeeds, i.e., the device to be networked successfully accesses the wireless network, the device to be networked may broadcast an acknowledgement packet to the outside, where the acknowledgement packet includes an identifier, such as an MAC address, of the device to be networked. When the distribution network equipment starts to perform distribution network operation, the service of the interception acknowledgement packet can be started, so that a plurality of distribution network equipment can receive the acknowledgement packet sent by the equipment to be networked and analyze the identifier of the equipment to be networked from the acknowledgement packet. For any distribution network device, the distribution network device may compare whether the identifier of the device to be networked analyzed in the confirmation packet is consistent with the identifier of the device to be networked notified to itself in advance, if so, the distribution network device indicates that the distribution network of the device to be networked is successful, and the current distribution network process may be terminated; otherwise, if the network distribution time is inconsistent with the network distribution time, discarding the currently received confirmation packet, and continuing the current network distribution process until the network distribution time is overtime (failure) or the network distribution is successful.
Therefore, by obtaining the identifications of the multiple devices to be networked and the multiple distribution network devices in batch, correspondingly informing the identifications of the multiple devices to be networked to the multiple distribution network devices and correspondingly informing the identifications of the multiple distribution network devices to the multiple devices to be networked, each device to be networked can know who performs network configuration for the device to be networked, each distribution network device can know who needs to perform network configuration for the device, and the bound devices to be networked and the bound distribution network devices only pay attention to messages sent by each other and do not need to be interfered by messages sent by other devices.
The network configuration method provided by the embodiment of the invention is described in detail in terms of a management device and a device to be networked.
Fig. 2 is a flowchart of a network configuration method according to an embodiment of the present invention, where the network configuration method may be executed by any one of the multiple devices to be networked in the embodiment shown in fig. 1. As shown in fig. 2, the method comprises the steps of:
201. and acquiring the identifier of the bound distribution network equipment.
In this embodiment, for a certain device to be networked, as described above, if the management device has notified the identifier of a certain distribution network device to the device to be networked, the distribution network device is considered to be bound to the device to be networked.
Therefore, the device to be networked can obtain the bound identity of the distribution network device by receiving and analyzing the notification message which is sent by the management device and carries the identity of the distribution network device.
In another optional mode, before the test, the device to be networked may also be directly connected to a certain distribution network device in a serial port manner, and the identifier of the distribution network device is obtained from the distribution network device, and the distribution network device is in a binding relationship with the device to be networked.
202. And receiving a network distribution packet sent by broadcasting.
As described above, the distribution network packet may be broadcast by any one of the plurality of distribution network devices.
203. And if the sender identifier included in the distribution network packet is the same as the identifier of the bound distribution network equipment, analyzing the network configuration information from the distribution network packet.
204. And performing wireless network access according to the network configuration information.
Conversely, if the sender identifier included in the distribution network packet received by the device to be networked is different from the identifier of the bound distribution network device, the distribution network packet is discarded.
Further, if the device to be networked successfully accesses the wireless network, an acknowledgement packet may be broadcast and sent, where the acknowledgement packet indicates that the device to be networked successfully accesses the wireless network, and the acknowledgement packet includes an identifier of the device to be networked. The distribution network devices may all receive the acknowledgement packet, and the identifier of the device to be networked in the acknowledgement packet may enable the distribution network device that receives the acknowledgement packet to determine that the distribution network of the device to be networked is successful when finding that the sender identifier included in the acknowledgement packet is consistent with the identifier of the device to be networked that is bound to the distribution network device.
For the detailed description of the embodiment, reference may be made to the description of the embodiment shown in fig. 1, which is not repeated herein.
Fig. 3 is a flowchart of another network configuration method according to an embodiment of the present invention, where the network configuration method may be executed by the management device shown in fig. 1. As shown in fig. 3, the following steps may be included:
301. and acquiring the identifiers of the plurality of distribution network devices.
The manner in which the management device obtains the identifiers of the multiple network distribution devices connected to the management device may refer to the description in the embodiment shown in fig. 1, and optionally, the management device may also obtain the identifiers of the multiple devices to be networked connected to the management device.
302. And the identifiers of the plurality of distribution network devices are informed to the plurality of devices to be networked in a one-to-one correspondence manner, so that when the plurality of devices to be networked receive the distribution network packets sent by the plurality of distribution network devices, whether the received distribution network packets are analyzed is determined according to the identifiers of the respective informed distribution network devices.
Under the condition that the plurality of devices to be networked and the plurality of distribution network devices are connected with the management device through serial ports respectively, the management device can form one-to-one correspondence between the plurality of devices to be networked and the plurality of distribution network devices by establishing the correspondence between serial port numbers, and accordingly, the corresponding notification is realized based on the one-to-one correspondence.
In addition, optionally, on the basis that the management device obtains the identifiers of the multiple devices to be networked, the identifiers of the multiple devices to be networked may be notified to the multiple distribution network devices in a one-to-one correspondence manner, so that when the multiple distribution network devices receive a confirmation packet sent by the multiple devices to be networked, whether the respective notified devices to be networked successfully access the wireless network is determined according to the identifiers of the respective notified devices to be networked, where the confirmation packet is sent by the devices to be networked when the devices to be networked successfully access the wireless network.
For the detailed description of the embodiment, reference may be made to the description of the embodiment shown in fig. 1, which is not repeated herein.
In addition, based on the introduction of the composition and the working process of the distribution network test system, the embodiment of the invention also provides a distribution network test method, which can be executed by management equipment in the distribution network test system. As shown in fig. 4, the distribution network testing method may include the following steps: 401. and acquiring the identifiers of the plurality of distribution network devices.
402. And the identifiers of the plurality of distribution network devices are informed to the plurality of devices to be networked in a one-to-one correspondence manner, so that when the plurality of devices to be networked receive the distribution network packets sent by the plurality of distribution network devices, whether the received distribution network packets are analyzed is determined according to the identifiers of the respective informed distribution network devices.
403. And receiving wireless network access results respectively sent by the multiple devices to be accessed to the network, wherein the wireless network access results are obtained after the multiple devices to be accessed to the network perform wireless network access according to the network configuration information analyzed from the received network configuration packet.
404. And determining whether the plurality of devices to be networked support the currently adopted distribution network protocol according to the wireless network access result.
In addition, the embodiment of the invention also provides a distribution network testing method, which can be executed by any device to be networked in the distribution network testing system. As shown in fig. 5, the distribution network testing method may include the following steps:
501. and acquiring the identifier of the bound distribution network equipment.
502. And receiving a network distribution packet sent by broadcasting.
503. And if the sender identification included in the received distribution network packet is the same as the identification of the bound distribution network equipment, analyzing the network configuration information from the distribution network packet.
504. And performing wireless network access according to the network configuration information.
505. And sending the wireless network access result to the management equipment so that the management equipment determines whether the equipment to be accessed supports the distribution network protocol corresponding to the distribution network packet.
For a detailed execution process of the distribution network testing method, reference may be made to the related description in the foregoing, and details are not described herein.
The network configuration device and the distribution network testing device according to one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these network configuration means may be constructed by configuring the steps taught in the present solution using commercially available hardware components.
Fig. 6 is a schematic structural diagram of a network configuration apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes: the device comprises an acquisition module 11, a receiving module 12, an analysis module 13 and a networking module 14.
The obtaining module 11 is configured to obtain an identifier of the bound distribution network device.
A receiving module 12, configured to receive a network distribution packet sent by broadcast.
And the analyzing module 13 is configured to analyze the network configuration information from the distribution network packet if the sender identifier included in the distribution network packet is the same as the identifier of the distribution network device.
And the networking module 14 is used for performing wireless network access according to the network configuration information.
Optionally, the parsing module 13 may be further configured to: and if the sender identification is different from the identification of the distribution network equipment, discarding the distribution network packet.
Optionally, the apparatus may further include: the sending module is used for broadcasting and sending a confirmation packet if the wireless network is successfully accessed, wherein the confirmation packet comprises the identification of the equipment to be accessed, so that the distribution network equipment receiving the confirmation packet determines that the distribution network equipment successfully distributes the network to the equipment to be accessed when finding that the sender identification in the confirmation packet is consistent with the bound identification of the equipment to be accessed.
The apparatus shown in fig. 6 can perform the method of the embodiment shown in fig. 2, and reference may be made to the related description of the embodiment shown in fig. 2 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 2, and are not described herein again.
In one possible design, the structure of the network configuration apparatus shown in fig. 6 may be implemented as an electronic device, which is a device to be networked that needs to be connected to a network, for example, an intelligent appliance, a robot, or the like that does not have a network configuration interface. As shown in fig. 7, the electronic device may include: a first processor 21 and a first memory 22. Wherein the first memory 22 is used for storing a program for supporting an electronic device to execute the network configuration method provided in the embodiment shown in fig. 2, and the first processor 21 is configured to execute the program stored in the first memory 22.
The program comprises one or more computer instructions which, when executed by the first processor 21, are capable of performing the steps of:
acquiring the identifier of the bound distribution network equipment;
receiving a network distribution packet sent by broadcasting;
if the sender identifier included in the distribution network packet is the same as the identifier of the distribution network equipment, analyzing network configuration information from the distribution network packet;
and performing wireless network access according to the network configuration information.
Optionally, the first processor 21 is further configured to perform all or part of the steps in the foregoing embodiment shown in fig. 2.
The electronic device may further include a first communication interface 23, which is used for the electronic device to communicate with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the network configuration method in the method embodiment shown in fig. 2.
Fig. 8 is a schematic structural diagram of another network configuration apparatus according to an embodiment of the present invention, and as shown in fig. 8, the apparatus includes: an identification acquisition module 31 and an identification sending module 32.
The identifier obtaining module 31 is configured to obtain identifiers of a plurality of distribution network devices.
The identifier sending module 32 is configured to notify the identifiers of the multiple distribution network devices to multiple devices to be networked one to one, so that when the multiple devices to be networked receive the distribution network packets sent by the multiple distribution network devices, whether to analyze the received distribution network packets is determined according to the identifiers of the respective notified distribution network devices.
Optionally, the identity obtaining module 31 may be further configured to: and acquiring the identifiers of the plurality of devices to be networked. Accordingly, the identity transmitting module 32 may be further configured to: and informing the identifiers of the plurality of devices to be networked to the plurality of distribution network devices in a one-to-one correspondence manner, so that when the plurality of distribution network devices receive the confirmation packets sent by the plurality of devices to be networked, whether the notified devices to be networked successfully access the wireless network or not is determined according to the identifiers of the notified devices to be networked, wherein the confirmation packets are sent by the devices to be networked when the devices to be networked successfully access the wireless network.
Optionally, the multiple devices to be networked and the multiple network distribution devices are connected to the management device through serial ports, respectively, so that the apparatus further includes: and the corresponding relation establishing module is used for forming a one-to-one corresponding relation between the plurality of devices to be networked and the plurality of distribution network devices by establishing the corresponding relation between the serial port numbers.
The apparatus shown in fig. 8 can perform the method of the embodiment shown in fig. 3, and reference may be made to the related description of the embodiment shown in fig. 3 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 3, and are not described herein again.
In one possible design, the structure of the network configuration apparatus shown in fig. 8 may be implemented as an electronic device, which may be a device such as a PC for connecting the device to be networked and the device of the distribution network. As shown in fig. 9, the electronic device may include: a second processor 41 and a second memory 42. Wherein the second memory 42 is used for storing programs that support an electronic device to execute the network configuration method provided in the embodiment shown in fig. 3, and the second processor 41 is configured to execute the programs stored in the second memory 42.
The program comprises one or more computer instructions which, when executed by the second processor 41, are capable of performing the steps of:
acquiring identifiers of a plurality of distribution network devices;
and informing the identifiers of the plurality of distribution network devices to a plurality of devices to be networked one to one, so that when the plurality of devices to be networked receive the distribution network packets sent by the plurality of distribution network devices, whether the received distribution network packets are analyzed is determined according to the identifiers of the respective informed distribution network devices.
Optionally, the second processor 41 is further configured to perform all or part of the steps in the foregoing embodiment shown in fig. 3.
The electronic device may further include a second communication interface 43 for communicating with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the network configuration method in the method embodiment shown in fig. 3.
In addition, an embodiment of the present invention further provides a distribution network testing apparatus, where the distribution network testing apparatus may be implemented as software in a management device, or a combination of software and hardware, and the distribution network testing apparatus includes:
the acquisition module is used for acquiring the identifiers of the plurality of distribution network devices.
The sending module is used for informing the identifications of the plurality of distribution network devices to the plurality of devices to be networked one to one, so that when the plurality of devices to be networked receive the distribution network packets sent by the plurality of distribution network devices, whether the received distribution network packets are analyzed is determined according to the respective notified identifications of the distribution network devices.
And the receiving module is used for receiving wireless network access results respectively sent by the multiple devices to be accessed to the network, wherein the wireless network access results are obtained after the multiple devices to be accessed to the network are accessed to the wireless network according to the network configuration information analyzed from the received network configuration packet.
And the determining module is used for determining whether the plurality of devices to be accessed support the currently adopted distribution network protocol according to the wireless network access result.
In addition, an embodiment of the present invention further provides a distribution network testing apparatus, where the distribution network testing apparatus may be implemented as software in a device to be networked, or a combination of software and hardware, and the distribution network testing apparatus includes:
and the acquisition module is used for acquiring the identifier of the bound distribution network equipment.
And the receiving module is used for receiving the network distribution packet sent by broadcasting.
And the analysis module is used for analyzing the network configuration information from the distribution network packet if the sender identifier included in the received distribution network packet is the same as the identifier of the bound distribution network equipment.
And the networking module is used for performing wireless network access according to the network configuration information.
And the sending module is used for sending the wireless network access result to the management equipment so that the management equipment can determine whether the equipment to be accessed supports the distribution network protocol corresponding to the distribution network packet.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described solutions and/or portions thereof that are prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein (including but not limited to disk storage, CD-ROM, optical storage, etc.).
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (15)

1. A network configuration system, comprising:
the system comprises a plurality of devices to be networked, a plurality of distribution network devices and a management device;
the plurality of devices to be networked and the plurality of distribution network devices are respectively connected with the management device; the number of the plurality of devices to be networked is equal to that of the plurality of distribution network devices;
the management device is configured to: acquiring the identifiers of the plurality of network distribution devices, and informing the identifiers of the plurality of network distribution devices to the plurality of devices to be networked in a one-to-one correspondence manner;
any one of the plurality of network distribution devices is configured to: broadcasting and sending a distribution network package, wherein the distribution network package comprises an identifier of any distribution network equipment;
any one of the multiple devices to be networked is configured to: receiving the network distribution package, if the identification of any network distribution equipment is consistent with the identification of the network distribution equipment notified by any network equipment to be accessed, analyzing network configuration information from the network distribution package, and accessing a wireless network according to the network configuration information;
the management device is further configured to: acquiring the identifiers of the plurality of devices to be networked, and informing the identifiers of the plurality of devices to be networked to the plurality of network distribution devices in a one-to-one correspondence manner;
any one of the devices to be networked is further configured to: if the wireless network is successfully accessed, broadcasting and sending a confirmation packet, wherein the confirmation packet comprises the identifier of any equipment to be accessed;
any one of the network distribution devices is further configured to: and if the identifier of any network equipment to be networked is consistent with the identifier of the network equipment to be networked, which is notified by any network equipment, determining that the network of any network equipment to be networked is successfully distributed.
2. The system of claim 1, wherein the any device to be networked is further configured to: and if the identification of any distribution network equipment is inconsistent with the identification of the distribution network equipment notified by any equipment to be accessed, discarding the distribution network packet.
3. The system of claim 1, wherein the plurality of devices to be networked and the plurality of network distribution devices are connected to the management device through serial ports, respectively, and the management device is further configured to:
and forming a one-to-one correspondence between the plurality of devices to be networked and the plurality of distribution network devices by establishing a correspondence between serial port numbers.
4. The system of claim 1, wherein the plurality of devices to be networked each operate with a plurality of network distribution protocols;
the management device is further configured to: and recording distribution network protocol test records corresponding to the multiple devices to be networked respectively, and notifying the corresponding distribution network devices of a target distribution network protocol required to be used according to the distribution network protocol test records so that the corresponding distribution network devices use the target distribution network protocol to trigger the distribution network packet.
5. A network configuration method is applied to management equipment and is characterized by comprising the following steps:
acquiring the identifiers of a plurality of network distribution devices and the identifiers of a plurality of devices to be networked;
the identifiers of the plurality of distribution network devices are notified to the plurality of devices to be networked in a one-to-one correspondence manner, so that when the plurality of devices to be networked receive the distribution network packets sent by the plurality of distribution network devices, whether the received distribution network packets are analyzed is determined according to the identifiers of the notified distribution network devices;
the identifiers of the devices to be networked are notified to the distribution network devices in a one-to-one correspondence manner, so that when the distribution network devices receive a confirmation packet sent by the devices to be networked, whether the notified devices to be networked successfully access the wireless network or not is determined according to the identifiers of the notified devices to be networked, wherein the confirmation packet is sent by the devices to be networked when the devices to be networked successfully access the wireless network;
the method comprises the following steps that any distribution network equipment in the plurality of distribution network equipment broadcasts and sends a distribution network package, wherein the distribution network package comprises an identifier of the distribution network equipment; any one of the multiple devices to be networked receives the network distribution packet, if the identifier of any one of the network distribution devices is consistent with the identifier of the network distribution device notified by any one of the multiple devices to be networked, network configuration information is analyzed from the network distribution packet, and wireless network access is performed according to the network configuration information;
the confirmation packet comprises an identifier of any one device to be networked; and if the identifier of any network equipment to be networked is consistent with the identifier of the network equipment to be networked, which is notified by any network equipment, determining that the network of any network equipment to be networked is successfully distributed.
6. The method of claim 5, wherein the plurality of devices to be networked and the plurality of network distribution devices are connected to a management device through serial ports, respectively, and the method further comprises:
and the management equipment forms a one-to-one corresponding relation between the plurality of equipment to be networked and the plurality of distribution network equipment by establishing a corresponding relation between serial port numbers.
7. A network configuration device applied to a management device is characterized by comprising:
the device comprises an identification acquisition module, a network access module and a network management module, wherein the identification acquisition module is used for acquiring identifications of a plurality of network distribution devices and identifications of a plurality of devices to be accessed to the network;
the identification sending module is used for informing the identifications of the plurality of distribution network devices to the plurality of devices to be accessed in a one-to-one correspondence manner so that when the plurality of devices to be accessed receive the distribution network packets sent by the plurality of distribution network devices, whether the received distribution network packets are analyzed is determined according to the identifications of the respective informed distribution network devices; the identifiers of the devices to be networked are informed to the plurality of distribution network devices in a one-to-one correspondence manner, so that when the distribution network devices receive confirmation packets sent by the devices to be networked, whether the informed devices to be networked successfully access the wireless network or not is determined according to the identifiers of the informed devices to be networked, wherein the confirmation packets are sent by the devices to be networked when the devices to be networked successfully access the wireless network;
the method comprises the following steps that any distribution network equipment in the plurality of distribution network equipment broadcasts and sends a distribution network package, wherein the distribution network package comprises an identifier of the distribution network equipment; any one of the multiple devices to be networked receives the network distribution packet, if the identifier of any one of the network distribution devices is consistent with the identifier of the network distribution device notified by any one of the multiple devices to be networked, network configuration information is analyzed from the network distribution packet, and wireless network access is performed according to the network configuration information;
the confirmation packet comprises an identifier of any one device to be networked; and if the identifier of any network equipment to be networked is consistent with the identifier of the network equipment to be networked, which is notified by any network equipment, determining that the network of any network equipment to be networked is successfully distributed.
8. An electronic device, comprising: a memory, a processor; wherein, the first and the second end of the pipe are connected with each other,
the memory is to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the network configuration method of claim 5 or 6.
9. A network configuration method is applied to a device to be networked, and is characterized by comprising the following steps:
acquiring the identifier of the bound distribution network equipment;
receiving a distribution network packet broadcast by distribution network equipment;
if the sender identifier included in the distribution network packet is the same as the identifier of the distribution network equipment, analyzing network configuration information from the distribution network packet;
performing wireless network access according to the network configuration information;
if the wireless network is successfully accessed, a confirmation packet is sent in a broadcasting mode, the confirmation packet comprises an identifier of the equipment to be accessed, and therefore the distribution network equipment which receives the confirmation packet determines that the distribution network of the distribution network equipment to the equipment to be accessed is successful when the fact that the identifier of the equipment to be accessed which is contained in the confirmation packet is consistent with the bound identifier of the equipment to be accessed is found;
wherein, the obtaining the identifier of the bound distribution network device includes:
and establishing a binding relationship with the distribution network equipment according to the identification of the distribution network equipment, which is sent to the equipment to be networked by the management equipment, so as to obtain the identification of the distribution network equipment.
10. The method of claim 9, further comprising:
and if the sender identification is different from the identification of the distribution network equipment, discarding the distribution network packet.
11. A network configuration device is applied to a device to be networked, and is characterized by comprising:
the acquisition module is used for acquiring the identifier of the bound distribution network equipment;
the receiving module is used for receiving a distribution network packet broadcast and sent by distribution network equipment;
the analysis module is used for analyzing the network configuration information from the distribution network packet if the sender identifier included in the distribution network packet is the same as the identifier of the distribution network equipment;
the networking module is used for accessing the wireless network according to the network configuration information;
the sending module is used for broadcasting and sending a confirmation packet if the wireless network is successfully accessed, wherein the confirmation packet comprises an identifier of a device to be accessed to the network, so that the distribution network device receiving the confirmation packet determines that the distribution of the distribution network device to the device to be accessed to the network is successful when the distribution network device finds that the identifier of the device to be accessed to the network in the confirmation packet is consistent with the bound identifier of the device to be accessed to the network;
wherein the obtaining module is specifically configured to: and establishing a binding relationship with the distribution network equipment according to the identification of the distribution network equipment, which is sent to the equipment to be networked by the management equipment, so as to obtain the identification of the distribution network equipment.
12. An electronic device, comprising: a memory, a processor; wherein the content of the first and second substances,
the memory is for storing one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the network configuration method of claim 9 or 10.
13. A distribution network testing system, comprising:
the system comprises a plurality of devices to be networked, a plurality of distribution network devices and a management device;
the plurality of devices to be networked and the plurality of distribution network devices are respectively connected with the management device; the number of the plurality of devices to be networked is equal to that of the plurality of distribution network devices;
the management device is configured to: acquiring the identifications of the plurality of distribution network devices, informing the identifications of the plurality of distribution network devices to the plurality of devices to be networked one to one, and determining whether the plurality of devices to be networked support the currently adopted distribution network protocol according to the wireless network access results of the plurality of devices to be networked;
any one of the plurality of network distribution devices is configured to: broadcasting and sending a distribution network package, wherein the distribution network package comprises an identifier of any distribution network equipment;
any one of the multiple devices to be networked is configured to: receiving the network distribution package, if the identification of any network distribution equipment is consistent with the identification of the network distribution equipment notified by any network equipment to be accessed, analyzing network configuration information from the network distribution package, performing wireless network access according to the network configuration information, and sending a wireless network access result to the management equipment;
the management device is further configured to: acquiring the identifiers of the plurality of devices to be networked, and informing the identifiers of the plurality of devices to be networked to the plurality of network distribution devices in a one-to-one correspondence manner;
any one of the devices to be networked is further configured to: if the wireless network is successfully accessed, broadcasting and sending a confirmation packet, wherein the confirmation packet comprises the identifier of any equipment to be accessed;
any one of the network distribution devices is further configured to: and if the identifier of any network equipment to be accessed is consistent with the identifier of the network equipment to be accessed, which is notified by any distribution network equipment, determining that the network of any distribution network equipment to the network equipment to be accessed is successful.
14. A distribution network test method is applied to management equipment and is characterized by comprising the following steps:
acquiring the identifiers of a plurality of network distribution devices and the identifiers of a plurality of devices to be networked;
the identifiers of the plurality of distribution network devices are informed to the plurality of devices to be accessed in a one-to-one correspondence manner, so that when the plurality of devices to be accessed receive the distribution network packets sent by the plurality of distribution network devices, whether the received distribution network packets are analyzed is determined according to the identifiers of the informed distribution network devices;
the identifiers of the devices to be networked are notified to the distribution network devices in a one-to-one correspondence manner, so that when the distribution network devices receive a confirmation packet sent by the devices to be networked, whether the notified devices to be networked successfully access the wireless network or not is determined according to the identifiers of the notified devices to be networked, wherein the confirmation packet is sent by the devices to be networked when the devices to be networked successfully access the wireless network;
receiving wireless network access results respectively sent by the multiple devices to be accessed to the network, wherein the wireless network access results are obtained after the multiple devices to be accessed to the network are accessed to the wireless network according to network configuration information analyzed from the received network configuration packet;
determining whether the plurality of devices to be networked support the currently adopted distribution network protocol or not according to the wireless network access result;
the method comprises the following steps that any distribution network equipment in the plurality of distribution network equipment broadcasts and sends a distribution network package, wherein the distribution network package comprises an identifier of the distribution network equipment; any one of the multiple devices to be networked receives the network distribution packet, if the identifier of any one of the network distribution devices is consistent with the identifier of the network distribution device notified by any one of the multiple devices to be networked, network configuration information is analyzed from the network distribution packet, and wireless network access is performed according to the network configuration information;
the confirmation packet comprises an identifier of any one device to be networked; and if the identifier of any network equipment to be networked is consistent with the identifier of the network equipment to be networked, which is notified by any network equipment, determining that the network of any network equipment to be networked is successfully distributed.
15. A network configuration method is applied to a device to be networked, and is characterized by comprising the following steps:
acquiring the identifier of the bound distribution network equipment;
receiving a distribution network packet broadcast by distribution network equipment;
if the sender identifier included in the distribution network packet is the same as the identifier of the distribution network equipment, analyzing network configuration information from the distribution network packet;
performing wireless network access according to the network configuration information;
sending a wireless network access result to management equipment so that the management equipment determines whether the equipment to be accessed supports a distribution network protocol corresponding to the distribution network packet;
if the wireless network is successfully accessed, broadcasting and sending a confirmation packet, wherein the confirmation packet comprises an identifier of the equipment to be accessed, so that the distribution network equipment receiving the confirmation packet determines that the distribution network equipment successfully distributes the network to the equipment to be accessed when finding that the identifier of the equipment to be accessed, which is contained in the confirmation packet, is consistent with the identifier of the bound equipment to be accessed;
wherein, the obtaining the identifier of the bound distribution network device includes:
and establishing a binding relationship with the distribution network equipment according to the identification of the distribution network equipment, which is sent to the equipment to be networked by the management equipment, so as to obtain the identification of the distribution network equipment.
CN201811459600.9A 2018-11-30 2018-11-30 Network configuration method, device, equipment and system and distribution network testing method and system Active CN111263377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811459600.9A CN111263377B (en) 2018-11-30 2018-11-30 Network configuration method, device, equipment and system and distribution network testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811459600.9A CN111263377B (en) 2018-11-30 2018-11-30 Network configuration method, device, equipment and system and distribution network testing method and system

Publications (2)

Publication Number Publication Date
CN111263377A CN111263377A (en) 2020-06-09
CN111263377B true CN111263377B (en) 2023-03-31

Family

ID=70951900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811459600.9A Active CN111263377B (en) 2018-11-30 2018-11-30 Network configuration method, device, equipment and system and distribution network testing method and system

Country Status (1)

Country Link
CN (1) CN111263377B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885679A (en) * 2020-07-29 2020-11-03 宁波方太厨具有限公司 Distribution network testing method and system of Internet of things equipment
CN114710376B (en) * 2020-12-16 2024-03-12 深圳Tcl新技术有限公司 Connection control method and device of gateway equipment, gateway equipment and storage medium
CN113079556A (en) * 2021-03-24 2021-07-06 宁波奥克斯电气股份有限公司 Intelligent household appliance distribution network control method, control device and application
CN113709793A (en) * 2021-08-10 2021-11-26 广东睿住智能科技有限公司 Distribution network testing method and system of intelligent lamp

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494638A (en) * 2018-02-09 2018-09-04 海尔优家智能科技(北京)有限公司 A kind of method, router, terminal and medium that configuration equipment networks

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013100887A2 (en) * 2011-11-30 2013-07-04 Intel Corporation Techniques for assisted network acquisition
US10530643B2 (en) * 2016-12-09 2020-01-07 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Automatic management network provisioning
CN108111375A (en) * 2017-11-27 2018-06-01 海尔优家智能科技(北京)有限公司 Equipment method of network entry, device, are waited to network and log equipment intelligent terminal
CN108833238A (en) * 2018-07-27 2018-11-16 杭州古北电子科技有限公司 Equipment matches network method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494638A (en) * 2018-02-09 2018-09-04 海尔优家智能科技(北京)有限公司 A kind of method, router, terminal and medium that configuration equipment networks

Also Published As

Publication number Publication date
CN111263377A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
EP3013086B1 (en) Method, apparatus and electronic device for connection management
CN105703938B (en) Equipment configuration method, configuration device and management equipment
CN108401037B (en) Binding method, device and system of user terminal and equipment
US10887745B2 (en) Method and device for sharing file between different terminals
CN109068346B (en) Method and device for configuring WiFi parameters
CN106658756B (en) Method and device for identifying connection between terminal equipment and hotspot
CN107770786B (en) Method, equipment and system for testing network performance
CN111741509A (en) Network distribution method and device, storage medium and processor
WO2016004198A1 (en) Network access method, apparatus, server and terminal
CN109561054B (en) Data transmission method, controller and access device
US10499311B2 (en) Method and apparatus for implementing network sharing
CN111163469A (en) Network distribution method of intelligent household appliance, wireless module and intelligent household appliance
CN106453370B (en) Method and device for registering IPC (inter-programmable logic controller) to NVR (network video recorder)
CN112333019A (en) Router configuration and test method and system and readable storage medium
US20160150425A1 (en) System and method of providing a synthetic transaction platform for analyzing communication between a mobile device and a wireless network
CN107666664B (en) Method, device, equipment and storage medium for machine-card binding
CN112202652A (en) Method and device for displaying information of equipment to be networked, storage medium and electronic device
CN113596089B (en) Distribution network binding method and device of equipment, storage medium and electronic device
CN114115775A (en) Information screen projection method and device, terminal device, display device and storage medium
CN113810899A (en) eSIM device configuration system, method, apparatus and storage medium
CN113259918A (en) Equipment binding method and system
CN111130929B (en) Method and system for automatically testing WIFI throughput
CN108243056B (en) Method and device for acquiring abnormal information
CN107708142B (en) Grouping method, device and system for access device AP

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