Ad hoc network control method and device based on edge computing, and terminal equipment

CN122933307APending Publication Date: 2026-10-16QINGDAO HAIER MULTI MEDIA CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611208642.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-10
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

相关技术依赖单一中控设备发起服务部署,存在单点故障风险

Benefits of technology

本公开实施例通过断网竞选组网与临时主控部署流程,构建边缘计算断网自动切换机制。当本设备与主控网络的通信链路断开时,终端设备发送广播消息以参与临时主控竞选。在终端设备被选举为临时主控下,启动临时服务部署单元并发送广播服务消息,以使其他终端设备基于广播服务消息接入临时网络。上述方式摆脱传统方案对单一中控节点的依赖,规避单点故障风险,提升断网工况下系统自组网能力。终端设备还接收其他终端设备发送的本地设备信息和本地状态快照,并据此更新全局设备列表和全局状态快照,发送至接入临时网络的终端设备。本公开实施例采用设备状态同步机制,完善分布式组网的管控能力。通过全网设备信息和状态快照更新,有效克服传统组网状态同步缺失、控制逻辑混乱的缺陷,保障断网前后设备运行逻辑的连续性。同时终端设备根据语义控制指令下发私有指令至对应目标终端设备,实现终端设备的统一管控。综上,本公开实施例通过边缘自组网闭环控制流程,在脱离网关通信链路后仍然能够维持基础服务能力,提升断网工况下系统自组网能力。同时,保证断网前后设备运行逻辑的连续性和稳定性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122933307A_ABST
    Figure CN122933307A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of smart homes, and discloses a self-organizing network control method based on edge computing, which comprises the following steps: in the case that a gateway communication link is disconnected, a broadcast message for requesting network organization election is sent; wherein the gateway communication link is a communication link between the device and a master gateway; in the case that the device is elected as a temporary master, a temporary service deployment unit is started, and a broadcast service message for network organization is sent; local device information and a local state snapshot sent by other terminal devices are received, a global device list and a global state snapshot are updated, and the global device list and the global state snapshot are sent to terminal devices accessing a temporary network; and according to a semantic control instruction sent by a user, a private instruction is generated and sent to a corresponding target terminal device. The method can improve the self-organizing network capability of the system under a disconnected network condition, and guarantees the continuity and stability of device operation logic before and after the network is disconnected. The application further discloses a self-organizing network control device based on edge computing and a terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, such as a self-organizing network control method and device, and terminal equipment based on edge computing. Background Technology

[0002] Currently, mainstream smart home systems generally adopt a three-tier architecture of cloud-edge node-cloud, using a central gateway to aggregate device data from edge nodes and upload it to the cloud for unified scheduling, enabling cross-device linkage and remote control. However, this architecture is highly dependent on network connectivity, and the stability of smart home systems drops significantly in offline scenarios. The reliability of local operation of smart homes and the need for autonomous linkage without network access are urgent issues to be addressed.

[0003] To address the stable operation of smart home systems during network outages, a control method for a smart home system is disclosed. The smart home system includes a central control device, a remote server, and at least two smart home devices. These at least two smart home devices include a target smart home device and remaining smart home devices. The method is applied to the target smart home device and includes: when the central control device has a network connection, receiving a temporary server confirmation instruction from the remote server and storing a temporary communication service packet carried by the temporary server confirmation instruction; when the central control device is offline, receiving an offline data packet from the central control device; parsing the offline data packet to obtain offline status information; entering a local area network mode based on the offline status information and running the temporary communication service packet to deploy a temporary communication service; sending the target address of the target smart home device to the central control device; enabling the central control device to send temporary connection data packets carrying the target address to each smart home device; and enabling the remaining smart home devices to establish a temporary communication service connection with the target smart home device.

[0004] In the process of implementing the embodiments of this disclosure, at least the following problems were found in the related art: The related technologies rely on a single central control device to initiate service deployment, which poses a single point of failure risk. Moreover, in the event of a network outage, the operating status of each smart home device cannot be synchronized in real time, which can easily lead to confusion in the device control logic and affect the stability and continuity of the smart home system.

[0005] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0006] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.

[0007] This disclosure provides an edge computing-based self-organizing network control method, apparatus, and terminal device to maintain basic service capabilities even after disconnecting from the gateway communication link, improve the system's self-organizing network capability under network outage conditions, and ensure the continuity and stability of device operation logic before and after network outage.

[0008] In some embodiments, the self-organizing network control method includes: sending a broadcast message to request network election when the gateway communication link is disconnected; wherein the gateway communication link is the communication link between the device and the master control gateway; when the device is elected as the temporary master, starting a temporary service deployment unit and sending a broadcast service message for network formation; receiving local device information and local status snapshots sent by other terminal devices, updating the global device list and global status snapshots and sending them to the terminal devices accessing the temporary network; generating private instructions according to semantic control instructions sent by the user and sending them to the corresponding target terminal devices.

[0009] In some embodiments, the broadcast message is a Mesh flood broadcast message and includes the device's identity information and protocol version, device service capabilities, and the number of broadcast messages received. The device being elected as a temporary master includes: receiving broadcast messages sent by other terminal devices; extracting the number of received broadcast messages and device service capabilities from the broadcast messages sent by other terminal devices; wherein, device service capabilities include one or more of CPU load, remaining memory capacity, and local computing power limit thresholds; determining the candidate device based on the number of broadcast messages received and device service capabilities of other terminal devices, as well as the number of broadcast messages received and device service capabilities of this device; and electing the candidate device as the temporary master.

[0010] In some embodiments, determining candidate devices based on the number of broadcast messages received by other terminal devices and their service capabilities, as well as the number of broadcast messages received by this device and its service capabilities, includes: weighting the number of broadcast messages received by each other terminal device and its service capabilities according to preset weights to obtain a comprehensive score for the corresponding terminal device; weighting the number of broadcast messages received by this device and its service capabilities according to preset weights to obtain a comprehensive score for this device; and selecting the terminal device with the highest comprehensive score as the candidate device.

[0011] In some embodiments, the broadcast message is a Mesh flood broadcast message; the method further includes: switching to the StarBlink NearLink channel after the gateway communication link is disconnected; wherein the destination address of the Mesh flood broadcast message is the Mesh flood address, so as to send the broadcast message through the NearLink channel.

[0012] In some embodiments, generating a private instruction based on a semantic control instruction sent by a user and sending it to the corresponding target terminal device includes: querying an instruction mapping table through a protocol conversion engine; wherein the instruction mapping table stores a one-to-one mapping relationship between general semantic instructions and private protocol messages of different brand terminal devices; matching the target private protocol message corresponding to the semantic control instruction according to the instruction mapping table; generating a private instruction based on the target private protocol message and determining the corresponding target terminal device; and sending the private instruction to the corresponding target terminal device through the NearLink channel.

[0013] In some embodiments, the method further includes: generating a private instruction based on the semantic control instruction sent by the user and sending it to the corresponding target terminal device, and then obtaining an updated local state snapshot sent by the target terminal device; wherein the updated local state snapshot is generated when the target terminal device performs the corresponding operation according to the private instruction; and updating the global state snapshot again based on the updated local state snapshot.

[0014] In some embodiments, the self-organizing network control method includes: sending a broadcast message to request network election when the gateway communication link is disconnected; wherein the gateway communication link is the communication link between the device and the main control gateway; receiving a broadcast service message for network formation sent by a temporary master controller; configuring the network according to the broadcast service message and accessing the temporary network; after accessing the temporary network, sending local device information and a local state snapshot to the temporary master controller; receiving a global device list and a global state snapshot issued by the temporary master controller and storing them in the local state memory.

[0015] In some embodiments, the method further includes: sending local device information and a local state snapshot to the temporary master controller, receiving a private instruction issued by the temporary master controller, performing the corresponding operation according to the private instruction and generating an updated local state snapshot; and sending the updated local state snapshot to the temporary master controller.

[0016] In some embodiments, the ad hoc network control device includes a processor and a memory storing program instructions, the processor being configured to execute the edge computing-based ad hoc network control method described above when running the program instructions.

[0017] In some embodiments, the terminal device includes: a terminal device body; and an edge computing-based self-organizing network control device, as described above, installed on the terminal device body.

[0018] The edge computing-based self-organizing network control method, apparatus, and terminal device provided in this disclosure can achieve the following technical effects: This disclosure constructs an automatic failover mechanism for edge computing when the network is down, through a network election and temporary master control deployment process. When the communication link between the device and the master control network is lost, the terminal device sends a broadcast message to participate in the election for temporary master control. When the terminal device is elected as the temporary master control, it initiates a temporary service deployment unit and sends a broadcast service message, enabling other terminal devices to access the temporary network based on the broadcast service message. This approach eliminates the dependence on a single central control node in traditional solutions, avoids the risk of single-point failure, and improves the system's self-organizing network capability under network downtime. The terminal device also receives local device information and local state snapshots from other terminal devices, and updates the global device list and global state snapshot accordingly, sending them to the terminal devices accessing the temporary network. This disclosure employs a device state synchronization mechanism to improve the management and control capabilities of distributed networking. By updating the entire network device information and state snapshots, it effectively overcomes the defects of traditional networking's lack of state synchronization and chaotic control logic, ensuring the continuity of device operating logic before and after network downtime. Simultaneously, the terminal device issues private instructions to the corresponding target terminal device according to semantic control instructions, achieving unified management and control of the terminal devices. In summary, the embodiments of this disclosure, through a closed-loop control process for edge self-organizing networks, can maintain basic service capabilities even after disconnecting from the gateway communication link, thus improving the system's self-organizing network capability under network outage conditions. Simultaneously, it ensures the continuity and stability of device operating logic before and after network outages.

[0019] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description

[0020] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are shown as similar elements. The drawings are not to be scaled. And wherein: Figure 1 This is a schematic diagram of an edge computing-based ad hoc network control method provided in an embodiment of this disclosure; Figure 2 This is a schematic diagram of another edge computing-based ad hoc network control method provided in an embodiment of this disclosure; Figure 3 This is a schematic diagram of another edge computing-based ad hoc network control method provided in an embodiment of this disclosure; Figure 4 This is a schematic diagram of another edge computing-based ad hoc network control method provided in an embodiment of this disclosure; Figure 5 This is a schematic diagram of another edge computing-based ad hoc network control method provided in an embodiment of this disclosure; Figure 6 This is a schematic diagram of another edge computing-based ad hoc network control method provided in an embodiment of this disclosure; Figure 7 This is an application illustration of an embodiment of the present disclosure; Figure 8 This is a schematic diagram of an edge computing-based self-organizing network control device provided in an embodiment of this disclosure. Detailed Implementation

[0021] To provide a more detailed understanding of the features and technical content of the embodiments of this disclosure, the implementation of the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this disclosure. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.

[0022] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.

[0023] Unless otherwise stated, the term "multiple" means two or more.

[0024] The term "correspondence" can refer to an association or binding relationship. The correspondence between A and B means that there is an association or binding relationship between A and B.

[0025] In this embodiment of the disclosure, smart home appliances refer to home appliances formed by introducing microprocessors, sensor technology and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent sensing and intelligent application. The operation of smart home appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet and electronic chips. For example, smart home appliances can be connected to electronic devices to enable users to remotely control and manage smart home appliances.

[0026] In the disclosed embodiments, the terminal device refers to an electronic device with wireless connectivity. The terminal device can communicate with the aforementioned smart home appliances by connecting to the Internet, or it can directly communicate with the aforementioned smart home appliances via Bluetooth, Wi-Fi (Wireless Fidelity), or other methods. In some embodiments, the terminal device may include, for example, a mobile phone, smart home devices, wearable devices, smart mobile devices, or any combination thereof. Smart home devices may include, for example, smart speakers, air conditioners, and lighting equipment, while wearable devices may include, for example, smartwatches, smart bracelets, and pedometers.

[0027] In the disclosed embodiments, the protocol conversion engine refers to a middleware module capable of parsing and forwarding proprietary control commands from different brands of terminal devices, supporting IoT wireless communication protocols. These IoT wireless communication protocols include Wi-Fi, Bluetooth, Zigbee, and Matter. Matter is a standardized smart home communication protocol released by the CSA (Connectivity Standards Alliance). The essence of the protocol conversion engine is to translate high-level and abstract general commands into low-level and specific proprietary commands. These proprietary commands are in binary or text control code format.

[0028] Temporary service deployment units refer to lightweight service instances launched by edge nodes, used to provide device discovery, status synchronization, and command distribution.

[0029] State memory refers to a non-volatile storage module deployed locally on a terminal device, used to periodically save the terminal device's operating state and user preference configuration parameters to maintain context consistency when the gateway communication link is disconnected.

[0030] The protocol conversion engine stores an instruction mapping table, which contains a one-to-one mapping between general semantic instructions and the private protocol messages of different brand terminal devices. The protocol conversion engine is used to convert semantic control instructions into the private instructions of the corresponding brand terminal device.

[0031] The communication module is used to monitor the connection status of the gateway communication link and supports switching between multiple communication protocols such as Wi-Fi, Bluetooth, and NearLink.

[0032] Edge nodes refer to terminal devices with independent computing and communication capabilities. These terminal devices include the aforementioned temporary service deployment unit, state storage, protocol conversion engine, and communication module.

[0033] NearLink is a new generation of short-range wireless communication technology launched in China. It features ultra-low latency (less than 10ms), high reliability, and high concurrency connection capabilities, making it suitable for local direct connection and collaborative control between smart home devices.

[0034] Mesh flood broadcast messages are broadcast messages used for interaction between terminal devices during self-organizing networks. After a terminal device receives the flood broadcast message, neighboring nodes relay and forward it, thus spreading the network election to other online terminal devices.

[0035] This disclosure provides an edge computing-based self-organizing network control system, including edge nodes and a main control gateway. The number of edge nodes may be multiple. The edge nodes are communicatively connected to the main control gateway.

[0036] Based on the aforementioned edge computing-based self-organizing network control system, combined with Figure 1 As shown, this disclosure provides a self-organizing network control method based on edge computing, including: S01, when the gateway communication link is disconnected, the terminal device sends a broadcast message to request network election. The gateway communication link is the communication link between this device and the main control gateway.

[0037] In this step, the gateway communication link is determined to be disconnected as follows: if no acknowledgment signal is received within a set time period, the terminal device determines that the gateway communication link is disconnected. The set time period, such as 5 seconds or 7 seconds, can also be flexibly set according to actual application requirements.

[0038] S02, if this device is elected as the temporary master controller, the terminal device starts the temporary service deployment unit and sends a broadcast service message for networking.

[0039] S03, the terminal device receives local device information and local status snapshot sent by other terminal devices, updates the global device list and global status snapshot, and sends them to the terminal devices accessing the temporary network.

[0040] S04, the terminal device generates a private instruction based on the semantic control instruction sent by the user and sends it to the corresponding target terminal device.

[0041] The edge computing-based self-organizing network control method provided in this disclosure constructs an automatic switching mechanism for edge computing when the network is down, through a network election and temporary master control deployment process. When the communication link between the device and the master control network is lost, the terminal device sends a broadcast message to participate in the election for temporary master control. Once the terminal device is elected as the temporary master control, a temporary service deployment unit is activated and a broadcast service message is sent, enabling other terminal devices to access the temporary network based on the broadcast service message. This approach eliminates the dependence on a single central control node in traditional solutions, avoids the risk of single-point failure, and improves the system's self-organizing network capability under network downtime conditions.

[0042] The terminal device also receives local device information and local state snapshots sent by other terminal devices, and updates the global device list and global state snapshot accordingly, sending them to the terminal devices accessing the temporary network. This embodiment employs a device state synchronization mechanism to improve the management and control capabilities of distributed networks. By updating network-wide device information and state snapshots, it effectively overcomes the shortcomings of traditional network state synchronization and chaotic control logic, ensuring the continuity of device operating logic before and after network outages. Simultaneously, the terminal device issues private instructions to the corresponding target terminal device according to semantic control instructions, achieving unified management and control of terminal devices.

[0043] In summary, the embodiments of this disclosure, through a closed-loop control process for edge self-organizing networks, can maintain basic service capabilities even after disconnecting from the gateway communication link, thus improving the system's self-organizing network capability under network outage conditions. Simultaneously, it ensures the continuity and stability of device operating logic before and after network outages.

[0044] Optionally, the broadcast message is a Mesh flood broadcast message and includes the device's identity information and protocol version, device service capabilities, and the number of broadcast messages received. Combined with... Figure 2 As shown, this device was elected as the temporary master controller, including: S11, receive broadcast messages sent by other terminal devices.

[0045] S12, extract the number of received broadcast messages and device service capabilities from the broadcast messages sent by other terminal devices. Among them, device service capabilities include one or more of the following: CPU (Central Processing Unit) load, remaining memory capacity, and local computing power limit threshold.

[0046] In this step, the terminal device includes a request counter and a neighbor status table. The request counter stores the number of broadcast messages received within a set time window. The neighbor status table stores the device service capabilities of other terminal devices. The set time window can be flexibly configured according to actual application needs. By configuring the request counter, the number of received broadcast messages can be determined; by configuring the neighbor status table, the device service capabilities of other terminal devices can be obtained, thus revealing the resource status of each device in the temporary network.

[0047] S13. Based on the number of broadcast messages received by other terminal devices and their service capabilities, as well as the number of broadcast messages received by this device and its service capabilities, determine the devices to be selected.

[0048] S14 elects the device to be nominated as the temporary master controller.

[0049] Thus, this embodiment of the present disclosure utilizes Mesh flooding to transmit election parameters. During the election of a temporary master controller, the message reception status of each terminal and the service capabilities of the devices are comprehensively evaluated. The edge computing power level of terminal devices is assessed based on CPU load, remaining memory capacity, and local computing power limit thresholds. This allows for the selection of terminal devices with more suitable resource conditions to undertake temporary management tasks, preventing weak computing power nodes from taking over the master controller and causing service anomalies. By leveraging the Mesh flooding mechanism to achieve full network dissemination of election information, a sufficient number of terminal devices participate in the election evaluation, effectively improving the scientific rigor of the temporary master controller election and enhancing the operational stability of the self-organizing network system after network outages.

[0050] It should be noted that the specific execution process of this device being elected as the temporary master is based on a distributed consensus algorithm. All terminal devices reach the same conclusion through their respective maintained request counters and neighbor state tables, that is, a temporary master is elected.

[0051] Optionally, the terminal device determines the candidate devices based on the number of broadcast messages received by other terminal devices and their service capabilities, as well as the number of broadcast messages received by the terminal device and its own service capabilities, including: The terminal device performs weighted processing on the number of broadcast messages received by each other terminal device and the device service capability according to preset weights to obtain a comprehensive score for the corresponding terminal device.

[0052] The terminal device performs weighted processing on the number of broadcast messages it has received and its service capabilities according to preset weights to obtain a comprehensive score for the device.

[0053] The terminal device with the highest overall score was selected as the candidate device.

[0054] In this way, a comprehensive score is obtained by weighting the number of broadcast messages received by each terminal and the device's service capabilities, and then selecting the terminal device with the highest score as the candidate device. This quantitative scoring method can standardize the comparison of election indicators, taking into account both the node's network connectivity and hardware computing power conditions, and avoiding the one-sidedness caused by election based on a single hardware performance indicator. Relying on the quantitative scoring mechanism makes the election rules for temporary master controllers clear and the judgment logic consistent, improves the fairness of the election, ensures that nodes with sufficient computing power resources and good network interaction status become temporary masters, reduces the probability of subsequent operational lag and service deployment failures in the ad hoc network, and improves the stability of the ad hoc network management and control architecture.

[0055] In some optional embodiments, the preset weights include a first weighting coefficient. Second weighting coefficient .in, The terminal device performs weighted processing on the number of broadcast messages received by each other terminal device and the device's service capabilities according to preset weights to obtain a comprehensive score for the corresponding terminal device, including: .in, For the first The number of broadcast messages received by each terminal device. For the first The device service capabilities of each terminal device. For the first The overall score of each terminal device For 1, 2, ... , This represents the total number of other terminal devices.

[0056] The terminal device performs a weighted calculation based on a preset weight, considering both the number of broadcast messages it has received and its service capabilities, to obtain a comprehensive score for the device, including: .in, This represents the number of broadcast messages received by this device. To provide equipment service capabilities for this equipment. This is the overall score for this equipment.

[0057] like If the highest score is obtained from all the comprehensive evaluations, then this device will be selected as the candidate device.

[0058] If the first If the overall score of a terminal device is the highest among all overall scores, then the [number]th terminal device is selected. One terminal device is a candidate for selection. Among them, For 1, 2, ... .

[0059] Optionally, the broadcast service message includes transport layer network addressing information and application layer logical identifier.

[0060] Transport layer network addressing information includes the local IP (Internet Protocol) address and listening port, or the physical MAC (Media Access Control) address. This provides the necessary routing parameters for establishing underlying socket connections or data link layer connections.

[0061] Application-layer logical identifiers include specific service identifiers, which are service UUIDs (Universally Unique Identifiers) conforming to the mDNS (Multicast Domain Name System) / DNS-SD (DNS Service Discovery) specifications, or combinations of ServiceIDs and InstanceIDs (Instance Identifiers) following SOME / IP (Scalable service-Oriented Middleware over IP) and CoAP (Constrained Application Protocol). In this way, by replacing centralized domain names and service scheduling with mDNS / DNS-SD, autonomous broadcasting by terminal devices, mutual device discovery, and automatic network configuration are achieved, adapting to the self-organizing network architecture of edge computing. Through the ServiceID and InstanceID combinations conforming to the SOME / IP and CoAP IoT protocols, SOME / IP is responsible for the temporary master control network service publication and command transmission management, ensuring the stable deployment and cross-terminal management of temporary network services, while CoAP is responsible for synchronizing the global device list and global status snapshots of terminal devices.

[0062] Optionally, the broadcast service message may also include access credentials and security tokens, service lifetime, and the communication protocol stack supported by the device.

[0063] Access credentials and security brands include cryptographic signatures, session keys, or quad tokens.

[0064] The service lifetime is the effective duration of the temporary master.

[0065] The communication protocol stack supported by this device is the one supported when acting as a temporary master controller. For example, the communication protocol stack supported by this device is NearLink Direct, BLE Mesh (Bluetooth Low Energy Mesh), or standard Wi-Fi.

[0066] Therefore, by configuring access credentials and security tokens, malicious nodes in a decentralized environment can be prevented from impersonating temporary controllers. By configuring service lifetime, the election of temporary controllers can be kept from taking too long. By configuring the communication protocol stacks supported by this device, different types of terminal devices can easily select the appropriate communication protocol for handshaking.

[0067] Optionally, the broadcast service message may also include device service capabilities. This allows other terminal devices to determine that the device possesses temporary master control capabilities, enhancing the trust level of the temporary network.

[0068] Combination Figure 3 As shown in the embodiments of this disclosure, a self-organizing network control method based on edge computing is also provided, including: S21, if the gateway communication link is disconnected, the terminal device switches to the NearLink channel and sends a broadcast message to request network election. The broadcast message is a Mesh flooding broadcast message, the destination address of the Mesh flooding broadcast message is the Mesh flooding address, and the gateway communication link is the communication link between this device and the main control gateway.

[0069] S22, if this device is elected as the temporary master, the terminal device starts the temporary service deployment unit and sends a broadcast service message for networking.

[0070] S23, the terminal device receives local device information and local status snapshot sent by other terminal devices, updates the global device list and global status snapshot, and sends them to the terminal devices accessing the temporary network.

[0071] S24, the terminal device generates a private instruction based on the semantic control instruction sent by the user and sends it to the corresponding target terminal device.

[0072] The edge computing-based self-organizing network control method provided in this disclosure, when the gateway communication link is disconnected, prioritizes switching to the NearLink channel and initiates a network election using a Mesh flooding broadcast message with the Mesh flooding address as the destination address. Leveraging the low latency and high reliability of the NearLink channel, combined with the multi-hop relay capability of the Mesh flooding broadcast, the election message is ensured to spread throughout the network. Simultaneously, an automatic switching mechanism for edge computing network outages is constructed through the network outage election and temporary master control deployment process. When the communication link between the device and the master control gateway is disconnected, the terminal device sends a broadcast message to participate in the temporary master control election. When the terminal device is elected as the temporary master, a temporary service deployment unit is activated and a broadcast service message is sent, enabling other terminal devices to access the temporary network based on the broadcast service message. This approach eliminates the dependence on a single central control node in traditional solutions, avoids the risk of single-point failure, and improves the system's self-organizing network capability under network outage conditions.

[0073] The terminal device also receives local device information and local state snapshots sent by other terminal devices, and updates the global device list and global state snapshot accordingly, sending them to the terminal devices accessing the temporary network. This embodiment of the disclosure employs a device state synchronization mechanism to improve the management and control capabilities of distributed networks. By updating network-wide device information and state snapshots, it effectively overcomes the shortcomings of traditional network state synchronization and chaotic control logic, ensuring the continuity of device operating logic before and after network outages. Simultaneously, the terminal device issues private instructions to the corresponding target terminal device based on semantic control commands, achieving unified management and control of heterogeneous terminal devices through multi-protocol adaptation capabilities.

[0074] In summary, the embodiments of this disclosure, through the closed-loop control process of edge self-organizing network, and with the help of NearLink channel and Mesh flooding broadcast messages, ensure reliable and efficient node discovery and information interaction in network outage scenarios. Even after disconnecting from the gateway communication link, it can still maintain basic service capabilities, improve the system's self-organizing network capability under network outage conditions, and at the same time ensure the continuity of device operation logic and multi-device access compatibility before and after network outage.

[0075] Optionally, combined Figure 4 As shown, the terminal device generates private instructions based on the semantic control instructions sent by the user and sends them to the corresponding target terminal device, including: S31, the terminal device queries the instruction mapping table through the protocol conversion engine. This instruction mapping table stores a one-to-one mapping relationship between general semantic instructions and the private protocol messages of different brand terminal devices. These private protocol messages can be any one of the IoT wireless communication protocols.

[0076] In this step, different brand-name terminal devices are configured with different brand compatibility identifiers. As an example, different brand-name terminal devices have different brand compatibility identifiers, and one brand-name terminal device corresponds to one brand compatibility identifier.

[0077] The instruction mapping table stores the correspondence between general semantic instructions and different brand compatibility identifiers, as well as the one-to-one mapping relationship between private protocol messages of different brand compatibility identifiers. The terminal device queries the instruction mapping table through the protocol conversion engine, including: the terminal device queries the instruction mapping table through the protocol conversion engine to determine the target brand compatibility identifier corresponding to the general semantic control instruction, and determines the private protocol message corresponding to the target brand compatibility identifier.

[0078] S32, the terminal device matches the target private protocol message corresponding to the semantic control instruction according to the instruction mapping table.

[0079] In this step, the terminal device matches the target private protocol message corresponding to the semantic control instruction according to the instruction mapping table, including: the terminal device determines the private protocol message corresponding to the target brand compatibility identifier as the target private protocol message corresponding to the semantic control instruction.

[0080] S33, the terminal device generates a private instruction based on the target private protocol message and determines the corresponding target terminal device.

[0081] S34, the terminal device sends a private command to the corresponding target terminal device through the NearLink channel.

[0082] In this way, the embodiments of this disclosure query a pre-built instruction mapping table through a protocol conversion engine. Based on the standardized mapping relationship between the general semantic instructions stored in the instruction mapping table and the private protocol messages of different brand terminal devices, the target private protocol message corresponding to the semantic control instruction is accurately matched and a unique private instruction is generated. This achieves unified parsing, adaptation, and conversion of private instructions for heterogeneous terminal devices of different brands and protocols, solving the shortcomings of traditional networking solutions that rely on a single protocol and only support access from devices of the same brand. Simultaneously, the embodiments of this disclosure complete the targeted distribution of private instructions through the NearLink channel. Relying on the high reliability and low latency transmission advantages of the NearLink channel, it ensures that cross-protocol control instructions are delivered to the target terminal device efficiently and stably, significantly improving the device compatibility of the self-organizing network system and the unified management and control capabilities of heterogeneous terminal devices.

[0083] Furthermore, since semantic control commands do not need to travel to and from the cloud, the local communication path combined with NearLink technology can compress the average response time to less than 0.2 seconds, which is more than 80% shorter than the 1.2-second delay of cloud processing, meeting the needs of real-time interaction.

[0084] Combination Figure 5As shown in the embodiments of this disclosure, a self-organizing network control method based on edge computing is also provided, including: S41, In the event that the gateway communication link is disconnected, the terminal device sends a broadcast message to request a network election. The gateway communication link is the communication link between this device and the main control gateway.

[0085] S42, when this device is elected as the temporary master, the terminal device starts the temporary service deployment unit and sends a broadcast service message for networking.

[0086] S43, the terminal device receives local device information and local status snapshot sent by other terminal devices, updates the global device list and global status snapshot, and sends them to the terminal devices accessing the temporary network.

[0087] S44, the terminal device generates a private instruction based on the semantic control instruction sent by the user and sends it to the corresponding target terminal device.

[0088] S45, the terminal device acquires the updated local state snapshot sent by the target terminal device. The updated local state snapshot is generated by the target terminal device when it executes a corresponding operation according to a private instruction.

[0089] S46, the terminal device updates the global state snapshot again based on the updated local state snapshot.

[0090] The edge computing-based ad hoc network control method provided in this disclosure acquires the updated local state snapshot generated and sent by the target terminal device when executing corresponding operations according to private instructions, and synchronously completes the iterative update of the global state snapshot. This achieves real-time and accurate synchronization of the status of all terminal devices in the network, solving the problems of device status lag after gateway disconnection, untraceable instruction execution status, and inconsistent status of multiple devices in traditional systems. This local state synchronization closed-loop mechanism does not rely on the communication link between the main control gateway and the cloud. It can independently complete instruction execution, status feedback, and global status updates within the edge ad hoc network, ensuring the continuous availability of basic functions of critical terminal devices. This significantly improves the autonomous management capability and network-wide status consistency of the ad hoc network system in network outage emergency scenarios, and significantly enhances the fault tolerance, stability, and scenario adaptability of the edge ad hoc network architecture, meeting the business needs of autonomous collaborative control and continuous operation of devices in gateway-less communication scenarios.

[0091] It should be noted that in the above-disclosed embodiments, the terminal device refers to the device that is elected as the temporary master in the network election, and other terminal devices refer to the devices that are not elected as the temporary master in the network election.

[0092] In the following disclosed embodiments, the terminal device refers to other terminal devices that were not elected as temporary master devices in the network election.

[0093] Combination Figure 6 As shown in the embodiments of this disclosure, a self-organizing network control method based on edge computing is also provided, including: S51, when the gateway communication link is disconnected, the terminal device sends a broadcast message to request a network election. The gateway communication link is the communication link between this device and the main control gateway.

[0094] S52, the terminal device receives a broadcast service message for networking sent by the temporary master controller.

[0095] In this step, the terminal device receives a broadcast service message for networking sent by the temporary master controller, including: when the terminal device is elected as the temporary master controller, the terminal device receives a broadcast service message for networking sent by the temporary master controller.

[0096] S53, the terminal device configures the network and accesses the temporary network based on the broadcast service message.

[0097] S54: After accessing the temporary network, the terminal device sends local device information and a local status snapshot to the temporary master controller.

[0098] In this step, the local device information includes device identity information, communication protocol configuration information, hardware resource information, and brand compatibility identifier. Specifically, device identity information includes device type or device UDID (Unique Device Identifier); hardware resource information includes CPU load or remaining memory capacity; communication protocol configuration information includes the communication protocol version and the set of instructions supported by that version; and the brand compatibility identifier is used by the protocol conversion engine to query private protocol messages.

[0099] The local status snapshot includes real-time operating parameters and user preference configuration parameters. When the terminal device is a lighting device, real-time operating parameters include, for example, real-time on / off status, brightness value, and color mode. When the terminal device is an air conditioner, real-time operating parameters include, for example, temperature setpoint, current temperature and humidity, and current fan speed. User preference configuration parameters refer to custom scene modes. For example, when the terminal device is an air conditioner, user preference configuration parameters include those for a sleep scene, a movie-watching scene, or a reading scene. Understandably, user preference configuration parameters can be flexibly set according to the actual scenario.

[0100] S55: The terminal device receives the global device list and global status snapshot issued by the temporary master controller and stores them in the local status memory.

[0101] In this step, the broadcast service message also includes version information. The version information indicates either the version number of the global device list and the global state snapshot, or a hash digest of the global device list and the global state snapshot.

[0102] The terminal device receives the global device list and global status snapshot issued by the temporary master controller and stores them in the local status memory. This includes: the terminal device receiving the global device list and global status snapshot issued by the temporary master controller while receiving version information; the terminal device comparing the current version information in the local status memory; if the current version information is the same as the version information, no operation is performed; if the current version information is different from the version information, the global device list and global status snapshot are downloaded to the local status memory in full or incrementally.

[0103] The edge computing-based self-organizing network control method provided in this disclosure initiates a network election broadcast message when the communication link between the terminal device and the main control gateway is disconnected, triggering the autonomous network election of edge nodes. Compared to the traditional centralized gateway model, this method can initiate network election when the central link fails, providing triggering conditions for subsequent temporary master control elections and breaking the constraints of a single central node. The terminal device receives the network broadcast message issued by the temporary master control and completes network configuration based on the message, then accesses the temporary network. This process enables rapid self-organizing network in self-disconnection scenarios through edge distributed nodes, without cloud-based scheduling, thus improving the system's self-organizing network capability under network outage conditions.

[0104] After connecting to the temporary network, the terminal device sends local device information and a local status snapshot to the temporary master controller, enabling proactive reporting of device information and status. It also receives and stores the global device list and global status snapshot issued by the temporary master controller, achieving global synchronization of the device list and status snapshots. This effectively overcomes the shortcomings of traditional network status synchronization and chaotic control logic, ensuring the continuity of device operation logic before and after network outages. Simultaneously, the terminal device issues private commands to the corresponding target terminal device based on semantic control instructions, achieving unified management and control of the terminal devices.

[0105] Optionally, the edge computing-based ad hoc network control method further includes: After the terminal device sends local device information and local state snapshot to the temporary master controller, it receives private instructions issued by the temporary master controller, performs corresponding operations according to the private instructions, and generates and updates the local state snapshot.

[0106] The terminal device sends an updated local state snapshot to the temporary master controller.

[0107] In this step, the terminal device sends an updated local state snapshot to the temporary master controller, including: the terminal device downloads the local state snapshot to the temporary master controller in periodic threshold increments.

[0108] In this way, after the terminal device sends local device information and local state snapshot to the temporary master controller, it receives private instructions issued by the temporary master controller, performs corresponding operations according to the private instructions, generates and updates the local state snapshot, and sends the updated local state snapshot to the temporary master controller, thereby realizing global synchronization of local state snapshots. This effectively overcomes the defects of traditional network state synchronization and chaotic control logic, and ensures the continuity of device operation logic before and after network outage.

[0109] In practical applications, such as Figure 7 As shown, N is the serial number of the terminal device, and N is greater than or equal to 3.

[0110] The self-organizing network control method based on edge computing specifically implements the following steps: S101, each terminal device sends a broadcast message when the gateway communication link is disconnected.

[0111] S102, Terminal device 2# is elected as the temporary master controller, starts the temporary service deployment unit, and sends a broadcast service message.

[0112] S103, Terminal device 1# receives broadcast service messages, performs network configuration, and connects to the temporary network.

[0113] S104, Terminal device 1# sends local device information and local status snapshot to the temporary master controller.

[0114] S105, Terminal device 2# updates the global device list and global status snapshot based on the local device information and local status snapshot sent by other terminals.

[0115] S106, Terminal device 2# sends a global device list and a global status snapshot to other terminal devices.

[0116] S107, Terminal device 1# stores the global device list and global state snapshot to the local state memory.

[0117] S108, the user sends semantic control instructions to the temporary master controller.

[0118] S109, Terminal device 2# generates private instructions based on semantic control instructions.

[0119] S110, Terminal device 2# sends a private instruction to the target terminal device (i.e., terminal device N#).

[0120] S111, Terminal device N# executes the corresponding operation according to the private instruction and generates an updated local state snapshot.

[0121] S112, Terminal device N# sends an updated local state snapshot to terminal device 2#.

[0122] Combination Figure 8As shown, this disclosure provides an edge computing-based ad hoc network control device 70, including a processor 700 and a memory 701. Optionally, the device 70 may further include a communication interface 702 and a bus 703. The processor 700, communication interface 702, and memory 701 can communicate with each other via the bus 703. The communication interface 702 can be used for information transmission. The processor 700 can call logical instructions in the memory 701 to execute the edge computing-based ad hoc network control method of the above embodiment.

[0123] Furthermore, the logic instructions in the aforementioned memory 101 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0124] The memory 101, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 100 executes functional applications and data processing by running the program instructions / modules stored in the memory 101, thereby implementing the self-organizing network control method based on edge computing in the above embodiments.

[0125] The memory 101 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 101 may include high-speed random access memory and may also include non-volatile memory.

[0126] This disclosure provides a terminal device, including a terminal device body and the aforementioned edge computing-based self-organizing network control device 70. The edge computing-based self-organizing network control device 70 is installed on the terminal device body. The installation relationship described herein is not limited to placement within the terminal device body, but also includes installation connections with other components of the terminal device, including but not limited to physical connections, electrical connections, or signal transmission connections. Those skilled in the art will understand that the edge computing-based self-organizing network control device 70 can be adapted to feasible terminal device bodies to achieve other feasible embodiments.

[0127] This disclosure provides a computer-readable storage medium storing computer-executable instructions configured to execute the aforementioned edge computing-based ad hoc network control method.

[0128] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc., and other media capable of storing program code.

[0129] The foregoing description and accompanying drawings fully illustrate embodiments of this disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or” as used in this application means including one or more of the associated listed items and all possible combinations thereof. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.

[0130] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0131] The methods and products disclosed in the embodiments herein (including but not limited to devices and equipment) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to implement this embodiment according to actual needs. In addition, the functional units in the embodiments of this disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0132] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

Claims

1. A self-organizing network control method based on edge computing, characterized in that, include: If the gateway communication link is disconnected, a broadcast message is sent to request a network election; the gateway communication link is the communication link between this device and the main control gateway. If this device is elected as the temporary master controller, the temporary service deployment unit is started and a broadcast service message for networking is sent; Receive local device information and local status snapshots sent by other terminal devices, update the global device list and global status snapshots, and send them to the terminal devices accessing the temporary network; Based on the semantic control commands sent by the user, a private command is generated and sent to the corresponding target terminal device.

2. The self-organizing network control method according to claim 1, characterized in that, The broadcast message is a Mesh flood broadcast message and includes the device's identity information and protocol version, device service capabilities, and the number of broadcast messages received; this device has been elected as the interim master, including: Receive broadcast messages sent by other terminal devices; Extract the number of received broadcast messages and device service capabilities from broadcast messages sent by other terminal devices; wherein, device service capabilities include one or more of the following: CPU load, remaining memory capacity, and local computing power limit threshold; The devices to be selected are determined based on the number of broadcast messages received by other terminal devices and their service capabilities, as well as the number of broadcast messages received by this device and its service capabilities. The equipment to be elected will be temporarily in control.

3. The self-organizing network control method according to claim 2, characterized in that, Based on the number of broadcast messages received by other terminal devices and their service capabilities, as well as the number of broadcast messages received by this device and its service capabilities, the devices to be nominated for competition are determined, including: The number of broadcast messages received by each other terminal device and the device's service capabilities are weighted according to preset weights to obtain a comprehensive score for the corresponding terminal device. The device's overall score is obtained by weighting the number of broadcast messages it has received and its service capabilities according to preset weights. The terminal device with the highest overall score was selected as the candidate device.

4. The self-organizing network control method according to claim 1, characterized in that, Broadcast messages are Mesh flooded broadcast messages; methods also include: After the gateway communication link is disconnected, the system switches to the StarFlash NearLink channel; the destination address of the Mesh flood broadcast message is the Mesh flood address, so as to send the broadcast message through the NearLink channel.

5. The self-organizing network control method according to claim 4, characterized in that, Based on the semantic control commands sent by the user, generate private commands and send them to the corresponding target terminal device, including: The instruction mapping table is queried through the protocol conversion engine; the instruction mapping table stores the one-to-one mapping relationship between general semantic instructions and private protocol messages of different brand terminal devices; Match the target private protocol message corresponding to the semantic control instruction according to the instruction mapping table; Generate private instructions based on the target private protocol message and determine the corresponding target terminal device; Private commands are sent to the corresponding target terminal device via the NearLink channel.

6. The self-organizing network control method according to any one of claims 1 to 5, characterized in that, Also includes: Based on the semantic control instructions sent by the user, a private instruction is generated and sent to the corresponding target terminal device. Then, an updated local state snapshot sent by the target terminal device is obtained. The updated local state snapshot is generated by the target terminal device when it performs the corresponding operation according to the private instruction. Update the global state snapshot again based on the updated local state snapshot.

7. A self-organizing network control method based on edge computing, characterized in that, include: If the gateway communication link is disconnected, a broadcast message is sent to request a network election; the gateway communication link is the communication link between this device and the main control gateway. Receive broadcast service messages for networking sent by the temporary master controller; Configure the network and connect to the temporary network according to the broadcast service message; After accessing the temporary network, send local device information and local status snapshots to the temporary master controller; Receive the global device list and global status snapshot issued by the temporary master controller and store them in the local status memory.

8. The self-organizing network control method according to claim 7, characterized in that, Also includes: After sending local device information and local status snapshot to the temporary master controller, it receives private instructions issued by the temporary master controller, performs corresponding operations according to the private instructions, and generates and updates the local status snapshot; Send an updated local state snapshot to the temporary master.

9. A self-organizing network control device based on edge computing, comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to execute the edge computing-based ad hoc network control method as described in any one of claims 1 to 8 when running the program instructions.

10. A terminal device, characterized in that, include: Terminal device body; The self-organizing network control device based on edge computing as described in claim 9 is installed on the terminal device body.