Multi-gateway system ad hoc network method, device and system and storage medium

By monitoring communication quality in the smart home multi-gateway system and dynamically selecting edge gateways, the dependence problem of cloud servers or fixed edge gateway devices in the prior art is solved, and the communication stability and reliability of multi-gateway systems are improved.

CN119729685APending Publication Date: 2025-03-28ZHUHAI UNITECH POWER TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411807633.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

Existing smart home multi-gateway topology networks rely heavily on cloud servers or fixed edge gateway devices, resulting in stability problems and high costs. Once these devices are disabled, the cross-gateway interaction function of the entire system will be affected or completely invalidated.

Method used

By monitoring the communication quality between any two candidate gateway devices in the multi-gateway system, a system network quality vector is generated, and based on the vector and the preset edge gateway configuration policy, a suitable gateway device is dynamically selected as the edge gateway for ad hoc networking, realizing dynamic ad hoc networking without a fixed edge gateway.

Benefits of technology

It avoids the cross-gateway interaction failure caused by single device failure, ensures that the interaction control of any two network units in a multi-gateway system continues, eliminates the dependence on fixed edge gateways, enhances communication stability, and improves the reliability and robustness of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729685A_ABST
    Figure CN119729685A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wireless communication, and discloses a multi-gateway system ad hoc network method, device and system and a storage medium, which are used for interconnection and intercommunication between network units depending on a cloud server or fixed edge gateway equipment, and gateway equipment of each network unit does not communicate directly. Once the cloud server or the fixed edge gateway device is disabled, the cross-gateway function also fails. The multi-gateway system ad hoc network method comprises the following steps: monitoring the communication quality between any two candidate gateway devices in the multi-gateway system to obtain a system network quality vector; determining a first target gateway device as an edge gateway in any two candidate gateway devices based on the system network quality vector and a preset edge gateway configuration strategy, and obtaining an updated network topological graph; and carrying out ad hoc network according to the network topological graph through the first target gateway equipment, and carrying out cross-gateway interaction task with other candidate gateway equipment in the multi-gateway system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a multi-gateway system self-organizing network method, device, system and storage medium. Background Art

[0002] In a smart home system, the gateway device and the terminal device together form a network unit, where the gateway device is responsible for logical operations and terminal device management through wireless (such as Zigbee, Bluetooth, Wi-Fi) or wired technology, while the terminal device is responsible for executing the instructions of the gateway device and reporting status information. In order to cover more terminal devices, it is usually necessary to combine multiple gateway units into a larger topology network in actual applications.

[0003] However, in the existing smart home multi-gateway topology network, cross-gateway communication or logical operations are highly dependent on cloud servers or fixed edge gateway devices, which perform communication relays and global logical operations for each network unit. Although this architecture can achieve interconnection between network units, it has many deficiencies in practical applications due to the stability issues and high costs of cloud servers or fixed edge gateway devices. For example, once the cloud service or fixed edge gateway device fails, the cross-gateway interaction function of the entire system is affected or even completely ineffective. Summary of the invention

[0004] The present application provides a multi-gateway system self-organizing network method, device, system and storage medium, which are used for the interconnection between traditional network units that rely on cloud servers or fixed edge gateway devices. Gateway devices do not communicate directly with each other. Once the cloud server or fixed edge gateway device fails, the cross-gateway function will also fail.

[0005] The first aspect of the present application provides a multi-gateway system self-organizing network method, comprising:

[0006] Monitoring the communication quality between any two candidate gateway devices in the multi-gateway system to obtain a system network quality vector;

[0007] Based on the system network quality vector and the preset edge gateway configuration strategy, determine the first target gateway device as the edge gateway among the any two candidate gateway devices, and obtain an updated network topology map;

[0008] The first target gateway device performs self-organizing networking according to the network topology diagram, and performs cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system.

[0009] The second aspect of the present application provides a multi-gateway system self-organizing network device, comprising: a monitoring unit for monitoring the communication quality between any two candidate gateway devices in the multi-gateway system, and obtaining a system network quality vector

[0010] A determination unit is used to determine the first target gateway device as the edge gateway in any two candidate gateway devices based on the system network quality vector and the preset edge gateway configuration strategy, and obtain an updated network topology map

[0011] The self-organizing network unit is used to perform self-organizing network according to the network topology diagram through the first target gateway device, and perform cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system.

[0012] A third aspect of the present application provides a multi-gateway system, comprising at least two network units and an edge gateway configuration module, each of the network units comprising a gateway device and at least one terminal device;

[0013] The edge gateway configuration module executes the above-mentioned multi-gateway system self-organizing network method to realize the dynamic configuration of the edge gateway and obtain an updated network topology map;

[0014] The at least two network units perform self-organizing networking according to the target gateway device determined as the edge gateway in the updated network topology map, and perform cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system through the target gateway device.

[0015] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned multi-gateway system self-organizing network method.

[0016] In the technical solution provided by the present application, the communication quality between any two gateway devices is monitored to generate a system network quality vector, and based on the system network quality vector and the preset edge gateway configuration strategy, a suitable gateway device is dynamically selected as an edge gateway for self-organizing networking. The first target gateway device is selected as the edge gateway through a dynamic self-organizing network mechanism without a fixed edge gateway. Compared with a cloud server or a fixed edge gateway device, the problem of a single device failure immediately leading to a failure of cross-gateway interaction in a multi-gateway system is avoided. By using the dynamically determined first target gateway device as a communication relay device between any two gateway devices in the multi-gateway system, the continuous interaction control of any two network units in the multi-gateway system is greatly guaranteed, and the dependence on a fixed edge gateway is eliminated. Through the dynamic self-organizing network mechanism without a fixed edge gateway, the communication stability of the multi-gateway system is enhanced, and the reliability and robustness of the interconnection between network units in the multi-gateway system are greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a schematic diagram of the first embodiment of the multi-gateway system in this application;

[0018] Figure 2 This is a schematic diagram of the first embodiment of the multi-gateway system self-organizing network method in this application;

[0019] Figure 3 This is a schematic diagram of a second embodiment of a multi-gateway system self-organizing network method in this application;

[0020] Figure 4 A schematic diagram of an embodiment of the communication quality assessment method in the present application;

[0021] Figure 5 This is a schematic diagram of a second embodiment of the multi-gateway system in this application;

[0022] Figure 6 This is a schematic diagram of a third embodiment of a multi-gateway system self-organizing network method in this application;

[0023] Figure 7 A schematic diagram of an embodiment of a multi-gateway system self-organizing network device in the present application;

[0024] Figure 8 It is a schematic diagram of another embodiment of a multi-gateway system self-organizing network device in the present application;

[0025] Fig. 9 This is a schematic diagram of an embodiment of a multi-gateway self-organizing network device in this application. DETAILED DESCRIPTION

[0026] The present application provides a multi-gateway system self-organizing network method, device, system and storage medium, which are used to enhance the communication stability of the multi-gateway system through a dynamic self-organizing network mechanism without a fixed edge gateway, and greatly improve the reliability and robustness of the interconnection between network units in the multi-gateway system.

[0027] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] It is understandable that the execution subject of the present application may be a multi-gateway system self-organizing network device, or a multi-gateway system, which is not specifically limited here. This embodiment is described by taking a multi-gateway system as the execution subject.

[0029] Reference Figure 1 An embodiment of a multi-gateway system is provided. The multi-gateway system 100 includes an edge gateway configuration module 101 and at least two network units, such as a first network unit 102, a second network unit 103, and an nth network unit 104 in the figure.

[0030] Each network unit includes a gateway device and at least one terminal device. For example, in the figure, the first network unit 102 includes a first gateway device and a first terminal device, the second network unit 103 includes a second gateway device and a second terminal device and a third terminal device managed by it, and the nth network unit 104 includes an nth gateway device and a fourth terminal device to an mth terminal device managed by it, wherein n is a positive integer greater than 1 and m is a positive integer greater than 0. The number of terminal devices in each network unit may be the same or different.

[0031] Among them, the edge gateway configuration module 101 is used for dynamic configuration of the edge gateway to obtain an updated network topology map; all gateway units in the multi-gateway system conduct self-organizing networking according to the target gateway device determined as the edge gateway in the updated network topology map, and perform cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system through the target gateway device. The communication stability of the multi-gateway system is enhanced by having no fixed edge gateway, and the reliability and robustness of the interconnection between the network units in the multi-gateway system are greatly improved.

[0032] The edge gateway configuration module can be set in a cloud server or device as the global network configuration center of a multi-gateway system. During the initialization process, the user can specify a gateway device as the edge gateway role or directly determine the edge gateway based on the adaptive configuration strategy.

[0033] For ease of understanding, the specific process of this application is described below. Figure 2 The first embodiment of the multi-gateway system self-organizing network method in the present application includes:

[0034] 201. Monitor the communication quality between any two candidate gateway devices in the multi-gateway system to obtain a system network quality vector.

[0035] In this embodiment, the system network quality vector is used to indicate the corresponding communication quality score set when each gateway device in the multi-gateway system is connected to other gateway devices as an edge gateway; the communication quality score is used to evaluate the reliability of the network connection between two gateway devices. The larger the communication quality score, the higher the network interconnection reliability.

[0036] The multi-gateway system includes multiple gateway devices. By connecting any two gateway devices and performing communication quality evaluation, the communication quality score between any two gateway devices is obtained; all gateway devices in the multi-gateway system are traversed to obtain the system network quality vector.

[0037] The communication quality evaluation method may be implemented in a variety of ways, such as the number of successful connections, signal strength, packet loss rate, delay time, bandwidth, bit error rate, etc., and a combination of two or more of the above, which is not specifically limited in this embodiment.

[0038] 202. Determine a first target gateway device as an edge gateway among all candidate gateway devices in the multi-gateway system based on the system network quality vector and a preset edge gateway configuration strategy, and obtain an updated network topology map.

[0039] This embodiment dynamically selects edge gateways based on the system network quality vector and the edge gateway configuration strategy to update the network topology of the multi-gateway system. The edge gateway configuration strategy is used to indicate the specific rules for the multi-gateway system to select edge gateways. The edge gateway configuration strategy may include a default configuration strategy and / or an adaptive configuration strategy, and may also be configured according to the edge gateway configuration rules.

[0040] Optionally, determine whether the edge gateway configuration policy is the default configuration policy; if so, determine the candidate gateway device corresponding to the default configuration policy as the candidate gateway device, and obtain the communication quality score corresponding to the candidate gateway device; determine whether the communication quality score corresponding to the candidate gateway device meets the preset score threshold; if so, determine the candidate gateway device as the edge gateway; if not, generate a prompt message and send it to the user terminal or select the candidate gateway device that meets the score threshold as the edge gateway according to the adaptive configuration policy;

[0041] If the edge gateway configuration policy is a non-default configuration policy, that is, the edge gateway configuration policy is not the default configuration policy, that is, the default edge gateway is not configured, then the candidate gateway device is selected as the edge gateway according to the non-default configuration policy and the system network quality vector, wherein the non-default configuration policy can be an adaptive configuration policy or a setting edge gateway configuration rule.

[0042] 203. Perform self-organizing networking according to the network topology diagram through the first target gateway device, and perform cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system.

[0043] Specifically, according to the network topology diagram, a communication connection is established with other gateway devices in the multi-gateway system through the first target gateway device; and a cross-gateway interaction task is performed through the first target gateway device.

[0044] In this embodiment, by monitoring the communication quality between any two gateway devices, a system network quality vector is generated, and based on the system network quality vector and the preset edge gateway configuration strategy, a suitable gateway device is dynamically selected as an edge gateway for self-organizing networking. The first target gateway device is selected as the edge gateway through a dynamic self-organizing network mechanism without a fixed edge gateway. Compared with a cloud server or a fixed edge gateway device, the problem of a single device failure immediately leading to a failure of cross-gateway interaction in a multi-gateway system is avoided. The dynamically determined first target gateway device is used as a communication relay device between any two gateway devices in the multi-gateway system, which greatly guarantees the interactive control of any two network units in the multi-gateway system and eliminates the dependence on a fixed edge gateway. The dynamic self-organizing network mechanism without a fixed edge gateway enhances the communication stability of the multi-gateway system and greatly improves the reliability and robustness of the interconnection between network units in the multi-gateway system.

[0045] In practical applications, cross-gateway communication that relies on cloud services or fixed edge gateway devices may fail to achieve cross-gateway interaction due to maintenance or failure of a single device. Figure 3 The second embodiment of the multi-gateway system self-organizing network method in the present application includes:

[0046] 301. Monitor the communication quality between any two candidate gateway devices in the multi-gateway system to obtain a system network quality vector.

[0047] Specifically, any one of the candidate gateway devices is selected as a candidate edge gateway; a connection test is performed between the candidate edge gateway and each candidate gateway device to obtain a communication quality score corresponding to each candidate gateway device; and each candidate gateway device is traversed to obtain a system network quality vector.

[0048] The system network quality vector is used to describe the communication quality between any two candidate gateway devices in the multi-gateway system. The system network quality vector V t = {V1, V2, ..., V k ,...,V n}, where n represents the total number of gateway devices in the multi-gateway system, V1 represents the communication quality vector of the first gateway device and other gateway devices, V2 represents the communication quality vector of the second gateway device and other gateway devices, and V k represents the communication quality vector of the kth gateway device and other gateway devices, V n Represents the communication quality vector between the nth gateway device and other gateway devices.

[0049] For ease of understanding, an example is provided. The multi-gateway system specifies Note k For the candidate edge gateway role, through Note kConnect the remaining candidate gateway devices and get Note k The communication quality vector V k = {Rel k1 ,Rel k2 ,...,Rel kn}, where Rel k1 Note k Communication score of the network connection with Note1, Rel k2 Note k Communication score of the network connection with Note2, Rel kn Note k With Note n The communication score of the network connection between them.

[0050] The above communication score is used to evaluate the reliability of the network connection between two gateway devices. The larger the score, the higher the reliability of the network interconnection. The communication quality score of each candidate gateway device is the sum of the communication scores in the communication quality vector of the candidate gateway device as a candidate edge gateway, that is, Note k Communication quality score

[0051] Exemplarily, the above-mentioned connection test between the candidate edge gateway and each candidate gateway device to obtain the communication quality score corresponding to each candidate gateway device includes: connecting the candidate edge gateway and each candidate gateway device to obtain the communication score corresponding to the candidate edge gateway and each candidate gateway device; if the current number of connection tests does not exceed the number threshold, re-performing the connection test; if the current number of connection tests exceeds the number threshold, determining the sum of the communication scores as the communication quality score.

[0052] Optionally, the above-mentioned connection between the candidate edge gateway and each candidate gateway device to obtain the communication score corresponding to the candidate edge gateway and each candidate gateway device includes: connecting the candidate edge gateway to each candidate gateway device; determining whether the connection is successful; if the connection is successful, increasing the communication score between the candidate edge gateway and the successfully connected gateway device by a preset score value; if the connection fails, maintaining the communication score between the candidate edge gateway and the failed connection gateway device.

[0053] It is understandable that a connection test cycle may also be set to dynamically execute the above connection test to ensure the adaptability of the system network quality vector to the network environment.

[0054] The above-mentioned preset score value can be set according to actual conditions, and the preset score value can also be set to the inverse of the number threshold. For example, if the number threshold is 4 times, the preset value is set to 0.25. This embodiment improves flexibility by determining the preset score value according to the number threshold of the connection test, and adjusts the number threshold according to the actual application scenario, ensuring that the result of each connection test has a reasonable impact on the final communication score, avoiding a certain test result from having too much impact on the score, and avoiding accidental failure or success through multiple connection tests. The final communication quality score of the candidate gateway device is affected, and the reliability of the edge gateway role confirmation is guaranteed.

[0055] Continue with the Note above k For example, refer to Figure 4 , for Note k Connection test:

[0056] According to the preset connection test cycle, determine the Note k With Note p Is the connection successful? If the connection is successful, Rel kq Increase by 0.25 points, otherwise maintain Rel kq The score remains unchanged.

[0057] Determine whether the number of connection tests is greater than 4; if so, determine the current Rel kq , otherwise, continue with the connection test.

[0058] Rel kq The value range is [0,1], Rel kq Indicates gateway Note k Note about Gateway p The reliability of the network connection between them. The larger the value, the higher the reliability of the network interconnection. When k = q, Rel kq The value of is 1, T k It describes the overall reachability of gateway node K and other gateways, n represents the total number of gateways in the network, T k The value range of is [1,n], where: T k =1 means that the reachability of gateway node K to other gateway nodes except itself is 0; T k =n means that the reachability of gateway node K and other gateway nodes is 1.

[0059] 302. If the edge gateway configuration policy is a default configuration policy, determine the first target gateway device as an edge gateway according to the default configuration policy.

[0060] The multi-gateway system determines whether the user has set a default configuration policy. If so, the candidate gateway device corresponding to the default configuration policy is determined as the first target gateway device. For example, the edge gateway configuration of the multi-gateway system is: Notes = {Note1 = 0, Note2 = 0, ..., Note k =1,...,Note n =0}

[0061] Among them, the value of 0 indicates a normal gateway device, and the value of 1 indicates the current edge gateway device. The default value of Note k It is the edge gateway role.

[0062] This embodiment can quickly switch to the default gateway device to perform cross-gateway interaction tasks of the edge gateway through the default configuration strategy. Users can fix the gateway device that performs the edge gateway role according to the performance of each candidate gateway device, realize seamless edge gateway migration, avoid cross-gateway interaction terminals, and enhance the flexibility of the multi-gateway system self-organizing network method.

[0063] 303. If the edge gateway configuration strategy is an adaptive configuration strategy, determine the first target gateway device as the edge gateway according to the system network quality vector.

[0064] Specifically, if the edge gateway configuration policy is an adaptive configuration policy or the user does not set a default configuration policy, the first target gateway device is determined according to the system network quality vector.

[0065] Exemplarily, a candidate gateway device corresponding to a maximum communication quality score is selected as the first target gateway device according to the system network quality vector.

[0066] For example, the system network quality vector V t ={T1,T2,...,T k ,...,T n}, if T k The maximum value of the communication quality score is determined. k The first target gateway device.

[0067] 304. Construct a network topology diagram with the first target gateway device as the center.

[0068] The multi-gateway system performs centralized self-organizing networking according to the currently confirmed edge gateway, obtains a network topology map centered on the first target gateway device, and synchronizes the updated network topology map to all candidate gateway devices in the multi-gateway system.

[0069] 305. Perform self-organizing networking according to the network topology diagram through the first target gateway device, and perform cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system.

[0070] Specifically, a communication connection is established between the first target gateway device and the remaining candidate gateway devices in the multi-gateway system. Each candidate gateway device (i.e., non-edge gateway) monitors the operation information of each device it manages, and forwards it to the first target gateway device (i.e., the gateway device currently performing the edge gateway function) through the network topology diagram; the first target gateway device monitors the operation information of each device sent by each candidate gateway device, and executes the corresponding execution logic according to the operation information of each device, obtains cross-gateway interaction information, and sends it to the corresponding candidate gateway device to perform cross-gateway interaction tasks. Among them, the device operation information includes events and device status, etc.

[0071] Take the cross-gateway interaction of three gateway devices as an example. The first gateway device manages the switch device, the second gateway device performs the edge gateway function, and the third gateway device manages the light device and executes the control logic of "when the light device is on and the switch device button is triggered, then the light device is turned off". The second gateway device is responsible for monitoring, collecting, and executing logic for the edge gateway, and forwarding the execution results.

[0072] The third gateway device obtains that the light device it manages is in the on state, and determines the IP address and port number of the second gateway device according to the current network topology diagram, and forwards the current light state of the light device to the second gateway device;

[0073] When the first gateway device obtains the key trigger event of the switch device it manages, it determines the IP address and port number of the second gateway device according to the current network topology diagram, and forwards the key trigger event of the switch device to the second gateway device;

[0074] The second gateway device receives the light status and switch device button trigger event, executes the control logic, outputs, turns off the light device instruction, determines the IP address and port number of the third gateway device according to the current network topology diagram, and forwards the control event to the third gateway device.

[0075] The third gateway device receives the control event and executes the action of turning off the light device.

[0076] In this embodiment, by monitoring the communication quality between any two gateway devices, a system network quality vector is generated. If the default configuration policy is set by the user, the default gateway device is quickly switched to perform the cross-gateway interaction task of the edge gateway according to the default configuration policy; otherwise, a suitable gateway device is dynamically selected as the edge gateway for self-organizing networking according to the system network quality, providing a variety of non-fixed gateway configuration strategies, which can take into account user needs and communication quality; the first target gateway device is selected as the edge gateway through the dynamic self-organizing network mechanism without a fixed edge gateway. Compared with the cloud server or the fixed edge gateway device, the problem of the failure of the cross-gateway interaction of the multi-gateway system caused by the failure of a single device is avoided. The first target gateway device is dynamically determined as a communication relay device between any two gateway devices in the multi-gateway system, which greatly guarantees the continuous interaction control of any two network units in the multi-gateway system, eliminates the dependence on the fixed edge gateway, and enhances the communication stability of the multi-gateway system through the dynamic self-organizing network mechanism without a fixed edge gateway, and greatly improves the reliability and robustness of the interconnection between the network units in the multi-gateway system.

[0077] In actual applications, the network environment is a dynamic process. After the edge gateway is determined by the non-fixed mechanism, in order to ensure the reliability of cross-gateway interaction, the multi-gateway system continuously monitors the network environment to perform adaptive migration of the edge gateway. Figure 5 An example of the adaptive switching process of the edge gateway in the multi-gateway system of the present application is provided. This embodiment takes the setting of the edge gateway configuration module in the cloud server as an example. The cloud server and each gateway device include a network topology module for synchronizing the current network topology. The cloud server and each gateway device can also set an execution logic module for executing the corresponding control logic.

[0078] When an edge gateway role change event is triggered, the edge gateway configuration module performs edge gateway role migration according to the adaptive configuration strategy, such as Figure 5 Taking the three network units shown as an example, Figure 5 The above figure shows that in the initial state, gateway device 2 in the second network unit is selected as the edge gateway role. Figure 5 The figure below shows that when the network environment changes, the edge gateway configuration module adaptively switches to the gateway device 3 in the third network unit as the edge gateway role. The dotted arrows in the figure are used to indicate the synchronization of the network topology diagram, and the solid arrows are used to indicate the control flow information when executing the edge gateway function.

[0079] The network unit is centered on the gateway device and manages multiple terminal devices through wired or wireless technology, wherein the communication link between the gateway device and the terminal device using wired technology can utilize protocols such as Ethernet. The communication link between the gateway device and the terminal device using wireless technology can utilize communication protocols such as IEEE 802.11 (WiFi), 3GPP protocols such as Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE) and New Radio (NR), Bluetooth (RTM), ZigBee, Narrowband Internet of Things (NB-IoT), etc.

[0080] The above-mentioned gateway device can also be used for terminal device management, communication management and logical operations within the network unit to which it belongs; the terminal device is responsible for executing instructions issued by the gateway device, and reporting terminal device status and event information, such as panel switches and sensors in smart home systems.

[0081] When not selected as an edge gateway, the gateway device realizes the linkage of devices in the same network unit through logical operations, and controls the devices in the same network unit through device management and communication management; when selected as an edge gateway, it connects to gateway devices in other network units through the network topology map in the topology synchronization module, and performs cross-gateway interaction functions.

[0082] For the Edge Gateway role migration process, see Figure 6 The third embodiment of the multi-gateway system self-organizing network method in the present application includes:

[0083] 601. Monitor the communication quality between any two candidate gateway devices in the multi-gateway system to obtain a system network quality vector.

[0084] Each candidate gateway device in the multi-gateway system obtains the LAN address information of other candidate gateway devices, calculates the network quality, and synchronizes it to the cloud server.

[0085] 602. Determine a first target gateway device as an edge gateway among all candidate gateway devices in the multi-gateway system based on the system network quality vector and a preset edge gateway configuration strategy, and obtain an updated network topology map.

[0086] The cloud server obtains the network quality vector of all gateway nodes: V t ={T1,T2,...,T k ,...,T n}, calculate the candidate edge gateway, assuming it is Note k ; Update the gateway identification information in the network topology diagram to

[0087] Notes={Note1=0,Note2=0,...,Note k=1,...,Note n =0}.

[0088] 603. Perform self-organizing networking according to the network topology diagram through the first target gateway device, and perform cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system.

[0089] 604. Update the system network quality vector according to a preset connection test cycle.

[0090] Specifically, the candidate edge gateway is connected to each candidate gateway device according to a preset connection test cycle, and the communication score corresponding to the candidate edge gateway and each candidate gateway device is updated.

[0091] The above-mentioned connection test period can be set according to actual conditions, such as being set to 20 minutes, 30 minutes or other durations. This embodiment automatically triggers the connection test between the candidate edge gateway and each candidate gateway device by setting the connection test period to dynamically update the system network quality vector, ensure the dynamic adaptation of the non-fixed edge gateway solution to the network connection situation, and dynamically select the best candidate gateway device as the candidate edge gateway to ensure the reliability of cross-gateway interaction.

[0092] In this embodiment, the method for updating the system network quality vector may be performed with reference to step 301 and will not be described in detail herein.

[0093] 605. Perform adaptive migration of edge gateways based on the updated system network quality vector.

[0094] Specifically, based on the updated system network quality vector, determine whether there is a second target gateway device with a communication quality score greater than that of the first target gateway device; if so, switch the second target gateway device to an edge gateway, otherwise continue to perform cross-gateway interaction tasks through the first target gateway device.

[0095] Optionally, if the updated communication quality score of the first target gateway device is less than the sum of the total number of gateway devices in the multi-gateway system and a first preset threshold, and there is any gateway device whose updated communication quality score is greater than the sum of the total number of gateway devices and a second preset threshold, then any one of the gateway devices is determined as the second target gateway device, and the first preset threshold is less than the second preset threshold.

[0096] Exemplarily, the first target gateway device is Note k , and its corresponding communication quality score is T k , determine whether T k <n*0.8, and whether there is a gateway device Note o Communication quality score T o >n*0.9, if so, then Note oDetermined as a new edge gateway, where n is the total number of gateway devices. In this embodiment, the cloud server triggers a change instruction after receiving the network quality vectors of all gateway nodes of each candidate gateway device. The first target gateway device (old edge gateway) terminates the edge gateway service and requests a new edge gateway connection; the second target gateway device (new edge gateway) terminates the current connection, starts the edge gateway service, and monitors the gateway connection quality; and the ordinary gateway in the multi-gateway system terminates the current connection and requests a new edge gateway connection, thereby completing the adaptive switching of the edge gateway. In this implementation, in order to avoid frequent switching of edge gateways due to occasional network reasons, the current edge gateway exit threshold is set too low, while the candidate edge gateway network quality threshold is set too high, and the cloud server will trigger a change instruction only when the relevant conditions are met.

[0097] In this embodiment, by monitoring the communication quality between any two gateway devices, a system network quality vector is generated. Based on the system network quality vector and the preset edge gateway configuration strategy, a suitable gateway device is dynamically selected as an edge gateway for self-organizing networking. The first target gateway device is selected as the edge gateway through a dynamic self-organizing network mechanism without a fixed edge gateway. Compared with a cloud server or a fixed edge gateway device, the problem of a single device failure immediately causing a failure of cross-gateway interaction in a multi-gateway system is avoided. The dynamically determined first target gateway device is used as a communication relay device between any two gateway devices in the multi-gateway system, which greatly guarantees the continuous interaction control of any two network units in the multi-gateway system. Furthermore, the multi-gateway system continuously monitors the network environment, updates the system network quality vector according to a preset connection test cycle, and performs adaptive migration of the edge gateway based on the updated system network quality vector, eliminating the dependence on the fixed edge gateway. The dynamic self-organizing network mechanism without a fixed edge gateway enhances the communication stability of the multi-gateway system under special circumstances. The edge gateway is adaptively migrated according to the real-time network environment, which greatly improves the reliability and robustness of the interconnection between the network units in the multi-gateway system.

[0098] The above describes the multi-gateway system self-organizing network method in this application. The following describes the multi-gateway system self-organizing network device in this application. Figure 7 , an embodiment of a multi-gateway system self-organizing network device in the present application includes:

[0099] Monitoring unit 701 is used to monitor the communication quality between any two candidate gateway devices in the multi-gateway system and obtain the system network quality vector

[0100] A determination unit 702 is configured to determine a first target gateway device as an edge gateway among any two candidate gateway devices based on a system network quality vector and a preset edge gateway configuration strategy, and obtain an updated network topology map;

[0101] The self-organizing unit 703 is used to perform self-organizing networking according to the network topology diagram through the first target gateway device, and perform cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system.

[0102] In this embodiment, by monitoring the communication quality between any two gateway devices, a system network quality vector is generated. Based on the system network quality vector and the preset edge gateway configuration strategy, a suitable gateway device is dynamically selected as the edge gateway for self-organizing networking. The first target gateway device is selected as the edge gateway through a dynamic self-organizing network mechanism without a fixed edge gateway. Compared with a cloud server or a fixed edge gateway device, the problem of a single device failure immediately leading to a failure of cross-gateway interaction in a multi-gateway system is avoided. By using the dynamically determined first target gateway device as a communication relay device between any two gateway devices in the multi-gateway system, the continuous interactive control of any two network units in the multi-gateway system is greatly guaranteed, and the dependence on a fixed edge gateway is eliminated. Through the dynamic self-organizing network mechanism without a fixed edge gateway, the communication stability of the multi-gateway system under special circumstances is enhanced, and the reliability and robustness of the interconnection between network units in the multi-gateway system are greatly improved.

[0103] See also Figure 8 Another embodiment of the multi-gateway system self-organizing network device in the present application includes:

[0104] Monitoring unit 701 is used to monitor the communication quality between any two candidate gateway devices in the multi-gateway system and obtain the system network quality vector

[0105] A determination unit 702 is configured to determine a first target gateway device as an edge gateway among any two candidate gateway devices based on a system network quality vector and a preset edge gateway configuration strategy, and obtain an updated network topology map;

[0106] The self-organizing network unit 703 is used to perform self-organizing network according to the network topology diagram through the first target gateway device to perform the cross-gateway interaction task.

[0107] Optionally, the monitoring unit 701 includes:

[0108] A selection subunit 7011 is used to select any candidate gateway device as a candidate edge gateway;

[0109] The test subunit 7012 is used to perform a connection test between the candidate edge gateway and each candidate gateway device to obtain a communication quality score corresponding to each candidate gateway device;

[0110] The traversal subunit 7013 is used to traverse each candidate gateway device to obtain a system network quality vector.

[0111] Optionally, the test subunit 7012 is specifically used to: connect the candidate edge gateway and each candidate gateway device according to a preset connection test cycle to obtain a communication score corresponding to the candidate edge gateway and each candidate gateway device;

[0112] If the current connection test times do not exceed the times threshold, re-test the connection;

[0113] If the current connection test times exceed the times threshold, the sum of the communication scores is determined as the communication quality score.

[0114] Optionally, the determining unit 702 is specifically configured to: if the edge gateway configuration policy is a default configuration policy, determine the first target gateway device according to the default configuration policy;

[0115] If the edge gateway configuration strategy is an adaptive configuration strategy, determining the first target gateway device according to the system network quality vector;

[0116] A network topology diagram is constructed with the first target gateway device as the center.

[0117] Optionally, the multi-gateway system self-organizing network device further includes a migration unit 704, which is used to update the system network quality vector according to a preset connection test cycle; and perform edge gateway adaptive migration based on the updated system network quality vector.

[0118] Optionally, the migration unit 704 is specifically configured to: determine whether there is a second target gateway device having a communication quality score greater than that of the first target gateway device based on the updated system network quality vector;

[0119] If so, switch the second target gateway device to an edge gateway, otherwise continue to perform the cross-gateway interaction task through the first target gateway device.

[0120] Optionally, the migration unit 704 is specifically used to determine any one of the gateway devices as the second target gateway device if the updated communication quality score of the first target gateway device is less than the sum of the total number of gateway devices in the multi-gateway system and a first preset threshold, and there is any one of the gateway devices with an updated communication quality score greater than the sum of the total number of gateway devices and a second preset threshold, and the first preset threshold is less than the second preset threshold.

[0121] In this embodiment, by monitoring the communication quality between any two gateway devices, a system network quality vector is generated. Based on the system network quality vector and the preset edge gateway configuration strategy, a suitable gateway device is dynamically selected as the edge gateway for self-organizing networking, providing a variety of non-fixed gateway configuration strategies that can take into account both user needs and communication quality. The first target gateway device is selected as the edge gateway through the dynamic self-organizing network mechanism without a fixed edge gateway. Compared with a cloud server or a fixed edge gateway device, the problem of a single device failure immediately causing a multi-gateway system cross-gateway interaction failure is avoided. The first target gateway device is dynamically determined as the first target gateway device in the multi-gateway system. The communication relay equipment between any two gateway devices greatly ensures the continuous interactive control of any two network units in the multi-gateway system; further, the multi-gateway system continuously monitors the network environment, updates the system network quality vector according to the preset connection test cycle, and adaptively migrates the edge gateway based on the updated system network quality vector, eliminating the dependence on fixed edge gateways, and enhancing the communication stability of the multi-gateway system under special circumstances through the dynamic self-organizing network mechanism without fixed edge gateways; and adaptively migrates the edge gateway according to the real-time network environment, greatly improving the reliability and robustness of the interconnection between the network units in the multi-gateway system.

[0122] above Figure 7 and Figure 8 The multi-gateway system self-organizing network device in the present application is described in detail from the perspective of modular functional entities. The multi-gateway system self-organizing network device in the present application is described in detail from the perspective of hardware processing.

[0123] See also Fig. 9 As shown, the multi-gateway system self-organizing network device includes a processor 900 and a memory 901. The memory 901 stores machine executable instructions that can be executed by the processor 900. The processor 900 executes the machine executable instructions to implement the above-mentioned multi-gateway system self-organizing network method.

[0124] further, Fig. 9 The multi-gateway system self-organizing network device shown also includes a bus 902 and a communication interface 903 , and the processor 900 , the communication interface 903 and the memory 901 are connected via the bus 902 .

[0125] The memory 901 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), for example, at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 903 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 902 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0126] The processor 900 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 900. The above processor 900 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 901 , and the processor 900 reads the information in the memory 901 and completes the method steps of the above-mentioned embodiment in combination with its hardware.

[0127] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the multi-gateway system self-organizing network method.

[0128] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0129] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0130] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A multi-gateway system self-organizing network method, characterized in that: The multi-gateway system self-organizing network method comprises: Monitor the communication quality between any two candidate gateway devices in the multi-gateway system and obtain the system network quality vector; Based on the system network quality vector and the preset edge gateway configuration strategy, determine the first target gateway device as the edge gateway among all candidate gateway devices in the multi-gateway system, and obtain an updated network topology map; The first target gateway device performs self-organizing networking according to the network topology diagram, and performs cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system.

2. The multi-gateway system self-organizing network method according to claim 1, characterized in that: The monitoring of the communication quality between any two candidate gateway devices in the multi-gateway system to obtain the system network quality vector comprises: Select any candidate gateway device as a candidate edge gateway; Performing a connection test between the candidate edge gateway and each of the candidate gateway devices to obtain a communication quality score corresponding to each of the candidate gateway devices; Each of the candidate gateway devices is traversed to obtain a system network quality vector.

3. The multi-gateway system self-organizing network method according to claim 2, characterized in that: The performing of a connection test between the candidate edge gateway and each of the candidate gateway devices to obtain a communication quality score corresponding to each of the candidate gateway devices includes: The candidate edge gateway is compared with each of the candidate gateway devices to obtain a communication score corresponding to the candidate edge gateway and each of the candidate gateway devices; If the current connection test times do not exceed the times threshold, re-test the connection; If the current connection test times exceed the times threshold, the sum of the communication scores is determined as the communication quality score.

4. The multi-gateway system self-organizing network method according to claim 1, characterized in that: The determining, based on the system network quality vector and the preset edge gateway configuration strategy, of a first target gateway device as an edge gateway among all candidate gateway devices of the multi-gateway system, and obtaining an updated network topology map comprises: If the edge gateway configuration policy is a default configuration policy, determining the first target gateway device as an edge gateway according to the default configuration policy; If the edge gateway configuration strategy is an adaptive configuration strategy, determining the first target gateway device as an edge gateway according to the system network quality vector; A network topology diagram is constructed with the first target gateway device as the center.

5. The multi-gateway system self-organizing network method according to any one of claims 1 to 4, characterized in that: After the first target gateway device performs self-organizing networking according to the network topology diagram to perform the cross-gateway interaction task, the method further includes: Updating the system network quality vector according to a preset connection test period; Adaptive migration of edge gateways based on updated system network quality vectors.

6. The multi-gateway system self-organizing network method according to claim 5, characterized in that: The adaptive migration of the edge gateway based on the updated system network quality vector includes: Based on the updated system network quality vector, determining whether there is a second target gateway device with a communication quality score greater than that of the first target gateway device; If so, switch the second target gateway device to an edge gateway, otherwise continue to perform the cross-gateway interaction task through the first target gateway device.

7. The multi-gateway system self-organizing network method according to claim 6, characterized in that: The determining whether there is a second target gateway device with a communication quality score greater than that of the first target gateway device comprises: If the communication quality score updated by the first target gateway device is less than the sum of the total number of gateway devices in the multi-gateway system and a first preset threshold, and there is any gateway device whose updated communication quality score is greater than the sum of the total number of gateway devices and a second preset threshold, then the any one gateway device is determined as the second target gateway device, and the first preset threshold is less than the second preset threshold.

8. A multi-gateway system self-organizing network device, characterized in that: The multi-gateway system self-organizing network device comprises: The monitoring unit is used to monitor the communication quality between any two candidate gateway devices in the multi-gateway system and obtain the system network quality vector A determination unit, configured to determine, based on the system network quality vector and a preset edge gateway configuration strategy, that the first target gateway device is an edge gateway among the any two candidate gateway devices, and obtain an updated network topology map; The self-organizing network unit is used to perform self-organizing network according to the network topology diagram through the first target gateway device, and perform cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system.

9. A multi-gateway system, characterized in that: The multi-gateway system includes at least two network units and an edge gateway configuration module, each of the network units includes a gateway device and at least one terminal device; The edge gateway configuration module executes the multi-gateway system self-organizing network method according to any one of claims 1 to 7 to realize dynamic configuration of the edge gateway and obtain an updated network topology map; The at least two network units perform self-organizing networking according to the target gateway device determined as the edge gateway in the updated network topology map, and perform cross-gateway interaction tasks with other candidate gateway devices in the multi-gateway system through the target gateway device.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instruction is read and executed, the multi-gateway system self-organizing network method as described in any one of claims 1-7 is executed.