Intelligent gateway equipment interconnection method and system based on Bluetooth ad hoc network protocol

Through the intelligent gateway device interconnection method of ad hoc network protocol, the problem of insufficient communication and processing capabilities of Bluetooth Mesh gateways in large-scale deployment or complex environments is solved, and efficient interconnection between gateways and system efficiency is improved.

CN119946598AActive Publication Date: 2025-05-06SHENZHEN HUATENG INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202510405713.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-02
Publication Date
2025-05-06
Estimated Expiration
2045-04-02

AI Technical Summary

Technical Problem

In large-scale deployment or complex environments, the communication range and processing capabilities of a single Bluetooth Mesh gateway are limited, and it is difficult to communicate directly between gateways of different manufacturers. There is a lack of data exchange protocols between the gateways, and efficient interconnection cannot be achieved.

Method used

It provides an intelligent gateway device interconnection method of Bluetooth ad hoc networking protocol. Through adaptive detection of available nodes, real-time acquisition of network topology information, sharing and updating neighbor node lists, dynamically adjusting connection priority and transmission power, priority execution of critical control tasks locally, and coordinated processing of critical control tasks.

Benefits of technology

It realizes efficient interconnection between different gateways, ensures communication stability and load balancing, avoids network bottlenecks, improves overall system efficiency, and improves response speed and processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946598A_ABST
    Figure CN119946598A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent gateway equipment interconnection method and system based on a Bluetooth ad hoc network protocol, and is applied to the field of communication data processing. Through adaptive node management, real-time updating of a network topology structure and optimization of a connection priority, communication stability and load balance are ensured, generation of a network bottleneck is avoided, data can be uniformly distributed among a plurality of intelligent gateways through intelligent data flow distribution, overload of a part of gateways is avoided, the overall system efficiency is improved, and the system performance is improved. And local execution of edge computing optimizes the response speed and reduces delay, and key control tasks such as equipment linkage, data distribution and abnormal response are cooperatively processed through a distributed computing architecture, so that the flexibility and the processing capability of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication data processing, and in particular to a method and system for interconnecting intelligent gateway devices of a Bluetooth self-organizing network protocol. Background Art

[0002] In a typical Bluetooth Mesh network architecture, the smart gateway, as the core device, undertakes important functions such as data collection, forwarding and management. It is also responsible for interconnecting the Bluetooth Mesh network with external networks (such as Wi-Fi, Ethernet, and cellular networks) to achieve remote control and data processing.

[0003] However, in large-scale deployments or complex environments, the communication range and processing capabilities of a single Bluetooth Mesh gateway are limited. Since Bluetooth Mesh gateways are usually designed by different manufacturers, each using different device discovery mechanisms, data formats, and communication protocols, it is difficult for multiple gateways to communicate directly. There is a lack of data exchange protocols across gateways, and efficient interconnection between different gateways cannot be achieved. Summary of the invention

[0004] The present invention aims to solve the problem of how to achieve efficient interconnection between different gateways, and provides a method and system for interconnecting intelligent gateway devices of Bluetooth ad hoc network protocol.

[0005] The present invention adopts the following technical means to solve the technical problem: The present invention provides a method for interconnecting smart gateway devices of a Bluetooth self-organizing network protocol, comprising: Based on the pre-built Bluetooth Mesh network, after the Bluetooth Mesh network is interconnected with the smart gateway, the communication efficiency of the Bluetooth Mesh network in different communication scenarios is tested; Determining whether the communication efficiency can meet the preset communication requirements; If not, then within the preset range of the Bluetooth Mesh network, adaptively detect the available nodes within the preset range, obtain the existing network topology information in real time according to the preset dynamic node registration mechanism, share and update the neighbor node list of the Bluetooth Mesh network according to the network topology information, dynamically adjust the connection priority of the Bluetooth Mesh network, and monitor the data traffic of the Bluetooth Mesh network; Determine whether the data traffic can be evenly distributed among multiple intelligent gateways; If it cannot be evenly distributed, the physical distance between the Bluetooth Mesh network and the preset obstacle is detected, and the transmission power of the Bluetooth Mesh network is dynamically adjusted based on the physical distance. According to the edge computing terminal pre-integrated in the Bluetooth Mesh network, the preset key control tasks are preferentially executed locally, and the key control tasks are collaboratively processed according to the preset distributed computing architecture of the Bluetooth Mesh network. The key control tasks specifically include rapid linkage control between devices, distribution and processing of device data, and abnormal response to device status.

[0006] Furthermore, the step of acquiring the existing network topology information in real time according to the preset dynamic node registration mechanism, and sharing and updating the neighbor node list of the Bluetooth Mesh network according to the network topology information, further includes: Based on the preset BLE broadcast, scan and obtain the connectable Mesh devices within the preset range, and detect the connection stability of the connectable Mesh devices according to the preset link quality indicators of the Bluetooth Mesh network, wherein the link quality indicators specifically include data packet reception rate, routing hop count and delay; Determine whether the connection stability can meet the preset connection requirements of the Bluetooth Mesh network; If not, activate the incremental synchronization mechanism preset in the Bluetooth Mesh network, transmit only the changed data to the connectable Mesh device, verify the online status of the connectable Mesh device through the heartbeat packet preset in the Bluetooth Mesh network, dynamically remove the connectable Mesh device from the neighbor node list based on the online status, and recalculate the optimal route of the Bluetooth Mesh network.

[0007] Furthermore, before the step of dynamically adjusting the connection priority of the Bluetooth Mesh network and monitoring the data traffic of the Bluetooth Mesh network, the step further includes: Based on the initial connection weights pre-allocated by the Bluetooth Mesh network, dividing the connection structure of the Bluetooth Mesh network, wherein the connection structure specifically includes core nodes, edge nodes, and terminal nodes; Determining whether the connection structure matches the communication load of the Bluetooth Mesh network; If not, different data types of the Bluetooth Mesh network are collected, and the available paths preset in the neighbor node list are dynamically switched according to the communication load, wherein the different data types specifically include control instructions, sensor data, and audio and video streams, and the available paths specifically include a main path and a backup path.

[0008] Furthermore, the step of preferentially executing preset key control tasks locally according to the edge computing terminal pre-integrated in the Bluetooth Mesh network also includes: Based on the Bluetooth Mesh network, sharing the task status of the key control task between various intelligent gateways, and obtaining the gateway load when the Bluetooth Mesh network executes the key control task; Determining whether the gateway load exceeds a preset load threshold; If so, according to the task size of the key control task, the preset task slicing mechanism is activated to split the key control task into a preset number of sub-tasks, and the sub-tasks are assigned to different smart gateways. According to the preset task execution order, unified scheduling is performed through the Bluetooth Mesh network to coordinate the resource sharing of the sub-tasks by each smart gateway.

[0009] Furthermore, the step of determining whether the communication efficiency can meet the preset communication requirement further includes: Based on the task content preset in the Bluetooth Mesh network, obtain the bandwidth size corresponding to the task content; Determining whether the bandwidth size exceeds the maximum carrying capacity of the current connection; If not, the real-time requirement of the task content is detected, the communication strategy of the Bluetooth Mesh network is dynamically optimized, and the data transmission efficiency under different network topologies is identified according to the preset network topology of the Bluetooth Mesh network, wherein the real-time requirement specifically includes voice, video streaming and real-time control, the communication strategy specifically includes adjusting the path, increasing bandwidth and priority scheduling, and the network topology specifically includes point-to-point, star and mesh.

[0010] Furthermore, the step of determining whether the data traffic can be evenly distributed among multiple intelligent gateways further includes: Based on the traffic demand of the Bluetooth Mesh network, obtain the bearer traffic of any connected smart gateway, wherein the traffic demand specifically includes task type, number of devices and data volume; Determining whether the traffic demand exceeds the carrying traffic; If so, identify the traffic congestion point of the Bluetooth Mesh network, detect the idle and available gateways of the Bluetooth Mesh network based on the traffic congestion point, and dynamically adjust the data flow distribution of the Bluetooth Mesh network based on the idle and available gateways.

[0011] Furthermore, the step of testing the communication efficiency of the Bluetooth Mesh network in different communication scenarios based on the pre-built Bluetooth Mesh network after the Bluetooth Mesh network is interconnected with the intelligent gateway further includes: Based on the communication efficiency index of the communication scenario, the transmission time of the preset device sent to the smart gateway through the Bluetooth Mesh network is tested, wherein the communication efficiency index specifically includes throughput, delay, packet loss rate and connection stability; Determine whether a preset delay is detected in the transmission duration, wherein the preset delay specifically includes a single-hop delay and a multi-hop delay; If yes, the response time of the intelligent gateway after receiving the device request is obtained, and the network response time difference of the Bluetooth Mesh network is generated in real time according to the response time.

[0012] The present invention also provides a smart gateway device interconnection system of Bluetooth ad hoc network protocol, comprising: A test module is used to test the communication efficiency of the Bluetooth Mesh network in different communication scenarios based on a pre-built Bluetooth Mesh network after the Bluetooth Mesh network is interconnected with a smart gateway; A determination module, used to determine whether the communication efficiency can meet the preset communication requirements; an execution module, configured to, if not, adaptively detect available nodes within a preset range of the Bluetooth Mesh network, obtain existing network topology information in real time according to a preset dynamic node registration mechanism, share and update a neighbor node list of the Bluetooth Mesh network according to the network topology information, dynamically adjust a connection priority of the Bluetooth Mesh network, and monitor data traffic of the Bluetooth Mesh network; A second judgment module is used to judge whether the data traffic can be evenly distributed among multiple intelligent gateways; The second execution module is used to detect the physical distance between the Bluetooth Mesh network and the preset obstacle if it cannot be evenly distributed, and dynamically adjust the transmission power of the Bluetooth Mesh network based on the physical distance. According to the edge computing terminal pre-integrated in the Bluetooth Mesh network, the preset key control tasks are preferentially executed locally, and the key control tasks are collaboratively processed according to the distributed computing architecture preset by the Bluetooth Mesh network, wherein the key control tasks specifically include rapid linkage control between devices, distribution processing of device data, and abnormal response to device status.

[0013] Furthermore, the execution module also includes: A detection unit, configured to scan and obtain connectable Mesh devices within the preset range based on a preset BLE broadcast, and detect the connection stability of the connectable Mesh devices according to a preset link quality indicator of the Bluetooth Mesh network, wherein the link quality indicator specifically includes a data packet reception rate, a routing hop count, and a delay; A determination unit, configured to determine whether the connection stability can meet a preset connection requirement of the Bluetooth Mesh network; The execution unit is used to activate the incremental synchronization mechanism preset in the Bluetooth Mesh network if not, transmit only the changed data to the connectable Mesh device, verify the online status of the connectable Mesh device through the heartbeat packet preset in the Bluetooth Mesh network, dynamically remove the connectable Mesh device from the neighbor node list based on the online status, and recalculate the optimal route of the Bluetooth Mesh network.

[0014] Furthermore, it also includes: A partitioning module, configured to partition a connection structure of the Bluetooth Mesh network based on an initial connection weight pre-allocated by the Bluetooth Mesh network, wherein the connection structure specifically includes core nodes, edge nodes, and terminal nodes; A third determination module is used to determine whether the connection structure matches the communication load of the Bluetooth Mesh network; The third execution module is used to collect different data types of the Bluetooth Mesh network, and dynamically switch the available paths preset in the neighbor node list according to the communication load, wherein the different data types specifically include control instructions, sensor data, and audio and video streams, and the available paths specifically include a main path and a backup path.

[0015] The present invention provides a method and system for interconnecting smart gateway devices of a Bluetooth self-organizing network protocol, which has the following beneficial effects: The present invention ensures communication stability and load balancing through adaptive node management, real-time updating of network topology, and optimization of connection priority, avoiding the generation of network bottlenecks. At the same time, through intelligent data traffic distribution, it can evenly distribute data among multiple intelligent gateways, avoid overloading of some gateways, and improve the overall system efficiency. The local execution of edge computing optimizes the response speed and reduces latency. Through the distributed computing architecture, key control tasks such as device linkage, data distribution, and exception response are collaboratively processed, thereby improving the flexibility and processing capabilities of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flow chart of an embodiment of a method for interconnecting smart gateway devices using a Bluetooth ad hoc network protocol according to the present invention; Figure 2 This is a structural block diagram of an embodiment of the intelligent gateway device interconnection system of the Bluetooth ad hoc network protocol of the present invention. DETAILED DESCRIPTION

[0017] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. The implementation of the objectives, functional features and advantages of the present invention will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] Reference Figure 1 , is a method for interconnecting smart gateway devices of a Bluetooth ad hoc network protocol in an embodiment of the present invention, comprising: S1: Based on a pre-built Bluetooth Mesh network, after the Bluetooth Mesh network is interconnected with a smart gateway, the communication efficiency of the Bluetooth Mesh network in different communication scenarios is tested; S2: Determine whether the communication efficiency can meet the preset communication requirements; S3: If not, then within the preset range of the Bluetooth Mesh network, adaptively detect the available nodes within the preset range, obtain the existing network topology information in real time according to the preset dynamic node registration mechanism, share and update the neighbor node list of the Bluetooth Mesh network according to the network topology information, dynamically adjust the connection priority of the Bluetooth Mesh network, and monitor the data traffic of the Bluetooth Mesh network; S4: Determine whether the data traffic can be evenly distributed among multiple intelligent gateways; S5: If it cannot be evenly distributed, the physical distance between the Bluetooth Mesh network and the preset obstacle is detected, and based on the physical distance, the transmission power of the Bluetooth Mesh network is dynamically adjusted. According to the edge computing terminal pre-integrated in the Bluetooth Mesh network, the preset key control tasks are preferentially executed locally, and according to the preset distributed computing architecture of the Bluetooth Mesh network, the key control tasks are collaboratively processed, wherein the key control tasks specifically include rapid linkage control between devices, distribution and processing of device data, and abnormal response to device status.

[0020] In this embodiment, the system is based on a pre-built Bluetooth Mesh network. After the Bluetooth Mesh network is interconnected with the intelligent gateway, the communication efficiency of the Bluetooth Mesh network in different communication scenarios is tested, and then the system determines whether the communication efficiency can meet the preset communication requirements to execute the corresponding steps; for example, when the system determines that the communication efficiency of the Bluetooth Mesh network in different communication scenarios can meet the preset communication requirements, the system will consider that the current network topology, data transmission performance, and connection stability between gateways are in line with expectations, and no additional optimization adjustment is required. The system will maintain the existing connection priority, data traffic allocation, and network topology to ensure that the system operates normally in a stable state. At the same time, the current network environment and communication efficiency are used as a reference baseline for subsequent anomaly detection and optimization comparison. Based on the edge computing architecture, computing resources are reasonably allocated. Source, prioritize processing key control tasks locally, reduce unnecessary cloud communication burden, and if subsequent monitoring finds that communication efficiency has decreased or load is unbalanced, trigger a dynamic adjustment mechanism to optimize network connection and data transmission strategy; for example, when the system determines that the communication efficiency of the Bluetooth Mesh network in different communication scenarios cannot meet the pre-set communication requirements, the system will consider that the current network topology, data transmission performance and connection stability between gateways do not meet expectations. The system will adaptively detect available nodes within the pre-set range of the Bluetooth Mesh network, obtain existing network topology information in real time according to the pre-set dynamic node registration mechanism, share and update the neighbor node list of the Bluetooth Mesh network according to different network topology information, dynamically adjust the connection priority of the Bluetooth Mesh network, and monitor the data traffic of the Bluetooth Mesh network;The system can dynamically sense active devices in the network by adaptively detecting available nodes within the preset range of the Bluetooth Mesh network, and reasonably adjust the joining or exit of nodes according to the current network load. This adaptive capability ensures that the network can be optimized according to real-time conditions, thereby improving communication stability and overall network performance, and avoiding communication interruptions caused by partial node failures or signal attenuation. At the same time, based on different network topology information, the system can share and update the neighbor node list of the Bluetooth Mesh network, so that all smart gateways can grasp the available connection nodes around them in real time. This mechanism can effectively optimize the data transmission path, reduce unnecessary communication relay links, and improve the overall network transmission efficiency. , ensuring that the data transmission path between gateways is always optimal, and by dynamically adjusting the connection priority of the Bluetooth Mesh network, the system can give priority to high-quality connection paths based on factors such as node stability, data transmission rate and signal quality. This optimization strategy can reduce retransmission and packet loss problems caused by low-quality connections, ensure that high-priority tasks can be completed in the shortest time, and improve the response speed and reliability of the overall network. When the network communication efficiency cannot meet the preset requirements, the system will continuously monitor the data traffic of the Bluetooth Mesh network to identify possible network congestion or imbalance problems. By dynamically optimizing traffic scheduling, the system can reasonably distribute the load of different gateways to avoid certain The gateway becomes a bottleneck due to excessive data traffic, and the resource utilization of the low-load gateway is improved to achieve more efficient network data distribution; then the system determines whether these data traffic can be evenly distributed among multiple smart gateways to execute the corresponding steps; for example, when the system determines that these data traffic can be evenly distributed among multiple smart gateways, the system will consider that the load scheduling mechanism of the current Bluetooth Mesh network is operating normally, the workload of all gateways is balanced, and there is no overload of some gateways or idle resources of some gateways. The system will give priority to maintaining the current network topology and will not frequently adjust the connection method between gateways to reduce the additional communication overhead or network jitter that may be caused by excessive adjustment. This strategy ensures The stability of the system is improved, so that the Bluetooth Mesh network can maintain high reliability and low latency in long-term operation. At the same time, since the data traffic is evenly distributed, the system will continue to perform tasks such as communication, data synchronization, and remote control between devices according to the preset scheduling strategy, ensuring that the smart gateway can efficiently support the entire IoT application scenario. Although the current data traffic is evenly distributed, the system still needs to continuously monitor the network traffic to prevent uneven load redistribution due to sudden data requests or the addition of new devices. During this process, the system will maintain a low-power monitoring mode, regularly evaluate the distribution of data traffic, and appropriately adjust network parameters when necessary to maintain a long-term stable load balancing state.For example, when the system determines that these data flows cannot be evenly distributed among multiple smart gateways, the system will consider that the current load scheduling mechanism of the Bluetooth Mesh network is operating abnormally and the workload of all gateways cannot be balanced. The system will detect the physical distance between the Bluetooth Mesh network and the pre-set obstacles, and dynamically adjust the transmission power of the Bluetooth Mesh network based on these physical distances. According to the edge computing end pre-integrated in the Bluetooth Mesh network, the pre-set key control tasks are executed locally first. The key control tasks specifically include rapid linkage control between devices, distribution and processing of device data, and abnormal response to device status. Different key control tasks are processed collaboratively based on the pre-set distributed computing architecture of the Bluetooth Mesh network. The system detects the physical distance between the Bluetooth Mesh network and the obstacles, and dynamically adjusts the transmission power to make the signal coverage more balanced, thereby optimizing the data transmission path, improving the load balancing between gateways, and making the overall network operation more stable. At the same time, adjusting the transmission power of the Bluetooth Mesh network is effective. It helps to reduce signal interference between devices that are too far or too close, avoid data loss due to signal attenuation, reduce unnecessary power consumption, optimize the coverage of wireless signals, reduce unnecessary retransmissions between nodes, improve overall communication efficiency, and make data traffic more reasonably distributed between smart gateways to ensure efficient operation of the network. In addition, the Bluetooth Mesh network integrates edge computing terminals, allowing the system to perform key control tasks locally without relying entirely on the cloud or remote servers. This mechanism greatly reduces the transmission delay of data between different levels, so that rapid linkage control, data distribution processing and abnormal response between devices can be completed in the shortest time, improve the real-time and reliability of the system, and ensure that the device can quickly adapt to emergencies. Through the distributed architecture of edge computing, the system can dynamically allocate computing resources according to the priority of the task, and collaboratively process these tasks between multiple gateways, which can not only reduce the burden on a single gateway, but also improve the entire system's ability to handle emergencies, and improve the throughput and reliability of data processing. ;

[0021] It should be noted that, within the preset range of the Bluetooth Mesh network, the available nodes within the preset range are adaptively detected, and the existing network topology information is obtained in real time according to the preset dynamic node registration mechanism. According to the network topology information, the neighbor node list of the Bluetooth Mesh network is shared and updated, and the connection priority of the Bluetooth Mesh network is dynamically adjusted. The specific examples are as follows: Assume that in a modern smart building, the entire lighting system uses a Bluetooth Mesh network for intelligent control. Each floor is equipped with multiple Bluetooth Mesh smart gateways, which are responsible for controlling the light switches and brightness adjustment of each area and maintaining real-time communication with the building's central control system. However, during rush hour (such as 8 a.m. and 6 p.m.), some floors of the building (such as the 10th floor) experienced significant lighting response delays, and the lights in some areas failed to turn on or off in time, affecting the user experience. After system monitoring, it was found that the main smart gateways A and B on this floor were overloaded, and a large amount of data traffic was concentrated on these two gateways. Although gateways C and D were available, they were not effectively utilized, resulting in uneven distribution of network resources. Step 1: First, adaptively detect available nodes within the preset range of the Bluetooth Mesh network. The system first adaptively detects all available smart gateway nodes within the Bluetooth Mesh network of the entire building. During the scanning process, the system finds that in addition to A and B, C and D are also available, but because the topology is not updated in time, these gateways are not assigned appropriate tasks. Step 2, then according to the preset dynamic node registration mechanism, the existing network topology information is obtained in real time. After detecting that C and D are available, the system immediately starts the preset dynamic node registration mechanism, which allows new or low-load nodes to automatically join the current Bluetooth Mesh network topology; the system obtains the current network topology information in real time and finds that A and B are in a high-load state, while the communication link quality of C and D is good, but they do not undertake enough tasks; therefore, the system decides to re-register C and D to the current network and include them in the main link for data transmission; Step 3: Then, based on the network topology information, the neighbor node list of the Bluetooth Mesh network is shared and updated. Once C and D join the network topology, the system will share and update the neighbor node list of the entire Bluetooth Mesh network. Specifically, A and B were originally only connected to each other, but now C and D are also included in the connection list. C and D will broadcast their availability to surrounding smart devices (such as lighting equipment, sensors, etc.), allowing data traffic to be transmitted through them. The adjacency table of the entire Bluetooth Mesh network will be updated in real time to ensure that all devices can find the optimal communication path. Step 4: Finally, dynamically adjust the connection priority of the Bluetooth Mesh network. The system further analyzes the traffic load and dynamically adjusts the connection priority of the Bluetooth Mesh network: Since the load of A and B is too high, the system lowers their connection priority and transfers part of the data traffic to C and D; the connection weight of C and D is increased, so that they can undertake more tasks such as data forwarding and control command issuance; in this way, the data traffic can be more evenly distributed to the entire network, preventing communication bottlenecks caused by overloading of a single gateway; In summary, through the above examples, the Bluetooth Mesh network achieves a more reasonable load balancing; that is, the response speed of the intelligent lighting system is significantly improved, and the lights in all areas of the 10th floor can be quickly turned on or off according to the flow of people without obvious delay; the network stability is enhanced, and even during peak hours, the load of all intelligent gateways is balanced, avoiding disconnection or data loss caused by overloading of some devices; the overall efficiency is improved, the resources of the C and D gateways are effectively utilized, and the communication capabilities of the entire Bluetooth Mesh network are optimized.

[0022] It should be added that, according to the edge computing end pre-integrated in the Bluetooth Mesh network, the preset key control tasks are preferentially executed locally, and the key control tasks are collaboratively processed according to the distributed computing architecture preset in the Bluetooth Mesh network. The specific examples are as follows: Assume that in a modern smart factory, the equipment on the production line (such as robotic arms, conveyor belts, sensors, etc.) are connected through a Bluetooth Mesh network to form an intelligent device ecosystem covering the entire factory. To ensure efficient and real-time production processes, the equipment inside the factory collaborates with the edge computing end through the Bluetooth Mesh network to achieve intelligent control. Scenario description: In a certain production line, the robot arms and conveyor belts in the factory are responsible for the automated handling of parts. Some key operations, such as the motion control of the robot arms and the real-time monitoring of the speed adjustment of the conveyor belts, require fast responses, and these devices must cooperate with each other to ensure that the production line runs seamlessly and efficiently. Step 1: First, the pre-integrated edge computing end of the Bluetooth Mesh network prioritizes local control tasks. Since the smart devices in the factory need to respond to production needs in real time, any delay will affect the production progress. Therefore, the system will prioritize the execution of key control tasks on the local edge computing end; for example: Robotic arm operation: The robot arm needs to grab, move, or rotate parts immediately after receiving them on the conveyor belt. This process requires low latency. Therefore, the factory deploys local edge computing nodes in each production line area to perform motion control tasks for the robot arm. Conveyor speed adjustment: The speed of the conveyor needs to be dynamically adjusted according to the status of the upstream equipment. For example, when the robot arm moves the parts, the speed of the conveyor needs to be slowed down or accelerated. This adjustment task is performed quickly on the local edge computing node to reduce latency. Step 2: Then, collaborative processing is performed based on the distributed computing architecture of the Bluetooth Mesh network. With the collaborative work of multiple devices on the production line, the system processes more complex tasks through collaboration between smart gateways and edge computing nodes based on the distributed computing architecture preset by the Bluetooth Mesh network; for example: Sensor data aggregation and analysis: The factory's temperature and humidity sensors, gas sensors, etc. continuously collect environmental data, and the edge computing nodes process this data in real time. If the temperature and humidity are detected to be too high, the edge computing nodes will immediately send an alarm to the control system and adjust the operation of the air conditioning system. Device status synchronization: Multiple devices (such as robotic arms, conveyor belts, and sensors) need to constantly exchange information, such as the device's operating status, location, speed, etc. In a Bluetooth Mesh network, edge computing nodes coordinate the data transmission of these devices to ensure that the status of all devices is up to date, thereby achieving collaborative work; Step 3: Data sharing and task coordination. To ensure that the equipment on the production line can collaborate with each other, the system shares and synchronizes the status information of all equipment through the Bluetooth Mesh network. The edge computing node is responsible for aggregating and transmitting the status, sensor data, and control commands of each device to the control center or other devices. For example, when a robotic arm completes a task and moves to the next work point, it transmits its position data to the conveyor control system via the Bluetooth Mesh network; For example, changes in conveyor belt speed are transmitted to other devices in real time. For example, when sensors detect changes in materials, they quickly update the gripping position and movement of the robotic arm; Step 4: Finally, real-time optimization and adaptive adjustment. Since the status of equipment often changes during the production process, edge computing nodes also need to perform real-time optimization and adaptive adjustment; for example: When the equipment is overloaded, the edge computing end will reschedule resources, such as adjusting the movement frequency of the robot arm or the speed of the conveyor belt, to ensure that the entire production line is not overloaded or stagnant; When a device fails or becomes abnormal, the edge computing node will immediately issue an alarm and adjust the working status of other devices or request alternative solutions according to preset rules; To summarize, in the above examples, by prioritizing the execution of key control tasks on the pre-integrated edge computing end of the Bluetooth Mesh network and collaboratively processing tasks through a distributed computing architecture, smart factories can achieve low-latency equipment control and improve production efficiency. At the same time, it ensures the synchronization and processing of real-time data, completes the collaborative work between devices, and dynamically adjusts and optimizes to respond to emergencies or changes in equipment load. This combination of Bluetooth Mesh networks and edge computing ensures that the factory's production equipment can adjust operations according to real-time needs, which not only optimizes resource allocation, but also improves the stability and reliability of the overall system.

[0023] In this embodiment, according to the preset dynamic node registration mechanism, the existing network topology information is obtained in real time, and according to the network topology information, the step S3 of sharing and updating the neighbor node list of the Bluetooth Mesh network also includes: S31: Based on the preset BLE broadcast, scan and obtain the connectable Mesh devices within the preset range, and detect the connection stability of the connectable Mesh devices according to the link quality indicators preset by the Bluetooth Mesh network, wherein the link quality indicators specifically include data packet reception rate, routing hop count and delay; S32: Determine whether the connection stability can meet the preset connection requirement of the Bluetooth Mesh network; S33: If not, activate the incremental synchronization mechanism preset in the Bluetooth Mesh network, transmit only the changed data to the connectable Mesh device, verify the online status of the connectable Mesh device through the heartbeat packet preset in the Bluetooth Mesh network, dynamically remove the connectable Mesh device from the neighbor node list based on the online status, and recalculate the optimal route of the Bluetooth Mesh network.

[0024] In this embodiment, the system scans and obtains connectable Mesh devices within a preset range based on a preset BLE broadcast, and detects the connection stability of connectable Mesh devices according to the link quality indicators preset in the Bluetooth Mesh network, which specifically include the packet reception rate, routing hop count, and delay. The system then determines whether the connection stability can meet the connection requirements preset in the Bluetooth Mesh network to execute the corresponding steps; for example, when the system determines that the connection stability of the connectable Mesh device can meet the connection requirements preset in the Bluetooth Mesh network, the system will consider that the communication quality of the device is good and can reliably participate in the exchange and collaboration of network data. The system will formally include the device in the Bluetooth Mesh network, assign the role of the device (e.g., routing node, terminal node, etc.), and establish a communication link between devices. At this point, the device is ready to participate in data transmission and task execution. At the same time, after the device successfully joins the network, the system will update the topology of the Bluetooth Mesh network in real time.This includes updating the neighbor node list, link quality indicators, and connection status of the device in network management, so as to ensure that the connection status between nodes is the latest and most optimized when the entire network is expanded, and once the connection stability meets the requirements, the system can start to assign tasks to the device, or forward the data stream through the device. For example, in a smart factory scenario, the system can assign production line data to the device for real-time monitoring and control, or in a smart home scenario, the device may be responsible for temperature control or lighting adjustment in a room; for example, when the system determines that the connection stability of the connectable Mesh device cannot meet the connection requirements pre-set by the Bluetooth Mesh network, the system will consider that the communication quality of the device is poor and cannot participate in the exchange and collaboration of network data. The system will activate the incremental synchronization mechanism pre-set by the Bluetooth Mesh network, and only transmit the changed data to the connectable Mesh device. Through the heartbeat packet pre-set by the Bluetooth Mesh network, the online status of the connectable Mesh device is verified, and the connectable Mesh device is dynamically removed from the neighbor node list according to different online status, and the Bluetooth Me sh network; the system only transmits the changed data, and the incremental synchronization mechanism effectively reduces the amount of unnecessary data transmission, reduces the network burden, and thus improves the stability and efficiency of the network. This avoids the waste of bandwidth caused by a large amount of invalid data transmission, and ensures that other devices can use network resources more efficiently. At the same time, when the connection quality of some devices is poor, the system will not force them to continue to participate in data exchange, avoiding the impact of low-quality devices on the entire network performance. By removing them from the neighbor node list, the system reduces the dependence on these unstable devices, ensuring the efficient operation of the network, and recalculating the best route for the Bluetooth Mesh network. The system can adjust the routing strategy according to the actual connection status of the current device, which can ensure that data is always transmitted through a connection path with good quality, avoiding unstable devices as relay nodes affecting the reliability and speed of data transmission. Through the heartbeat packet mechanism, the system can monitor the online status of the device in real time, and promptly discover offline or poorly communicating devices. After removing them from the network topology, the system can self-heal and maintain the normal operation of the entire Bluetooth Mesh network, reducing the impact of device instability.

[0025] It should be noted that the preset incremental synchronization mechanism of the Bluetooth Mesh network is activated, and only the changed data is transmitted to the connectable Mesh device. The online status of the connectable Mesh device is verified through the preset heartbeat packet of the Bluetooth Mesh network. According to the online status, the connectable Mesh device is dynamically removed from the neighbor node list, and the optimal route of the Bluetooth Mesh network is recalculated. The specific examples are as follows: Assume that in a smart building, the Bluetooth Mesh network is used to control the lighting system. The lighting equipment in each room is connected to the smart gateway through the Mesh network for centralized management. Assume that a smart lighting control device supporting the Bluetooth Mesh protocol (hereinafter referred to as device A) is installed in conference room A in the building. The device is used to receive brightness adjustment instructions from the gateway and feed back its status to the network. One day, the communication quality of device A deteriorates due to low battery, wireless interference or hardware failure. The system finds that its connection stability has not reached the set minimum threshold (for example, the packet reception rate is less than 80%). To prevent it from affecting the overall network performance, the system initiates a series of optimization measures. First, the incremental synchronization mechanism is triggered. Since the communication quality of device A has deteriorated, the system will not disconnect it immediately, but activate the incremental synchronization mechanism. Incremental synchronization means that only necessary changes are transmitted, for example: Current conference room illumination data: If the light intensity in the conference room has met the set value, the system will not send brightness adjustment instructions to device A to reduce unnecessary data transmission; Adjustment of the lowest power consumption mode: If there is a delay in the status feedback of device A, the system will only send the most critical instructions, such as "maintain current brightness" or "switch to low power consumption mode", instead of transmitting the complete control strategy to reduce the amount of data; At this stage, device A can still respond to commands, but the frequency and content of data synchronization are reduced to reduce network burden; Then the system detects the device status through the heartbeat packet. The system sends a heartbeat packet to device A every 5 seconds to check whether the device is still online and whether its response delay meets the standard. The system determines the status of device A in the following ways: If device A does not respond within three consecutive heartbeat tests (15 seconds), the system determines that it may be offline or unavailable; If the response time of device A increases significantly (for example, the standard response time should be 100ms, but it currently reaches 1000ms), the system determines that its connection quality has seriously deteriorated and further optimization measures need to be taken; At this step, the system has basically determined that device A is in an unstable state and needs to be processed; After the device is removed and the network route is adjusted, when the system determines that device A cannot maintain a stable connection, it will take the following steps to optimize: Dynamically remove device A: The system removes device A from the neighbor node list of the Bluetooth Mesh network and notifies all neighboring devices (such as device B and device C) to stop trying to relay data through device A to prevent the entire network communication from being affected by the instability of device A. Recalculate the best route: Since the removal of device A may affect some communication paths, the system will calculate a new data transmission path based on the signal quality, load status and physical distance of the remaining Mesh devices. For example, the control signal of conference room A was originally transmitted from device A → device B → smart gateway, but now the system automatically adjusts it to device C → device B → smart gateway to ensure that the control signal can be transmitted smoothly. This optimization strategy ensures that even if device A is unavailable, the system can still maintain stable communication through other Mesh nodes; Finally, the lighting control function of conference room A will not be completely disabled due to the abnormality of device A. The system can still complete the command transmission through the adjacent Mesh device (device C), ensuring that the user experience is not affected. The Bluetooth Mesh network avoids the overall data flow blockage caused by the unstable connection of device A, and improves the communication efficiency of the entire building lighting system. If device A is subsequently restored (e.g., by replacing the battery or removing the interference source), the system will re-admit it to the network through the incremental synchronization mechanism without manual configuration, thus ensuring the automatic recovery capability of the device; In summary, the above examples demonstrate the adaptive optimization process of the Bluetooth Mesh network when facing device anomalies. Through incremental synchronization, heartbeat packet detection, dynamic removal of faulty devices, and recalculation of routes, the system can intelligently manage unstable nodes in the Mesh network without affecting the overall function, thereby improving communication reliability and network stability. This mechanism is particularly suitable for application scenarios such as smart buildings, smart homes, and industrial Internet of Things, and can effectively reduce the impact of single device failures.

[0026] In this embodiment, before the step S3 of dynamically adjusting the connection priority of the Bluetooth Mesh network and monitoring the data traffic of the Bluetooth Mesh network, the method further includes: S301: Dividing the connection structure of the Bluetooth Mesh network based on the initial connection weight pre-allocated by the Bluetooth Mesh network, wherein the connection structure specifically includes core nodes, edge nodes, and terminal nodes; S302: Determine whether the connection structure matches the communication load of the Bluetooth Mesh network; S303: If not, collect different data types of the Bluetooth Mesh network, and dynamically switch the available paths preset in the neighbor node list according to the communication load, wherein the different data types specifically include control instructions, sensor data, and audio and video streams, and the available paths specifically include a main path and a backup path.

[0027] In this embodiment, the system divides the connection structure of the Bluetooth Mesh network based on the initial connection weight pre-assigned by the Bluetooth Mesh network. The connection structure specifically includes core nodes, edge nodes and terminal nodes. Then the system determines whether these connection structures match the communication load of the Bluetooth Mesh network to execute the corresponding steps; for example, when the system determines that the connection structure of the Bluetooth Mesh network can match the communication load of the Bluetooth Mesh network, the system will consider that the current network topology has achieved reasonable load distribution, and the system will reduce the status broadcast frequency of the core nodes, reduce unnecessary data synchronization, and thus reduce the overall communication overhead. For example, the original broadcast interval sends a status update every 5 seconds, and the optimized broadcast interval is adjusted to send once every 10 seconds, reducing the computing burden of the core nodes while maintaining the stability of the network. At the same time, the load of the core nodes, edge nodes and terminal nodes is continuously monitored. For example, if the traffic of some edge nodes is gradually increased and may reach a load bottleneck in the future, the system can schedule it in advance. Optimize data paths to avoid node overload. If there is a surge in data requests from terminal nodes (for example, smart devices in a certain area frequently interact in a short period of time), the system can dynamically allocate more edge nodes to share traffic to ensure smooth network operation and dynamically enter low-power mode, such as reducing the working frequency of terminal nodes: For sensor devices that only transmit data occasionally, their data reporting frequency can be reduced to save battery energy and reduce unnecessary routing maintenance overhead. If the connection of some edge nodes is stable, the frequent update of routing tables can be reduced to reduce computing resource usage. For example, when the system determines that the connection structure of the Bluetooth Mesh network cannot match the communication load of the Bluetooth Mesh network, the system will believe that the current network topology cannot reasonably distribute the load. The system will collect different data types of the Bluetooth Mesh network, including control instructions, sensor data, and audio and video streams. According to the current communication load, the available paths pre-set in the neighbor node list are dynamically switched. The available paths specifically include the main path and the backup path.The system dynamically adjusts the available paths in the neighbor node list to reasonably distribute data among multiple nodes, avoiding the impact of traffic overload on some nodes on overall performance. For example, control instruction data can choose a low-latency path, while audio and video streams can choose a path with larger bandwidth, making data distribution more intelligent. At the same time, Bluetooth Mesh networks are susceptible to external interference in complex environments (such as smart homes and industrial automation), resulting in reduced communication quality. The mechanism of dynamically switching available paths can quickly switch to backup paths when channel interference is severe to avoid data loss or transmission failure. For example, when the data packet loss rate of the main path is too high due to signal interference, the system will immediately enable the backup path to ensure stable network operation. By continuously monitoring the communication load of the Bluetooth Mesh network, the system can automatically adjust the data transmission path when it detects that some nodes are overloaded or the connection is abnormal, without manual intervention. This self-healing mechanism enables the Bluetooth Mesh network to maintain efficient operation when devices are added, moved or fail. For example, when an edge node exits the network due to insufficient power, the system can automatically adjust the data transmission path to ensure uninterrupted communication. ;

[0028] In this embodiment, according to the edge computing terminal pre-integrated in the Bluetooth Mesh network, the step S5 of preferentially executing the preset key control task locally also includes: S51: Based on the Bluetooth Mesh network, sharing the task status of the key control task among various intelligent gateways, and obtaining the gateway load when the Bluetooth Mesh network executes the key control task; S52: Determine whether the gateway load exceeds a preset load threshold; S53: If so, according to the task size of the key control task, activate the preset task slicing mechanism, split the key control task into a preset number of sub-tasks, and distribute the sub-tasks to different smart gateways. According to the preset task execution order, unified scheduling is performed through the Bluetooth Mesh network to coordinate the resource sharing of the sub-tasks by each smart gateway.

[0029] In this embodiment, the system is based on the Bluetooth Mesh network, and shares the task status of the key control task between each intelligent gateway, obtains the gateway load when the Bluetooth Mesh network performs the key control task, and then the system determines whether the gateway load when the Bluetooth Mesh network performs the key control task exceeds the preset load threshold to execute the corresponding steps; for example, when the system determines that the gateway load when the Bluetooth Mesh network performs the key control task does not exceed the preset load threshold, the system will consider that the task scheduling mechanism of the current network is operating normally, and each intelligent gateway can effectively coordinate to process the key control task, avoiding the overload of a single gateway. The system will continue to maintain the current task scheduling strategy, maintain the task allocation rules of the existing gateway, do not perform additional task migration, ensure stability, and perform gateway status monitoring at the same time, continuously observe the load change trend of the gateway, ensure long-term stability, and reserve redundant computing resources. If the system detects that the load of some gateways is low, it can appropriately reserve certain computing resources so that it can respond quickly when the load increases; for example, when the system determines that the gateway load when the Bluetooth Mesh network performs the key control task exceeds the preset load threshold, the system will consider that the task scheduling mechanism of the current network is operating abnormally, and the system will perform tasks according to the key control task. According to the workload, the pre-set task slicing mechanism is activated to split the key control tasks into a pre-set number of subtasks, and these subtasks are assigned to different intelligent gateways. According to the pre-set task execution order, unified scheduling is performed through the Bluetooth Mesh network to coordinate the resource sharing of subtasks by each intelligent gateway; by splitting the task into multiple subtasks and processing them in parallel among multiple gateways, the system can greatly reduce the computing and communication burden of a single gateway, thereby improving the efficiency of task execution. This method can make full use of the distributed computing architecture of the Mesh network and improve the throughput of the entire system, making it more suitable for large-scale device control or high-concurrency task scenarios. At the same time, since the tasks are split and distributed to multiple gateways, even if a gateway is abnormal or fails, other gateways can still take over some subtasks to ensure the continuity and stability of the tasks. Through the unified scheduling of task execution order, the system can dynamically adjust the task allocation strategy, reduce the task failure caused by excessive load on some gateways, and improve the reliability of the system. In addition, resources (such as computing power, storage space, network bandwidth, etc.) can be shared between smart gateways. The system can flexibly schedule tasks based on the capabilities and current status of different gateways, thereby making full use of all available computing resources in the Mesh network, avoiding resource waste, and improving the overall energy efficiency of the network.

[0030] In this embodiment, the step S2 of determining whether the communication efficiency can meet the preset communication requirement further includes: S21: Based on the task content preset in the Bluetooth Mesh network, obtain the bandwidth size corresponding to the task content; S22: Determine whether the bandwidth size exceeds the maximum carrying capacity of the current connection; S23: If not, detect the real-time requirement of the task content, dynamically optimize the communication strategy of the Bluetooth Mesh network, and identify the data transmission efficiency under different network topologies according to the preset network topology of the Bluetooth Mesh network, wherein the real-time requirement specifically includes voice, video streaming and real-time control, the communication strategy specifically includes adjusting the path, increasing bandwidth and priority scheduling, and the network topology specifically includes point-to-point, star and mesh.

[0031] In this embodiment, the system obtains the bandwidth size corresponding to the task content based on the task content pre-set in the Bluetooth Mesh network, and then the system determines whether the bandwidth size exceeds the maximum carrying capacity of the current connection to execute the corresponding steps; for example, when the system determines that the bandwidth size corresponding to the task content exceeds the maximum carrying capacity of the current connection, the system will consider that the current communication link of the Bluetooth Mesh network has reached a bottleneck. Under the premise of not affecting the execution of the task, the system can compress the task data, for example, a lossless compression algorithm can be used for sensor data, and an efficient encoding format can be selected for audio and video streams to reduce the bandwidth occupied by data in the Mesh network. At the same time, according to the maximum carrying capacity of the current connection, the system can adjust the data transmission rate, such as giving priority to the transmission of key control data, delaying or reducing the transmission rate of non-key data, so as to ensure that the core data of the task execution can be processed first. For example, in smart home applications, if the transmission task includes lighting control instructions and video stream data, the system can reduce the frame rate or resolution of the video stream to give priority to ensuring the control instructions. The system can dynamically switch available communication paths and check the real-time performance of the command. When the bandwidth load of a Mesh node is too high, the system can recalculate the network topology, find other available paths, and redirect part of the task data to the Mesh node with lower load to disperse the bandwidth pressure. For multiple concurrent tasks, the system can dynamically adjust the task scheduling according to the importance of the task, give priority to the communication needs of key control tasks, and reduce the data transmission of non-urgent tasks. For example, when the system determines that the bandwidth size corresponding to the task content does not exceed the maximum carrying capacity of the current connection, the system will consider that the current communication link of the Bluetooth Mesh network is operating normally. The system will detect the real-time requirements of the task content, which specifically include voice, video streaming and real-time control, and dynamically optimize the communication strategy of the Bluetooth Mesh network. The communication strategy specifically includes adjusting the path, increasing bandwidth and priority scheduling. According to the network topology shape pre-set by the Bluetooth Mesh network, the network topology shape specifically includes point-to-point, star and mesh, the data transmission efficiency under different network topologies is identified.Since the system can dynamically detect the real-time requirements of the task content and optimize the communication strategy when the Bluetooth Mesh network is not overloaded, it can prevent network congestion in advance and avoid communication delays or data loss caused by sudden increases in data traffic. By continuously monitoring the network topology (such as point-to-point, star, and mesh), the system can select the optimal communication method in different scenarios, reduce the failure rate of data transmission, and improve the overall communication stability. At the same time, by dynamically optimizing the communication strategy (adjusting the path, increasing bandwidth, and priority scheduling), it can ensure that the transmission path of the task data in the Bluetooth Mesh network always remains in the optimal state. For example, in a smart home system, when When multiple smart devices are running at the same time, the system can adjust the path and select low-load nodes for data transmission to ensure that the response speed of the voice assistant will not be delayed due to network congestion. In addition, since the system will make adjustments based on the real-time requirements of the task when the bandwidth is not overloaded, it can ensure that bandwidth resources are reasonably allocated and that low-priority tasks will not occupy too much bandwidth and affect key tasks. For example, in a smart conference room environment, if there is real-time video streaming during a meeting, the system can automatically adjust the bandwidth according to real-time requirements, so that the high-definition video stream maintains high quality when there is sufficient bandwidth, and automatically reduces the resolution when other tasks occupy the bandwidth to ensure the smoothness of the conference system. ;

[0032] In this embodiment, the step S4 of determining whether the data traffic can be evenly distributed among the multiple intelligent gateways further includes: S41: Based on the traffic demand of the Bluetooth Mesh network, obtain the bearer traffic of any connected smart gateway, wherein the traffic demand specifically includes task type, number of devices and data volume; S42: Determine whether the traffic demand exceeds the bearer traffic; S43: If yes, identify the traffic congestion point of the Bluetooth Mesh network, detect the idle available gateways of the Bluetooth Mesh network based on the traffic congestion point, and dynamically adjust the data flow distribution of the Bluetooth Mesh network based on the idle available gateways.

[0033] In this embodiment, the system obtains the carrying capacity of any connected smart gateway based on the traffic demand of the Bluetooth Mesh network, which specifically includes the task type, the number of devices and the amount of data, and then the system determines whether these traffic demands exceed the carrying capacity of the connected smart gateway to execute the corresponding steps; for example, when the system determines that the traffic demand of the Bluetooth Mesh network does not exceed the carrying capacity of the connected smart gateway, the system will consider that the current smart gateway still has sufficient processing capacity and can normally perform traffic forwarding, task allocation and data synchronization operations without load balancing adjustment or additional resource scheduling. The system will continue to monitor traffic changes in the Bluetooth Mesh network, dynamically optimize task scheduling strategies based on task types (such as video streaming, sensor data, control instructions, etc.), and use the resources of the connected gateway to perform path optimization to avoid additional delays caused by data detours. In the star topology (gateway as the central node) mode, the system can maintain the main network The system can use idle gateways as redundant nodes to improve data forwarding efficiency in mesh topology. In addition, when bandwidth is sufficient, the system can improve the transmission quality of high-definition video streams, increase data sampling rate, and optimize user experience. For example, in smart monitoring scenarios, when the smart gateway has sufficient traffic, the video resolution of the camera can be increased to 4K instead of the default 1080P. For example, when the system determines that the traffic demand of the Bluetooth Mesh network exceeds the traffic carrying capacity of the connected smart gateway, the system will consider that the current smart gateway cannot perform the operation task normally. The system will identify the traffic blocking points of the Bluetooth Mesh network, detect the idle available gateways of the Bluetooth Mesh network based on these traffic blocking points, and dynamically adjust the data flow distribution of the Bluetooth Mesh network according to different idle available gateways. The system can accurately identify those nodes whose communication performance has decreased due to traffic overload by real-time monitoring and analyzing the traffic bottlenecks in the network. These blocking points may be certain smart gateways or specific paths. The system can reduce network delay and packet loss rate by optimizing these bottleneck nodes. Once the traffic blocking points are identified, the system will quickly perform load balancing and redistribute the overloaded traffic to idle gateways or nodes.This can disperse traffic pressure, avoid overloading a single node, and ensure smooth data transmission. At the same time, the system will monitor in real time which gateways in the Bluetooth Mesh network are idle, and dynamically adjust the data flow to these idle gateways to effectively avoid performance degradation caused by excessive gateway load. This method helps to improve the stability and responsiveness of the entire network, avoid the impact of local node overload on the overall network operation, and by reasonably allocating traffic to multiple gateways, the system can balance the workload of each gateway, not only avoiding excessive consumption of resources of a single gateway, but also improving the overall utilization of network resources. This can effectively reduce network interruptions or delays and reduce the risk of system failures caused by resource overload. The dynamic scheduling of idle gateways can make the network topology more flexible, respond to different load requirements, and adapt to different usage scenarios or communication environments. The system can adjust the network structure in real time according to actual needs and improve its adaptability to different tasks and data flows.

[0034] In this embodiment, based on the pre-built Bluetooth Mesh network, after the Bluetooth Mesh network is interconnected with the intelligent gateway, the step S1 of testing the communication efficiency of the Bluetooth Mesh network in different communication scenarios also includes: S11: Based on the communication efficiency index of the communication scenario, testing the transmission time of a preset device sent to the smart gateway through the Bluetooth Mesh network, wherein the communication efficiency index specifically includes throughput, delay, packet loss rate and connection stability; S12: Determine whether a preset delay is detected in the transmission duration, wherein the preset delay specifically includes a single-hop delay and a multi-hop delay; S13: If yes, then obtain the response time of the intelligent gateway after receiving the device request, and generate the network response time difference of the Bluetooth Mesh network in real time according to the response time.

[0035] In this embodiment, the system tests the transmission time of a preset device sent to the intelligent gateway through the Bluetooth Mesh network based on the communication efficiency index of the communication scenario, which specifically includes throughput, delay, packet loss rate and connection stability. Then the system determines whether the transmission time detects a preset delay, and the preset delay specifically includes a single-hop delay and a multi-hop delay, so as to execute the corresponding steps; for example, when the system determines that the transmission time of the preset device sent to the intelligent gateway through the Bluetooth Mesh network does not detect a preset delay, the system will believe that the communication efficiency during the transmission process is high, and the response speed of the network connection is in line with expectations, and the system can efficiently perform During data transmission, the system will confirm that there is no problem with the current network configuration and continue to maintain the existing connection and routing strategy. At this time, the system can continue to monitor the network status to ensure that there is no new delay or instability. If the network status remains within a stable range, unnecessary optimization operations can be reduced to save system resources. At the same time, by increasing the accuracy of traffic scheduling and priority management, the network can continue to support more devices or data needs without introducing delays, and continue to perform periodic monitoring. When the network status changes (for example, devices are added or the load increases), timely measures can be taken. For example, the system can keep real-time tracking of the network topology and automatically adjust the route to adapt when necessary. New communication load, set delay threshold, when the delay is close to the set value, trigger alarm in advance or automatically adjust network resource configuration to deal with potential delay problems; for example, when the system determines that the transmission time of the preset device to the smart gateway through the Bluetooth Mesh network detects the preset delay, the system will consider that the communication efficiency in the transmission process is low, and the system will obtain the response time of the smart gateway after receiving the device request, and generate the network response time difference of the Bluetooth Mesh network in real time according to different response times; by detecting the delay and further obtaining the response time of the smart gateway, the system can more accurately locate the bottleneck in the communication process, whether it is the device side , transmission path, or the processing power of the gateway itself, the analysis of the response time difference can help the system identify the specific problematic links. At the same time, the real-time generation of the network response time difference can help the system dynamically adjust the allocation of network resources to reduce delays. For example, if the response time difference is too high, the system can accelerate data transmission by re-adjusting the data transmission path or increasing the bandwidth to optimize communication efficiency. By real-time monitoring and generating the network response time difference, the system can respond to changes in network load in a timely manner and maintain network stability. Even if there are delays in the network, the system can quickly take measures to optimize it, avoid delay accumulation, and ensure that the communication response speed between devices remains within an acceptable range.

[0036] Reference Figure 2 , is an intelligent gateway device interconnection system of the Bluetooth ad hoc network protocol in one embodiment of the present invention, comprising: The test module 10 is used to test the communication efficiency of the Bluetooth Mesh network in different communication scenarios based on the pre-built Bluetooth Mesh network after the Bluetooth Mesh network is interconnected with the intelligent gateway; A judging module 20, configured to judge whether the communication efficiency can meet a preset communication requirement; The execution module 30 is used for, if not, adaptively detecting available nodes within a preset range of the Bluetooth Mesh network, acquiring existing network topology information in real time according to a preset dynamic node registration mechanism, sharing and updating a neighbor node list of the Bluetooth Mesh network according to the network topology information, dynamically adjusting a connection priority of the Bluetooth Mesh network, and monitoring data traffic of the Bluetooth Mesh network; A second determination module 40 is used to determine whether the data traffic can be evenly distributed among multiple intelligent gateways; The second execution module 50 is used to detect the physical distance between the Bluetooth Mesh network and the preset obstacle if it cannot be evenly distributed, and dynamically adjust the transmission power of the Bluetooth Mesh network based on the physical distance, and preferentially execute the preset key control tasks locally according to the edge computing terminal pre-integrated in the Bluetooth Mesh network, and collaboratively process the key control tasks according to the distributed computing architecture preset by the Bluetooth Mesh network, wherein the key control tasks specifically include rapid linkage control between devices, distribution processing of device data, and abnormal response to device status.

[0037] In this embodiment, the test module 10 is based on a pre-built Bluetooth Mesh network. After the Bluetooth Mesh network is interconnected with the intelligent gateway, the communication efficiency of the Bluetooth Mesh network in different communication scenarios is tested, and then the judgment module 20 judges whether the communication efficiency can meet the preset communication requirements to execute the corresponding steps; for example, when the system determines that the communication efficiency of the Bluetooth Mesh network in different communication scenarios can meet the preset communication requirements, the system will consider that the current network topology, data transmission performance and connection stability between gateways are in line with expectations, and no additional optimization adjustment is required. The system will maintain the existing connection priority, data traffic allocation and network topology to ensure the normal operation of the system in a stable state. At the same time, the current network environment and communication efficiency are used as a reference baseline for subsequent anomaly detection and optimization comparison. Based on the edge computing architecture, the system can reasonably allocate the computer. computing resources, giving priority to processing key control tasks locally, reducing unnecessary cloud communication burdens, and if subsequent monitoring finds that the communication efficiency has decreased or the load is unbalanced, a dynamic adjustment mechanism is triggered to optimize network connections and data transmission strategies; for example, when the system determines that the communication efficiency of the Bluetooth Mesh network in different communication scenarios cannot meet the pre-set communication requirements, the execution module 30 will consider that the current network topology, data transmission performance, and connection stability between gateways do not meet expectations. The system will adaptively detect available nodes within the pre-set range of the Bluetooth Mesh network, and obtain existing network topology information in real time according to the pre-set dynamic node registration mechanism. According to different network topology information, the neighbor node list of the Bluetooth Mesh network is shared and updated, the connection priority of the Bluetooth Mesh network is dynamically adjusted, and the data traffic of the Bluetooth Mesh network is monitored;The system can dynamically sense active devices in the network by adaptively detecting available nodes within the preset range of the Bluetooth Mesh network, and reasonably adjust the joining or exit of nodes according to the current network load. This adaptive capability ensures that the network can be optimized according to real-time conditions, thereby improving communication stability and overall network performance, and avoiding communication interruptions caused by partial node failures or signal attenuation. At the same time, based on different network topology information, the system can share and update the neighbor node list of the Bluetooth Mesh network, so that all smart gateways can grasp the available connection nodes around them in real time. This mechanism can effectively optimize the data transmission path, reduce unnecessary communication relay links, and improve the overall network transmission efficiency. Ensure that the data transmission path between gateways is always optimal, and by dynamically adjusting the connection priority of the Bluetooth Mesh network, the system can give priority to high-quality connection paths based on factors such as node stability, data transmission rate, and signal quality. This optimization strategy can reduce retransmission and packet loss problems caused by low-quality connections, ensure that high-priority tasks can be completed in the shortest time, and improve the response speed and reliability of the overall network. When the network communication efficiency cannot meet the preset requirements, the system will continue to monitor the data traffic of the Bluetooth Mesh network to identify possible network congestion or imbalance problems. By dynamically optimizing traffic scheduling, the system can reasonably distribute the load of different gateways to avoid some gateways from being blocked. The data traffic is too large and becomes a bottleneck, improving the resource utilization of the low-load gateway, thereby achieving more efficient network data distribution; then the second judgment module 40 determines whether these data traffic can be evenly distributed among multiple intelligent gateways to execute the corresponding steps; for example, when the system determines that these data traffic can be evenly distributed among multiple intelligent gateways, the system will consider that the load scheduling mechanism of the current Bluetooth Mesh network is operating normally, the workload of all gateways is balanced, and there is no overload of some gateways or idle resources of some gateways. The system will give priority to maintaining the current network topology and will not frequently adjust the connection method between gateways to reduce the additional communication overhead or network jitter that may be caused by excessive adjustment. This strategy The stability of the system is ensured, so that the Bluetooth Mesh network can maintain high reliability and low latency in long-term operation. At the same time, since the data traffic is evenly distributed, the system will continue to perform tasks such as communication, data synchronization, and remote control between devices according to the preset scheduling strategy, ensuring that the smart gateway can efficiently support the entire IoT application scenario. Although the current data traffic is evenly distributed, the system still needs to continuously monitor the network traffic to prevent uneven load redistribution due to sudden data requests or the addition of new devices. During this process, the system will maintain a low-power monitoring mode, regularly evaluate the distribution of data traffic, and appropriately adjust network parameters when necessary to maintain a long-term stable load balancing state;For example, when the system determines that these data flows cannot be evenly distributed among multiple smart gateways, the second execution module 50 will consider that the load scheduling mechanism of the current Bluetooth Mesh network is operating abnormally, and the workload of all gateways cannot be balanced. The system will detect the physical distance between the Bluetooth Mesh network and the pre-set obstacles, and dynamically adjust the transmission power of the Bluetooth Mesh network based on these physical distances. According to the edge computing terminal pre-integrated in the Bluetooth Mesh network, the pre-set key control tasks are preferentially executed locally. The key control tasks specifically include rapid linkage control between devices, distribution and processing of device data, and abnormal response to device status. Different key control tasks are collaboratively processed based on the pre-set distributed computing architecture of the Bluetooth Mesh network. The system detects the physical distance between the Bluetooth Mesh network and the obstacle, and dynamically adjusts the transmission power to make the signal coverage more balanced, thereby optimizing the data transmission path, improving the load balancing between gateways, and making the overall network operation more stable. At the same time, the transmission of the Bluetooth Mesh network is adjusted. Power helps reduce signal interference between devices that are too far or too close, avoid data loss due to signal attenuation, reduce unnecessary power consumption, and optimize the coverage of wireless signals to reduce unnecessary retransmissions between nodes, improve overall communication efficiency, and make data traffic more reasonably distributed between smart gateways to ensure efficient operation of the network. In addition, the Bluetooth Mesh network integrates edge computing terminals, allowing the system to perform key control tasks locally without relying entirely on the cloud or remote servers. This mechanism greatly reduces the transmission delay of data between different levels, so that rapid linkage control, data distribution processing and abnormal response between devices can be completed in the shortest time, improve the real-time and reliability of the system, and ensure that the device can quickly adapt to emergencies. Through the distributed architecture of edge computing, the system can dynamically allocate computing resources according to the priority of the task, and coordinate these tasks between multiple gateways, which can not only reduce the burden on a single gateway, but also improve the entire system's ability to handle emergencies, and improve the throughput and reliability of data processing. ;

[0038] In this embodiment, the execution module further includes: A detection unit, configured to scan and obtain connectable Mesh devices within the preset range based on a preset BLE broadcast, and detect the connection stability of the connectable Mesh devices according to a preset link quality indicator of the Bluetooth Mesh network, wherein the link quality indicator specifically includes a data packet reception rate, a routing hop count, and a delay; A determination unit, configured to determine whether the connection stability can meet a preset connection requirement of the Bluetooth Mesh network; The execution unit is used to activate the incremental synchronization mechanism preset in the Bluetooth Mesh network if not, transmit only the changed data to the connectable Mesh device, verify the online status of the connectable Mesh device through the heartbeat packet preset in the Bluetooth Mesh network, dynamically remove the connectable Mesh device from the neighbor node list based on the online status, and recalculate the optimal route of the Bluetooth Mesh network.

[0039] In this embodiment, the system scans and obtains connectable Mesh devices within a preset range based on a preset BLE broadcast, and detects the connection stability of connectable Mesh devices according to the link quality indicators preset in the Bluetooth Mesh network, which specifically include the packet reception rate, routing hop count, and delay. The system then determines whether the connection stability can meet the connection requirements preset in the Bluetooth Mesh network to execute the corresponding steps; for example, when the system determines that the connection stability of the connectable Mesh device can meet the connection requirements preset in the Bluetooth Mesh network, the system will consider that the communication quality of the device is good and can reliably participate in the exchange and collaboration of network data. The system will formally include the device in the Bluetooth Mesh network, assign the role of the device (e.g., routing node, terminal node, etc.), and establish a communication link between devices. At this point, the device is ready to participate in data transmission and task execution. At the same time, after the device successfully joins the network, the system will update the topology of the Bluetooth Mesh network in real time.This includes updating the neighbor node list, link quality indicators, and connection status of the device in network management, so as to ensure that the connection status between nodes is the latest and most optimized when the entire network is expanded, and once the connection stability meets the requirements, the system can start to assign tasks to the device, or forward the data stream through the device. For example, in a smart factory scenario, the system can assign production line data to the device for real-time monitoring and control, or in a smart home scenario, the device may be responsible for temperature control or lighting adjustment in a room; for example, when the system determines that the connection stability of the connectable Mesh device cannot meet the connection requirements pre-set by the Bluetooth Mesh network, the system will consider that the communication quality of the device is poor and cannot participate in the exchange and collaboration of network data. The system will activate the incremental synchronization mechanism pre-set by the Bluetooth Mesh network, and only transmit the changed data to the connectable Mesh device. Through the heartbeat packet pre-set by the Bluetooth Mesh network, the online status of the connectable Mesh device is verified, and the connectable Mesh device is dynamically removed from the neighbor node list according to different online status, and the Bluetooth Me sh network; the system only transmits the changed data, and the incremental synchronization mechanism effectively reduces the amount of unnecessary data transmission, reduces the network burden, and thus improves the stability and efficiency of the network. This avoids the waste of bandwidth caused by a large amount of invalid data transmission, and ensures that other devices can use network resources more efficiently. At the same time, when the connection quality of some devices is poor, the system will not force them to continue to participate in data exchange, avoiding the impact of low-quality devices on the entire network performance. By removing them from the neighbor node list, the system reduces the dependence on these unstable devices, ensuring the efficient operation of the network, and recalculating the best route for the Bluetooth Mesh network. The system can adjust the routing strategy according to the actual connection status of the current device, which can ensure that data is always transmitted through a connection path with good quality, avoiding unstable devices as relay nodes affecting the reliability and speed of data transmission. Through the heartbeat packet mechanism, the system can monitor the online status of the device in real time, and promptly discover offline or poorly communicating devices. After removing them from the network topology, the system can self-heal and maintain the normal operation of the entire Bluetooth Mesh network, reducing the impact of device instability.

[0040] In this embodiment, it also includes: A partitioning module, configured to partition a connection structure of the Bluetooth Mesh network based on an initial connection weight pre-allocated by the Bluetooth Mesh network, wherein the connection structure specifically includes core nodes, edge nodes, and terminal nodes; A third determination module is used to determine whether the connection structure matches the communication load of the Bluetooth Mesh network; The third execution module is used to collect different data types of the Bluetooth Mesh network, and dynamically switch the available paths preset in the neighbor node list according to the communication load, wherein the different data types specifically include control instructions, sensor data, and audio and video streams, and the available paths specifically include a main path and a backup path.

[0041] In this embodiment, the system divides the connection structure of the Bluetooth Mesh network based on the initial connection weight pre-assigned by the Bluetooth Mesh network. The connection structure specifically includes core nodes, edge nodes and terminal nodes. Then the system determines whether these connection structures match the communication load of the Bluetooth Mesh network to execute the corresponding steps; for example, when the system determines that the connection structure of the Bluetooth Mesh network can match the communication load of the Bluetooth Mesh network, the system will consider that the current network topology has achieved reasonable load distribution, and the system will reduce the status broadcast frequency of the core nodes, reduce unnecessary data synchronization, and thus reduce the overall communication overhead. For example, the original broadcast interval sends a status update every 5 seconds, and the optimized broadcast interval is adjusted to send once every 10 seconds, reducing the computing burden of the core nodes while maintaining the stability of the network. At the same time, the load of the core nodes, edge nodes and terminal nodes is continuously monitored. For example, if the traffic of some edge nodes is gradually increased and may reach a load bottleneck in the future, the system can schedule it in advance. Optimize data paths to avoid node overload. If there is a surge in data requests from terminal nodes (for example, smart devices in a certain area frequently interact in a short period of time), the system can dynamically allocate more edge nodes to share traffic to ensure smooth network operation and dynamically enter low-power mode, such as reducing the working frequency of terminal nodes: For sensor devices that only transmit data occasionally, their data reporting frequency can be reduced to save battery energy and reduce unnecessary routing maintenance overhead. If the connection of some edge nodes is stable, the frequent update of routing tables can be reduced to reduce computing resource usage. For example, when the system determines that the connection structure of the Bluetooth Mesh network cannot match the communication load of the Bluetooth Mesh network, the system will believe that the current network topology cannot reasonably distribute the load. The system will collect different data types of the Bluetooth Mesh network, including control instructions, sensor data, and audio and video streams. According to the current communication load, the available paths pre-set in the neighbor node list are dynamically switched. The available paths specifically include the main path and the backup path.The system dynamically adjusts the available paths in the neighbor node list to reasonably distribute data among multiple nodes, avoiding the impact of traffic overload on some nodes on overall performance. For example, control instruction data can choose a low-latency path, while audio and video streams can choose a path with larger bandwidth, making data distribution more intelligent. At the same time, Bluetooth Mesh networks are susceptible to external interference in complex environments (such as smart homes and industrial automation), resulting in reduced communication quality. The mechanism of dynamically switching available paths can quickly switch to backup paths when channel interference is severe to avoid data loss or transmission failure. For example, when the data packet loss rate of the main path is too high due to signal interference, the system will immediately enable the backup path to ensure stable network operation. By continuously monitoring the communication load of the Bluetooth Mesh network, the system can automatically adjust the data transmission path when it detects that some nodes are overloaded or the connection is abnormal, without manual intervention. This self-healing mechanism enables the Bluetooth Mesh network to maintain efficient operation when devices are added, moved or fail. For example, when an edge node exits the network due to insufficient power, the system can automatically adjust the data transmission path to ensure uninterrupted communication. ;

[0042] In this embodiment, the second execution module further includes: An acquisition unit, configured to share the task status of the key control task among various intelligent gateways based on the Bluetooth Mesh network, and acquire the gateway load when the Bluetooth Mesh network executes the key control task; A second judgment unit, used to judge whether the gateway load exceeds a preset load threshold; The second execution unit is used to activate the preset task slicing mechanism according to the task amount of the key control task, split the key control task into a preset number of sub-tasks, and distribute the sub-tasks to different intelligent gateways, and perform unified scheduling through the Bluetooth Mesh network according to the preset task execution order, and coordinate the resource sharing of the sub-tasks by each intelligent gateway.

[0043] In this embodiment, the system is based on the Bluetooth Mesh network, and shares the task status of the key control task between each intelligent gateway, obtains the gateway load when the Bluetooth Mesh network performs the key control task, and then the system determines whether the gateway load when the Bluetooth Mesh network performs the key control task exceeds the preset load threshold to execute the corresponding steps; for example, when the system determines that the gateway load when the Bluetooth Mesh network performs the key control task does not exceed the preset load threshold, the system will consider that the task scheduling mechanism of the current network is operating normally, and each intelligent gateway can effectively coordinate to process the key control task, avoiding the overload of a single gateway. The system will continue to maintain the current task scheduling strategy, maintain the task allocation rules of the existing gateway, do not perform additional task migration, ensure stability, and perform gateway status monitoring at the same time, continuously observe the load change trend of the gateway, ensure long-term stability, and reserve redundant computing resources. If the system detects that the load of some gateways is low, it can appropriately reserve certain computing resources so that it can respond quickly when the load increases; for example, when the system determines that the gateway load when the Bluetooth Mesh network performs the key control task exceeds the preset load threshold, the system will consider that the task scheduling mechanism of the current network is operating abnormally, and the system will perform tasks according to the key control task. According to the workload, the pre-set task slicing mechanism is activated to split the key control tasks into a pre-set number of subtasks, and these subtasks are assigned to different intelligent gateways. According to the pre-set task execution order, unified scheduling is performed through the Bluetooth Mesh network to coordinate the resource sharing of subtasks by each intelligent gateway; by splitting the task into multiple subtasks and processing them in parallel among multiple gateways, the system can greatly reduce the computing and communication burden of a single gateway, thereby improving the efficiency of task execution. This method can make full use of the distributed computing architecture of the Mesh network and improve the throughput of the entire system, making it more suitable for large-scale device control or high-concurrency task scenarios. At the same time, since the tasks are split and distributed to multiple gateways, even if a gateway is abnormal or fails, other gateways can still take over some subtasks to ensure the continuity and stability of the tasks. Through the unified scheduling of task execution order, the system can dynamically adjust the task allocation strategy, reduce the task failure caused by excessive load on some gateways, and improve the reliability of the system. In addition, resources (such as computing power, storage space, network bandwidth, etc.) can be shared between smart gateways. The system can flexibly schedule tasks based on the capabilities and current status of different gateways, thereby making full use of all available computing resources in the Mesh network, avoiding resource waste, and improving the overall energy efficiency of the network.

[0044] In this embodiment, the judgment module further includes: A second acquisition unit, configured to acquire a bandwidth size corresponding to the task content based on the task content preset in the Bluetooth Mesh network; A third judgment unit is used to judge whether the bandwidth size exceeds the maximum carrying capacity of the current connection; The third execution unit is used for detecting the real-time requirement of the task content, dynamically optimizing the communication strategy of the Bluetooth Mesh network, and identifying the data transmission efficiency under different network topologies according to the preset network topology of the Bluetooth Mesh network, wherein the real-time requirement specifically includes voice, video streaming and real-time control, the communication strategy specifically includes adjusting the path, increasing the bandwidth and priority scheduling, and the network topology specifically includes point-to-point, star and mesh.

[0045] In this embodiment, the system obtains the bandwidth size corresponding to the task content based on the task content pre-set in the Bluetooth Mesh network, and then the system determines whether the bandwidth size exceeds the maximum carrying capacity of the current connection to execute the corresponding steps; for example, when the system determines that the bandwidth size corresponding to the task content exceeds the maximum carrying capacity of the current connection, the system will consider that the current communication link of the Bluetooth Mesh network has reached a bottleneck. Under the premise of not affecting the execution of the task, the system can compress the task data, for example, a lossless compression algorithm can be used for sensor data, and an efficient encoding format can be selected for audio and video streams to reduce the bandwidth occupied by data in the Mesh network. At the same time, according to the maximum carrying capacity of the current connection, the system can adjust the data transmission rate, such as giving priority to the transmission of key control data, delaying or reducing the transmission rate of non-key data, so as to ensure that the core data of the task execution can be processed first. For example, in smart home applications, if the transmission task includes lighting control instructions and video stream data, the system can reduce the frame rate or resolution of the video stream to give priority to ensuring the control instructions. The system can dynamically switch available communication paths and check the real-time performance of the command. When the bandwidth load of a Mesh node is too high, the system can recalculate the network topology, find other available paths, and redirect part of the task data to the Mesh node with lower load to disperse the bandwidth pressure. For multiple concurrent tasks, the system can dynamically adjust the task scheduling according to the importance of the task, give priority to the communication needs of key control tasks, and reduce the data transmission of non-urgent tasks. For example, when the system determines that the bandwidth size corresponding to the task content does not exceed the maximum carrying capacity of the current connection, the system will consider that the current communication link of the Bluetooth Mesh network is operating normally. The system will detect the real-time requirements of the task content, which specifically include voice, video streaming and real-time control, and dynamically optimize the communication strategy of the Bluetooth Mesh network. The communication strategy specifically includes adjusting the path, increasing bandwidth and priority scheduling. According to the network topology shape pre-set by the Bluetooth Mesh network, the network topology shape specifically includes point-to-point, star and mesh, the data transmission efficiency under different network topologies is identified.Since the system can dynamically detect the real-time requirements of the task content and optimize the communication strategy when the Bluetooth Mesh network is not overloaded, it can prevent network congestion in advance and avoid communication delays or data loss caused by sudden increases in data traffic. By continuously monitoring the network topology (such as point-to-point, star, and mesh), the system can select the optimal communication method in different scenarios, reduce the failure rate of data transmission, and improve the overall communication stability. At the same time, by dynamically optimizing the communication strategy (adjusting the path, increasing bandwidth, and priority scheduling), it can ensure that the transmission path of the task data in the Bluetooth Mesh network always remains in the optimal state. For example, in a smart home system, when When multiple smart devices are running at the same time, the system can adjust the path and select low-load nodes for data transmission to ensure that the response speed of the voice assistant will not be delayed due to network congestion. In addition, since the system will make adjustments based on the real-time requirements of the task when the bandwidth is not overloaded, it can ensure that bandwidth resources are reasonably allocated and that low-priority tasks will not occupy too much bandwidth and affect key tasks. For example, in a smart conference room environment, if there is real-time video streaming during a meeting, the system can automatically adjust the bandwidth according to real-time requirements, so that the high-definition video stream maintains high quality when there is sufficient bandwidth, and automatically reduces the resolution when other tasks occupy the bandwidth to ensure the smoothness of the conference system. ;

[0046] In this embodiment, the second determination module further includes: A third acquisition unit is used to acquire the bearer traffic of any connected intelligent gateway based on the traffic demand of the Bluetooth Mesh network, wherein the traffic demand specifically includes task type, number of devices and data volume; A fourth determination unit, configured to determine whether the flow demand exceeds the bearer flow; The fourth execution unit is used to identify the traffic congestion point of the Bluetooth Mesh network, detect the idle and available gateways of the Bluetooth Mesh network according to the traffic congestion point, and dynamically adjust the data flow distribution of the Bluetooth Mesh network according to the idle and available gateways.

[0047] In this embodiment, the system obtains the carrying capacity of any connected smart gateway based on the traffic demand of the Bluetooth Mesh network, which specifically includes the task type, the number of devices and the amount of data, and then the system determines whether these traffic demands exceed the carrying capacity of the connected smart gateway to execute the corresponding steps; for example, when the system determines that the traffic demand of the Bluetooth Mesh network does not exceed the carrying capacity of the connected smart gateway, the system will consider that the current smart gateway still has sufficient processing capacity and can normally perform traffic forwarding, task allocation and data synchronization operations without load balancing adjustment or additional resource scheduling. The system will continue to monitor traffic changes in the Bluetooth Mesh network, dynamically optimize task scheduling strategies based on task types (such as video streaming, sensor data, control instructions, etc.), and use the resources of the connected gateway to perform path optimization to avoid additional delays caused by data detours. In the star topology (gateway as the central node) mode, the system can maintain the main network The system can use idle gateways as redundant nodes to improve data forwarding efficiency in mesh topology. In addition, when bandwidth is sufficient, the system can improve the transmission quality of high-definition video streams, increase data sampling rate, and optimize user experience. For example, in smart monitoring scenarios, when the smart gateway has sufficient traffic, the video resolution of the camera can be increased to 4K instead of the default 1080P. For example, when the system determines that the traffic demand of the Bluetooth Mesh network exceeds the traffic carrying capacity of the connected smart gateway, the system will consider that the current smart gateway cannot perform the operation task normally. The system will identify the traffic blocking points of the Bluetooth Mesh network, detect the idle available gateways of the Bluetooth Mesh network based on these traffic blocking points, and dynamically adjust the data flow distribution of the Bluetooth Mesh network according to different idle available gateways. The system can accurately identify those nodes whose communication performance has decreased due to traffic overload by real-time monitoring and analyzing the traffic bottlenecks in the network. These blocking points may be certain smart gateways or specific paths. The system can reduce network delay and packet loss rate by optimizing these bottleneck nodes. Once the traffic blocking points are identified, the system will quickly perform load balancing and redistribute the overloaded traffic to idle gateways or nodes.This can disperse traffic pressure, avoid overloading a single node, and ensure smooth data transmission. At the same time, the system will monitor in real time which gateways in the Bluetooth Mesh network are idle, and dynamically adjust the data flow to these idle gateways to effectively avoid performance degradation caused by excessive gateway load. This method helps to improve the stability and responsiveness of the entire network, avoid the impact of local node overload on the overall network operation, and by reasonably allocating traffic to multiple gateways, the system can balance the workload of each gateway, not only avoiding excessive consumption of resources of a single gateway, but also improving the overall utilization of network resources. This can effectively reduce network interruptions or delays and reduce the risk of system failures caused by resource overload. The dynamic scheduling of idle gateways can make the network topology more flexible, respond to different load requirements, and adapt to different usage scenarios or communication environments. The system can adjust the network structure in real time according to actual needs and improve its adaptability to different tasks and data flows.

[0048] In this embodiment, the test module also includes: A testing unit, configured to test the transmission time of a preset device sent to the smart gateway through the Bluetooth Mesh network based on the communication efficiency index of the communication scenario, wherein the communication efficiency index specifically includes throughput, delay, packet loss rate and connection stability; A fifth determination unit, configured to determine whether a preset delay is detected in the transmission duration, wherein the preset delay specifically includes a single-hop delay and a multi-hop delay; The fifth execution unit is used to obtain the response time of the intelligent gateway after receiving the device request, and generate the network response time difference of the Bluetooth Mesh network in real time according to the response time.

[0049] In this embodiment, the system tests the transmission time of a preset device sent to the intelligent gateway through the Bluetooth Mesh network based on the communication efficiency index of the communication scenario, which specifically includes throughput, delay, packet loss rate and connection stability. Then the system determines whether the transmission time detects a preset delay, and the preset delay specifically includes a single-hop delay and a multi-hop delay, so as to execute the corresponding steps; for example, when the system determines that the transmission time of the preset device sent to the intelligent gateway through the Bluetooth Mesh network does not detect a preset delay, the system will believe that the communication efficiency during the transmission process is high, and the response speed of the network connection is in line with expectations, and the system can efficiently perform During data transmission, the system will confirm that there is no problem with the current network configuration and continue to maintain the existing connection and routing strategy. At this time, the system can continue to monitor the network status to ensure that there is no new delay or instability. If the network status remains within a stable range, unnecessary optimization operations can be reduced to save system resources. At the same time, by increasing the accuracy of traffic scheduling and priority management, the network can continue to support more devices or data needs without introducing delays, and continue to perform periodic monitoring. When the network status changes (for example, devices are added or the load increases), timely measures can be taken. For example, the system can keep real-time tracking of the network topology and automatically adjust the route to adapt when necessary. New communication load, set delay threshold, when the delay is close to the set value, trigger alarm in advance or automatically adjust network resource configuration to deal with potential delay problems; for example, when the system determines that the transmission time of the preset device to the smart gateway through the Bluetooth Mesh network detects the preset delay, the system will consider that the communication efficiency in the transmission process is low, and the system will obtain the response time of the smart gateway after receiving the device request, and generate the network response time difference of the Bluetooth Mesh network in real time according to different response times; by detecting the delay and further obtaining the response time of the smart gateway, the system can more accurately locate the bottleneck in the communication process, whether it is the device side , transmission path, or the processing power of the gateway itself, the analysis of the response time difference can help the system identify the specific problematic links. At the same time, the real-time generation of the network response time difference can help the system dynamically adjust the allocation of network resources to reduce delays. For example, if the response time difference is too high, the system can accelerate data transmission by re-adjusting the data transmission path or increasing the bandwidth to optimize communication efficiency. By real-time monitoring and generating the network response time difference, the system can respond to changes in network load in a timely manner and maintain network stability. Even if there are delays in the network, the system can quickly take measures to optimize it, avoid delay accumulation, and ensure that the communication response speed between devices remains within an acceptable range.

[0050] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for interconnecting smart gateway devices of Bluetooth self-organizing network protocol, characterized in that: The following steps are involved: Based on the pre-built Bluetooth Mesh network, after the Bluetooth Mesh network is interconnected with the smart gateway, the communication efficiency of the Bluetooth Mesh network in different communication scenarios is tested; Determining whether the communication efficiency can meet the preset communication requirements; If not, then within the preset range of the Bluetooth Mesh network, adaptively detect the available nodes within the preset range, obtain the existing network topology information in real time according to the preset dynamic node registration mechanism, share and update the neighbor node list of the Bluetooth Mesh network according to the network topology information, dynamically adjust the connection priority of the Bluetooth Mesh network, and monitor the data traffic of the Bluetooth Mesh network; Determine whether the data traffic can be evenly distributed among multiple intelligent gateways; If it cannot be evenly distributed, the physical distance between the Bluetooth Mesh network and the preset obstacle is detected, and the transmission power of the Bluetooth Mesh network is dynamically adjusted based on the physical distance. According to the edge computing terminal pre-integrated in the Bluetooth Mesh network, the preset key control tasks are preferentially executed locally, and the key control tasks are collaboratively processed according to the preset distributed computing architecture of the Bluetooth Mesh network. The key control tasks specifically include rapid linkage control between devices, distribution and processing of device data, and abnormal response to device status.

2. The method for interconnecting smart gateway devices of the Bluetooth ad hoc network protocol according to claim 1, characterized in that: The step of acquiring the existing network topology information in real time according to the preset dynamic node registration mechanism, and sharing and updating the neighbor node list of the Bluetooth Mesh network according to the network topology information, further includes: Based on the preset BLE broadcast, scan and obtain the connectable Mesh devices within the preset range, and detect the connection stability of the connectable Mesh devices according to the preset link quality indicators of the Bluetooth Mesh network, wherein the link quality indicators specifically include data packet reception rate, routing hop count and delay; Determine whether the connection stability can meet the preset connection requirements of the Bluetooth Mesh network; If not, activate the incremental synchronization mechanism preset in the Bluetooth Mesh network, transmit only the changed data to the connectable Mesh device, verify the online status of the connectable Mesh device through the heartbeat packet preset in the Bluetooth Mesh network, dynamically remove the connectable Mesh device from the neighbor node list based on the online status, and recalculate the optimal route of the Bluetooth Mesh network.

3. The method for interconnecting smart gateway devices of the Bluetooth ad hoc network protocol according to claim 1, characterized in that: Before the step of dynamically adjusting the connection priority of the Bluetooth Mesh network and monitoring the data traffic of the Bluetooth Mesh network, the method further includes: Based on the initial connection weights pre-allocated by the Bluetooth Mesh network, dividing the connection structure of the Bluetooth Mesh network, wherein the connection structure specifically includes core nodes, edge nodes, and terminal nodes; Determining whether the connection structure matches the communication load of the Bluetooth Mesh network; If not, different data types of the Bluetooth Mesh network are collected, and the available paths preset in the neighbor node list are dynamically switched according to the communication load, wherein the different data types specifically include control instructions, sensor data, and audio and video streams, and the available paths specifically include a main path and a backup path.

4. The method for interconnecting smart gateway devices of the Bluetooth ad hoc network protocol according to claim 1, characterized in that: The step of preferentially executing preset key control tasks locally according to the edge computing terminal pre-integrated in the Bluetooth Mesh network also includes: Based on the Bluetooth Mesh network, sharing the task status of the key control task between various intelligent gateways, and obtaining the gateway load when the Bluetooth Mesh network executes the key control task; Determining whether the gateway load exceeds a preset load threshold; If so, according to the task size of the key control task, the preset task slicing mechanism is activated to split the key control task into a preset number of sub-tasks, and the sub-tasks are assigned to different smart gateways. According to the preset task execution order, unified scheduling is performed through the Bluetooth Mesh network to coordinate the resource sharing of the sub-tasks by each smart gateway.

5. The method for interconnecting smart gateway devices of the Bluetooth ad hoc network protocol according to claim 1, characterized in that: The step of determining whether the communication efficiency can meet the preset communication requirement also includes: Based on the task content preset in the Bluetooth Mesh network, obtain the bandwidth size corresponding to the task content; Determining whether the bandwidth size exceeds the maximum carrying capacity of the current connection; If not, the real-time requirement of the task content is detected, the communication strategy of the Bluetooth Mesh network is dynamically optimized, and the data transmission efficiency under different network topologies is identified according to the preset network topology of the Bluetooth Mesh network, wherein the real-time requirement specifically includes voice, video streaming and real-time control, the communication strategy specifically includes adjusting the path, increasing bandwidth and priority scheduling, and the network topology specifically includes point-to-point, star and mesh.

6. The method for interconnecting smart gateway devices of the Bluetooth ad hoc network protocol according to claim 1, characterized in that: The step of determining whether the data traffic can be evenly distributed among multiple intelligent gateways further includes: Based on the traffic demand of the Bluetooth Mesh network, obtain the bearer traffic of any connected smart gateway, wherein the traffic demand specifically includes task type, number of devices and data volume; Determining whether the traffic demand exceeds the carrying traffic; If so, identify the traffic congestion point of the Bluetooth Mesh network, detect the idle and available gateways of the Bluetooth Mesh network based on the traffic congestion point, and dynamically adjust the data flow distribution of the Bluetooth Mesh network based on the idle and available gateways.

7. The method for interconnecting smart gateway devices of the Bluetooth ad hoc network protocol according to claim 1, characterized in that: The step of testing the communication efficiency of the Bluetooth Mesh network in different communication scenarios based on the pre-built Bluetooth Mesh network after the Bluetooth Mesh network is interconnected with the intelligent gateway also includes: Based on the communication efficiency index of the communication scenario, the transmission time of the preset device sent to the smart gateway through the Bluetooth Mesh network is tested, wherein the communication efficiency index specifically includes throughput, delay, packet loss rate and connection stability; Determine whether a preset delay is detected in the transmission duration, wherein the preset delay specifically includes a single-hop delay and a multi-hop delay; If yes, the response time of the intelligent gateway after receiving the device request is obtained, and the network response time difference of the Bluetooth Mesh network is generated in real time according to the response time.

8. A Bluetooth self-organizing network protocol intelligent gateway device interconnection system, characterized in that: include: A test module is used to test the communication efficiency of the Bluetooth Mesh network in different communication scenarios based on a pre-built Bluetooth Mesh network after the Bluetooth Mesh network is interconnected with a smart gateway; A determination module, used to determine whether the communication efficiency can meet the preset communication requirements; an execution module, configured to, if not, adaptively detect available nodes within a preset range of the Bluetooth Mesh network, obtain existing network topology information in real time according to a preset dynamic node registration mechanism, share and update a neighbor node list of the Bluetooth Mesh network according to the network topology information, dynamically adjust a connection priority of the Bluetooth Mesh network, and monitor data traffic of the Bluetooth Mesh network; A second judgment module is used to judge whether the data traffic can be evenly distributed among multiple intelligent gateways; The second execution module is used to detect the physical distance between the Bluetooth Mesh network and the preset obstacle if it cannot be evenly distributed, and dynamically adjust the transmission power of the Bluetooth Mesh network based on the physical distance. According to the edge computing terminal pre-integrated in the Bluetooth Mesh network, the preset key control tasks are preferentially executed locally, and the key control tasks are collaboratively processed according to the distributed computing architecture preset by the Bluetooth Mesh network, wherein the key control tasks specifically include rapid linkage control between devices, distribution processing of device data, and abnormal response to device status.

9. The intelligent gateway device interconnection system of the Bluetooth ad hoc network protocol according to claim 8, characterized in that: The execution module also includes: A detection unit, configured to scan and obtain connectable Mesh devices within the preset range based on a preset BLE broadcast, and detect the connection stability of the connectable Mesh devices according to a preset link quality indicator of the Bluetooth Mesh network, wherein the link quality indicator specifically includes a data packet reception rate, a routing hop count, and a delay; A determination unit, configured to determine whether the connection stability can meet a preset connection requirement of the Bluetooth Mesh network; The execution unit is used to activate the incremental synchronization mechanism preset in the Bluetooth Mesh network if not, transmit only the changed data to the connectable Mesh device, verify the online status of the connectable Mesh device through the heartbeat packet preset in the Bluetooth Mesh network, dynamically remove the connectable Mesh device from the neighbor node list based on the online status, and recalculate the optimal route of the Bluetooth Mesh network.

10. The intelligent gateway device interconnection system of the Bluetooth ad hoc network protocol according to claim 8, characterized in that: Also includes: A partitioning module, configured to partition a connection structure of the Bluetooth Mesh network based on an initial connection weight pre-allocated by the Bluetooth Mesh network, wherein the connection structure specifically includes core nodes, edge nodes, and terminal nodes; A third determination module is used to determine whether the connection structure matches the communication load of the Bluetooth Mesh network; The third execution module is used to collect different data types of the Bluetooth Mesh network, and dynamically switch the available paths preset in the neighbor node list according to the communication load, wherein the different data types specifically include control instructions, sensor data, and audio and video streams, and the available paths specifically include a main path and a backup path.

Citation Information

Patent Citations

  • Intelligent switch networking method and device based on Bluetooth mesh

    CN119485241A

  • Distributed medium access protocol for wireless mesh networks

    US20120106522A1

  • Method and apparatus for accessing a network node without route discovery

    WO2023198546A1

Cited By

  • Information data transmission method and system based on computer network

    CN120186734A

  • Bluetooth 4G dual-mode communication method of Internet of Things equipment

    CN120358563A

  • Low-power-consumption ad hoc network positioning method based on Bluetooth rapid pairing

    CN120568461A

  • Self-adaptive Mesh network architecture construction method for hybrid networking of industrial Internet of Things

    CN120769326A