WO2023045304A1 - 组网方法、装置、设备及存储介质 - Google Patents

组网方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2023045304A1
WO2023045304A1 PCT/CN2022/086667 CN2022086667W WO2023045304A1 WO 2023045304 A1 WO2023045304 A1 WO 2023045304A1 CN 2022086667 W CN2022086667 W CN 2022086667W WO 2023045304 A1 WO2023045304 A1 WO 2023045304A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
sub
networked
master device
cloud server
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.)
Ceased
Application number
PCT/CN2022/086667
Other languages
English (en)
French (fr)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to KR1020247012676A priority Critical patent/KR20240060665A/ko
Priority to EP22871367.3A priority patent/EP4401450A4/en
Priority to JP2024519106A priority patent/JP7745095B2/ja
Publication of WO2023045304A1 publication Critical patent/WO2023045304A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W84/00—Network topologies
    • H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10—Small scale networks; Flat hierarchical networks
    • H04W84/12—WLAN [Wireless Local Area Networks]
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W24/00—Supervisory, monitoring or testing arrangements
    • H04W24/04—Arrangements for maintaining operational condition
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W24/00—Supervisory, monitoring or testing arrangements
    • H04W24/08—Testing, supervising or monitoring using real traffic
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W40/00—Communication routing or communication path finding
    • H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12—Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W40/00—Communication routing or communication path finding
    • H04W40/24—Connectivity information management, e.g. connectivity discovery or connectivity update
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W76/00—Connection management
    • H04W76/10—Connection setup
    • H04W76/19—Connection re-establishment
    • H—ELECTRICITY
    • H04—ELECTRIC COMMUNICATION TECHNIQUE
    • H04W—WIRELESS COMMUNICATION NETWORKS
    • H04W84/00—Network topologies
    • H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20—Leader-follower arrangements

Definitions

  • the present application relates to the technical field of communication, and in particular to a networking method, device, equipment and storage medium.
  • WiFi coverage can facilitate smart terminal users to perform online entertainment and work anytime and anywhere, while WiFi coverage requires WiFi. Expansion, generally through the way of networking to carry out WiFi expansion.
  • network devices are mainly used to form a network.
  • users generally need to manually set parameters during network formation, which makes the network formation efficiency low.
  • Embodiments of the present application provide a networking method, device, device, and storage medium.
  • the embodiment of the present application provides a networking method, including: receiving first network parameters of multiple devices to be networked, and determining the first master from the multiple devices to be networked according to the first network parameters.
  • device and sub-device send a first switching instruction to the device to be networked, so that the device to be networked is switched to the first master device or sub-device according to the first switching instruction; receive the first master device First hotspot information sent by the device; sending the first hotspot information to the sub-device, so that the sub-device establishes a network connection with the first main device according to the first hotspot information.
  • the embodiment of the present application also provides a networking method, including: sending the first network parameters to the cloud server, so that the cloud server can determine the network parameters from multiple devices to be networked according to the first network parameters
  • the first main device and sub-device receive the first switching instruction sent by the cloud server, and switch to the first main device according to the first switching instruction; send the first hotspot information to the cloud server for the
  • the cloud server sends the first hotspot information to the sub-device; receives a connection request sent by the sub-device according to the first hotspot information, and establishes a network connection with the sub-device according to the connection request.
  • the embodiment of the present application also provides a networking method, including: sending the first network parameter to the cloud server, so that the cloud server can determine The first main device and the sub-device; receive the first switching instruction sent by the cloud server, and switch to the sub-device according to the first switching instruction; receive the first hotspot of the first main device sent by the cloud server information, sending a connection request to the first master device according to the first hotspot information, where the connection request is used to establish a network connection with the first master device.
  • the embodiment of the present application also provides a networking device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the program, it realizes: The networking method described in the item of the first aspect.
  • the embodiment of the present application also provides a network device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the program when executing the program; as The networking method described in the second aspect, or the networking method described in the third aspect.
  • the embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to: execute the networking method as described in the first aspect, or perform the networking method as described in the first aspect.
  • FIG. 1 is a flowchart of a networking method provided by some embodiments of the present application.
  • FIG. 2 is a flowchart of a networking method provided by other embodiments of the present application.
  • FIG. 3 is a flowchart of a networking method provided by other embodiments of the present application.
  • FIG. 4 is a system architecture diagram in a networking method provided by some embodiments of the present application.
  • FIG. 5 is a flowchart of a networking method provided by other embodiments of the present application.
  • Fig. 6 is a working flow chart of the cloud server in the networking method provided by some embodiments of the present application.
  • FIG. 7 is a flowchart of a networking method provided by some embodiments of the present application.
  • FIG. 8 is a schematic diagram of a networking connection of a networking method provided by some embodiments of the present application.
  • FIG. 9 is a flowchart of a networking method provided by other embodiments of the present application.
  • FIG. 10 is a flowchart of a networking method provided by other embodiments of the present application.
  • FIG. 11 is a flowchart of a networking method provided by other embodiments of the present application.
  • Fig. 12 is a working flowchart of the master device in the networking method provided by some embodiments of the present application.
  • FIG. 13 is a flowchart of a networking method provided by other embodiments of the present application.
  • FIG. 14 is a flowchart of a networking method provided by other embodiments of the present application.
  • FIG. 15 is a flowchart of a networking method provided by other embodiments of the present application.
  • Fig. 16 is a working flow chart of the sub-device in the networking method provided by some embodiments of the present application.
  • FIG. 17 is a flowchart of a networking method provided by some embodiments of the present application.
  • FIG. 18 is a block diagram of a networking device provided by some embodiments of the present application.
  • Fig. 19 is a block diagram of a networking device provided by some embodiments of the present application.
  • multiple means more than two, greater than, less than, exceeding, etc. are understood as not including the original number, and above, below, within, etc. are understood as including the original number. If there is a description of "first”, “second”, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features or implicitly indicating the indicated The sequence relationship of the technical characteristics.
  • WiFi networking there are two main methods of WiFi networking.
  • the first one is through the cooperation between the main device and the sub-device. Some parameters of the device, etc., and then press the buttons of the two devices to complete the networking.
  • the second is that the indoor WiFi router and outdoor wireless networking device are sold together.
  • the indoor WiFi router and the outdoor wireless networking device are connected by a network cable.
  • One outdoor wireless networking device can carry multiple indoor WiFi routers.
  • the indoor WiFi router is equipped with a WiFi module.
  • WiFi routers are connected through WiFi mesh networking to share the wide area network resources of outdoor wireless networking devices. At this time, the indoor WiFi router does not distinguish between the main device and the sub-device.
  • the factory-made device is in routing mode.
  • the indoor WiFi router connected to the outdoor wireless networking device will switch to the main device after networking, and other indoor WiFi routers will switch to the sub-device. use.
  • the networking between indoor WiFi routers also connects the main device and sub-device through wps.
  • both of these two networking methods have the following problems in use.
  • the sub-device it is difficult to distinguish the sub-device from the main device. If it is not configured in advance, or the configuration is wrong, the status of the main device and the sub-device is incorrect, and the group may not be able to access the Internet.
  • the timeout period of wps is two minutes. If within two minutes, one of the wps fails to start successfully, or because there are other wps sessions in the space, it will appear Conflicts eventually lead to networking failure.
  • the second networking scheme involves switching the routing mode to the main device working mode and the sub-device working mode. If the networking fails, it must be restored to the routing mode. Once a problem occurs in the middle, it must be restored to the factory and start again. It takes about 6 minutes for a skilled worker to complete the networking, so the networking efficiency is low.
  • the present application discloses a networking method, device, equipment, and storage medium, which can realize automatic networking without manually setting parameters, thereby improving networking efficiency.
  • FIG. 1 is a flowchart of a networking method provided by some embodiments of the present application.
  • the networking method includes but is not limited to the following steps 101 to 104 .
  • Step 101 Receive first network parameters of multiple devices to be networked, and determine a first master device and sub-devices from the multiple devices to be networked according to the first network parameters.
  • Step 102 Send a first switching instruction to the device to be networked, so that the device to be networked is switched to a first master device or a sub-device according to the first switching instruction.
  • Step 103 Receive the first hotspot information sent by the first master device.
  • Step 104 Send the first hotspot information to the sub-device, so that the sub-device establishes a network connection with the first main device according to the first hotspot information.
  • step 101 to step 104 by determining the first main device and sub-device from the plurality of devices to be networked according to the received first network parameters, and then sending the first switching instruction to the device to be networked to make the device to be networked according to the first A switching command to switch to the first master device or sub-device, after waiting for the switching of the networking device to be completed, obtain the first hotspot information of the first master device, and send the first hotspot information of the first master device to the sub-device, to The sub-device establishes a network connection with the main device according to the first hotspot information, so that the automatic networking of the device to be networked is realized, and there is no need to manually set parameters separately, which improves the networking efficiency.
  • step S101 to step S104 are executed by the cloud server, then the automatic networking of the device to be networked is automatically realized through the cloud server, only need to start the device to be networked, determine the device identity of the device to be networked through the cloud server, and then send the first A switching command is sent to the device to be networked so that the device to be networked can automatically switch the device identity, and then the first hotspot information of the first master device is sent to the sub-device, then the sub-device can communicate with the first master device according to the first hotspot information Establish network connection, realize automatic networking, save manpower and improve networking efficiency.
  • the networking method before receiving the first network parameters of the multiple devices to be networked, the networking method further includes: binding the network devices according to a preset binding manner to obtain the devices to be networked.
  • the network device to be formed is obtained by binding the network device through a pre-set binding method, and then the bound network device can be received.
  • the first network parameter to be sent by the networking device since the device to be networked needs to be determined before receiving the first network parameter of the device to be networked, therefore, the network device to be formed is obtained by binding the network device through a pre-set binding method, and then the bound network device can be received.
  • Step 105 includes any one of the following: step S151, step S152 and step S153.
  • Step 151 Receive the address information of the network device, determine the device information of the network device according to the address information, add the device information to the set of devices to be networked, and obtain the device to be networked.
  • Step 152 Receive the hotspot signal of the network device, add the network device corresponding to the hotspot signal to the set of devices to be networked, and obtain the device to be networked.
  • Step 153 Receive the device information of the network device, add the device information to the set of devices to be networked, and obtain the device to be networked.
  • steps S151 to S153 are executed by the cloud server, and the cloud server builds a set of networked devices to manage the devices to be networked, so as to network the devices to be networked in the set of networked devices to realize automatic grouping. net.
  • the cloud server uploads the address information of the network device, the first hotspot information and the device information through the WeChat applet or APP set on the terminal, so as to bind the network device.
  • the terminals include mobile terminals and non-mobile terminals, the mobile terminals include: mobile phones, tablets, smart watches, etc., and the non-mobile terminals include desktop computers, notebook computers, etc.
  • step S151 since the network device is provided with an identification code, the terminal scans the identification code on the network device to obtain the address information of the network device, then the cloud server receives the address information sent by the terminal, and then according to the address If the information determines the device information of the network device, the device information is added to the set of devices to be networked to bind the network devices to obtain the device to be networked, and then the devices to be networked in the set of devices to be networked can be used for networking operations.
  • the address information is MAC address information, or the device serial number or BSSID information of the network device obtained by the terminal scanning the identification code.
  • the cloud server determines the device information through the device serial number and BSSID information, and then adds the device information to the set of devices to be networked In order to get the device to be networked.
  • the identification code set on the network device includes any one of the following: two-dimensional code, bar code, so as to directly scan the network device to realize the binding operation of the network device.
  • step S152 when the hotspot function on the network device is activated, the terminal can scan the hotspot signal within the preset range, and then obtain the hotspot signal of the network device, then the cloud server receives the hotspot signal sent by the terminal, and obtains the corresponding hotspot signal through the hotspot signal. device information, and add the device information to the set of devices to be networked, so as to realize the automatic binding of network devices.
  • the terminal scans the hotspot signal within the preset range, and stays for the preset time to continuously accumulate the hotspot signal, and then screens the hotspot signal to determine the network device, and the screening of the hotspot signal mainly compares the strength of the hotspot signal with the preset strength Range comparison, if the strength of the hotspot signal falls within the preset strength range, determine the network device corresponding to the hotspot signal, and send the hotspot signal of the network device to the cloud server, and the cloud server will directly send the hotspot signal to the device corresponding to the hotspot signal
  • the signal is added to the set of devices to be networked to obtain the devices to be networked.
  • step 153 when the network device is connected to the network, the network device directly sends the device information to the cloud server according to the sending instruction formed by the user pressing the button, and the cloud server receives the device information and directly adds the device information to the set to be networked, To realize the binding of network devices.
  • Step 101 includes but is not limited to steps 111 to 113 .
  • Step 111 Receive a plurality of different first network parameters of the device to be networked.
  • Step 112 Perform weighted average processing on multiple first network parameters according to preset weights to obtain network scores of the devices to be networked.
  • Step 113 Determine the device to be networked with the highest network score as the first master device, and determine other devices to be networked except the first master device among the multiple devices to be networked as sub-devices.
  • the determined first master device is used as a gateway for data transmission and reception of sub-devices, so the selection of the first master device is to obtain the device to be networked with the best network performance. Therefore, weighted average processing is performed on a plurality of different first network parameters according to preset weights to obtain the network score of each device to be networked, and a higher network score indicates the network performance of the device to be networked Therefore, the device to be networked with the highest network score is obtained as the first master device, and then the remaining devices to be networked are determined as sub-devices, and the device to be networked with the best network performance is used as the gateway.
  • the first network parameter includes any one of the following: LTE wireless data upload and download rate, WAN port rate, network signal strength, number of surrounding WiFi hotspots, and RSSI information. If a score matching table corresponding to the first network parameter is defined, and the score corresponding to the first network parameter is searched through the score matching table, then the network score is obtained by calculating according to weights corresponding to different first network parameters.
  • the device to be networked acts as the first master device.
  • the first switch command is sent to the device to be networked, and if it is determined that the device to be networked is the first master device, then the first switch command to switch to the first master device is sent to The device to be networked is switched to the first master device according to the first switching instruction. If it is determined that the device to be networked is a sub-device, a first switching instruction for switching to a sub-device is sent to the device to be networked, so that the device to be networked is switched to a sub-device according to the second switching instruction.
  • the cloud server After waiting for the device to be networked to switch to the first master device, the cloud server receives the first hotspot information sent from the first master device, where the first hotspot information includes: forward backhaul information and backhaul line information, forward backhaul information (fronthaul) mainly refers to the connection information from the indoor baseband processing unit (BBU) of the antenna to the base station controller, and the backhaul line information (backhaul) refers to the information of transmitting voice and data traffic from the source site to the switch.
  • forward backhaul information fronthaul
  • backhaul line information backhaul
  • the cloud server After the cloud server receives the first hotspot information, it stores the first hotspot information, and sends the first hotspot information to the sub-device, so that the sub-device can establish a network connection with the first main device according to the first hotspot information, without having to install the sub-device one by one. Input the first hotspot information of the first main device on the Internet to connect with the first main device, so that the sub-device and the first main device can establish network connection more quickly and the operation is easier.
  • Fig. 4 is a system architecture diagram in the networking method provided by some embodiments of the present application.
  • four networking devices are set, and the networking devices are connected to the cloud server through a wide area network, and the cloud server is based on four
  • the first network parameter uploaded by the device to be networked selects the device to be networked with the best network performance as the first master device, and then sends the first switching command to the device to be networked to switch the device to be networked to be the first master device or Then the other three sub-devices establish a network connection through the first hotspot information of the first master device, and the data of the three sub-devices are forwarded to the wide area network through the first master device.
  • FIG. 5 is a flowchart of a networking method provided by other embodiments of the present application.
  • the networking method also includes but is not limited to steps 106 to 109 .
  • Step 106 When the first master device fails, receive the second network parameters of the sub-devices.
  • Step 107 Determine the second main device from the sub-devices according to the second network parameters.
  • Step 108 Send a second switching instruction to the second master device, so that the second master device switches to the second master device according to the second switching instruction.
  • Step 109 Receive the second hotspot information sent by the second main device, and send the second hotspot information to the sub-device, so that the sub-device establishes a network connection with the second main device according to the second hotspot information.
  • the first master device fails after the networking is successful, the user will be notified of the network problem of the first master device by flashing lights, but it cannot guide the user or the device to perform the operation by itself. Fault recovery, so the fault recovery in the current networking technology requires manual operation, and the efficiency of network fault recovery is low.
  • the network connection data of the first master device fails, usually restart the first master device to check whether the fault is restored, but sometimes restarting the first master device cannot restore the network.
  • This application receives the second network parameter of the sub-device when the first master device fails, determines the standby second master device from the sub-device according to the second network parameter, and then sends the second switching instruction to the second master device device, so that the device to be networked is switched to the second master device according to the second switching instruction, and then the second hotspot information of the second master device is sent to the sub-device, and the sub-device establishes Internet connection. Therefore, when the first master device fails, the backup second master device is determined as the gateway to quickly restore the network connection and realize the rapid restoration of data transmission.
  • the second network parameter includes any one of the following: LTE wireless data upload and download rate, WAN port rate, network signal strength, number of surrounding WiFi hotspots, and RSSI information.
  • LTE wireless data upload and download rate a plurality of different second network parameters of the sub-equipment
  • weighted average processing on the plurality of second network parameters according to the preset weight to obtain the sub-equipment's network score, and obtain the sub-equipment with the highest network score
  • the device acts as the second master device, and the sub-devices except the second master device among the multiple sub-devices continue to be sub-devices, and then send the second switching instruction to the second master device, so that the second master device switches from the sub-device to the second master device
  • Two master devices so that when the first master device fails, the second master device is selected as the backup master device, and the sub-devices can quickly restore the network connection and send data to the wide area network through the second master device.
  • the sub-device with the address of 192.168.0.6 wants to send a message to a WeChat friend on the WAN, and the sub-device with the address of 192.168.0.6 needs to go through the first main device with the address of 192.168.0.1, then the first main device If the WAN connection cannot be provided, the cloud server will reselect the second master device, and the address of the second master device is 192.168.0.5, then the sub-device with the address of 192.168.0.6 will send the data packet to the address of 192.168.0.5 The second master device with the address of 192.168.0.5 further encapsulates the data packet and sends it to the WAN to realize the rapid recovery of the network connection, and the automatic recovery does not require manpower, which improves the efficiency of network recovery.
  • FIG. 6 is a working flowchart of the cloud server in the networking method provided by some embodiments of the present application.
  • the cloud server waits for the terminal or network device to access. If the terminal is connected, it will receive the address information or hotspot signal sent by the terminal, and then determine the corresponding device information according to the address information or hotspot signal, and add the device information to the waiting list.
  • the equipment to be networked is obtained from the set of networking equipment; if the network device is connected, it will directly receive the device information sent by the network device, and directly add the device information to the set of equipment to be networked to obtain the device to be networked.
  • the cloud server Complete the binding of the cloud server and the network device to obtain the device to be networked, and assign the corresponding ID code to the device to be networked, and the ID code is the unique identification of the device to be networked. If the device to be networked is connected for the first time, it will wait for the first hotspot information reported by the device to be networked, and the first hotspot information includes: LTE wireless data upload and download rate, WAN port rate, network signal strength, and the number of surrounding WiFi hotspots and RSSI information. The cloud server will set the set of devices to be networked in advance.
  • the network devices will be bound according to the information reported by the terminal or network device, and the user can press the button or APP Add the device information of the network device to the set of devices to be networked to realize the binding of the network device, and receive the information of starting the network or timeout.
  • the optimal device is selected as the first master device according to the first hotspot information uploaded by the device to be networked, and other devices to be networked except the first master device among the devices to be networked are defaulted as sub-devices , and the cloud server will send a first switching instruction to notify the device to be networked to switch the device identity.
  • the first master device After receiving the first switching instruction, the first master device will send its first hotspot information to the cloud server, and then switch to the first master device according to the first switching instruction.
  • the cloud server After receiving the first hotspot information, the cloud server sends the device identity change message of the first master device and the first hotspot information to the sub-devices in the set of devices to be networked, so as to complete the automatic networking of the devices to be networked.
  • the cloud server After the cloud server sends the first hotspot information, it waits for the first main device and sub-device to feedback the network completion message. After receiving the first main device and all sub-device network completion messages, the network connection between the sub-device and the cloud server will be disconnected.
  • the cloud server is in the state of monitoring the first hotspot information of the first master device until it receives a change message of the first hotspot information of the first master device, then the cloud server will send the changed first hotspot information to the sub-device again
  • a network connection is established with the first main device, so that the sub-device synchronizes the first hotspot information of the first main device in real time, so as to quickly restore the network connection between the sub-device and the first main device.
  • the cloud server automatically selects the first main device and sub-device, and sends the first hotspot information to the sub-device so that the sub-device can establish a network connection with the first main device according to the first hotspot information, realizing automatic networking without manually setting parameters , saving manpower and improving the efficiency of networking.
  • FIG. 7 is a flowchart of a networking method provided by some embodiments of the present application.
  • the networking method includes but is not limited to steps 201 to 204 .
  • Step 201 Send the first network parameter to the cloud server, so that the cloud server determines a first master device and a sub-device from a plurality of devices to be networked according to the first network parameter.
  • Step 202 Receive a first switching instruction sent by the cloud server, and switch to the first master device according to the first switching instruction.
  • Step 203 Send the first hotspot information to the cloud server, so that the cloud server can send the first hotspot information to the sub-device.
  • Step 204 Receive the connection request sent by the sub-device according to the first hotspot information, and establish a network connection with the sub-device according to the connection request.
  • the cloud server determines the first master device and sub-devices according to the first network parameters, and receives the first switching instruction sent by the cloud server after determining the first master device, And switch to the first master device according to the first switching instruction, and send the first hotspot information to the cloud server, and then receive the connection request sent by the sub-device according to the first hotspot information to establish a network connection with the sub-device, so as to act as a gateway to connect the sub-device
  • the sent data to be forwarded is forwarded to the WAN, or the data to be forwarded received from the WAN is forwarded to the sub-device. Therefore, it is only necessary to send the first network parameters to the cloud server for automatic networking, without manual setting of parameters, which saves manpower and improves the efficiency of networking.
  • the device to be networked can be in the master device mode or the router mode in the factory mode.
  • the router mode is also the sub-device mode.
  • the WiFi driver only has two wireless access points, one is 2.4 GWiFi access point, the other is a 5GWiFi access point, then terminal devices carrying WiFi can connect.
  • For the master device mode WiFi drives four wireless access points, two are 2.4G WiFi access points, two are 5G WiFi access points, and one of the wireless access points is used as a backhaul line, and the backhaul line It is not open to the outside world for terminal device connections, but only for the establishment of networking connections between the main device and sub-devices.
  • the device to be networked in the default routing mode if it receives the first switching command to switch the device identity, it needs to be restarted. After restarting, the device to be networked will switch the device identity.
  • the first master device if the default routing mode is the master device, after receiving the first switching instruction, the first master device directly sends the first hotspot information to the cloud server without performing device identity switching. If the default reason mode is a sub-device, the first master device needs to be restarted after receiving the first switching command, and after restarting, switch to the first master device, and send the first hotspot information to the cloud server.
  • FIG. 8 is a schematic diagram of a networking connection of a networking method provided by some embodiments of the present application, wherein, when the networking device is used as a router, there are two wireless access points, and one is a 2.4GWiFi Access point, one is a 5GWiFi access point, when the device to be networked is switched to the first master device, the first master device has four wireless access points, two are 2.4GWiFi access points, and two are 5GWiFi access points Access point, the sub-device has two wireless access points, and a 2.4GWiFi access point and a 5GWiFi access point in the first main device are connected to the 2.4GWiFi access point or 5GWiFi access point of the sub-device , to achieve networking.
  • FIG. 9 is a flowchart of a networking method provided by other embodiments of the present application.
  • the networking method also includes but is not limited to steps 205 and 206 .
  • Step 205 Obtain the first network connection status of the first uplink.
  • Step 206 When the first network connection state indicates that the first uplink fails, send a failure notification message to the sub-device, so that the sub-device sends a second network parameter to the cloud server, and the second network parameter is used for the cloud server to send the sub-device a second network parameter.
  • Device determines the second master device.
  • the first hotspot information uploaded by the first master device to the cloud server includes: forward backhaul information and backhaul line information
  • the first master device will set up the backhaul line of the two sub-devices for the sub-devices to connect, and the sub-devices
  • the device sends a connection request to the first main device according to the first hotspot information, and the wireless access point of the sub-device establishes a network connection with the first uplink of the first main device, so as to realize automatic networking. Therefore, by acquiring the first network connection status of the first uplink, that is, acquiring the network connection status of the first master device and the wide area network.
  • the first master device sends a failure notification message to the sub-device, and the first master device The device broadcasts the failure notification message to the sub-device, so that the sub-device sends the second network parameters to the cloud server, and the cloud server determines the second master device from the sub-device, so that the sub-device can quickly restore the network connection and recover Data sending and receiving.
  • the first master device acquires the first network connection status of the first uplink according to a preset time period, and the first network connection status indicates when the first uplink fails, and the first master device and the sub The device still maintains the network connection relationship, and when the first network connection state represents the recovery process of the first uplink connection, the sub-device transmits and receives data and is forwarded by the second master device. Until the first network connection status indicates that the first uplink connection status has been restored, the first master device continues to serve as a gateway to send the data packets of the sub-device to the wide area network.
  • Step 206 includes, but is not limited to, steps 261 and 262 .
  • Step 261 When the first network connection state indicates that the first uplink fails, determine the current cumulative number of failures of the first uplink.
  • Step 262 When the cumulative number of faults is greater than or equal to the preset threshold, send a fault notification message to the sub-device.
  • the cloud server since the cloud server will acquire the first network connection status according to the preset time interval period, after each preset time interval, the acquired first network connection status indicates that the first uplink fails and determines the status of the first uplink connection.
  • the cumulative number of faults and when the cumulative number of faults is greater than or equal to the preset threshold, send a fault notification message to the sub-device to determine that the network connection status of the first master device and the WAN has too many faults before selecting the second master device as a sub-device gateway to ensure the stability of the network connection without affecting the network transmission performance.
  • FIG. 11 is a flowchart of a networking method provided by another embodiment of the present application.
  • the networking method includes but not limited to step 207 and step 208 .
  • Step 207 Receive the data to be forwarded.
  • Step 208 Perform loopback detection on the data to be forwarded, and forward the data to be forwarded to the second master device according to the result of the loopback detection.
  • the data to be forwarded originally sent by the sub-device cannot be forwarded to the WAN by the first master device, so the loopback detection is performed on the data to be forwarded to determine which data to be forwarded has not been forwarded to the WAN. Then, the unsent data to be forwarded is sent to the second master device, and the second master device sends the original data to be forwarded to the wide area network, so as to resume the forwarding of the data to be forwarded by the sub-device.
  • FIG. 12 is a working flowchart of the master device in the networking method provided by some embodiments of the present application, if the preset threshold is 5.
  • the network device runs in the master mode, that is, the first master device runs.
  • a thread is set on the first master device to regularly detect the data service of the first uplink. If the data service is abnormal, it means that the first uplink is faulty, and then Determine the cumulative number of faults of the first uplink.
  • the fault notification message will be broadcast to the sub-device through the WiFi module, and then the restart operation and the loopback detection function will be performed, and the data packet determined by the loopback detection function will be sent to the second master device, and the second master device sends the data packet to the wide area network, so as to realize the rapid recovery of the network.
  • loopback detection also known as closed-loop detection, refers to the ability of the robot to recognize that it has reached a certain scene and make the map closed-loop. Therefore, the first master device performs loopback detection to determine whether the data to be forwarded has been forwarded to the WAN. The data to be forwarded is sent to the second master device, and the second master device continues to forward the data to be forwarded, so as to quickly resume data sending and receiving.
  • FIG. 13 is a flowchart of a networking method provided by some embodiments of the present application.
  • the networking method includes but is not limited to steps 301 to 303 .
  • Step 301 Send the first network parameter to the cloud server, so that the cloud server determines the first main device and the sub-device from multiple devices to be networked according to the first network parameter.
  • Step 302 Receive a first switching instruction sent by the cloud server, and switch to a sub-device according to the first switching instruction.
  • Step 303 Receive the first hotspot information of the first master device sent by the cloud server, and send a connection request to the first master device according to the first hotspot information, and the connection request is used to establish a network connection with the first master device.
  • the cloud server determines the first master device and the sub-device according to the first network parameters, and then receives the first switching instruction sent by the cloud server to switch to the sub-device, to Switch to a sub-device according to the first switching instruction, and then receive the first hotspot information sent by the cloud server to establish a network connection with the first main device through the first hotspot information to realize automatic networking without manual setting of parameters, saving manpower and The efficiency of networking is improved.
  • the device to be networked is the master device by default at the factory, after receiving the first switching instruction to switch to a sub-device, the device to be networked will restart and then switch to a sub-device according to the first switching instruction, and then drive Start two wireless access points, one is 2.4GWiFi access point, the other is 5GWiFi access point, and then according to the 2.4GWiFi access point or 5GWiFi access point of the first hotspot information and the backhaul line of the first master device Establish a network connection to realize automatic networking.
  • FIG. 14 is a flowchart of a networking method provided by another embodiment of the present application.
  • the networking method further includes step 304 to step 306 .
  • Step 304 Obtain a second network connection status of the second uplink.
  • Step 305 When the second network connection status indicates that the second uplink fails and the failure notification message sent by the first master device is received, the second network parameter is sent to the cloud server according to the failure notification message, so that the cloud server can use the second network parameter according to the second
  • the network parameters determine the second master device from the sub-devices.
  • Step 306 Receive a second switching instruction sent by the cloud server, switch to the second master device according to the second switching instruction, and send the second hotspot information to the cloud server.
  • the second network connection status indicates that the second uplink is faulty.
  • the sub-device will also obtain the second network connection status according to the preset time interval period, so as to judge whether the network connection between the sub-device and the first main device is normal.
  • the second network parameters are sent to the cloud server, so that the cloud server determines the standby second master device according to the second network parameters, receives the second switching instruction sent by the cloud server, and switches to the second master device according to the second switching instruction , and send the second hotspot information to the cloud server, so that other sub-devices can establish a network connection with the second main device according to the second hotspot information.
  • the sub-device If the sub-device does not receive the second hotspot information sent by the cloud server, it will establish a network connection with the second main device according to the second hotspot information, then the sub-device can quickly restore the network connection, that is, the network can be restored and the data packets will pass through the second main device forwarded to the WAN.
  • FIG. 15 is a flowchart of a networking method provided by other embodiments of the present application.
  • the networking method further includes step 307 to step 308 .
  • Step 307 When the second network connection status indicates that the second uplink fails and the failure notification message sent by the first master device is not received, acquire the second network connection status with the first master device.
  • Step 308 When the second network connection state indicates that the network connection with the first master device fails, restart processing is performed.
  • the second network state indicates that the second uplink has failed and no failure notification message sent by the first master device has been received, it means that the first master device is normal, and the network connection between the first master device and the sub-device is broken.
  • the sub-device cannot normally send data to the first main device, then restart processing, and after the restart processing, the sub-device re-establishes a network connection with the first main device according to the first hotspot information, so as to quickly restore the network connection and achieve normal data send and receive.
  • the number of network connection abnormalities is obtained, and if the number of network connection abnormalities is greater than or equal to a preset threshold, the processing is restarted, To quickly restore the network connection between the slave device and the first master device.
  • FIG. 16 is a working flowchart of sub-devices in a networking method provided by some embodiments of the present application.
  • the sub-device After the sub-device completes the device identity switching, it obtains the second network connection status according to the preset time interval cycle, that is, obtains the data service status of the second uplink.
  • the network between the devices is abnormal, so it is judged whether the fault notification message sent by the first master device is received. If the fault notification message is not received, the network connection status is detected and the number of network connection exceptions is obtained. If the number of network connection exceptions exceeds or equals 5 times, that is, 5 consecutive exceptions, restart processing.
  • the network connection status is normal, then continue to wait for the fault notification message sent by the first master device, if the fault notification message sent by the first master device is received, then start the dial-up networking module, connect the cloud server through the dial-up networking module, and
  • the second network parameter is reported to the cloud server, that is, the LTE wireless data upload and download speed, WAN port speed, network signal strength, surrounding WiFi hotspot number and RSSI information of the sub-device are sent to the cloud server, so that the cloud server Select the sub-device with the best network performance as the second master device, and switch to the second master device if it receives the second switching command sent by the cloud server to establish a network connection with other sub-devices and forward the data of other sub-devices
  • the data is forwarded to the WAN, and the rerouting mechanism and the loopback detection function are activated at the same time to receive the data to be forwarded sent by the first master device, and send the data to be forwarded to the WAN.
  • the second hotspot information sent by the cloud server is received, a network connection is established with the second master device according to the second hotspot information.
  • the sub-device is switched to the second master device, if the second uplink abnormality is checked 5 times in a row, it will lose the device identity of the second master device, restart and switch to the sub-device, and the cloud server will re-select the second uplink master device.
  • FIG. 17 is a flowchart of a networking method provided by some embodiments of the present application.
  • the device to be networked needs to be powered on, and after power-on, the device to be networked will automatically perform a dial-up Internet access process. Report a network parameter to the cloud server, and then wait for the first switching instruction sent by the cloud server after determining the first master device and the slave device according to the first network parameter.
  • the first hotspot information includes: forward backhaul information and backhaul line information, that is, fronthaul information and backhaul information, and then the first master device will establish a network connection with the sub-device.
  • the first master device will send the modified first hotspot information to the cloud server, and the cloud server will send the modified The first hotspot information is sent to the sub-device, so that the sub-device can re-establish a communication connection with the first main device. If the first switching instruction to switch to a sub-device is received, the sub-device will switch first, then report the switching completion message to the cloud server, and wait for the first hotspot information sent by the cloud server to set the hotspot parameters according to the first hotspot information , that is, to set WiFi parameters, so that the sub-device can establish a network connection with the first main device.
  • the embodiment of the present application also provides a networking device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the program, it realizes: The networking method described in the first aspect.
  • the networking device is also a cloud server, and a module composition diagram of the cloud server is shown in FIG. 18 .
  • FIG. 18 is a module composition diagram of a networking device provided by some embodiments of the present application.
  • the cloud server has the functions of managing the devices to be networked, communicating with the devices to be networked, selecting the best device to be networked among groups, deleting and adding devices to be networked.
  • the cloud server includes a device access module, a message sending module, a message receiving module, a device parameter judgment module, an optimal device selection module, and a network device addition and deletion management module.
  • the device access module is responsible for connecting the network device trying to access the cloud server.
  • the cloud server uniquely identifies the network device through address information or device serial number, and also sends and receives messages with the network device through the unique identifier.
  • the message sent by the message sending module includes a device identity switch instruction and hotspot information of the first master device or the second master device.
  • the message receiving module is configured to receive the first network parameter sent by the device to be networked, or the sub-device sends and waits for the second network parameter.
  • the device parameter judging module is configured to determine the first master device and the sub-device according to the first network parameter, and determine the second master device according to the second network parameter, and the device parameter judging module performs the following according to different first network parameters or second network parameters Weighted average processing to get the network score.
  • the optimal device selection module is configured to determine the first master device and sub-devices according to the network score, or determine the second master device.
  • the management module for adding and deleting network devices is set to be responsible for adding the device information of the network devices to the set of devices to be networked before the network is formed, so as to obtain the devices to be networked for group management of the devices to be networked.
  • the embodiment of the present application also discloses a networking device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the program, it realizes: The networking method described in the second aspect, or the networking method described in the third aspect item.
  • the networking equipment is also the equipment to be networked, and the module composition diagram of the equipment to be networked is shown in Figure 19, Figure 19 is a module composition diagram of the equipment to be networked provided by some embodiments of the present application; and the network to be formed
  • the equipment includes: cloud server access module, cloud server message sending module, cloud server message receiving module, device parameter reporting module, networking role switching module, fault detection module, link loopback detection module, and link loopback processing module.
  • the cloud server access module is set to establish a communication connection with the cloud server after networking; the cloud server message sending module is set to send the first network parameter of the device to be networked or the second network parameter of the sub-device to the cloud server.
  • the cloud server message receiving module is configured to receive the control instruction, the first hotspot information or the second hotspot information sent by the cloud server, wherein the control instruction includes a role switching instruction and a network disconnection instruction.
  • the device parameter reporting module is configured to send the first hotspot information to the cloud server when the device to be networked is the first master device, or send the second hotspot information to the cloud server when it is the second master device.
  • the networking role switching module performs device identity switching when the cloud server issues the first switching instruction or the second switching instruction.
  • the fault detection module is configured to detect an abnormal situation of the first master device or the slave device on the first uplink or the second uplink.
  • the link loopback detection module selects a new second master device to start after the sub-device or the primary device fails, and the link loopback module is set to detect whether the data packet may be looped back in advance, and the link loopback processing module is activated It is set to send the data packet to the second master device according to the loopback detection result, so that the data packet can resume normal sending.
  • the embodiment of the present application also discloses a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to: execute the networking method described in the first aspect, or as described in The networking method described in the second aspect, or the networking method described in the third aspect.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the embodiment of the present application at least includes the following beneficial effects: by determining the first master device and sub-device from multiple devices to be networked according to the received first network parameters, and sending the first switching instruction to the device to be grouped, so that the network to be grouped The network device switches to the first main device or sub-device according to the first switching instruction, and then sends the first hotspot information sent by the first main device to the sub-device, so that the sub-device establishes a network with the first main device according to the first hotspot information Connection, so that there is no need to manually set parameters during networking, and realize automatic networking, which not only saves manpower for networking, but also improves the efficiency of networking, making networking more efficient and convenient.
  • Computer storage media including, but not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, storage device storage or other magnetic storage devices, or Any other medium that can be used to store desired information and that can be accessed by a computer.
  • communication media typically embody computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种组网方法、装置、设备及存储介质,组网方法包括:接收多个待组网设备的第一网络参数,根据第一网络参数从多个待组网设备中确定第一主设备和子设备(101);向待组网设备发送第一切换指令,以使待组网设备根据第一切换指令切换为第一主设备或者子设备(102);接收第一主设备发送的第一热点信息(103);将第一热点信息发送至子设备,以使子设备根据第一热点信息与第一主设备建立网络连接(104)。

Description

组网方法、装置、设备及存储介质
相关申请的交叉引用
本申请基于申请号为202111148503.X,申请日为2021年09月27日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及通信技术领域,特别是涉及一种组网方法、装置、设备及存储介质。
背景技术
现代社会中智能终端的使用离不开WiFi,且WiFi已经深入我们工作、生活、学习的方方面面,其中,WiFi的覆盖能够便于智能终端用户随时随地进行网上娱乐和工作,而WiFi覆盖则需要进行WiFi扩展,一般通过组网的方式来进行WiFi扩展。
一些情形中,主要利用网络设备组网,然而,在组网时一般需要用户手动设置参数,使得组网效率较低。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本申请实施例提供了组网方法、装置、设备及存储介质。
第一方面,本申请实施例提供了一种组网方法,包括:接收多个待组网设备的第一网络参数,根据所述第一网络参数从多个待组网设备中确定第一主设备和子设备;向所述待组网设备发送第一切换指令,以使所述待组网设备根据所述第一切换指令切换为所述第一主设备或者子设备;接收所述第一主设备发送的第一热点信息;将所述第一热点信息发送至所述子设备,以使所述子设备根据所述第一热点信息与所述第一主设备建立网络连接。
第二方面,本申请实施例还提供了一种组网方法,包括:发送第一网络参数至云服务器,以使所述云服务器根据所述第一网络参数从多个待组网设备中确定第一主设备和子设备;接收所述云服务器发送的第一切换指令,根据所述第一切换指令切换为所述第一主设备;向所述云服务器发送第一热点信息,以供所述云服务器将所述第一热点信息发送至所述子设备;接收所述子设备根据所述第一热点信息发送的连接请求,根据所述连接请求与所述子设备建立网络连接。
第三方面,本申请实施例还提供了一种组网方法,包括:发送第一网络参数至云服务器,以使所述云服务器根据所述第一网络参数从多个待组网设备中确定第一主设备和子设备;接收所述云服务器发送的第一切换指令,根据所述第一切换指令切换为所述子设备;接收所述云服务器发送的所述第一主设备的第一热点信息,根据所述第一热点信息向所述第一主设备发送连接请求,所述连接请求用于与所述第一主设备建立网络连接。
第四方面,本申请实施例还提供了一种组网装置,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现:如第一方面项所述的组网方法。
第五方面,本申请实施例还提供了一种网络设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现;如第二方面所述的组网方法,或如第三方面所述组网方法。
第六方面,本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于:执行如第一方面所述的组网方法,或者如第二方面所述的组网方法,或者如第三方面所述组网方法。
本申请的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图说明
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。
图1是本申请一些实施例提供的组网方法的流程图;
图2是本申请另一些实施例提供的组网方法的流程图;
图3是本申请另一些实施例提供的组网方法的流程图;
图4是本申请一些实施例提供的组网方法中的系统架构图;
图5是本申请另一些实施例提供的组网方法的流程图;
图6是本申请一些实施例提供的组网方法中云服务器的工作流程图;
图7是本申请一些实施例提供的组网方法的流程图;
图8是本申请一些实施例提供的组网方法的组网连接示意图;
图9是本申请另一些实施例提供的组网方法的流程图;
图10是本申请另一些实施例提供的组网方法的流程图;
图11是本申请另一些实施例提供的组网方法的流程图;
图12是本申请一些实施例提供的组网方法中主设备的工作流程图;
图13是本申请另一些实施例提供的组网方法的流程图;
图14是本申请另一些实施例提供的组网方法的流程图;
图15是本申请另一些实施例提供的组网方法的流程图;
图16是本申请一些实施例提供组网方法中子设备的工作流程图;
图17是本申请一些实施例提供组网方法的流程图;
图18是本申请一些实施例提供的组网装置的模块组成图;
图19是本申请一些实施例提供的组网设备的模块组成图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
应了解,在本申请实施例的描述中,多个(或多项)的含义是两个以上,大于、小于、超过等理解为不包括本数,以上、以下、以内等理解为包括本数。如果有描述到“第一”、“第二”等只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。
一些情形中,WiFi组网方法主要有两种,第一种是通过主设备和子设备相互配合,且主设备和子设备在出厂的时候已经设置好了设备的工作模式,用户回到家只需要设置主设备的一些参数等,然后按动两个设备的按键,即可完成组网。第二种则是室内WiFi路由器和室外无线联网装置一起售卖,室内WiFi路由器和室外无线联网装置通过网线连接,一个室外无线联网装置可以搭载多个室内WiFi路由器,室内WiFi路由器配有WiFi模块,室内WiFi路由器之间通过WiFi mesh组网连接起来,共享室外无线联网装置的广域网资源。此时室内WiFi路由器不区分主设备和子设备,出厂设备处于路由模式,连接到室外无线联网装置上的室内WiFi路由器在组网后会切换到主设备使用,其他的室内WiFi路由器会切换到子设备使用。室内WiFi路由器之间组网也是通过wps方式将主设备和子设备连接到一起的。但是这两种组网方法都在使用上有如下一些问题。
第一,子设备和主设备难以区分,若未事先配置,或者配置错误,导致主设备和子设备的 状态不对,就可能组不上网。
第二,wps的配对是否成功取决于其工作机制,wps超时时间是两分钟,如果在两分钟之内,其中一方的wps未启动成功,或者由于空间中还有其他的wps session,就会出现冲突,最终导致组网失败。
第三,第二种组网方案由于涉及到路由模式切换到主设备工作模式和子设备工作模式,组网失败还要恢复到路由模式,中间一旦出现问题就必须恢复出厂重新再来,从配网、到组网成功,熟练工花费6分钟左右,因此组网效率较低。
基于此,本申请公开了一种组网方法、装置、设备及存储介质,能够实现自动组网,无需人工手动设置参数,使得组网效率提高。
第一方面,参照图1,图1是本申请一些实施例提供的组网方法的流程图,组网方法包括但不限于以下步骤101至步骤104。
步骤101:接收多个待组网设备的第一网络参数,根据第一网络参数从多个待组网设备中确定第一主设备和子设备。
步骤102:向待组网设备发送第一切换指令,以使待组网设备根据第一切换指令切换为第一主设备或者子设备。
步骤103:接收第一主设备发送的第一热点信息。
步骤104:将第一热点信息发送至子设备,以使子设备根据第一热点信息与第一主设备建立网络连接。
上述步骤101至步骤104,通过根据接收的第一网络参数从多个待组网设备中确定第一主设备和子设备,然后向待组网设备发送第一切换指令以使待组网设备根据第一切换指令切换为第一主设备或子设备,等待待组网设备切换完毕后,获取第一主设备的第一热点信息,并将第一主设备的第一热点信息发送给子设备,以使子设备根据第一热点信息和主设备建立网络连接,因此实现待组网设备的自动组网,无需人工单独设置参数,提高了组网效率。
其中,步骤S101至步骤S104由云服务器执行,则通过云服务器自动实现待组网设备的自动组网,只需要启动待组网设备,通过云服务器确定待组网设备的设备身份,然后发送第一切换指令至待组网设备以使待组网设备自动进行设备身份切换,然后将第一主设备的第一热点信息发送至子设备,则子设备可以根据第一热点信息与第一主设备建立网络连接,实现自动组网,节省人力且提高组网效率。
在一种可能的实现方式中,在接收多个待组网设备的第一网络参数之前,组网方法还包括:根据预先设置的绑定方式对网络设备进行绑定,得到待组网设备。
其中,由于接收待组网设备的第一网络参数之前需要先确定待组网设备,因此,通过预先设置的绑定方式将网络设备绑定后得到待组网设备,则可以接收已经绑定的待组网设备发送的第一网络参数。
在一种可能的实现方式中,参照图2,图2是本申请另一些实施例提供的组网方法的流程图。步骤105包括以下任意一种:步骤S151、步骤S152和步骤S153。
步骤151:接收网络设备的地址信息,根据地址信息确定网络设备的设备信息,将设备信息添加至待组网设备集合中,得到待组网设备。
步骤152:接收网络设备的热点信号,将热点信号对应的网络设备添加至待组网设备集合中,得到待组网设备。
步骤153:接收网络设备的设备信息,将设备信息添加至待组网设备集合中,得到待组网设备。
具体地,步骤S151至步骤S153由云服务器执行,云服务器构建一个待组网设备集合,以管理待组网设备,以将待组网设备集合中的待组网设备进行组网,实现自动化组网。其中云服务器通过设置在终端上的微信小程序或者APP将网络设备的地址信息、第一热点信息和设备信息上传,以将网络设备绑定。其中,终端包括移动终端和非移动终端,移动终端包括:手机、平板、智能手表等,非移动终端包括台式电脑、笔记本电脑等。
需要说明的是,在步骤S151中,由于网络设备上设置有标识码,通过终端扫描网络设备上的标识码以获取网络设备的地址信息,则云服务器接收到终端发送的地址信息,然后根据地址信息确定网络设备的设备信息,则将设备信息添加至待组网设备集合中以将网络设备绑定得到待组网设备,即可将待组网设备集合中待组网设备进行组网操作。其中,地址信息为MAC地址信息,或者终端扫描标识码得到的网络设备的设备序列号或者BSSID信息,云服务器通过设备序列号和BSSID信息确定设备信息,然后将设备信息添加至待组网设备集合中,以得到待组网设备。其中,网络设备上设置的标识码包括以下任意一种:二维码、条形码,以便于直接对网络设备扫描即可实现网络设备的绑定操作。
在步骤S152中,网络设备上的热点功能启动,则终端可以扫描到预设范围内的热点信号,然后获取网络设备的热点信号,则云服务器接收来自终端发送的热点信号,通过热点信号获取对应的设备信息,并将设备信息添加至待组网设备集合中,以实现网络设备的自动绑定。其中,终端在预设范围内扫描热点信号,且停留预设时间以不断累积热点信号,然后对热点信号进行筛选后确定网络设备,且对热点信号进行筛选主要将热点信号的强度和预设强度范围比较,若热点信号的强度落入预设强度范围,则确定该热点信号对应的网络设备,并将网络设备的热点信号发送至云服务器,云服务器接收到热点信号直接将热点信号对应的设备信号添加至待组网设备集合中,以得到待组网设备。
在步骤153中,当网络设备联网后,网络设备根据用户按动按键形成的发送指令直接将设备信息发送至云服务器,则云服务器接收到设备信息直接将设备信息添加至待组网集合中,以实现网络设备的绑定。
在一种可能的实现方式中,参照图3,图3是本申请另一些实施例提供的组网方法的流程图。步骤101包括但不限于包括步骤111至步骤113。
步骤111:接收待组网设备的多个不同的第一网络参数。
步骤112:根据预设的权值对多个第一网络参数进行加权平均处理,得到待组网设备的网络分值。
步骤113:将网络分值最高的待组网设备确定为第一主设备,将多个待组网设备中除了第一主设备以外的其他待组网设备确定为子设备。
需要说明的是,所确定第一主设备作为网关,以作为子设备的数据收发的网关,所以第一主设备的选取也即获取网络性能最优的待组网设备。因此,通过根据预设的权值对多个不同的第一网络参数进行加权平均处理,以得到每个待组网设备的网络分值,且网络分值越高表示待组网设备的网络性能越优,因此获取网络分值最高的待组网设备作为第一主设备,然后将其余的待组网设备确定为子设备,以通过网络性能最优的待组网设备作为网关。
具体地,第一网络参数包括以下任意一种:LTE无线数据上传下载速率、WAN口速率、网络信号强度、周围WiFi热点个数和RSSI信息。若定义第一网络参数对应的分值匹配表,且通过分值匹配表查找到第一网络参数对应的分值,然后再根据不同第一网络参数对应的权值计算得到网络分值。例如,若A待组网设备的第一网络参数包括:LTE无线数据上传下载速率、WAN口速率、网络信号强度、周围WiFi热点个数和RSSI信息,且根据分值匹配表确定对应的分值分别为a、b、c、d、e,且LTE无线数据上传下载速率、WAN口速率、网络信号强度、周围WiFi热点个数和RSSI信息对应的权值为q1、q2、q3、q4、q5,则网络分值为Z=a*q1+b*q2+c*q3+d*q4+e*q5,以此类推得到多个待组网设备的网络分值,然后选择网络分值最高的待组网设备作为第一主设备。
其中,确定了第一主设备和子设备后,将第一切换指令发送至待组网设备,若确定待组网设备为第一主设备,则发送切换为第一主设备的第一切换指令至待组网设备,使待组网设备根据第一切换指令切换为第一主设备。若确定待组网设备为子设备后,发送切换为子设备的第一切换指令至待组网设备,使待组网设备根据第二切换指令切换为子设备。等待待组网设备切换为第一主设备后,云服务器接收来自第一主设备发送的第一热点信息,其中第一热点信息包括:前向回传信息和回程线路信息,前向回传信息(fronthaul)主要是从天线的室内基带处理单元 (BBU)到基站控制器之间的连接信息,回程线路信息(backhaul)指的是从信源站点向交换机传送语音和数据流量的信息。云服务器接收到第一热点信息后将第一热点信息存储,并将第一热点信息发送至子设备,以使子设备根据第一热点信息和第一主设备建立网络连接,无需逐个在子设备上输入第一主设备的第一热点信息与第一主设备进行网络连接,使得子设备和第一主设备建立网络连接更加快速,且操作更加简易。
参照图4,图4是本申请一些实施例提供的组网方法中的系统架构图,例如,待组网设备设置四个,且待组网设备通过广域网连接到云服务器,云服务器根据四个待组网设备上传的第一网络参数选择网络性能最优的待组网设备作为第一主设备,然后发送第一切换指令至待组网设备以使待组网设备切换为第一主设备或子设备,然后其余三个子设备通过第一主设备的第一热点信息建立网络连接,且三个子设备的数据通过第一主设备转发到广域网。
在一种可能的实现方式中,参照图5,图5是本申请另一些实施例提供的组网方法的流程图。组网方法还包括但不限于包括步骤106至步骤109。
步骤106:当第一主设备出现故障,接收子设备的第二网络参数。
步骤107:根据第二网络参数从子设备中确定第二主设备。
步骤108:向第二主设备发送第二切换指令,以使第二主设备根据第二切换指令切换为第二主设备。
步骤109:接收第二主设备发送的第二热点信息,并将第二热点信息发送至子设备,以使子设备根据第二热点信息与第二主设备建立网络连接。
需要说明的是,由于一些情形中,当组网成功后若第一主设备出现故障后,都是通过闪灯的方式来告知用户第一主设备存在网络问题,但是无法指导用户或者设备自己进行故障恢复,所以目前组网技术中故障恢复需要人工操作,则网络故障恢复的效率较低。在组网成功后,若第一主设备的网络连接数据不通,通常都是采用重启第一主设备来查看故障是否恢复,但是有时候重启第一主设备也无法恢复网络。本申请通过在第一主设备出现故障时,接收到子设备的第二网络参数,根据第二网络参数从子设备中确定备用的第二主设备,然后将第二切换指令发送至第二主设备,以使待组网设备根据第二切换指令切换为第二主设备,然后将第二主设备的第二热点信息发送至子设备,则子设备通过第二热点信息和第二主设备建立网络连接。因此,在第一主设备故障时,确定备用的第二主设备作为网关,以快速恢复网络连接,实现数据快速恢复传输。
具体地,第二网络参数包括以下任意一种:LTE无线数据上传下载速率、WAN口速率、网络信号强度、周围WiFi热点个数和RSSI信息。通过接收子设备的多个不同的第二网络参数,然后根据预设的权值对多个第二网络参数进行加权平均处理,以得到子设备的网络分值,并获取网络分值最高的子设备作为第二主设备,将多个子设备中除了第二主设备的子设备继续作为子设备,然后将第二切换指令发送至第二主设备,以使第二主设备从子设备切换为第二主设备,以在第一主设备故障时选择第二主设备作为备用主设备,则子设备可以快速恢复网络连接,并通过第二主设备将数据发送至广域网。
例如,若地址为192.168.0.6的子设备要给广域网上的一个微信好友发送消息,且地址为192.168.0.6的子设备要经过地址为192.168.0.1的第一主设备,此时第一主设备无法提供广域网的连接,则云服务器会重新选定第二主设备,且第二主设备的地址为192.168.0.5,则地址为192.168.0.6的子设备会将数据包发送至地址为192.168.0.5的第二主设备,并由地址为192.168.0.5的第二主设备将数据包进一步封装后发送至广域网上,以实现网络连接的快速恢复,且自动化恢复无需人力,提高网络恢复的效率。
综上所述,参照图6,图6是本申请一些实施例提供的组网方法中云服务器的工作流程图。云服务启动后,云服务器等待终端或者网络设备接入,若终端接入则接收终端发送的地址信息或热点信号,然后根据地址信息或热点信号确定对应的设备信息,并将设备信息添加至待组网设备集合中得到待组网设备;若网络设备接入则直接接收网络设备发送的设备信息,直接将设备信息添加至待组网设备集合中得到待组网设备。完成云服务器和网络设备的绑定以得到待组 网设备,并分配对应的身份标识码给待组网设备,且身份标识码是待组网设备的唯一标识。若待组网设备第一次接入则等待待组网设备上报的第一热点信息,且第一热点信息包括:LTE无线数据上传下载速率、WAN口速率、网络信号强度、周围WiFi热点个数和RSSI信息。云服务器上会提前设定待组网设备集合,对于待组网设备组合中不存在的网络设备,则根据终端或者网络设备上报的信息对网络设备进行绑定,且用户可以通过按键或者APP方式将网络设备的设备信息添加至待组网设备集合中,以实现网络设备的绑定,并收到开始组网或超时时间到信息。待组网设备确定后,根据待组网设备上传的第一热点信息选出最优设备作为第一主设备,且默认待组网设备中除了第一主设备的其他待组网设备为子设备,且云服务器会发送第一切换指令以通知待组网设备切换设备身份。第一主设备接收第一切换指令后会将自己的第一热点信息发送至云服务器,之后根据第一切换指令切换为第一主设备。云服务器接收第一热点信息后将第一主设备的设备身份变化消息和第一热点信息发送至待组网设备集合中的子设备,以完成待组网设备的自动化组网。云服务器发送第一热点信息后,等待第一主设备和子设备反馈组网完成消息,收到第一主设备和所有子设备的组网完成消息后,子设备和云服务器的网络连接会断开,之后云服务器处于监听第一主设备的第一热点信息的状态,直到收到第一主设备的第一热点信息的改变消息,则通过云服务器将改变的第一热点信息发送至子设备重新与第一主设备建立网络连接,使得子设备实时同步第一主设备的第一热点信息,以快速恢复子设备和第一主设备的网络连接。因此,通过云服务器自动选择第一主设备和子设备,并发送第一热点信息至子设备以使子设备根据第一热点信息和第一主设备建立网络连接,实现自动化组网,无需人工设置参数,节省人力且提高组网的效率。
第二方面,本申请实施例还提供了另一种组网方法,由第一主设备执行。参照图7,图7是本申请一些实施例提供的组网方法的流程图。组网方法包括但不限于包括步骤201至步骤204。
步骤201:发送第一网络参数至云服务器,以使云服务器根据第一网络参数从多个待组网设备中确定第一主设备和子设备。
步骤202:接收云服务器发送的第一切换指令,根据第一切换指令切换为第一主设备。
步骤203:向云服务器发送第一热点信息,以供云服务器将第一热点信息发送至子设备。
步骤204:接收子设备根据第一热点信息发送的连接请求,根据连接请求与子设备建立网络连接。
上述步骤201至步骤204,通过发送第一网络参数至云服务器,则云服务器根据第一网络参数确定第一主设备和子设备,并接收云服务器确定第一主设备后发送的第一切换指令,并根据第一切换指令切换为第一主设备,并向云服务器发送第一热点信息,然后接收子设备根据第一热点信息发送的连接请求以和子设备建立网络连接,以充当网关角色将子设备发送的待转发数据转发至广域网,或接收广域网发送的待转发数据转发至子设备。因此只需要发送第一网络参数至云服务器后,进行自动组网,无需人工手动设置参数,节省人力提高组网的效率。
需要说明的是,待组网设备在出厂模式下可以是主设备模式也可以是路由器模式,其中,对于路由器模式也即为子设备模式,WiFi驱动只有两个无线访问接入点,一个是2.4GWiFi接入点,另一个是5GWiFi接入点,则携带WiFi的终端设备可以连接。对于主设备设备模式,则WiFi驱动起了四个无线访问接入点,两个是2.4GWiFi接入点,两个是5GWiFi接入点,其中一个无线访问接入点作为回程线路使用,回程线路不对外开放给终端设备连接,只是提供给主设备和子设备之间建立组网连接使用的。对于默认路由模式的待组网设备,若接收到第一切换指令进行设备身份切换则需要进行重启操作,重启后待组网设备会将设备身份进行切换。对于第一主设备而言,若默认的路由模式为主设备,则第一主设备接收到第一切换指令后,无需进行设备身份切换直接将第一热点信息发送至云服务器。若默认的理由模式为子设备,则第一主设备接收第一切换指令后,需要进行重启,且重启后切换为第一主设备,并将第一热点信息发送至云服务器。
可以理解的是,参照图8,图8是本申请一些实施例提供的组网方法的组网连接示意图,其中,待组网设备作为路由器时具备两个无线访问接入点,一个为2.4GWiFi接入点,一个为5GWiFi 接入点,当待组网设备切换为第一主设备后,第一主设备具有四个无线访问接入点,两个为2.4GWiFi接入点,两个为5GWiFi接入点,子设备具备两个无线访问接入点,且第一主设备中的一个2.4GWiFi接入点和一个5GWiFi接入点与子设备的2.4GWiFi接入点或5GWiFi接入点进行连接,以实现组网。
在一种可能的实现方式中,参照图9,图9是本申请另一些实施例提供的组网方法的流程图。组网方法还包括但不限于包括步骤205和步骤206。
步骤205:获取第一上行链路的第一网络连接状态。
步骤206:当第一网络连接状态表征第一上行链路出现故障,向子设备发送故障通知消息,以使子设备向云服务器发送第二网络参数,第二网络参数用于供云服务器从子设备中确定第二主设备。
具体地,由于第一主设备上传至云服务器的第一热点信息包括:前向回传信息和回程线路信息,且第一主设备会起两个子设备的回程线性以供子设备连接,且子设备根据第一热点信息向第一主设备发送连接请求,且子设备的无线访问接入点和第一主设备的第一上行链路建立网络连接,以实现自动组网。因此通过获取第一上行链路的第一网络连接状态,也即获取第一主设备和广域网的网络连接状态。若第一主设备和广域网之间的网络连接状态为故障状态,也即第一网络连接状态表征第一上行链路出现故障,则第一主设备发送故障通知消息至子设备,且第一主设备以广播的方式将故障通知消息发送至子设备,以使子设备发送第二网络参数至云服务器,由云服务器从子设备中确定第二主设备,以便于子设备快速恢复网络连接,恢复数据收发。
需要说明的是,第一主设备根据预设的时间周期获取第一上行链路的第一网络连接状态,且第一网络连接状态表征第一上行链路出现故障时,且第一主设备和子设备依然保持着网络连接关系,并在第一网络连接状态表征第一上行连接恢复过程中,子设备进行数据收发由第二主设备转发。直到第一网络连接状态表征第一上行连接状态已恢复,则第一主设备继续作为网关将子设备的数据包发送至广域网。
在一种可能的实现方式中,参照图10,图10是本申请另一些实施例提供的组网方法的流程图。步骤206包括但不限于包括步骤261和步骤262。
步骤261:当第一网络连接状态表征第一上行链路出现故障,确定当前第一上行链路的故障累计次数。
步骤262:当故障累计次数大于或者等于预设阈值,向子设备发送故障通知消息。
具体地,由于云服务器会根据预设时间间隔周期获取第一网络连接状态,所以每间隔预设时间后,获取得到第一网络连接状态表征第一上行链路出现故障后确定第一上行连接的故障累计次数,并在故障累计次数大于或者等于预设阈值,再向子设备发送故障通知消息,以确定了第一主设备和广域网的网络连接状态故障过多才选择由第二主设备作为子设备的网关,以保证网络连接的稳定且不影响网络传输性能。
在一种可能的实现方式中,参照图11,图11是本申请另一些实施例提供的组网方法的流程图。组网方法包括但不限于包括步骤207和步骤208。
步骤207:接收待转发数据。
步骤208:对待转发数据进行回环检测,根据回环检测的结果将待转发数据转发至第二主设备。
需要说明的是,由于第一主设备发生故障后,子设备原先发送的待转发数据第一主设备无法转发至广域网,则对待转发数据进行回环检测,以判断哪些待转发数据没有转发至广域网,然后将没有发送的待转发数据发送至第二主设备,由第二主设备将原本的待转发数据发送至广域网,以恢复子设备的待转发数据转发。
例如,参照图12,图12是本申请一些实施例提供的组网方法中主设备的工作流程图,若预设阈值为5。网络设备运行在主设备模式也即第一主设备运行,第一主设备上设置一个线程定时检测第一上行链路的数据业务,若数据业务异常也即标识第一上行链路出现故障,然后确定第 一上行链路的故障累计次数,若故障累计次数5次,则会通过WiFi模块向子设备广播故障通知消息,然后执行重启操作和回环检测功能,并将回环检测功能确定的数据包发送至第二主设备,由第二主设备将数据包发送至广域网,以实现网络的快速恢复。其中,回环检测,又称闭环检测,是指机器人识别曾到达某场景,使得地图闭环的能力,因此第一主设备进行回环检测以判断待转发数据是否已经完成转发至广域网,若未转发则将待转发数据发送至第二主设备,由第二主设备继续进行待转发数据转发,以快速恢复数据收发。
第三方面,本申请实施例还提供了另一种组网方法,由子设备执行。参照图13,图13是本申请一些实施例提供的组网方法的流程图。组网方法包括但不限于包括步骤301至步骤303。
步骤301:发送第一网络参数至云服务器,以使云服务器根据第一网络参数从多个待组网设备中确定第一主设备和子设备。
步骤302:接收云服务器发送的第一切换指令,根据第一切换指令切换为子设备。
步骤303:接收云服务器发送的第一主设备的第一热点信息,根据第一热点信息向第一主设备发送连接请求,连接请求用于与第一主设备建立网络连接。
上述步骤301至步骤303,通过将第一网络参数发送至云服务器,由云服务器根据第一网络参数确定第一主设备和子设备后,接收云服务器发送切换为子设备的第一切换指令,以根据第一切换指令切换为子设备,然后接收云服务器发送的第一热点信息,以通过第一热点信息和第一主设备建立网络连接,以实现自动组网,无需人工设置参数,节省人力且提高了组网的效率。
具体地,若待组网设备在出厂默认是主设备,则接收到切换为子设备的第一切换指令后,待组网设备会重启然后根据第一切换指令切换为子设备,然后通过WiFi驱动起两个无线访问接入点,一个是2.4GWiFi接入点,另一个是5GWiFi接入点,然后根据第一热点信息的2.4GWiFi接入点或5GWiFi接入点和第一主设备的回程线路建立网络连接,以实现自动组网。
在一种可能的实现方式中,参照图14,图14是本申请另一些实施例提供的组网方法的流程图。组网方法还包括步骤304至步骤306。
步骤304:获取第二上行链路的第二网络连接状态。
步骤305:当第二网络连接状态表征第二上行链路出现故障且接收到第一主设备发送的故障通知消息,根据故障通知消息向云服务器发送第二网络参数,以供云服务器根据第二网络参数从子设备中确定第二主设备。
步骤306:接收云服务器发送的第二切换指令,根据第二切换指令切换为第二主设备,并将第二热点信息发送至云服务器。
具体地,当第一主设备和子设备的网络连接存在故障,则第二网络连接状态表征第二上行链路出现故障。其中,子设备也会根据预设时间间隔周期获取第二网络连接状态,以判断子设备和第一主设备的网络连接是否正常。若获取第二网络连接状态表征为第二上行链路出现故障且接收第一主设备发送的故障通知消息,则表示造成第一主设备和子设备之间网络连接故障的原因是第一主设备故障,则将第二网络参数发送至云服务器,以使云服务器根据第二网络参数确定备用的第二主设备,接收云服务器发送的第二切换指令,根据第二切换指令切换为第二主设备,并将第二热点信息发送至云服务器,以使其他子设备根据第二热点信息和第二主设备建立网络连接。若子设备未接收到云服务器发送的第二热点信息,则根据第二热点信息和第二主设备建立网络连接,则子设备可以快速恢复网络连接,即可恢复网络将数据包通过第二主设备转发至广域网。
在一种可能的实现方式中,参照图15,图15是本申请另一些实施例提供的组网方法的流程图。组网方法还包括步骤307至步骤308。
步骤307:当第二网络连接状态表征第二上行链路出现故障且未接收到第一主设备发送的故障通知消息,获取与第一主设备之间的第二网络连接状态。
步骤308:当第二网络连接状态表征与第一主设备之间的网络连接出现故障,进行重启处理。
具体地,当第二网络状态表征第二上行链路出现故障且未接收到第一主设备发送的故障通知消息,则表示第一主设备正常,第一主设备和子设备之间的网络连接出现异常,子设备无法 正常将数据发送至第一主设备,则进行重启处理,且重启处理后子设备重新根据第一热点信息和第一主设备建立网络连接,以快速恢复网络连接,实现数据正常收发。其中当第二网络状态表征第二上行链路出现故障且未接收第一主设备发送的故障通知消息,则获取网络连接异常次数,若网络连接异常次数大于或者等于预设阈值,则重启处理,以快速恢复子设备和第一主设备的网络连接。
例如,参照图16,图16是本申请一些实施例提供组网方法中子设备的工作流程图。子设备完成设备身份切换后,根据预设时间间隔周期获取第二网络连接状态,也即获取第二上行链路的数据业务状态,若检测到数据业务状态异常,则判断子设备和第一主设备之间网络异常,所以判断是否接收到第一主设备发送的故障通知消息,若没有接收到故障通知消息,则检测网络连接状态,并获取网络连接异常次数,若网络连接异常次数超过或等于5次,也即连续异常5次,则进行重启处理。若网络连接状态为正常,则继续等待第一主设备发送的故障通知消息,若收到第一主设备发送的故障通知消息,则启动拨号联网模块,通过拨号联网模块连接云服务器,并将第二网络参数上报至云服务器,也即将子设备的LTE无线数据上传下载速率、WAN口速率、网络信号强度、周围WiFi热点个数和RSSI信息发送到云服务器,以使云服务器根据第二网络参数选择网络性能最优的子设备作为第二主设备,若接收到云服务器发送的第二切换指令则切换为第二主设备,以和其他子设备建立网络连接,并将其他子设备的待转发数据转发至广域网,同时启动重路由机制和回环检测功能以接收第一主设备发送的待转发数据,将待转发数据发送至广域网你。若接收云服务器发送的第二热点信息,则根据第二热点信息和第二主设备建立网络连接。其中,当子设备切换为第二主设备后,连续5次检查第二上行链路异常,则会失去第二主设备的设备身份,进行重启并切换为子设备,且云服务器重新选择第二主设备。
综上,对于第一主设备和子设备进行组网流程具体参照图17,图17是本申请一些实施例提供组网方法的流程图。当需要进行组网时,需要将待组网设备上电,且上电后待组网设备自动执行拨号上网流程,拨号成功后设备和云服务器建立连接,且待组网设备会将自身的第一网络参数上报至云服务器,之后等待云服务器根据第一网络参数确定第一主设备和子设备后发送的第一切换指令。当收到第一切换指令为切换为第一主设备,根据第一切换指令切换为第一主设备,同时新增两个回程线路的无线访问接入点,也即新增两个backhaul AP热点,同时给云服务器上报第一热点信息,且第一热点信息包括:前向回传信息和回程线路信息,也即fronthaul信息和backhaul信息,之后第一主设备会和子设备建立网络连接。若在第一主设备和子设备网络连接的过程中,第一主设备的第一热点信息发生改变,则第一主设备会将修改的第一热点信息发送至云服务器,云服务器将修改后的第一热点信息发送至子设备,以便于子设备重新和第一主设备建立通信连接。若接收的是切换为子设备的第一切换指令,子设备会先进行切换,然后上报切换完成消息至云服务器,并等待云服务器发送的第一热点信息,以根据第一热点信息设置热点参数,也即设置WiFi参数,以便于子设备和第一主设备建立网络连接。
第四方面,本申请实施例还提供了一种组网装置,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现:如第一方面所述的组网方法。
具体地,组网装置也即云服务器,且云服务器的模块组成图如图18所示,图18是本申请一些实施例提供的组网装置的模块组成图。其中,云服务器具有管理待组网设备、与待组网设备通信、选择组间最优待组网设备、删除和增加待组网设备的功能。云服务器包括设备接入模块、消息发送模块、消息接收模块、设备参数判断模块、最优设备选取模块和组网网络设备增删管理模块。设备接入模块负责连接试图访问云服务器的网络设备,云服务器通过地址信息或者设备序列号唯一标识网络设备,也通过唯一标识与网络设备进行消息收发。消息发送模块被设置为下发的消息包括设备身份的切换指令,以及第一主设备或第二主设备的热点信息。消息接收模块被设置为接收待组网设备发送的第一网络参数,或者子设备发送等待第二网络参数。设备参数判断模块被设置为根据第一网络参数确定第一主设备和子设备,且根据第二网络参数确定第二主设备,且设备参数判断模块根据不同的第一网络参数或第二网络参数进行加权平均 处理,得到网络分值。最优设备选取模块被设置为根据网络分值确定第一主设备和子设备,或者确定第二主设备。组网网络设备增删管理模块被设置为负责在组网之前将网络设备的设备信息添加至待组网设备集合中,以得到待组网设备,以对待组网设备进行组管理。
第五方面,本申请实施例还公开了一种组网设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现:如第二方面所述的组网方法,或如第三方面项所述组网方法。
其中,组网设备也即待组网设备,且待组网设备的模块组成图如图19所示,图19是本申请一些实施例提供的待组网设备的模块组成图;且待组网设备包括:云服务器接入模块、云服务器消息发送模块、云服务器消息接收模块、设备参数上报模块、组网角色切换模块、故障检测模块、链路回环检测模块、链路回环处理模块。云服务器接入模块被设置为联网后与云服务器建立通信连接;云服务器消息发送模块被设置为将待组网设备的第一网络参数,或者子设备的第二网络参数发送至云服务器。云服务器消息接收模块被设置为接收云服务器发送的控制指令、第一热点信息或第二热点信息,其中,控制指令包括角色切换指令、断网指令。设备参数上报模块被设置为当待组网设备为第一主设备时将第一热点信息发送至云服务器,或者作为第二主设备时将第二热点信息发送至云服务器。组网角色切换模块在云服务器下发第一切换指令或第二切换指令时进行设备身份切换。故障检测模块被设置为检测第一主设备或子设备在第一上行链路或第二上行链路的异常情况。链路回环检测模块在子设备或第一住设备发生故障后,选择新的第二主设备才启动,且链路回环模块被设置为提前检测数据包是否可能回环,且链路回环处理模块被设置为根据回环检测结果将数据包发送至第二主设备,以使得数据包恢复正常发送。
第六方面,本申请实施例还公开了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于:执行如第一方面项所述的组网方法,或者如第二方面所述的组网方法,或者如第三方面的所述组网方法。
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
本申请实施例至少包括以下有益效果:通过根据接收的第一网络参数从多个待组网设备中确定第一主设备和子设备,并将第一切换指令发送至待组设备,以使待组网设备根据第一切换指令切换为第一主设备或子设备,然后将第一主设备发送的第一热点信息发送至子设备,以使子设备根据第一热点信息和第一主设备建立网络连接,以在组网时无需人工设置参数,实现自动化组网,不仅节省了组网的人力还提高了组网的效率,使得组网更加高效和便捷。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、储存设备存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包括计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
还应了解,本申请实施例提供的各种实施方式可以任意进行组合,以实现不同的技术效果。
以上是对本申请的若干实施方式进行了具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的共享条件下还可作出种种等同的变形或替换,这些 等同的变形或替换均包括在本申请权利要求所限定的范围内。

Claims (15)

  1. 一种组网方法,包括:
    接收多个待组网设备的第一网络参数,根据所述第一网络参数从多个待组网设备中确定第一主设备和子设备;
    向所述待组网设备发送第一切换指令,以使所述待组网设备根据所述第一切换指令切换为所述第一主设备或者子设备;
    接收所述第一主设备发送的第一热点信息;
    将所述第一热点信息发送至所述子设备,以使所述子设备根据所述第一热点信息与所述第一主设备建立网络连接。
  2. 根据权利要求1所述的组网方法,其中,所述接收多个待组网设备的第一网络参数之前,所述组网方法还包括:
    根据预先设置的绑定方式对网络设备进行绑定,得到待组网设备。
  3. 根据权利要求2所述的组网方法,其中,所述根据预先设置的绑定方式对网络设备进行绑定,得到待组网设备,包括以下任意一种:
    接收所述网络设备的地址信息,根据所述地址信息确定所述网络设备的设备信息,将所述设备信息添加至待组网设备集合中,得到所述待组网设备;
    接收所述网络设备的热点信号,将所述热点信号对应的设备信息添加至待组网设备集合中,得到所述待组网设备;
    接收所述网络设备的设备信息,将所述设备信息添加至待组网设备集合中,得到所述待组网设备。
  4. 根据权利要求1所述的组网方法,其中,所述接收多个待组网设备的第一网络参数,根据所述第一网络参数从多个待组网设备中确定第一主设备和子设备,包括:
    接收所述待组网设备的多个不同的所述第一网络参数;
    根据预设的权值对多个所述第一网络参数进行加权平均处理,得到所述待组网设备的网络分值;
    将所述网络分值最高的待组网设备确定为第一主设备,将多个所述待组网设备中除了所述第一主设备以外的其他待组网设备确定为子设备。
  5. 根据权利要求1至4任一项所述的组网方法,其中,所述方法还包括:
    当所述第一主设备出现故障,接收所述子设备的第二网络参数;
    根据所述第二网络参数从所述子设备中确定第二主设备;
    向所述第二主设备发送第二切换指令,以使所述第二主设备根据所述第二切换指令切换为所述第二主设备;
    接收所述第二主设备发送的第二热点信息,并将第二热点信息发送至所述子设备,以使所述子设备根据所述第二热点信息与所述第二主设备建立网络连接。
  6. 一种组网方法,包括:
    发送第一网络参数至云服务器,以使所述云服务器根据所述第一网络参数从多个待组网设备中确定第一主设备和子设备;
    接收所述云服务器发送的第一切换指令,根据所述第一切换指令切换为所述第一主设备;
    向所述云服务器发送第一热点信息,以供所述云服务器将所述第一热点信息发送至所述子设备;
    接收所述子设备根据所述第一热点信息发送的连接请求,根据所述连接请求与所述子设备建立网络连接。
  7. 根据权利要求6所述的组网方法,其中,所述方法还包括:
    获取第一上行链路的第一网络连接状态;
    当所述第一网络连接状态表征所述第一上行链路出现故障,向所述子设备发送故障通知消息,以使所述子设备向所述云服务器发送第二网络参数,所述第二网络参数用于供所述云服务 器从所述子设备中确定第二主设备。
  8. 根据权利要求7所述的组网方法,其中,所述当所述第一网络连接状态表征所述第一上行链路出现故障,向所述子设备发送故障通知消息,包括:
    当所述第一网络连接状态表征所述第一上行链路出现故障,确定当前所述第一上行链路的故障累计次数;
    当所述故障累计次数大于或者等于预设阈值,向所述子设备发送故障通知消息。
  9. 根据权利要求7和8任一项所述的组网方法,其中,所述方法还包括:
    接收待转发数据;
    对所述待转发数据进行回环检测,根据所述回环检测的结果将所述待转发数据转发至所述第二主设备。
  10. 一种组网方法,包括:
    发送第一网络参数至云服务器,以使所述云服务器根据所述第一网络参数从多个待组网设备中确定第一主设备和子设备;
    接收所述云服务器发送的第一切换指令,根据所述第一切换指令切换为所述子设备;
    接收所述云服务器发送的所述第一主设备的第一热点信息,根据所述第一热点信息向所述第一主设备发送连接请求,所述连接请求用于与所述第一主设备建立网络连接。
  11. 根据权利要求10所述的组网方法,其中,所述方法还包括:
    获取第二上行链路的第二网络连接状态;
    当所述第二网络连接状态表征所述第二上行链路出现故障且接收到所述第一主设备发送的故障通知消息,根据所述故障通知消息向所述云服务器发送第二网络参数,以供所述云服务器根据所述第二网络参数从所述子设备中确定第二主设备;
    接收所述云服务器发送的第二切换指令,根据所述第二切换指令切换为所述第二主设备,并将第二热点信息发送至云服务器。
  12. 根据权利要求11所述的组网方法,其中,所述方法还包括:
    当所述第二网络连接状态表征所述第二上行链路出现故障且未接收到所述第一主设备发送的故障通知消息,获取与所述第一主设备之间的第二网络连接状态;
    当所述第二网络连接状态表征与所述第一主设备之间的网络连接出现故障,进行重启处理。
  13. 一种组网装置,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现:
    如权利要求1至5中任一项所述的组网方法。
  14. 一种网络设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现:
    如权利要求6至9任一项所述的组网方法,或如权利要求10至12任一项所述组网方法。
  15. 一种计算机可读存储介质,存储有计算机可执行指令,其中,所述计算机可执行指令用于:
    执行如权利要求1至5中任一项所述的组网方法,或者如权利要求6至9任一项所述的组网方法,或者如权利要求10至12任一项所述组网方法。
PCT/CN2022/086667 2021-09-27 2022-04-13 组网方法、装置、设备及存储介质 Ceased WO2023045304A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020247012676A KR20240060665A (ko) 2021-09-27 2022-04-13 네트워킹 방법, 장치, 설비 및 저장 매체
EP22871367.3A EP4401450A4 (en) 2021-09-27 2022-04-13 NETWORKING METHOD AND APPARATUS, DEVICE AND STORAGE MEDIUM
JP2024519106A JP7745095B2 (ja) 2021-09-27 2022-04-13 ネットワーク構築方法、装置、機器、及び記憶媒体

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111148503.XA CN115884201A (zh) 2021-09-27 2021-09-27 组网方法、装置、设备及存储介质
CN202111148503.X 2021-09-27

Publications (1)

Publication Number Publication Date
WO2023045304A1 true WO2023045304A1 (zh) 2023-03-30

Family

ID=85719973

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/086667 Ceased WO2023045304A1 (zh) 2021-09-27 2022-04-13 组网方法、装置、设备及存储介质

Country Status (5)

Country Link
EP (1) EP4401450A4 (zh)
JP (1) JP7745095B2 (zh)
KR (1) KR20240060665A (zh)
CN (1) CN115884201A (zh)
WO (1) WO2023045304A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116436755A (zh) * 2023-06-12 2023-07-14 新华三技术有限公司 一种网络管理方法、装置及电子设备
CN117279119A (zh) * 2023-11-21 2023-12-22 微泰医疗器械(杭州)股份有限公司 用于设备间无线通信的方法和通信装置
CN117676924A (zh) * 2023-12-21 2024-03-08 深圳旷世科技有限公司 组网控制方法、系统、控制设备及可读存储介质
CN118804103A (zh) * 2024-01-11 2024-10-18 中移(杭州)信息技术有限公司 一种设备交互的无线接入点切换方法、设备及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116367177B (zh) * 2023-04-04 2025-12-05 深圳创维数字技术有限公司 无线网格网络设备配置方法、装置、电子设备及介质
CN120111542A (zh) * 2023-12-06 2025-06-06 中兴通讯股份有限公司 网络故障恢复方法、设备及计算机可读介质
CN120018112A (zh) * 2025-04-16 2025-05-16 中国电子科技集团公司第三十研究所 5g用户终端全网实时寻址方法、装置、设备及介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227831A (zh) * 2013-04-28 2013-07-31 成都西可科技有限公司 基于云端的热点连接数据共享应用方法
CN103269509A (zh) * 2013-04-28 2013-08-28 成都西可科技有限公司 基于云端的热点连接方法
CN105739322A (zh) * 2016-05-05 2016-07-06 杭州古北电子科技有限公司 智能引擎系统及智能家居系统
US20170347384A1 (en) * 2014-12-31 2017-11-30 Shanghai Lianshang Network Technology Co., Ltd. Wifi connection method and wifi connection system for mobile terminal
US20200015153A1 (en) * 2017-01-09 2020-01-09 Yun Ding Network Technology (Beijing) Co., Ltd. Method for smart device to access network, mobile terminal, cloud server, device, and system
CN111083766A (zh) * 2019-12-31 2020-04-28 南京创维信息技术研究院有限公司 一种基于智慧屏幕的自动配网绑定方法
CN111163469A (zh) * 2019-12-26 2020-05-15 海信集团有限公司 智能家电的配网方法、无线模块及智能家电
CN112671904A (zh) * 2020-12-23 2021-04-16 青岛海尔科技有限公司 设备状态信息的传输方法及装置、存储介质、电子装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227831A (zh) * 2013-04-28 2013-07-31 成都西可科技有限公司 基于云端的热点连接数据共享应用方法
CN103269509A (zh) * 2013-04-28 2013-08-28 成都西可科技有限公司 基于云端的热点连接方法
US20170347384A1 (en) * 2014-12-31 2017-11-30 Shanghai Lianshang Network Technology Co., Ltd. Wifi connection method and wifi connection system for mobile terminal
CN105739322A (zh) * 2016-05-05 2016-07-06 杭州古北电子科技有限公司 智能引擎系统及智能家居系统
US20200015153A1 (en) * 2017-01-09 2020-01-09 Yun Ding Network Technology (Beijing) Co., Ltd. Method for smart device to access network, mobile terminal, cloud server, device, and system
CN111163469A (zh) * 2019-12-26 2020-05-15 海信集团有限公司 智能家电的配网方法、无线模块及智能家电
CN111083766A (zh) * 2019-12-31 2020-04-28 南京创维信息技术研究院有限公司 一种基于智慧屏幕的自动配网绑定方法
CN112671904A (zh) * 2020-12-23 2021-04-16 青岛海尔科技有限公司 设备状态信息的传输方法及装置、存储介质、电子装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4401450A4 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116436755A (zh) * 2023-06-12 2023-07-14 新华三技术有限公司 一种网络管理方法、装置及电子设备
CN116436755B (zh) * 2023-06-12 2023-08-25 新华三技术有限公司 一种网络管理方法、装置及电子设备
CN117279119A (zh) * 2023-11-21 2023-12-22 微泰医疗器械(杭州)股份有限公司 用于设备间无线通信的方法和通信装置
CN117279119B (zh) * 2023-11-21 2024-02-02 微泰医疗器械(杭州)股份有限公司 用于设备间无线通信的方法和通信装置
CN117676924A (zh) * 2023-12-21 2024-03-08 深圳旷世科技有限公司 组网控制方法、系统、控制设备及可读存储介质
WO2025129757A1 (zh) * 2023-12-21 2025-06-26 深圳旷世科技有限公司 组网控制方法、系统、控制设备及可读存储介质
CN118804103A (zh) * 2024-01-11 2024-10-18 中移(杭州)信息技术有限公司 一种设备交互的无线接入点切换方法、设备及存储介质

Also Published As

Publication number Publication date
CN115884201A (zh) 2023-03-31
KR20240060665A (ko) 2024-05-08
JP7745095B2 (ja) 2025-09-26
EP4401450A4 (en) 2025-01-15
JP2024534652A (ja) 2024-09-20
EP4401450A1 (en) 2024-07-17

Similar Documents

Publication Publication Date Title
CN115884201A (zh) 组网方法、装置、设备及存储介质
CN107535012B (zh) 中继选择或重选方法、装置和系统
CN114339789B (zh) Ap配网处理方法及装置
CN113873598B (zh) 网络切换方法、装置、网络设备及存储介质
CN111757362A (zh) 一种链路状态的通知,链路的处理方法及装置
CN105392185B (zh) 一种智能设备的联网方法、装置及系统
CN108601057A (zh) 网络数据传输方法、设备与系统
WO2009123005A1 (ja) 移動局、移動交換局及び移動通信方法
WO2016119287A1 (zh) 汇报方法、汇报系统、资源配置方法和系统
US20240214288A1 (en) Handling radio link failure in the uu interface in case of sidelink relay
CN103581971B (zh) 用于集中式无线局域网的异常检测方法、装置及接入点
CN103517300A (zh) 分布式基站的自发现方法、装置及系统
CN112671904A (zh) 设备状态信息的传输方法及装置、存储介质、电子装置
CN102904610B (zh) 电力线通信中节点恢复方法和设备
WO2023083228A1 (zh) 基站切换方法、基站和计算机可读存储介质
CN103281720B (zh) 无线控制器热备切换方法及装置、无线控制器、接入系统
WO2021169748A1 (zh) 一种基于网络的dect资源协调方法和系统
CN115842769A (zh) 信息更新方法及装置、存储介质、电子装置
CN113766547B (zh) 时延补偿方法和基站
CN113765795A (zh) 组网方法及装置、系统和存储介质
KR20160025028A (ko) 정보 처리 방법 및 그 장치 및 통신 시스템
EP3065445B1 (en) Method, cse, and system for transmitting m2m application request
CN104038955B (zh) 一种移动通信系统中的故障检测及处理的方法及基站
CN117221866A (zh) 基于Zigbee点对点传输方式的智能匹配信道方法
EP2341755A2 (en) Wireless network with star topology and method for operating wireless network with star topology

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22871367

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2024519106

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2022871367

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022871367

Country of ref document: EP

Effective date: 20240409

ENP Entry into the national phase

Ref document number: 20247012676

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE