Device network configuration method, device, electronic device and storage medium

By receiving and analyzing the message data of ZigBee node devices, detecting and solving network abnormalities, the remote automatic network configuration of node devices is realized, and the problem of low signal attenuation and configuration efficiency in ZigBee network is solved, reducing configuration costs and improving efficiency.

CN114221862BActive Publication Date: 2025-03-18SHENZHEN LUMIUNITED TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111512403.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2025-03-18
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

In practical applications, ZigBee wireless network systems have many interference sources, limited transmission distance, and obvious signal attenuation, resulting in poor signal signals of node equipment. The existing solutions require engineers to capture packets on-site, and the configuration cost is high and low efficiency.

Method used

By receiving the message data of the node device, network detection is performed. If a network abnormality is found, the abnormal node device will be kicked out of the current network and instructed to connect to a matching network to realize the remote automatic network configuration of the node device.

Benefits of technology

The cost of node device configuration is reduced, the efficiency of node device configuration is improved, and the remote automatic network configuration of node devices is realized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114221862B_ABST
    Figure CN114221862B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a network configuration method, device, electronic device and storage medium for a device, and relates to the field of smart home technology. The method includes: receiving message data uploaded by each node device under the current network, performing network detection on each node device based on the message data, and obtaining a network diagnosis result. If it is determined according to the network diagnosis result that there is a node device with network abnormality under the current network, the node device with network abnormality is kicked out from the current network to indicate that the node device with network abnormality is connected to a matching network, thereby realizing remote automatic network configuration of the node device, reducing the cost of node device configuration, and improving the efficiency of node device configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and more specifically, to a network configuration method, apparatus, electronic device and storage medium for a device. Background Art

[0002] With the development of communication technology and smart home, ZigBee wireless network systems have many common interference sources in actual application scenarios, and the transmission distance is also limited. Without a repeater, the signal attenuation is very obvious, resulting in poor signal of node devices. At present, to solve the problem of node devices, engineers need to arrive at the device site, capture packets for a long time, analyze wireless messages, and locate node device problems. Abnormal node devices are configured on site, which will lead to high costs and low efficiency when configuring node devices. Summary of the invention

[0003] In view of the above problems, the present application proposes a network configuration method, apparatus, electronic device and storage medium for a device to solve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a network configuration method for a device, the method comprising: receiving message data uploaded by each node device in a current network; performing network detection on each node device based on the message data to obtain a network diagnosis result; if it is determined according to the network diagnosis result that there is a node device with a network abnormality in the current network, the node device with the network abnormality is kicked out from the current network to indicate that the node device with the network abnormality is connected to a matching network.

[0005] In a second aspect, an embodiment of the present application provides a network configuration device for a device, the device comprising: a message data receiving module, used to receive message data uploaded by each node device in the current network; a network diagnosis result acquisition module, used to perform network detection on each node device based on the message data to obtain a network diagnosis result; and a device kicking module, used to kick the node device with network abnormality from the current network if it is determined according to the network diagnosis result that there is a node device with network abnormality in the current network, so as to instruct the node device with network abnormality to connect to a matching network.

[0006] In some embodiments, the network diagnosis result acquisition module includes: a network parameter acquisition submodule and a network detection submodule, wherein: the network parameter acquisition submodule is used to obtain the network parameters of each node device within a preset time period from the message data of each node device. The network detection submodule is used to perform network detection on each node device according to the network parameters to obtain the network diagnosis results corresponding to each node device.

[0007] In some embodiments, the network detection submodule includes: an abnormality number determination unit and a network abnormality determination unit, wherein: the abnormality number determination unit is used to determine the number of network abnormalities of each of the node devices based on the network parameters. The network abnormality determination unit is used to determine that the network diagnosis result corresponding to each of the node devices is a network abnormality when the number of network abnormalities is greater than the preset number of abnormalities. The device kicking module is used to kick the node device with network abnormality from the current network if it is determined that there is a node device with network abnormality in the current network according to the network diagnosis result, so as to instruct the node device with network abnormality to connect to a matching network.

[0008] In some embodiments, the device kick-out module includes: a device quantity acquisition submodule and a node device configuration submodule, wherein: the device quantity acquisition submodule is used to obtain the device quantity of node devices with network abnormalities in the current network if it is determined according to the network diagnosis result that there are node devices with network abnormalities in the current network; the node device configuration submodule is used to determine that the network status of the current network is abnormal when the device quantity of node devices with network abnormalities is greater than a quantity threshold, and then kick out each node device in the current network to instruct each node device in the current network to connect to a matching network.

[0009] In some embodiments, the network configuration device of the device further includes: a network scanning module and a target broadcast transmission module, wherein: the network scanning module is used to control the node device with abnormal network status to perform network scanning. The target broadcast transmission module is used to control the network device under the target network to transmit a target broadcast to instruct the node device with abnormal network status to join the target network when scanning the target broadcast; wherein the target broadcast is used to instruct the target network to allow the node device to join the network.

[0010] In some embodiments, the target broadcast transmission module includes: a target account acquisition submodule, a network quality acquisition submodule, and a target network selection submodule, wherein: the target account acquisition submodule is used to acquire the target account corresponding to the node device with abnormal network status. The network quality acquisition submodule is used to acquire the network quality corresponding to the associated network associated with the target account. The target network selection submodule is used to select a target network from the associated networks corresponding to the target account according to the network quality.

[0011] In a third aspect, an embodiment of the present application provides an electronic device, comprising one or more processors and a memory; one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to execute the above-mentioned method.

[0012] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.

[0013] The network configuration method, apparatus, electronic device and storage medium of the device provided in the embodiments of the present application first receive the message data uploaded by each node device in the current network, perform network detection on each node device based on the message data, and obtain a network diagnosis result. If it is determined according to the network diagnosis result that there is a node device with network abnormality in the current network, the node device with network abnormality is kicked out from the current network to instruct the node device with network abnormality to connect to a matching network, thereby realizing remote automatic network configuration of the node device, reducing the cost of node device configuration and improving the efficiency of node device configuration.

[0014] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 A schematic diagram of a first application scenario of a network configuration method that can be used for a device provided in an embodiment of the present application is shown;

[0017] Figure 2 A schematic diagram of a second application scenario of the network configuration method for the device provided in the embodiment of the present application is shown;

[0018] Figure 3 A schematic diagram of a node device applicable to an embodiment of the present application is shown;

[0019] Figure 4 A schematic diagram showing a flow chart of a network configuration method for a device provided by an embodiment of the present application;

[0020] Figure 5 A schematic diagram showing diagnostic information of a node device provided in an embodiment of the present application is shown;

[0021] Figure 6 A schematic diagram showing a flow chart of a network configuration method for a device provided by an embodiment of the present application;

[0022] Figure 7 This application shows Figure 6 A schematic flow chart of step S230 of the method for configuring a network of a device shown;

[0023] Figure 8 A schematic diagram showing a flow chart of a network configuration method for a device provided by an embodiment of the present application;

[0024] Fig. 9 This application shows Figure 8 A flowchart of step S360 of the method for configuring a network of a device shown in FIG.

[0025] Fig.10 A module block diagram of a network configuration device of a device provided in an embodiment of the present application is shown;

[0026] Fig.11 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;

[0027] Fig.12 A structural block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0029] With the development of communication technology and smart home, ZigBee wireless network systems have many common interference sources in actual application scenarios, and the transmission distance is also limited. Without a repeater, the signal attenuation is very obvious, resulting in poor signal of node devices. At present, to solve the problem of node devices, engineers need to arrive at the device site, capture packets for a long time, analyze wireless messages, and locate node device problems. Abnormal node devices configured on site will result in high costs and low efficiency when configuring node devices.

[0030] In view of the above technical problems, the inventor has discovered after long-term research and proposed a network configuration method, device, electronic device and storage medium for a device. After receiving the message data of the node device in the current network, the power-saving device is subjected to network detection according to the message data. When the diagnosis result determines that the node device is abnormal in the current network, the node device is kicked out of the current network and connected to a matching network, thereby realizing remote automatic network configuration of the node device, reducing the cost of node device configuration and improving the efficiency of node device configuration. The specific network configuration method of the device is described in detail in the subsequent embodiments.

[0031] The following first introduces the application scenarios of the network configuration method applicable to the device provided in the embodiment of the present application.

[0032] See also Figure 1 , Figure 1 The first application scenario schematic diagram of the network configuration method for the device provided in the embodiment of the present application is shown. The network configuration method for the device provided in the embodiment of the present application can be applied to Figure 1 In the smart home system 10 shown. The smart home system 10 may include a node device 300, a first gateway 210, a second gateway 220, and a cloud server 100. The cloud server 100 is connected to the first gateway 210 and the second gateway 220 respectively, the first gateway 210 may be connected to one or more node devices 300, and the second gateway 220 may also be connected to one or more node devices 300.

[0033] The number of node devices 300 may be one or more. When the number of node devices 300 is one, one node device 300 may be connected to the first gateway 210 or the second gateway 220. When the number of node devices 300 is multiple, multiple node devices 300 may be connected to the first gateway 210 and / or the second gateway 220. As a way, assuming that the multiple node devices 300 include a first node device and a second node device, the first node device and the second node device may both be connected to the first gateway 210, or the first node device and the second node device may both be connected to the second gateway 220, or the first node device is connected to the first gateway 210, and the second node device is connected to the second gateway 220, which is not limited here.

[0034] In some embodiments, the node device may be a ZigBee node device in a ZigBee network. There are many types of node devices, including but not limited to various electronic devices such as smart home appliances and smart switches. The above-mentioned smart home appliances may be appliances such as refrigerators, washing machines, air conditioners, and televisions of different versions, which are not limited here. For example, when the smart home appliance is a refrigerator, it may be XX first-generation refrigerator, XX second-generation refrigerator, etc.; when the smart home appliance is a washing machine, it may be XX first-generation washing machine, XX second-generation washing machine, etc.; when the smart home appliance is an air conditioner, it may be XX first-generation air conditioner, XX second-generation air conditioner, etc.; when the smart home appliance is a television, it may be XX first-generation television, XX second-generation television, etc.

[0035] As one way, the node device 300 wirelessly communicates with the cloud server 100 through the first gateway 210 or the second gateway 220 to achieve data interaction between the node device 300 and the cloud server. As another way, the node device 300 is directly connected to the cloud server 100 to achieve data interaction between the node device 300 and the cloud server.

[0036] Furthermore, the smart home system 10 may also include a third gateway, a fourth gateway, ... an Nth gateway, which is not limited here.

[0037] The node device 300 may include, but is not limited to, door and window sensors, smart switches, lights, air conditioners, curtains, televisions, refrigerators, and electric fans. Figure 2 , Figure 2 A second application scenario schematic diagram of the network configuration method for the device provided in the embodiment of the present application is shown, such as Figure 2 As shown, the node device 300 may include a switch 310, a switch 320, a socket 330, a socket 340, etc., which are not limited here. Figure 3 , Figure 3 A schematic diagram of a node device applicable to an embodiment of the present application is shown. Figure 3 As shown, the node device 300 may include a television 300A, an air conditioner 300B, a camera 300C, a lamp 300D, etc., which are not limited here.

[0038] Among them, the cloud server 100 can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, as well as big data and artificial intelligence platforms.

[0039] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0040] See also Figure 4 , Figure 4 The flowchart of the network configuration method of a device provided by an embodiment of the present application is shown. In a specific embodiment, the network configuration method of the device can be applied to an electronic device, and the electronic device can be specifically Figure 1 The cloud server 100 shown in FIG. Figure 4 The process shown is described in detail, and the network configuration method of the device may specifically include the following steps:

[0041] Step S110: receiving message data uploaded by each node device in the current network.

[0042] In this embodiment, each node device under the current network can upload message data, and the cloud server can receive the message data uploaded by each node device under the current network, wherein the cloud server can directly receive the message data uploaded by each node device under the current network; the cloud server can also receive the message data uploaded by each node device under the current network through the gateway. As a way, the message data of the node device can be collected by each node device and actively reported periodically through ZigBee wireless messages, then the cloud server can receive the message data uploaded by each node device under the current network. As another way, the diagnostic information can also be collected by each node device and actively sent to the gateway through ZigBee wireless messages, and the gateway periodically reports it, then the cloud server can receive the message data uploaded by each node device under the current network.

[0043] In some implementations, the message data of the node device includes, but is not limited to, information such as the number of times the message is sent, the number of times the message is retransmitted, and the number of times the message is received.

[0044] In some cases, the number of times the above-mentioned message is sent may be the number of times the MAC layer message is sent, the number of times the NWK layer message is sent, the number of times the APS layer message is sent, and other information, which is not limited here; the number of times the above-mentioned message is retransmitted may be the number of times the MAC layer message is retransmitted, the number of times the NWK layer message is retransmitted, the number of times the APS layer message is retransmitted, and other information, which is not limited here; the number of times the above-mentioned message is received may be the number of times the MAC layer message is received, the number of times the NWK layer message is received, the number of times the APS layer message is received, and other information, which is not limited here.

[0045] In some embodiments, the cloud server can obtain the message data uploaded by each node device in the current network. The cloud server can also store the message data uploaded by each node device in the current network for nearly one week or more weeks in the memory of the cloud server, wherein the specific storage period is not limited here. The message data is used to analyze network status problems. When the cloud server is restarted, the cloud server will clear the message data uploaded by each node device in the current network; when the cloud server determines that the count value corresponding to the diagnostic information of the first ZigBee node device reaches the maximum value, the cloud server may also clear the message data uploaded by each node device in the current network.

[0046] In some implementations, based on the message data uploaded by each node device in the current network stored in the cloud server, the cloud server platform can draw a time-parameter curve diagram of specific parameters of the message data uploaded by each node device in the current network. For example, according to the number of times MacTxUcast messages are sent by the Mac layer, the cloud server platform can display a curve diagram of the relationship between time and MacTxUcast for the number of times MacTxUcast messages are sent by the Mac layer ( Figure 5). At the same time, the cloud server can store the diagnostic information of the first ZigBee node device for one week or more weeks, wherein the specific storage duration is not limited here. The cloud server stores the message data uploaded by each node device, which can facilitate the cloud server to analyze the network problems of each node device, and can also facilitate the cloud server to query the historical diagnostic information of the message data uploaded by each node device. It should be noted that the cloud server platform is an IoT cloud + terminal integrated management platform, based on the cloud computing platform, to achieve CMP (connection management), DMP (device management platform), AEP (application enabling platform), BAP (business analysis platform) and other platform management functions, support various smart hardware, robots, smart screens, smart speakers, smart homes and equipment access management, provide fault perception, equipment positioning, human-computer interaction and intelligent customer service functions.

[0047] Step S120: Perform network detection on each of the node devices based on the message data to obtain a network diagnosis result.

[0048] In this embodiment, the node device can directly upload the message data to the cloud server. After analyzing the message data reported by each node device, the cloud server performs network detection on the network status of each node device to obtain a network diagnosis result. The network diagnosis result is used to determine whether the network status of each node device is abnormal.

[0049] Step S130: If it is determined according to the network diagnosis result that there is a node device with network abnormality in the current network, the node device with network abnormality is kicked out from the current network to instruct the node device with network abnormality to connect to a matching network.

[0050] In this embodiment, network detection can be performed on each of the node devices according to the message data to obtain a network diagnosis result. When the network result determines that there is a node device with a network abnormality in the current network, the cloud server kicks the node device with the network abnormality out of the current network. It should be noted that kicking the node device with the network abnormality out of the current network means disconnecting the node device with the network abnormality from the current network.

[0051] In some implementations, each node device may also be directly connected to a cloud server. After the cloud server performs network detection on the message data uploaded by each node device, it makes a network diagnosis result for the network status of each node device, and judges the network status of each node device based on the network diagnosis result. When a node device has a network anomaly in the current network, the node device with the network anomaly is directly kicked out from the cloud server.

[0052] In some embodiments, the node device can be connected to the current network through a coordinator. When the cloud server determines that there is a node device with network abnormality in the current network based on the network diagnosis result, the node device with network abnormality can be kicked out from the first gateway by kicking the coordinator out of the current network.

[0053] In a network configuration method for a device provided by an embodiment of the present application, a cloud server first receives message data uploaded by each node device in the current network, performs network detection on each node device based on the message data, and obtains a network diagnosis result. If it is determined according to the network diagnosis result that there is a node device with a network abnormality in the current network, the node device with the network abnormality is kicked out from the current network to instruct the node device with the network abnormality to connect to a matching network, thereby realizing remote automatic network configuration of the node device, reducing the cost of node device configuration, and improving the efficiency of node device configuration.

[0054] See also Figure 6 , Figure 6 The following is a flow chart of a method for configuring a network of a device according to an embodiment of the present application. Figure 6 The process shown is described in detail, and the network configuration method of the node device may specifically include the following steps:

[0055] Step S210: receiving message data uploaded by each node device in the current network.

[0056] For the detailed description of step S210, please refer to step S110, which will not be repeated here.

[0057] Step S220: Acquire the network parameters of each of the node devices within a preset time period from the message data of each of the node devices.

[0058] In this embodiment, the cloud server can obtain the network parameters of each node device within a preset time period from the message data of each node device. For example, within the time period from 12 o'clock to 2 o'clock, the number of APS layer message retransmissions of the node device is greater than 3 times, the number of message sending failures is greater than 7 times, and the number of route lookups is greater than 3 times; within the time period from 2 o'clock to 4 o'clock, the number of APS layer message retransmissions of the first ZigBee node device is greater than 3 times, the number of message sending failures is greater than 9 times, and the number of route lookups is greater than 6 times, etc.

[0059] In some implementations, the network parameters of each node device may include, but are not limited to, at least one of the number of message retransmissions, the number of message transmission failures, the number of route lookups, and a trend of number changes.

[0060] Step S230: Perform network detection on each of the node devices according to the network parameters to obtain network diagnosis results corresponding to each of the node devices.

[0061] In this embodiment, after the cloud server obtains the network parameters of each node device within a preset time period, the cloud server performs network detection on the network parameters to obtain network diagnosis results corresponding to each node device. As a method, when the network parameters meet the preset abnormal conditions set by the cloud server, it can be determined that the network diagnosis result of the node device in the current network is a network abnormality; when the network parameters do not meet the preset abnormal conditions set by the cloud server, it can be determined that the network diagnosis result of the node device in the current network is a normal network condition.

[0062] In some cases, the preset abnormal condition may be the preset abnormal number of network parameters. For example, when the number of network parameters exceeds the preset abnormal number of network parameters, the network diagnosis result of the node device in the current network can be determined to be a network abnormality; when the number of network parameters does not exceed the preset abnormal number, the network diagnosis result of the node device in the current network can be determined to be a normal network. For example, the preset message retransmission times in the cloud server are 3 times and the message sending failure times are 3 times. When the APS layer message retransmission times of the node device are 4 times, the APS layer message retransmission times of the node device are greater than 3 times, then it can be determined that the abnormal number is greater than the preset abnormal number, that is, the network diagnosis result of the node device in the current network is determined to be a network abnormality; when the MAC layer message sending failure times of the node device are 7 times, the MAC layer message sending failure times of the node device are greater than 3 times, then it can be determined that the abnormal number is greater than the preset abnormal number, that is, the network diagnosis result of the node device in the current network is determined to be a network abnormality.

[0063] In other cases, the preset abnormal condition may also be a preset abnormal time for obtaining network parameters or an abnormal time for obtaining network data. For example, when the duration for obtaining network parameters is greater than the preset abnormal time, it can be determined that the network diagnosis result of the node device in the current network is a network abnormality; when the duration for obtaining network parameters is not greater than the preset abnormal time, it can be determined that the network diagnosis result of the node device in the current network is a network normal.

[0064] See also Figure 7 , Figure 7 This application shows Figure 6 1 is a flow chart of step S230 of the method for configuring the network of the device shown in FIG. 1 . In this embodiment, the cloud server is also connected to multiple gateways to be determined. Figure 7 The process shown is described in detail, and the method may specifically include the following steps:

[0065] Step S231: Based on the network parameters, determine the number of network anomalies of each node device.

[0066] In this embodiment, the number of abnormalities of each node device can be determined based on network parameters. The network parameters may include but are not limited to the number of message retransmissions, the number of message sending failures, the number of route lookups, and the trend of number changes. For example, if the number of APS layer message retransmissions of one of the node devices in each node device is greater than 3 times; the number of MAC layer message sending failures of one of the node devices in each node device is greater than 7 times; the number of route lookups of one of the node devices in each node device is greater than 3 times; and the trend of number changes is an extension of the cumulative number, the number of abnormalities of one of the node devices in each node device can be determined.

[0067] In some implementations, the number of message retransmissions may be information such as the number of MAC layer message retransmissions, the number of NWK layer message retransmissions, and the like, which is not limited here; the above-mentioned number of message sending failures may be the number of MAC layer message sending failures, the number of NWK layer message sending failures, and the number of APS layer message sending failures, which is not limited here.

[0068] In some embodiments, the network parameters shown in Table 1 may include the number of message retransmissions, the number of message sending failures, the number of route lookups, and other information, which can be stored in the cloud server. The network parameters in Table 1 are used by the cloud server to analyze the network status and network problems of the gateway where the node device is located. The network parameters in Table 1 are only part of the network data, where the cluster ID represents the identification information of the data cluster and the feature ID represents the identification information of the feature.

[0069] Table 1

[0070]

[0071] Step S232: When the number of network anomalies is greater than a preset number of anomalies, determining that the network diagnosis result corresponding to each of the node devices is a network anomaly.

[0072] In this embodiment, a preset number of abnormalities can be pre-set and stored in the cloud server. When the number of network abnormalities is greater than the preset number of abnormalities, it can be determined that the network diagnosis result corresponding to each node device is a network abnormality; when the number of network abnormalities is less than the preset number of abnormalities, it can be determined that the network diagnosis result corresponding to each node device is a normal network. For example, the preset number of message retransmissions in the cloud server is 3 times and the number of message sending failures is 3 times. When the number of APS layer message retransmissions of the node device is 4 times, the number of APS layer message retransmissions of the node device is greater than 3 times, then it can be determined that the number of abnormalities is greater than the preset number of abnormalities, that is, it is determined that the network diagnosis result corresponding to each node device is a network abnormality; when the number of MAC layer message sending failures of the node device is 7 times, the number of MAC layer message sending failures of the node device is greater than 3 times, then it can be determined that the number of abnormalities is greater than the preset number of abnormalities, that is, it is determined that the network diagnosis result corresponding to each node device is a network abnormality.

[0073] Step S240: If it is determined according to the network diagnosis result that there is a node device with network abnormality in the current network, the node device with network abnormality is kicked out from the current network to instruct the node device with network abnormality to connect to a matching network.

[0074] For the detailed description of step S240, please refer to step S130, which will not be repeated here.

[0075] The network configuration method of a device provided in an embodiment of the present application is compared with Figure 4 The network configuration method of the device shown can also obtain the message data uploaded by each node device, and obtain the network parameters of each node device within a preset time end from the message data, and perform network detection on each node device according to the network parameters to obtain the network diagnosis results corresponding to each node device, and configure the node device with network abnormalities according to the diagnosis results, thereby improving the network status of the node device with network abnormalities, and realizing remote automatic configuration of the node device at the same time, so as to reduce the cost of node device configuration and improve the efficiency of node device configuration.

[0076] See also Figure 8 , Figure 8 A schematic diagram of a flow chart of a network configuration method for a device provided in another embodiment of the present application is shown. Figure 8 The process shown is described in detail, and the network configuration method of the device may specifically include the following steps:

[0077] Step S310: receiving message data uploaded by each node device in the current network.

[0078] Step S320: Perform network detection on each of the node devices based on the message data to obtain a network diagnosis result.

[0079] For the detailed description of step S310 to step S320, please refer to step S110 to step S120, which will not be repeated here.

[0080] Step S330: If it is determined according to the network diagnosis result that there are node devices with network abnormalities in the current network, the number of node devices with network abnormalities in the current network is obtained.

[0081] In this embodiment, if it is determined that there are node devices with network abnormalities in the current network according to the network diagnosis results, the number of node devices with network abnormalities in the current network is obtained. For example, the cloud server analyzes the network diagnosis results and determines that there are node devices with network abnormalities in the current network, and the number of node devices with network abnormalities is 1, then the number of node devices with network abnormalities in the current network is obtained as 1; the cloud server analyzes the network diagnosis results and determines that there are node devices with network abnormalities in the current network, and can determine that the first node device and the second node device are abnormal in the current network, and can determine that the third node is normal in the current network, then the number of node devices with network abnormalities in the current network is 2, and the number of node devices with network abnormalities in the current network is obtained as 2.

[0082] Step S340: When the number of node devices with network anomalies is greater than the number threshold, it is determined that the network status of the current network is abnormal, and each node device in the current network is kicked out to indicate that each node device in the current network is connected to a matching network.

[0083] In this embodiment, a quantity threshold can be pre-set and stored in the cloud server. When the number of node devices with network abnormalities is greater than the quantity threshold, the network condition of the current network is determined to be abnormal, and each node device in the current network is kicked out; when the number of node devices with network abnormalities is less than the quantity threshold, the network condition of the current network is determined to be normal.

[0084] Step S350: Control the node device with the network abnormality to perform network scanning.

[0085] In this embodiment, the node device with abnormal network can be controlled to perform network scanning. It can be understood that the purpose of network scanning is to scan a matching network and connect the node device with abnormal network node to the matching network.

[0086] Step S360: Control the network devices under the target network to transmit a target broadcast to instruct the node devices with abnormal network status to join the target network when scanning the target broadcast; wherein the target broadcast is used to instruct the target network to allow node devices to join the network.

[0087] In this embodiment, the network devices under the target network are controlled to transmit target broadcasts to instruct the node devices with abnormal network status to join the target network when scanning the target broadcasts. The target broadcast is used to indicate that the target network allows the node devices to join the network. The network device can be a device with a coordinator function. As one way, the network device can be a gateway, and a coordinator can be set in the gateway, as a network device integrating a gateway and a coordination area. As another way, the network device can also be a coordinator.

[0088] It should be noted that the ZigBee network generally requires the coordinator to broadcast to allow node devices to access the network. At the same time, there are node devices that have the need or intention to access the network, but the location information of the node devices with network abnormalities is unknown. Therefore, all coordinators need to be turned on to broadcast to allow node devices with network abnormalities to access the network. The cloud server obtains the location information of the node devices with network abnormalities, determines that the network under the target account corresponding to the node devices with network abnormalities is the network to be connected, and determines the target network based on the network quality of the network to be connected, and adds the node devices with network abnormalities to the target network.

[0089] See also Fig. 9 , Fig. 9 This application shows Figure 8 The flowchart of step S360 of the network configuration method of the device shown in FIG. Fig. 9 The process shown is described in detail, and the method may specifically include the following steps:

[0090] Step S361: Obtain the target account corresponding to the node device with abnormal network status.

[0091] In this embodiment, the cloud server obtains the target account corresponding to the node device with abnormal network status, wherein the corresponding account includes the node device's own account and the account associated with the node device. It should be noted that the account corresponding to the node device with abnormal network status is the application (Application, APP) bound to the account corresponding to the node device, the client's account (Identity document, ID) and other accounts with the same authority as the account, such as a relative account, etc., which are not limited here.

[0092] Step S362: Obtain the network quality corresponding to the associated network associated with the target account.

[0093] In some implementations, when there is only one associated network associated with the target account, the network quality of the associated network associated with the target account may be determined, and the network quality corresponding to the associated network associated with the target account may be obtained.

[0094] In some embodiments, when there are multiple associated networks associated with the target account, a competition algorithm (preferred algorithm or inferior algorithm) or a signal quality algorithm can be used to select the associated network with the best signal from the multiple associated networks, and the network quality corresponding to the associated network with the best signal can be obtained. The network quality corresponding to all associated networks associated with the target account can also be obtained.

[0095] Step S363: Select a target network from the associated networks corresponding to the target account according to the network quality.

[0096] In some implementations, when there is only one associated network corresponding to the target account, whether the signal quality of the associated network is qualified can be determined based on the network quality corresponding to the associated network. When it is determined that the signal quality of the associated network is qualified, the associated network can be determined as the target network.

[0097] In some implementations, when there are multiple associated networks corresponding to the target account, one associated network can be selected as the target network from the multiple associated networks through a competition algorithm (preferred algorithm or inferior algorithm) or a signal quality algorithm based on the network quality corresponding to each associated network.

[0098] Another embodiment of the present application provides a network configuration method for a device, compared to Figure 4 The network configuration method of the device shown can also judge the network status of the current network according to the number of node devices with network anomalies in the current network, and configure the node devices according to the network status of the current network, thereby improving the network status of the current network, and realizing remote automatic configuration of the node devices to reduce the cost of node device configuration and improve the efficiency of node device configuration.

[0099] The present application also provides an application scenario, and the network configuration method of the above device is applied in the application scenario as follows: In the smart home scenario, please refer to Figure 3 , Figure 3The node device 300 in the example may include a TV 300A, an air conditioner 300B, a camera 300C, a lamp 300D, etc., which are not limited here. The TV 300A, the air conditioner 300B, the camera 300C, and the lamp 300D are all connected to the same network and can upload message data. Taking the camera 300C as an example, the cloud server can obtain the network parameters of the camera 300C within a preset time period based on the message data received from the camera 300C, and perform a network detection on the camera 300C based on the network parameters to obtain the network diagnosis result of the camera 300C. When it is determined according to the network result that the camera 300C has a network anomaly under the current network, the camera 300C is kicked out from the current network to indicate that the camera 300C is connected to a matching network.

[0100] See also Fig.10 , Fig.10 The module block diagram of the network configuration device 400 provided in the embodiment of the present application is shown. Fig.10 The block diagram shown in FIG. 4 is used to illustrate that the network configuration device 400 of the device includes: a message data receiving module 410, a network diagnosis result obtaining module 420 and a device kicking module 430, wherein:

[0101] The message data receiving module 410 is used to receive message data uploaded by each node device in the current network.

[0102] The network diagnosis result acquisition module 420 is used to perform network detection on each of the node devices based on the message data to obtain a network diagnosis result.

[0103] Furthermore, the network diagnosis result acquisition module 420 includes: a network parameter acquisition submodule and a network detection submodule, wherein:

[0104] The network parameter acquisition submodule is used to acquire the network parameters of each of the node devices within a preset time period from the message data of each of the node devices.

[0105] The network detection submodule is used to perform network detection on each of the node devices according to the network parameters to obtain network diagnosis results corresponding to each of the node devices.

[0106] Furthermore, the network detection submodule includes: an abnormal number determination unit and a network abnormality determination unit, wherein:

[0107] The abnormality number determining unit is used to determine the network abnormality number of each node device based on the network parameters.

[0108] The network anomaly determination unit is used to determine that the network diagnosis result corresponding to each of the node devices is a network anomaly when the number of network anomalies is greater than a preset number of anomalies.

[0109] The device kicking module 430 is used to kick the node device with network abnormality from the current network if it is determined according to the network diagnosis result that there is a node device with network abnormality in the current network, so as to instruct the node device with network abnormality to connect to a matching network.

[0110] Furthermore, the device kick module 430 includes: a device quantity acquisition submodule and a node device configuration submodule, wherein:

[0111] A device quantity acquisition submodule, for acquiring the device quantity of the node devices with network abnormalities in the current network if it is determined according to the network diagnosis result that there are node devices with network abnormalities in the current network;

[0112] The node device configuration submodule is used to determine that the network status of the current network is abnormal when the number of node devices with network abnormalities is greater than a quantity threshold, and then kick out each node device in the current network to instruct each node device in the current network to connect to a matching network.

[0113] Furthermore, the network configuration device 400 of the device further includes: a network scanning module and a target broadcast transmission module, wherein:

[0114] The network scanning module is used to control the node device with abnormal network status to perform network scanning.

[0115] The target broadcast transmitting module is used to control the network devices under the target network to transmit the target broadcast to instruct the node devices with abnormal network status to join the target network when scanning the target broadcast; wherein, the target broadcast is used to instruct the target network to allow the node devices to join the network.

[0116] Furthermore, the target broadcast transmission module includes: a target account acquisition submodule, a network quality acquisition submodule and a target network selection submodule, wherein:

[0117] The target account acquisition submodule is used to acquire the target account corresponding to the node device with abnormal network status.

[0118] The network quality acquisition submodule is used to acquire the network quality corresponding to the associated network associated with the target account.

[0119] The target network selection submodule is used to select a target network from the associated networks corresponding to the target account according to the network quality.

[0120] See also Fig.11 , Fig.11The structure block diagram of a cloud server 100 provided in an embodiment of the present application is shown. The cloud server 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0121] Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire mobile terminal 100, and executes various functions and processes data of the mobile terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0122] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the cloud server 100 during use.

[0123] See also Fig.12 , Fig.12The structure block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. The computer-readable medium 500 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0124] The computer-readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 500 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 500 has storage space for program code 510 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 510 can be compressed, for example, in an appropriate form.

[0125] In summary, the embodiments of the present application provide a network configuration method, apparatus, electronic device and storage medium for a device. The cloud server first receives the message data uploaded by each node device in the current network, performs network detection on each node device based on the message data, and obtains a network diagnosis result. If it is determined according to the network diagnosis result that there is a node device with a network abnormality in the current network, the node device with the network abnormality is kicked out from the current network to instruct the node device with the network abnormality to connect to a matching network, thereby realizing remote automatic network configuration of the node device, reducing the cost of node device configuration and improving the efficiency of node device configuration.

[0126] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes several instructions for a terminal (which can be an intelligent gateway, mobile phone, computer, server, air conditioner or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0128] The various embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which belong to the scope of protection of the present application.

Claims

1. A network configuration method for a device, characterized in that: Applied to a cloud server, the method comprises: Receiving message data uploaded by each node device under the current network, wherein the current network is a network corresponding to the network device currently connected to each node device, wherein each node device is connected to the network device, and the network device is connected to the cloud server; Performing network detection on each of the node devices based on the message data to obtain a network diagnosis result; If it is determined according to the network diagnosis result that there are node devices with network abnormalities in the current network, the number of node devices with network abnormalities in the current network is obtained; When the number of node devices with network abnormalities is greater than a number threshold, it is determined that the network status of the current network is abnormal, and each node device in the current network is kicked out to indicate that each node device in the current network is connected to a matching network; Among them, instructing each node device under the current network to connect to a matching network includes: controlling the node device of the network abnormality to perform network scanning, and controlling the network device under the target network to transmit a target broadcast, so as to instruct the node device of the network abnormality to join the target network when scanning the target broadcast.

2. The method according to claim 1, characterized in that The performing network detection on each of the node devices based on the message data to obtain a network diagnosis result includes: Acquiring network parameters of each of the node devices within a preset time period from the message data of each of the node devices; A network detection is performed on each of the node devices according to the network parameters to obtain a network diagnosis result corresponding to each of the node devices.

3. The method according to claim 2, characterized in that The performing network detection on each of the node devices according to the network parameters to obtain network diagnosis results corresponding to each of the node devices respectively includes: Based on the network parameters, determining the number of network anomalies of each of the node devices; When the number of network anomalies is greater than a preset number of anomalies, it is determined that the network diagnosis result corresponding to each of the node devices is a network anomaly.

4. The method according to claim 2, characterized in that: The performing network detection on each of the node devices according to the network parameters to obtain network diagnosis results corresponding to each of the node devices respectively includes: Based on the network parameters, determining the abnormal duration of each of the node devices; When the abnormal time length is greater than a preset abnormal time length, it is determined that the network diagnosis result corresponding to each of the node devices is a network abnormality.

5. The method according to claim 2, characterized in that: The network parameters include at least one of the number of message retransmissions, the number of message transmission failures, the number of route lookups, and a trend of number changes.

6. The method according to claim 1, characterized in that The controlling the network device under the target network to transmit the target broadcast comprises: Obtain the target account corresponding to the node device with the network abnormality; Obtaining a network quality corresponding to an associated network associated with the target account; A target network is selected from associated networks corresponding to the target account according to the network quality.

7. A network configuration device for a device, characterized in that: Applied to a cloud server, the device comprises: A message data receiving module, used to receive message data uploaded by each node device under the current network, wherein the current network is a network corresponding to the network device currently connected to each node device, wherein each node device is connected to the network device, and the network device is connected to the cloud server; A network diagnosis result acquisition module, used to perform network detection on each of the node devices based on the message data to obtain a network diagnosis result; A device kicking module is used for obtaining the number of node devices with network abnormalities in the current network if it is determined that there are node devices with network abnormalities in the current network according to the network diagnosis result; when the number of node devices with network abnormalities is greater than a number threshold, it is determined that the network status of the current network is abnormal, and each node device in the current network is kicked out to instruct each node device in the current network to connect to a matching network; wherein, instructing each node device in the current network to connect to a matching network includes: controlling the node device with network abnormalities to perform network scanning, and controlling the network devices in the target network to transmit target broadcasts, so as to instruct the node devices with network abnormalities to join the target network when scanning the target broadcasts.

8. The device according to claim 7, characterized in that The network diagnosis result acquisition module includes a network parameter acquisition submodule and a network detection submodule, wherein: The network parameter acquisition submodule is used to acquire the network parameters of each of the node devices within a preset time period from the message data of each of the node devices; The network detection submodule is used to perform network detection on each of the node devices according to the network parameters to obtain network diagnosis results corresponding to each of the node devices.

9. The device according to claim 7, characterized in that The network detection submodule includes an abnormality number determination unit and a network abnormality determination unit, wherein: The abnormality number determination unit is used to determine the number of network abnormalities of each of the node devices based on the network parameters; The network anomaly determination unit is used to determine that the network diagnosis result corresponding to each of the node devices is a network anomaly when the number of network anomalies is greater than a preset number of anomalies.

10. An electronic device, characterized in that: include: one or more processors; Memory; One or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to perform the method according to any one of claims 1 to 6.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • WiFi network switching method and device

    CN109379766A

  • Network diagnosis method and device

    CN112954723A