An Interconnection Method and System for Intelligent Gateway Devices of a Bluetooth Ad Hoc Network Protocol
Through the intelligent gateway device interconnection method of the ad hoc network protocol, the problem of communication difficulties between Bluetooth Mesh gateways is solved, efficient interconnection and load balancing are achieved, and the stability and efficiency of the system are improved.
Patent Information
- Application Number
- CN202510405713.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-02
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2045-04-02
AI Technical Summary
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.
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, update the list of neighbor nodes, dynamically adjust connection priority and transmission power, priority execution of key control tasks locally, and coordinate processing of key control tasks.
It realizes efficient interconnection between different gateways, ensures communication stability and load balancing, avoids network bottlenecks, improves system efficiency, and improves response speed and processing capabilities.
Smart Images

Figure CN119946598B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication data processing, and particularly to a method and system for interconnecting intelligent gateway devices of a Bluetooth ad-hoc network protocol. Background Art
[0002] In a typical Bluetooth Mesh network architecture, the intelligent gateway, as the core device, undertakes important functions such as data collection, forwarding, and management, and is also responsible for interconnecting the Bluetooth Mesh network with external networks (such as Wi-Fi, Ethernet, cellular networks) to achieve remote control and data processing.
[0003] However, in large-scale deployments or complex environments, the communication range and processing capacity 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 with each other. There is a lack of a data exchange protocol between 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 a Bluetooth ad-hoc network protocol.
[0005] The present invention adopts the following technical means to solve the technical problems:
[0006] The present invention provides a method for interconnecting intelligent gateway devices of a Bluetooth ad-hoc network protocol, including:
[0007] Based on a pre-built Bluetooth Mesh network, after interconnecting the Bluetooth Mesh network with the intelligent gateway, test the communication efficiency of the Bluetooth Mesh network in different communication scenarios;
[0008] Judge whether the communication efficiency can meet the preset communication requirements;
[0009] If not, then within the preset range of the Bluetooth Mesh network, adaptively detect the available nodes within the preset range, according to the preset dynamic node registration mechanism, obtain the existing network topology information in real time, based on the network topology information, share and update the neighbor node list of the Bluetooth Mesh network, dynamically adjust the connection priority of the Bluetooth Mesh network, and monitor the data traffic of the Bluetooth Mesh network;
[0010] Judge whether the data traffic can be evenly distributed among multiple intelligent gateways;
[0011] If it cannot be evenly distributed, detect the physical distance between the Bluetooth Mesh network and a preset obstacle, dynamically adjust the transmission power of the Bluetooth Mesh network based on the physical distance, and preferentially execute preset key control tasks locally according to the edge computing terminal pre-integrated in the Bluetooth Mesh network. Then, cooperate to process the key control tasks according to the preset distributed computing architecture of the Bluetooth Mesh network, where the key control tasks specifically include fast linkage control between devices, distribution processing of device data, and abnormal response to device status.
[0012] Further, in the step of obtaining existing network topology information in real time according to a preset dynamic node registration mechanism and sharing and updating the neighbor node list of the Bluetooth Mesh network based on the network topology information, it further includes:
[0013] Based on a preset BLE broadcast, scan and obtain connectable Mesh devices within the preset range, and detect the connection stability of the connectable Mesh devices according to the link quality indicators preset for the Bluetooth Mesh network, where the link quality indicators specifically include packet reception rate, routing hop count, and latency;
[0014] Judge whether the connection stability can meet the connection requirements preset for the Bluetooth Mesh network;
[0015] If not, activate the incremental synchronization mechanism preset for the Bluetooth Mesh network, only transmit changed data to the connectable Mesh devices, verify the online status of the connectable Mesh devices through the heartbeat packets preset for the Bluetooth Mesh network, and dynamically remove the connectable Mesh devices from the neighbor node list based on the online status, and recalculate the best route of the Bluetooth Mesh network.
[0016] Further, before the step of dynamically adjusting the connection priority of the Bluetooth Mesh network and monitoring the data traffic of the Bluetooth Mesh network, it further includes:
[0017] Based on the initial connection weights pre-allocated for the Bluetooth Mesh network, divide the connection structure of the Bluetooth Mesh network, where the connection structure specifically includes core nodes, edge nodes, and terminal nodes;
[0018] Judge whether the connection structure matches the communication load of the Bluetooth Mesh network;
[0019] If not, collect different data types of the Bluetooth Mesh network, and dynamically switch the available paths preset for the neighbor node list according to the communication load, where the different data types specifically include control instructions, sensing data, and audio-video streams, and the available paths specifically include main paths and backup paths.
[0020] Further, in the step of preferentially executing a preset key control task locally by the edge computing end pre-integrated according to the Bluetooth Mesh network, the following steps are further included:
[0021] Based on the Bluetooth Mesh network, share the task status of the key control task among each intelligent gateway, and obtain the gateway load when the Bluetooth Mesh network executes the key control task;
[0022] Judge whether the gateway load exceeds a preset load threshold;
[0023] If so, activate a preset task sharding mechanism according to the task volume of the key control task, split the key control task into a preset number of subtasks, and allocate the subtasks to different intelligent gateways. According to the preset task execution order, perform unified scheduling through the Bluetooth Mesh network to coordinate the resource sharing of each intelligent gateway for the subtasks.
[0024] Further, in the step of judging whether the communication efficiency can meet the preset communication requirements, the following steps are further included:
[0025] Based on the task content preset by the Bluetooth Mesh network, obtain the bandwidth size corresponding to the task content;
[0026] Judge whether the bandwidth size exceeds the maximum carrying capacity of the current connection;
[0027] 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 topology shapes according to the network topology shape preset by the Bluetooth Mesh network. Among them, the real-time requirement specifically includes voice, video stream and real-time control, the communication strategy specifically includes adjusting the path, increasing the bandwidth and priority scheduling, and the network topology shape specifically includes point-to-point, star and mesh.
[0028] Further, in the step of judging whether the data traffic can be evenly distributed among multiple intelligent gateways, the following steps are further included:
[0029] Based on the traffic demand of the Bluetooth Mesh network, obtain the carrying traffic of any connected intelligent gateway, where the traffic demand specifically includes task type, number of devices and data volume;
[0030] Judge whether the traffic demand exceeds the carrying traffic;
[0031] If so, identify the traffic bottleneck points of the Bluetooth Mesh network, detect the idle and available gateways of the Bluetooth Mesh network based on the traffic bottleneck points, and dynamically adjust the data flow distribution of the Bluetooth Mesh network according to the idle and available gateways.
[0032] Further, in the step of testing the communication efficiency of the Bluetooth Mesh network in different communication scenarios after the Bluetooth Mesh network is interconnected with the smart gateway based on the pre-established Bluetooth Mesh network, it further includes:
[0033] Based on the communication efficiency metrics of the communication scenario, test the transmission duration of the preset device sent to the smart gateway through the Bluetooth Mesh network, where the communication efficiency metrics specifically include throughput, latency, packet loss rate, and connection stability;
[0034] Judge whether the preset latency is detected in the transmission duration, where the preset latency specifically includes single-hop latency and multi-hop latency;
[0035] If so, obtain the response time after the smart gateway receives the device request, and generate the network response time difference of the Bluetooth Mesh network in real time according to the response time.
[0036] The present invention also provides a smart gateway device interconnection system for a Bluetooth ad hoc network protocol, including:
[0037] A test module for testing the communication efficiency of the Bluetooth Mesh network in different communication scenarios after the Bluetooth Mesh network is interconnected with the smart gateway based on the pre-established Bluetooth Mesh network;
[0038] A judgment module for judging whether the communication efficiency can meet the preset communication requirements;
[0039] An execution module for, if not, adaptively detecting the available nodes within the preset range of the Bluetooth Mesh network, obtaining the existing network topology information in real time according to the preset dynamic node registration mechanism, sharing and updating the neighbor node list of the Bluetooth Mesh network based on the network topology information, dynamically adjusting the connection priority of the Bluetooth Mesh network, and monitoring the data traffic of the Bluetooth Mesh network;
[0040] A second judgment module for judging whether the data traffic can be evenly distributed among multiple smart gateways;
[0041] A second execution module, configured to detect the physical distance between the Bluetooth Mesh network and a preset obstacle if uniform distribution cannot be achieved, dynamically adjust the transmission power of the Bluetooth Mesh network based on the physical distance, preferentially execute preset key control tasks locally according to the edge computing terminal pre-integrated in the Bluetooth Mesh network, and cooperate to process the key control tasks according to the preset distributed computing architecture of the Bluetooth Mesh network, where the key control tasks specifically include rapid linkage control between devices, distribution processing of device data, and abnormal response to device status.
[0042] Further, the execution module further includes:
[0043] 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 the link quality indicators preset for the Bluetooth Mesh network, where the link quality indicators specifically include packet reception rate, routing hop count, and latency;
[0044] A judgment unit, configured to judge whether the connection stability can meet the connection requirements preset for the Bluetooth Mesh network;
[0045] An execution unit, configured to, if not, activate the incremental synchronization mechanism preset for the Bluetooth Mesh network, only transmit changed data to the connectable Mesh devices, verify the online status of the connectable Mesh devices through the heartbeat packets preset for the Bluetooth Mesh network, and dynamically remove the connectable Mesh devices from the neighbor node list according to the online status, and recalculate the optimal route of the Bluetooth Mesh network.
[0046] Further, it further includes:
[0047] A partitioning module, configured to partition the connection structure of the Bluetooth Mesh network based on the initial connection weights pre-allocated for the Bluetooth Mesh network, where the connection structure specifically includes core nodes, edge nodes, and terminal nodes;
[0048] A third judgment module, configured to judge whether the connection structure matches the communication load of the Bluetooth Mesh network;
[0049] A third execution module, configured to, 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, where the different data types specifically include control instructions, sensing data, and audio-video streams, and the available paths specifically include a main path and a backup path.
[0050] The present invention provides a method and system for interconnecting intelligent gateway devices of a Bluetooth ad-hoc network protocol, which has the following beneficial effects:
[0051] Through adaptive node management, real-time updating of the network topology, and optimization of connection priorities, the present invention ensures the stability of communication and load balancing, avoids the generation of network bottlenecks. At the same time, through intelligent data traffic distribution, data can be evenly distributed among multiple intelligent gateways, avoiding overload of some gateways, improving the overall system efficiency. Moreover, the local execution of edge computing optimizes the response speed, reduces latency, and collaboratively processes key control tasks such as device linkage, data distribution, and exception response through a distributed computing architecture, thereby improving the flexibility and processing capacity of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a schematic flowchart of an embodiment of the method for interconnecting intelligent gateway devices of the Bluetooth ad-hoc network protocol of the present invention;
[0053] Figure 2 It is a structural block diagram of an embodiment of the system for interconnecting intelligent gateway devices of the Bluetooth ad-hoc network protocol of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. The implementation, functional characteristics, and advantages of the present invention will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
[0055] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without making creative efforts shall fall within the protection scope of the present invention.
[0056] Refer to the attached Figure 1 , which is a method for interconnecting intelligent gateway devices of the Bluetooth ad-hoc network protocol in an embodiment of the present invention, including:
[0057] S1: Based on a pre-established Bluetooth Mesh network, after interconnecting the Bluetooth Mesh network with the intelligent gateway, test the communication efficiency of the Bluetooth Mesh network in different communication scenarios;
[0058] S2: Determine whether the communication efficiency can meet the preset communication requirements;
[0059] S3: If not, adaptively detect available nodes within the preset range of the Bluetooth Mesh network, 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 based on the network topology information, dynamically adjust the connection priority of the Bluetooth Mesh network, and monitor the data traffic of the Bluetooth Mesh network;
[0060] S4: Determine whether the data traffic can be evenly distributed among multiple smart gateways;
[0061] S5: If it cannot be evenly distributed, detect the physical distance between the Bluetooth Mesh network and the preset obstacle, dynamically adjust the transmission power of the Bluetooth Mesh network based on the physical distance, preferentially execute the preset key control tasks locally according to the edge computing terminal pre-integrated in the Bluetooth Mesh network, and cooperate to process the key control tasks according to the distributed computing architecture preset in the Bluetooth Mesh network, where the key control tasks specifically include fast linkage control between devices, distribution processing of device data, and abnormal response of device status.
[0062] In this embodiment, the system is based on a pre-established 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. Then, the system determines whether the communication efficiency can meet the pre-set communication requirements to execute corresponding steps. For example, when the system determines that the communication efficiency of the Bluetooth Mesh network in different communication scenarios can meet the pre-set communication requirements, the system will consider that the current network topology, data transmission performance, and connection stability between gateways all meet the expectations and no additional optimization and adjustment are 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 will be used as a reference baseline for subsequent anomaly detection and optimization comparison. Based on the edge computing architecture, the computing resources are reasonably allocated, and key control tasks are preferentially processed locally to reduce the unnecessary cloud communication burden. And if it is subsequently monitored that the communication efficiency decreases or the load is unbalanced, a dynamic adjustment mechanism will be triggered to optimize the 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, at this time, the system will consider that the current network topology, data transmission performance, and connection stability between gateways do not meet the expectations. The system will adaptively detect the available nodes within the pre-set range of the Bluetooth Mesh network, obtain the 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 based on 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 the active devices in the network by adaptively detecting the available nodes within the preset range of the Bluetooth Mesh network. According to the current network load situation, it can reasonably adjust the joining or exiting of nodes. This adaptive ability ensures that the network can be optimized according to real-time conditions, thereby enhancing the communication stability and overall network performance, and avoiding communication interruption problems 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, enabling all intelligent gateways to know the available connection nodes around them in real time. This mechanism can effectively optimize the data transmission path, reduce unnecessary communication relay links, improve the overall transmission efficiency of the network, and 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, according to factors such as node stability, data transmission rate, and signal quality, preferentially select high-quality connection paths. 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 overall network response speed and reliability. In the case where 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 the traffic scheduling, the system can reasonably distribute the loads of different gateways, avoid some gateways becoming bottlenecks due to excessive data traffic, and improve the resource utilization rate of low-load gateways, thereby achieving more efficient network data distribution. Then the system determines whether these data traffic can be evenly distributed among multiple intelligent gateways to execute 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 current load scheduling mechanism of the Bluetooth Mesh network is operating normally, the workloads of all gateways tend to be balanced, and there is no situation where some gateways are overloaded or some gateway resources are idle. The system will give priority to maintaining the current network topology structure and will not frequently adjust the connection method between gateways to reduce the additional communication overhead or network jitter that may be brought about by excessive adjustment. This strategy ensures the stability of the system, enabling the Bluetooth Mesh network to maintain high reliability and low-latency characteristics during long-term operation. At the same time, since the data traffic has been evenly distributed, the system will continue to execute tasks such as communication between devices, data synchronization, and remote control according to the preset scheduling strategy, ensuring that the intelligent gateway can efficiently support the entire Internet of Things application scenario. And although the current data traffic distribution is balanced, the system still needs to continuously monitor the network traffic situation to prevent uneven load redistribution caused by sudden data requests or new device joins. 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 load scheduling mechanism of the current Bluetooth Mesh network is operating abnormally, and the workloads of all gateways cannot be balanced. The system will detect the physical distances between the Bluetooth Mesh network and pre-set obstacles. Based on these physical distances, it will dynamically adjust the transmission power of the Bluetooth Mesh network. According to the edge computing terminal pre-integrated in the Bluetooth Mesh network, it will preferentially execute pre-set key control tasks locally. The key control tasks specifically include rapid linkage control between devices, distribution and processing of device data, and abnormal response to device status. According to the pre-set distributed computing architecture of the Bluetooth Mesh network, it will cooperate to process different key control tasks; by detecting the physical distances between the Bluetooth Mesh network and obstacles, the system dynamically adjusts the transmission power to make the signal coverage more balanced, thereby optimizing the data transmission path, improving the load balance between gateways, making the overall network operation more stable. At the same time, adjusting the transmission power of the Bluetooth Mesh network helps to reduce signal interference between devices that are too far or too close, avoid data loss caused by signal attenuation, reduce unnecessary power consumption, improve the overall communication efficiency by optimizing the wireless signal coverage range, reduce unnecessary retransmissions between nodes, make the data flow more reasonably distributed among smart gateways, ensure the efficient operation of the network, and the Bluetooth Mesh network integrates an edge computing terminal, enabling the system to execute key control tasks locally without completely relying on the cloud or remote servers. This mechanism greatly reduces the transmission delay of data between different levels, enabling rapid linkage control between devices, distribution and processing of data, and abnormal response to be completed in the shortest time, improving the real-time performance and reliability of the system, ensuring that devices can quickly adapt to sudden situations. Through the distributed architecture of edge computing, the system can dynamically allocate computing resources according to the priority of tasks and cooperate to process these tasks among multiple gateways. This can not only reduce the burden on a single gateway but also improve the processing ability of the entire system for emergencies, increasing the throughput and reliability of data processing.
[0063] It should be noted that within the preset range of the Bluetooth Mesh network, it adaptively detects available nodes within the preset range, obtains the existing network topology information in real time according to the preset dynamic node registration mechanism, shares and updates the neighbor node list of the Bluetooth Mesh network based on the network topology information, and dynamically adjusts the connection priority of the Bluetooth Mesh network. The specific example is as follows:
[0064] Suppose in a modern intelligent building, the entire lighting system is intelligently controlled using a Bluetooth Mesh network. Multiple Bluetooth Mesh intelligent gateways are installed on each floor. These gateways are responsible for controlling the lighting switches and brightness adjustment in each area and maintaining real-time communication with the building's central control system. However, during peak commuting hours (such as 8 am and 6 pm), there are obvious lighting response delays on some floors of the building (for example, the 10th floor). The lights in some areas fail to turn on or off in a timely manner, affecting the user experience. After system monitoring, it is found that the main intelligent gateways A and B on this floor are overloaded, with a large amount of data traffic concentrated on these two gateways. Although gateways C and D are available, they are not effectively utilized, resulting in uneven distribution of network resources.
[0065] Step 1, first, within the preset range of the Bluetooth Mesh network, adaptively detect available nodes. The system first adaptively detects all available intelligent gateway nodes within the Bluetooth Mesh network of the entire building. During the scanning process, the system discovers that in addition to A and B, gateways C and D are also in an available state. However, due to the topology not being updated in a timely manner, these gateways have not been assigned appropriate tasks.
[0066] Step 2, then, according to the preset dynamic node registration mechanism, obtain the existing network topology information in real time. After detecting that C and D are available, the system immediately activates the preset dynamic node registration mechanism. This mechanism 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 are not undertaking enough tasks. Therefore, the system decides to re-register C and D into the current network and include them in the main link for data transmission.
[0067] Step 3, subsequently, based on the network topology information, share and update the neighbor node list of the Bluetooth Mesh network. 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 interconnected with each other, and now C and D are also included in the connection list. C and D will broadcast their availability to surrounding intelligent devices (such as lighting devices, sensors, etc.), allowing data traffic to be transmitted through them. The adjacency relation table of the entire Bluetooth Mesh network will be updated in real time to ensure that all devices can find the optimal communication path.
[0068] 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 loads of A and B are too high, the system reduces their connection priorities, causing some data traffic to be transferred to C and D. The connection weights of C and D are 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 across the entire network, preventing communication bottlenecks caused by overloading of a single gateway.
[0069] In summary, through the above example content, the Bluetooth Mesh network achieves more reasonable load balancing. That is, the response speed of the intelligent lighting system is significantly improved. The lights in all areas on the 10th floor can be quickly turned on or off according to the personnel flow, without obvious delay. The network stability is enhanced. Even during peak hours, the load balancing of all intelligent gateways avoids disconnection or data loss caused by overloading of some devices. The overall efficiency is improved. The resources of gateways C and D are effectively utilized, and the communication capabilities of the entire Bluetooth Mesh network are optimized.
[0070] It should be added that according to the edge computing terminal pre-integrated in the Bluetooth Mesh network, key preset control tasks are preferentially executed locally. According to the preset distributed computing architecture of the Bluetooth Mesh network, the key control tasks are collaboratively processed. The specific examples are as follows:
[0071] Suppose in a modern intelligent factory, the devices on the production line (such as robotic arms, conveyor belts, sensors, etc.) are connected through a Bluetooth Mesh network, forming an intelligent device ecosystem covering the entire factory. To ensure efficient and real-time response of the production process, the devices inside the factory cooperate with the edge computing terminal through the Bluetooth Mesh network to achieve intelligent control.
[0072] Scenario description: On a certain production line, the robotic arms and conveyor belts in the factory are responsible for the automated handling of parts. Real-time monitoring of some key operations, such as the motion control of robotic arms and the speed adjustment of conveyor belts, requires quick response, and these devices must cooperate with each other to ensure seamless operation of the production line under high efficiency.
[0073] Step 1: First, the edge computing terminal pre-integrated in the Bluetooth Mesh network preferentially executes local control tasks. Since the intelligent devices in the factory need to respond to production demands in real time, any delay will affect the production progress. Therefore, the system will preferentially execute key control tasks on the local edge computing terminal. For example:
[0074] Operation of the robotic arm: The robotic arm needs to immediately perform actions such as grasping, transporting, or rotating after receiving parts on the conveyor belt. This process requires low latency. Therefore, the factory deploys local edge computing nodes in each production line area to be responsible for executing the motion control tasks of the robotic arm.
[0075] Conveyor Belt Speed Adjustment: The speed of the conveyor belt needs to be dynamically adjusted according to the status of upstream equipment. For example, when the robotic arm moves parts, the speed of the conveyor belt needs to be slowed down or accelerated; this adjustment task is quickly executed on the local edge computing node to reduce latency;
[0076] Step 2, and then perform collaborative processing based on the distributed computing architecture of the Bluetooth Mesh network. Under the collaborative work of multiple devices on the production line, the system, based on the preset distributed computing architecture of the Bluetooth Mesh network, processes more complex tasks through the collaboration between the intelligent gateway and the edge computing node; for example:
[0077] Sensor Data Aggregation and Analysis: Temperature and humidity sensors, gas sensors, etc. in the factory continuously collect environmental data, and the edge computing node processes this data in real time; if it detects that the temperature and humidity are too high, the edge computing node will immediately send an alarm to the control system and adjust the operation of the air conditioning system;
[0078] Device Status Synchronization: Multiple devices (such as robotic arms, conveyor belts, and sensors) need to continuously exchange information, such as the operating status, position, speed, etc. of the devices; in the Bluetooth Mesh network, the edge computing node coordinates the data transmission of these devices to ensure that the status of all devices is up-to-date, thus enabling collaborative work;
[0079] Step 3, then data sharing and task coordination. To ensure that the devices on the production line can cooperate with each other, the system shares and synchronizes the status information of all devices 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;
[0080] For example, when the robotic arm completes a task and moves to the next working point, it will transmit its position data to the conveyor belt control system through the Bluetooth Mesh network;
[0081] For example, the speed change of the conveyor belt will be transmitted to other devices in real time. For example, when the sensor detects a change in the material, it will quickly update the grasping position and action of the robotic arm;
[0082] Step 4, finally real-time optimization and adaptive adjustment. Since the status of devices often changes during the production process, the edge computing node also needs to perform real-time optimization and adaptive adjustment; for example:
[0083] When the device is overloaded, the edge computing terminal will re-schedule resources, such as adjusting the action frequency of the robotic arm or the speed of the conveyor belt, to ensure that the entire production line does not experience overload or stagnation;
[0084] When a certain device fails or malfunctions, 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;
[0085] In summary, in the above example, by preferentially executing key control tasks at the pre-integrated edge computing end of the Bluetooth Mesh network and collaboratively processing tasks through a distributed computing architecture, the intelligent factory can achieve low-latency device control, improve production efficiency, while ensuring the synchronization and processing of real-time data, complete the collaborative work between devices, and dynamically adjust and optimize to cope with emergencies or device load changes. This method of combining the Bluetooth Mesh network with edge computing ensures that the production devices in the factory can adjust their operations according to real-time requirements, not only optimizing resource allocation, but also enhancing the stability and reliability of the overall system.
[0086] In this embodiment, in step S3 of sharing and updating the neighbor node list of the Bluetooth Mesh network according to the preset dynamic node registration mechanism and obtaining the existing network topology information in real time, it further includes:
[0087] 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 preset link quality indicators of the Bluetooth Mesh network. Among them, the link quality indicators specifically include packet reception rate, routing hop count, and latency;
[0088] S32: Judge whether the connection stability can meet the connection requirements preset by the Bluetooth Mesh network;
[0089] S33: If not, activate the preset incremental synchronization mechanism of the Bluetooth Mesh network, only transmit the changed data to the connectable Mesh devices, verify the online status of the connectable Mesh devices through the preset heartbeat packets of the Bluetooth Mesh network, and based on the online status, dynamically remove the connectable Mesh devices from the neighbor node list and recalculate the optimal route of the Bluetooth Mesh network.
[0090] In this embodiment, the system scans and obtains connectable Mesh devices within a preset range based on a preset BLE broadcast. According to the link quality indicators preset in the Bluetooth Mesh network, the link quality indicators specifically include packet reception rate, routing hop count, and latency, to detect the connection stability of the connectable Mesh devices. Then, the system determines whether the connection stability can meet the connection requirements preset in the Bluetooth Mesh network to execute 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 it can reliably participate in the exchange and cooperation of network data. The system will officially incorporate the device into the Bluetooth Mesh network, assign a role to the device (such as: routing node, terminal node, etc.), and establish a communication link between devices. At this time, 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.Including updating the neighbor node list, link quality metrics, and connection status of the device in network management, which can ensure that when the entire network expands, the connection status between nodes is up-to-date and optimized. And once the connection stability meets the requirements, the system can start assigning tasks to the device or forwarding data streams through the device. For example, in an intelligent factory scenario, the system can allocate 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 certain room. For example, when the system determines that the connection stability of a connectable Mesh device cannot meet the connection requirements preset by the Bluetooth Mesh network, the system will consider that the communication quality of the device is poor and it cannot participate in network data exchange and collaboration. The system will activate the incremental synchronization mechanism preset by the Bluetooth Mesh network, only transmit changed data to the connectable Mesh device, verify the online status of the connectable Mesh device through the heartbeat packet preset by the Bluetooth Mesh network, and dynamically remove the connectable Mesh device from the neighbor node list according to the online status, and recalculate the optimal route of the Bluetooth Mesh network. By only transmitting changed data, the incremental synchronization mechanism effectively reduces unnecessary data transmission volume, reduces network burden, thereby improving network stability and efficiency. This avoids bandwidth waste caused by a large amount of invalid data transmission, 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 continuously 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 and ensures the efficient operation of the network. And after recalculating the optimal route of the Bluetooth Mesh network, the system can adjust the routing strategy according to the actual connection situation of the current device, which can ensure that data is always transmitted through a connection path with better quality, avoiding unstable devices as relay nodes affecting the reliability and speed of data transmission. And through the heartbeat packet mechanism, the system can monitor the online status of the device in real time, promptly detect devices that are offline or have poor communication quality, and 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 caused by device instability.
[0091] It should be noted that the incremental synchronization mechanism preset by the Bluetooth Mesh network is activated, only changed data is transmitted to the connectable Mesh device, the online status of the connectable Mesh device is verified through the heartbeat packet preset by the Bluetooth Mesh network, and 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 example is as follows:
[0092] Suppose in a smart building, a Bluetooth Mesh network is used to control the lighting system. The lighting devices in each room are connected to the smart gateway through the Mesh network to achieve centralized management. Suppose there is an intelligent lighting control device (hereinafter referred to as Device A) supporting the Bluetooth Mesh protocol installed in Conference Room A of the building. This device is used to receive brightness adjustment instructions from the gateway and feedback its status back to the network;
[0093] One day, due to low battery power, wireless interference or hardware failure of Device A, the communication quality deteriorates. The system finds that its connection stability has fallen below the set minimum threshold (for example, the packet reception rate is lower than 80%); To avoid its impact on the overall network performance, the system starts a series of optimization measures;
[0094] First, trigger the incremental synchronization mechanism. Since the communication quality of Device A has deteriorated, the system will not immediately disconnect its connection but activate the incremental synchronization mechanism. Incremental synchronization means only transmitting necessary changed data, such as:
[0095] Current illuminance data of the conference room: If the illuminance 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 volume;
[0096] Minimum power consumption mode adjustment: If the status feedback of Device A is delayed, the system will only issue the most critical instructions, such as "maintain the current brightness" or "switch to the low-power mode", instead of transmitting the complete control strategy to reduce the data volume;
[0097] At this stage, Device A can still respond to instructions, but the frequency and content of data synchronization are reduced to reduce the network burden;
[0098] Then, detect the device status through heartbeats. 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 judges the status of Device A in the following ways:
[0099] If Device A does not respond within three consecutive heartbeat detections (15 seconds), the system judges that it may have dropped off the line or is in an unavailable state;
[0100] If the response time of Device A is greatly extended (for example, the standard response time should be 100 ms, but currently it reaches 1000 ms), the system determines that its connection quality has seriously deteriorated and further optimization measures need to be taken;
[0101] At this step, the system has basically determined that Device A is in an unstable state and needs to be processed;
[0102] Subsequently, device removal and network routing adjustment. When the system determines that Device A cannot maintain a stable connection, the following steps will be taken for optimization:
[0103] Dynamic removal of Device A: The system removes Device A from the neighbor node list of the Bluetooth Mesh network and notifies all adjacent devices (such as Device B and Device C) not to attempt data relaying through Device A to prevent the instability of Device A from affecting the entire network communication;
[0104] Recalculate the optimal route: Since the removal of Device A may affect some communication paths, the system calculates a new data transmission path based on the signal quality, load status, and physical distance of the remaining Mesh devices; for example, originally, the control signal of Conference Room A was transmitted from Device A → Device B → Smart Gateway, and now the system automatically adjusts to Device C → Device B → Smart Gateway to ensure that the control signal can be transmitted smoothly;
[0105] This optimization strategy ensures that even if Device A is unavailable, the system can still maintain stable communication through other Mesh nodes;
[0106] Finally, the lighting control function of Conference Room A will not completely fail due to the abnormality of Device A, and the system can still complete the instruction transmission through the neighboring Mesh device (Device C) to ensure 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;
[0107] If Device A resumes operation later (such as replacing the battery or removing the interference source), the system will readmit it to the network through the incremental synchronization mechanism without manual configuration, thus ensuring the automatic recovery ability of the device;
[0108] In summary, the above example shows the adaptive optimization process of the Bluetooth Mesh network in the face of 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, improving communication reliability and network stability; this mechanism is particularly suitable for application scenarios such as intelligent buildings, smart homes, and industrial Internet of Things, and can effectively reduce the impact caused by a single device failure.
[0109] In this embodiment, before step S3 of dynamically adjusting the connection priority of the Bluetooth Mesh network and monitoring the data traffic of the Bluetooth Mesh network, it further includes:
[0110] S301: Divide the connection structure of the Bluetooth Mesh network based on the initial connection weights pre-allocated to the Bluetooth Mesh network, where the connection structure specifically includes core nodes, edge nodes, and terminal nodes;
[0111] S302: Determine whether the connection structure matches the communication load of the Bluetooth Mesh network;
[0112] 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, where the different data types specifically include control instructions, sensing data, and audio-visual streams, and the available paths specifically include a main path and a backup path.
[0113] In this embodiment, the system divides the connection structure of the Bluetooth Mesh network based on the initial connection weights pre-allocated 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 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. The system will reduce the status broadcast frequency of the core nodes, reduce unnecessary data synchronization, thereby reducing the overall communication overhead. For example, the original broadcast interval is to send a status update every 5 seconds. After optimization, the broadcast interval is adjusted to send a status update every 10 seconds, reducing the computational burden of the core nodes while maintaining the stability of the network. At the same time, continuously monitor the load conditions of the core nodes, edge nodes, and terminal nodes. For example, if it is found that the traffic of some edge nodes is gradually increasing and may reach the load bottleneck in the future, the system can optimize the data path in advance to avoid node overload. If there is a sharp increase in data requests from terminal nodes (for example, intelligent devices in a certain area interact frequently in a short period of time), the system can dynamically allocate more edge nodes to share the traffic, ensure the smoothness of the network, and dynamically enter the low-power mode. For example, reduce the working frequency of the terminal nodes: for sensor devices that only transmit data occasionally, their data reporting frequency can be reduced to save battery energy consumption and reduce unnecessary routing maintenance overhead. If the connections of some edge nodes are stable, the frequent update of the routing table can be reduced, reducing the occupation of computing resources. 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, at this time, the system will consider that the current network topology cannot reasonably perform load distribution. The system will collect different data types of the Bluetooth Mesh network. The different data types specifically include control instructions, sensing data, and audio-video streams, and dynamically switch the available paths preset in the neighbor node list according to the current communication load. The available paths specifically include the main path and the backup path;The system dynamically adjusts the available paths in the neighbor node list, enabling the reasonable distribution of data among multiple nodes and avoiding the impact of overall performance caused by some nodes being overloaded with traffic. For example, control instruction data can select a low-latency path, while audio and video streams can select a path with a larger bandwidth, making data distribution more intelligent. At the same time, Bluetooth Mesh networks are vulnerable to external interference in complex environments (such as smart homes and industrial automation), resulting in a decline in communication quality. The mechanism for dynamically switching available paths can quickly switch to a backup path when channel interference is severe, avoiding data loss or transmission failure. For example, when the main path has a high data packet loss rate due to signal interference, the system will immediately enable the backup path to ensure the stable operation of the network. By continuously monitoring the communication load of the Bluetooth Mesh network, the system can automatically adjust the data transmission path when detecting that some nodes are overloaded or have abnormal connections without manual intervention. This self-healing mechanism enables the Bluetooth Mesh network to remain highly efficient when devices are added, moved, or malfunction. For example, when an edge node exits the network due to insufficient power, the system can automatically adjust the data transmission path to ensure that communication is not interrupted.;
[0114] In this embodiment, in step S5 of preferentially executing a preset key control task locally according to the edge computing end pre-integrated in the Bluetooth Mesh network, it further includes:
[0115] S51: Based on the Bluetooth Mesh network, share the task status of the key control task among each smart gateway, and obtain the gateway load when the Bluetooth Mesh network executes the key control task;
[0116] S52: Determine whether the gateway load exceeds a preset load threshold;
[0117] S53: If so, activate a preset task sharding mechanism according to the task volume of the key control task, split the key control task into a preset number of subtasks, and allocate the subtasks to different smart gateways. According to the preset task execution order, perform unified scheduling through the Bluetooth Mesh network to coordinate the resource sharing of each smart gateway for the subtasks.
[0118] In this embodiment, the system is based on a Bluetooth Mesh network, sharing the task status of key control tasks among various intelligent gateways, obtaining the gateway load when the Bluetooth Mesh network executes key control tasks, and then the system determines whether the gateway load when the Bluetooth Mesh network executes the key control tasks exceeds a preset load threshold to perform corresponding steps; for example, when the system determines that the gateway load when the Bluetooth Mesh network executes the key control tasks 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 cooperate to process key control tasks, avoiding the situation of a single gateway being overloaded. The system will continue to maintain the current task scheduling strategy, maintain the existing task allocation rules of the gateways, and do not perform additional task migrations to ensure stability. At the same time, the system performs gateway status monitoring, continuously observes the load change trend of the gateways to ensure long-term stability, and reserves redundant computing resources. If the system detects that the load of some gateways is low, a certain amount of computing resources can be appropriately reserved to quickly respond when the load increases; for example, when the system determines that the gateway load when the Bluetooth Mesh network executes the key control tasks exceeds the preset load threshold, at this time, the system will consider that the task scheduling mechanism of the current network is operating abnormally. The system will activate a preset task sharding mechanism according to the amount of the key control task, split the key control task into a preset number of subtasks, and allocate these subtasks to different intelligent gateways. According to the preset task execution order, through the Bluetooth Mesh network for unified scheduling, coordinating the resource sharing of each intelligent gateway for the subtasks; by splitting the task into multiple subtasks and processing them in parallel among multiple gateways, the system can greatly reduce the computing and communication burdens of a single gateway, thereby improving the task execution efficiency. This method can make full use of the distributed computing architecture of the Mesh network, improve the throughput of the entire system, and make it more suitable for large-scale device control or high-concurrency task scenarios. At the same time, because the task is split and distributed to multiple gateways, even if a certain gateway fails or malfunctions, other gateways can still take over some subtasks to ensure the continuity and stability of the task. Through the unified scheduling of the task execution order, the system can dynamically adjust the task allocation strategy, reduce the task failure situation caused by the high load of some gateways, improve the reliability of the system, and the intelligent gateways can share resources (such as computing power, storage space, network bandwidth, etc.). The system can flexibly schedule tasks based on the capabilities and current states of different gateways, so as to make full use of all available computing resources in the Mesh network, avoid resource waste, and improve the overall energy efficiency of the network.
[0119] In step S2 of determining whether the communication efficiency can meet the preset communication requirements in this embodiment, it further includes:
[0120] S21: Obtain the bandwidth size corresponding to the task content based on the task content preset in the Bluetooth Mesh network;
[0121] S22: Determine whether the bandwidth size exceeds the maximum carrying capacity of the current connection;
[0122] 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 topology shapes according to the network topology shape preset in the Bluetooth Mesh network. Among them, the real-time requirement specifically includes voice, video stream, and real-time control, the communication strategy specifically includes adjusting the path, increasing the bandwidth, and priority scheduling, and the network topology shape specifically includes point-to-point, star, and mesh.
[0123] In this embodiment, the system obtains the bandwidth size corresponding to the task content based on the task content preset 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 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. Without affecting the task execution, the system can compress the task data. For example, a lossless compression algorithm can be used for sensing data, and an efficient coding format can be selected for audio and video streams to reduce the occupied bandwidth of the 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. For example, key control data can be preferentially transmitted, and the transmission rate of non-critical data can be delayed or reduced, so as to ensure that the core data for task execution can be preferentially processed. For example, in a smart home application, if the transmission task includes a lighting control instruction and video stream data, the system can reduce the frame rate or resolution of the video stream to ensure the real-time nature of the control instruction first, and dynamically switch the available communication path. When the bandwidth load of a certain Mesh node is too high, the system can recalculate the network topology, find other available paths, and redirect some task data to the Mesh node with a 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 tasks, and preferentially ensure the communication requirements of critical 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, and the real-time requirements specifically include voice, video stream, and real-time control, and dynamically optimize the communication strategy of the Bluetooth Mesh network. The communication strategy specifically includes adjusting the path, increasing the bandwidth, and priority scheduling. According to the network topology shape preset in the Bluetooth Mesh network, the network topology shape specifically includes point-to-point, star, and mesh, and the data transmission efficiency under different network topology shapes is identified;Since the system can dynamically detect the real-time requirements of 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 shape (such as point-to-point, star, and mesh), the system can select the optimal communication method in different scenarios, reduce the data transmission failure rate, and improve the overall communication stability. At the same time, by dynamically optimizing the communication strategy (adjusting the path, increasing the bandwidth, and priority scheduling), it can ensure that the transmission path of task data in the Bluetooth Mesh network always remains in the optimal state. For example, in a smart home system, when multiple smart devices are running simultaneously, the system can adjust the path and select low-load nodes for data transmission to ensure that the response speed of the voice assistant is not delayed due to network congestion. And since the system will adjust based on the real-time requirements of the task when the bandwidth is not overloaded, it can ensure that the bandwidth resources are reasonably allocated and key tasks will not be affected by low-priority tasks occupying too much bandwidth. For example, in a smart conference room environment, if there is a real-time video stream transmission during the meeting, the system can automatically adjust the bandwidth according to the real-time requirements, allowing the high-definition video stream to maintain high quality when the bandwidth is sufficient and automatically reducing the resolution when other tasks occupy the bandwidth to ensure the smoothness of the conference system.;
[0124] In this embodiment, in step S4 of determining whether the data traffic can be evenly distributed among multiple smart gateways, it further includes:
[0125] S41: Based on the traffic requirements of the Bluetooth Mesh network, obtain the carrying traffic of any connected smart gateway, where the traffic requirements specifically include task type, number of devices, and data volume;
[0126] S42: Determine whether the traffic requirements exceed the carrying traffic;
[0127] S43: If so, identify the traffic blocking points of the Bluetooth Mesh network, detect the idle and available gateways of the Bluetooth Mesh network based on the traffic blocking points, and dynamically adjust the data stream distribution of the Bluetooth Mesh network according to the idle and available gateways.
[0128] In this embodiment, the system obtains the carrying traffic of any connected smart gateway based on the traffic requirements of the Bluetooth Mesh network, where the traffic requirements specifically include task type, number of devices, and data volume. Then, the system determines whether these traffic requirements exceed the carrying traffic of the connected smart gateway to perform corresponding steps. For example, when the system determines that the traffic requirements of the Bluetooth Mesh network do not exceed the carrying traffic of the connected smart gateway, the system will consider that the current smart gateway still has sufficient processing power and can normally perform operations such as traffic forwarding, task allocation, and data synchronization without the need for load balancing adjustment or additional resource scheduling. The system will continuously monitor the traffic changes in the Bluetooth Mesh network, dynamically optimize the task scheduling strategy according to the task type (such as video stream, sensing data, control instruction, etc.), and at the same time use the resources of the connected gateway to perform path optimization to avoid additional delay caused by data detour. In the star topology (with the gateway as the central node) mode, the system can keep the main gateway working stably, while in the mesh topology, the system can use the idle gateway as a redundant node to improve the data forwarding efficiency. And when the bandwidth is sufficient, the system can improve the transmission quality of high-definition video streams, increase the data sampling rate, and optimize the user experience. For example, in the intelligent monitoring scenario, when the carrying traffic of the smart gateway is sufficient, 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 requirements of the Bluetooth Mesh network exceed the carrying traffic of the connected smart gateway, the system will consider that the current smart gateway cannot normally perform operation tasks. The system will identify the traffic bottleneck points of the Bluetooth Mesh network, detect the idle and available gateways in the Bluetooth Mesh network based on these traffic bottleneck points, and dynamically adjust the data stream allocation of the Bluetooth Mesh network according to different idle and available gateways. By continuously monitoring and analyzing the traffic bottlenecks in the network, the system can accurately identify the nodes whose communication performance deteriorates due to traffic overload. These bottleneck points may be certain smart gateways or specific paths. The system can reduce network latency and packet loss rate by optimizing these bottleneck nodes. Once the traffic bottleneck points are identified, the system will quickly perform load balancing and redistribute the overloaded traffic to the idle gateways or nodes.This can disperse the traffic pressure, avoid overloading a single node, 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, effectively avoiding performance degradation caused by excessive gateway load. This method helps to improve the stability and response ability of the entire network, avoid affecting the overall network operation due to local node overload, and by reasonably distributing the 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 rate 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, cope with 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, improving the adaptability to different tasks and data streams.
[0129] In this embodiment, based on the pre-established Bluetooth Mesh network, after the Bluetooth Mesh network is interconnected with the intelligent gateway, in step S1 of testing the communication efficiency of the Bluetooth Mesh network in different communication scenarios, it further includes:
[0130] S11: Based on the communication efficiency indicators of the communication scenario, test the transmission duration of the preset device sent to the intelligent gateway through the Bluetooth Mesh network, where the communication efficiency indicators specifically include throughput, latency, packet loss rate, and connection stability;
[0131] S12: Determine whether the preset latency is detected in the transmission duration, where the preset latency specifically includes single-hop latency and multi-hop latency;
[0132] S13: If so, obtain the response time after the intelligent gateway receives the device request, and generate the network response time difference of the Bluetooth Mesh network in real time according to the response time.
[0133] In this embodiment, the system is based on the communication efficiency metrics of the communication scenario. The communication efficiency metrics specifically include throughput, latency, packet loss rate, and connection stability. The system tests the transmission duration of the preset device sent to the smart gateway through the Bluetooth Mesh network, and then determines whether the preset latency situation is detected in the transmission duration. The preset latency specifically includes single-hop latency and multi-hop latency to execute corresponding steps. For example, when the system determines that the transmission duration of the preset device sent to the smart gateway through the Bluetooth Mesh network does not detect the preset latency situation, the system will consider that the communication efficiency in this transmission process is high, and the response speed of the network connection meets the expectations. The system can efficiently transmit data. The system will confirm that the current network configuration is okay, continue to maintain the existing connection and routing policies. At this time, the system can continue to monitor the network status to ensure that no new latency or instability occurs. If the network status remains within the 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, it is ensured that the network can continue to support more devices or data requirements without introducing latency, and continue to perform periodic monitoring. When the network status changes (for example, a device joins or the load increases), measures can be taken in a timely manner. For example, the system can maintain real-time tracking of the network topology structure and automatically adjust the routing when necessary to adapt to the new communication load, set a latency threshold, and when the latency approaches the set value, trigger an alarm in advance or automatically adjust the network resource configuration to cope with potential latency problems. For example, when the system determines that the transmission duration of the preset device sent to the smart gateway through the Bluetooth Mesh network detects the preset latency situation, the system will consider that the communication efficiency in this transmission process is low. 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 latency situation 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, the transmission path, or the processing ability of the gateway itself. The analysis of the response time difference can help the system identify the specific problematic links, and at the same time generating the network response time difference in real time can help the system dynamically adjust the allocation of network resources to reduce latency. 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 the communication efficiency. And by real-time monitoring and generating the network response time difference, the system can timely respond to the changes in network load and maintain the stability of the network. Even when there is latency in the network, the system can quickly take measures to optimize and avoid latency accumulation, ensuring that the communication response speed between devices remains within an acceptable range.
[0134] Reference appendix Figure 2 , which is an intelligent gateway device interconnection system for the Bluetooth ad hoc network protocol in an embodiment of the present invention, includes:
[0135] A test module 10, which is used to test the communication efficiency of the Bluetooth Mesh network in different communication scenarios after the Bluetooth Mesh network is interconnected with an intelligent gateway based on a pre-established Bluetooth Mesh network;
[0136] A judgment module 20, which is used to judge whether the communication efficiency can meet a preset communication requirement;
[0137] An execution module 30, which is used, if not, to 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 the neighbor node list of the Bluetooth Mesh network based on the network topology information, dynamically adjust the connection priority of the Bluetooth Mesh network, and monitor the data traffic of the Bluetooth Mesh network;
[0138] A second judgment module 40, which is used to judge whether the data traffic can be evenly distributed among multiple intelligent gateways;
[0139] A second execution module 50, which is used, if it cannot be evenly distributed, to detect the physical distance between the Bluetooth Mesh network and a preset obstacle, dynamically adjust the transmission power of the Bluetooth Mesh network based on the physical distance, preferentially execute a preset key control task locally according to the edge computing terminal pre-integrated in the Bluetooth Mesh network, and cooperate to process the key control task according to the preset distributed computing architecture of the Bluetooth Mesh network, where the key control task specifically includes rapid linkage control between devices, distribution processing of device data, and abnormal response to device status.
[0140] In this embodiment, the test module 10 is based on a pre-established 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. Then, the judgment module 20 determines whether the communication efficiency can meet the pre-set communication requirements to execute corresponding steps. For example, when the system determines that the communication efficiency of the Bluetooth Mesh network in different communication scenarios can meet the pre-set communication requirements, the system will consider that the current network topology structure, data transmission performance, and connection stability between gateways all meet expectations and no additional optimization and adjustment are required. The system will maintain the existing connection priority, data traffic allocation, and network topology structure 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, computing resources are reasonably allocated, and key control tasks are preferentially processed locally to reduce the unnecessary cloud communication burden. And if it is subsequently monitored that the communication efficiency decreases or the load is unbalanced, a dynamic adjustment mechanism is triggered to optimize the 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, at this time, the execution module 30 will consider that the current network topology structure, 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 the 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 based on different network topology information, dynamically adjust the connection priority of the Bluetooth Mesh network, and monitor the data traffic of the Bluetooth Mesh network.By adaptively detecting available nodes within the preset range of the Bluetooth Mesh network, the system can dynamically sense active devices in the network. According to the current network load situation, it can reasonably adjust the joining or exiting of nodes. This adaptive ability ensures that the network can be optimized according to real-time conditions, thereby enhancing the communication stability and overall network performance, avoiding communication interruption problems 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, enabling all intelligent gateways to know the available connection nodes around them in real time. This mechanism can effectively optimize the data transmission path, reduce unnecessary communication relay links, improve the overall transmission efficiency of the network, and 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, based on factors such as node stability, data transmission rate, and signal quality, preferentially select high-quality connection paths. 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 overall network response speed and reliability. In the case where 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. Through dynamic optimization of traffic scheduling, the system can reasonably allocate the load of different gateways, avoid some gateways becoming bottlenecks due to excessive data traffic, and improve the resource utilization rate of low-load gateways, 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 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 current load scheduling mechanism of the Bluetooth Mesh network is operating normally, the workloads of all gateways tend to be balanced, and there is no situation where some gateways are overloaded or some gateway resources are idle. The system will give priority to maintaining the current network topology structure and will not frequently adjust the connection method between gateways to reduce the additional communication overhead or network jitter that may be brought about by excessive adjustment. This strategy ensures the stability of the system, enabling the Bluetooth Mesh network to maintain high reliability and low-latency characteristics during long-term operation. At the same time, since the data traffic has been evenly distributed, the system will continue to execute tasks such as communication between devices, data synchronization, and remote control according to the preset scheduling strategy, ensuring that the intelligent gateway can efficiently support the entire Internet of Things application scenario. And although the current data traffic distribution is balanced, the system still needs to continuously monitor the network traffic situation to prevent uneven load redistribution caused by sudden data requests or new device additions. During this process, the system will maintain a low-power monitoring mode, regularly evaluate the data traffic distribution situation, 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 workloads of all gateways cannot be balanced. The system will detect the physical distances between the Bluetooth Mesh network and the pre-set obstacles, and based on these physical distances, dynamically adjust the transmission power of the Bluetooth Mesh network. According to the edge computing terminal pre-integrated in the Bluetooth Mesh network, key control tasks pre-set locally are preferentially executed. The key control tasks specifically include fast linkage control between devices, distribution processing of device data, and abnormal response to device status. Based on the pre-set distributed computing architecture of the Bluetooth Mesh network, different key control tasks are collaboratively processed; by detecting the physical distances between the Bluetooth Mesh network and the obstacles, the system dynamically adjusts the transmission power, making the signal coverage more balanced, thereby optimizing the data transmission path, improving the load balance between gateways, making the overall network operation more stable. At the same time, adjusting the transmission power of the Bluetooth Mesh network helps to reduce signal interference between devices that are too far or too close, avoid data loss caused by signal attenuation, reduce unnecessary power consumption, optimize the coverage range of wireless signals, reduce unnecessary retransmissions between nodes, improve the overall communication efficiency, make the data flow more reasonably distributed among smart gateways, ensure the efficient operation of the network, and the Bluetooth Mesh network integrates an edge computing terminal, enabling the system to execute key control tasks locally without completely relying on the cloud or remote servers. This mechanism greatly reduces the transmission delay of data between different levels, enabling fast linkage control between devices, data distribution processing, and abnormal response to be completed in the shortest time, improving the real-time performance and reliability of the system, ensuring that devices can quickly adapt to sudden situations, and through the distributed architecture of edge computing, the system can dynamically allocate computing resources according to the priority of tasks and collaboratively process these tasks among multiple gateways. This can not only reduce the burden on a single gateway but also improve the processing ability of the entire system for emergencies, increasing the throughput and reliability of data processing.
[0141] In this embodiment, the execution module further includes:
[0142] 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 the link quality indicators preset for the Bluetooth Mesh network, where the link quality indicators specifically include packet reception rate, routing hop count, and latency;
[0143] A judgment unit, configured to judge whether the connection stability can meet the connection requirements preset for the Bluetooth Mesh network;
[0144] An execution unit, which, if not, activates an incremental synchronization mechanism preset in the Bluetooth Mesh network, only transmits changed data to the connectable Mesh device, verifies the online status of the connectable Mesh device through a heartbeat packet preset in the Bluetooth Mesh network, dynamically removes the connectable Mesh device from the neighbor node list according to the online status, and recalculates the optimal route of the Bluetooth Mesh network.
[0145] In this embodiment, the system scans and acquires connectable Mesh devices within a preset range based on a preset BLE broadcast. According to the link quality metrics preset in the Bluetooth Mesh network, the link quality metrics specifically include packet reception rate, routing hop count, and latency, to detect the connection stability of the connectable Mesh devices. Then, the system determines whether the connection stability can meet the connection requirements preset in the Bluetooth Mesh network to execute 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 it can reliably participate in the exchange and collaboration of network data. The system will officially incorporate the device into the Bluetooth Mesh network, assign the role of the device (for example: routing node, end node, etc.), and establish a communication link between devices. At this time, 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.Including updating the neighbor node list, link quality metrics, and connection status of the device in network management, which can ensure that when the entire network expands, the connection status between nodes is up-to-date and optimized. And once the connection stability meets the requirements, the system can start assigning tasks to the device or forwarding data streams through the device. For example, in an intelligent 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 certain room. For example, when the system determines that the connection stability of a connectable Mesh device cannot meet the connection requirements preset by the Bluetooth Mesh network, the system will consider that the communication quality of the device is poor and it cannot participate in network data exchange and collaboration. The system will activate the incremental synchronization mechanism preset in the Bluetooth Mesh network, only transmit 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, and dynamically remove the connectable Mesh device from the neighbor node list according to different online statuses, and recalculate the optimal route of the Bluetooth Mesh network. By only transmitting changed data, the incremental synchronization mechanism effectively reduces unnecessary data transmission volume, reduces network burden, thereby improving network stability and efficiency. This avoids bandwidth waste caused by a large amount of invalid data transmission, ensures that other devices can utilize network resources more efficiently. At the same time, when the connection quality of some devices is poor, the system will not force them to continuously participate in data exchange, avoiding the impact of low-quality devices on the overall network performance. By removing them from the neighbor node list, the system reduces its dependence on these unstable devices, ensuring the efficient operation of the network. And after recalculating the optimal route of the Bluetooth Mesh network, the system can adjust the routing strategy according to the actual connection situation of the current device, which can ensure that data is always transmitted through a connection path with better quality, avoiding unstable devices as relay nodes from affecting the reliability and speed of data transmission. And through the heartbeat packet mechanism, the system can monitor the online status of the device in real time, promptly discover offline or devices with poor communication quality, and 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 brought by device instability.
[0146] In this embodiment, it further includes:
[0147] A partitioning module, configured to partition the connection structure of the Bluetooth Mesh network based on the initial connection weights pre-allocated by the Bluetooth Mesh network, where the connection structure specifically includes a core node, an edge node, and a terminal node;
[0148] A third determination module, configured to determine whether the connection structure matches the communication load of the Bluetooth Mesh network;
[0149] A third execution module, configured to, if not, collect different data types of the Bluetooth Mesh network, and dynamically switch available paths preset in the neighbor node list according to the communication load, where the different data types specifically include control instructions, sensing data, and audio-video streams, and the available paths specifically include a primary path and a backup path.
[0150] In this embodiment, the system divides the connection structure of the Bluetooth Mesh network based on the initial connection weights pre-allocated 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 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. The system will reduce the status broadcast frequency of the core nodes, reduce unnecessary data synchronization, thereby reducing the overall communication overhead. For example, the original broadcast interval is to send a status update every 5 seconds. After optimization, the broadcast interval is adjusted to send a status update every 10 seconds, reducing the computational burden of the core nodes while maintaining the stability of the network. At the same time, continuously monitor the load conditions of the core nodes, edge nodes, and terminal nodes. For example, if it is found that the traffic of some edge nodes is gradually increasing and may reach the load bottleneck in the future, the system can optimize the data path in advance to avoid node overload. If there is a sudden increase in data requests at the terminal nodes (for example, intelligent devices in a certain area interact frequently in a short period of time), the system can dynamically allocate more edge nodes to share the traffic, ensure the smoothness of the network, and dynamically enter the low-power mode. For example, reduce the working frequency of the terminal nodes: for sensor devices that only transmit data occasionally, the data reporting frequency can be reduced to save battery energy and reduce unnecessary routing maintenance overhead. If the connections of some edge nodes are stable, the frequent update of the routing table can be reduced, reducing the occupancy of computing resources. 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, at this time, the system will consider that the current network topology cannot reasonably perform load distribution. The system will collect different data types of the Bluetooth Mesh network. The different data types specifically include control instructions, sensing data, and audio-video streams. According to the current communication load, dynamically switch the available paths preset in the neighbor node list. The available paths specifically include the main path and the backup path;The system makes the data be reasonably distributed among multiple nodes by dynamically adjusting the available paths in the neighbor node list, avoiding the impact of overall performance caused by some nodes due to traffic overload. For example, control instruction data can select a low-latency path, while audio and video streams can select a path with a larger bandwidth, so as to make the data distribution more intelligent. At the same time, the Bluetooth Mesh network is vulnerable to external interference in complex environments (such as smart homes and industrial automation), resulting in a decline in communication quality. The mechanism of dynamically switching available paths can quickly switch to an alternative path when the channel interference is severe, avoiding data loss or transmission failure. For example, when the main path has a too high data packet loss rate due to signal interference, the system will immediately enable the alternative path to ensure the stable operation of the network. And by continuously monitoring the communication load of the Bluetooth Mesh network, the system can automatically adjust the data transmission path when detecting that some nodes are overloaded or the connection is abnormal without manual intervention. This self-repair mechanism enables the Bluetooth Mesh network to still operate efficiently when devices are added, moved, or malfunction. For example, when an edge node exits the network due to insufficient power, the system can automatically adjust the data transmission path to ensure that the communication is not interrupted.;
[0151] In this embodiment, the second execution module further includes:
[0152] An acquisition unit, configured to share the task status of the key control task among each smart gateway based on the Bluetooth Mesh network, and acquire the gateway load when the Bluetooth Mesh network executes the key control task;
[0153] A second judgment unit, configured to judge whether the gateway load exceeds a preset load threshold;
[0154] A second execution unit, configured to, if so, activate a preset task sharding mechanism according to the task volume of the key control task, split the key control task into a preset number of subtasks, and allocate the subtasks to different smart gateways, and perform unified scheduling through the Bluetooth Mesh network according to a preset task execution order, and coordinate the resource sharing of each smart gateway for the subtasks.
[0155] In this embodiment, the system is based on a Bluetooth Mesh network, sharing the task status of key control tasks among various intelligent gateways, obtaining the gateway load when the Bluetooth Mesh network executes key control tasks, and then the system determines whether the gateway load when the Bluetooth Mesh network executes the key control tasks exceeds a preset load threshold to execute corresponding steps; for example, when the system determines that the gateway load when the Bluetooth Mesh network executes the key control tasks 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 cooperate to process key control tasks, avoiding the situation of a single gateway being overloaded. The system will continue to maintain the current task scheduling strategy, maintain the existing task allocation rules of the gateway, and not perform additional task migrations to ensure stability. At the same time, the system performs gateway status monitoring, continuously observes the load change trend of the gateway to ensure long-term stability, and reserves redundant computing resources. If the system detects that the load of some gateways is low, a certain amount of computing resources can be appropriately reserved to quickly respond when the load increases; for example, when the system determines that the gateway load when the Bluetooth Mesh network executes the key control tasks exceeds the preset load threshold, at this time the system will consider that the task scheduling mechanism of the current network is operating abnormally. The system will activate a preset task sharding mechanism according to the amount of the key control task, split the key control task into a preset number of subtasks, and allocate these subtasks to different intelligent gateways. According to the preset task execution order, through the Bluetooth Mesh network for unified scheduling, coordinating the resource sharing of each intelligent gateway for the subtasks; 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 task execution efficiency. This method can make full use of the distributed computing architecture of the Mesh network, improve the throughput of the entire system, and make it more suitable for large-scale device control or high-concurrency task scenarios. At the same time, since the task is split and distributed to multiple gateways, even if a certain gateway fails or malfunctions, other gateways can still take over some subtasks to ensure the continuity and stability of the task. Through the unified scheduling of the task execution order, the system can dynamically adjust the task allocation strategy, reduce the situation of task failure caused by the high load of some gateways, improve the reliability of the system, and the intelligent gateways can share resources (such as computing power, storage space, network bandwidth, etc.). The system can flexibly schedule tasks based on the capabilities and current status of different gateways, so as to make full use of all available computing resources in the Mesh network, avoid resource waste, and improve the overall energy efficiency of the network.
[0156] In this embodiment, the judgment module further includes:
[0157] A second obtaining unit, configured to obtain the bandwidth size corresponding to the task content based on the task content preset in the Bluetooth Mesh network;
[0158] A third judgment unit, configured to judge whether the bandwidth size exceeds the maximum carrying capacity of the current connection;
[0159] A third execution unit, configured to, 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 topology shapes according to the preset network topology shape of the Bluetooth Mesh network, wherein the real-time requirement specifically includes voice, video stream and real-time control, the communication strategy specifically includes adjusting the path, increasing the bandwidth and priority scheduling, and the network topology shape specifically includes point-to-point, star and mesh.
[0160] In this embodiment, the system obtains the bandwidth size corresponding to the task content based on the task content preset in the Bluetooth Mesh network, and then the system determines whether the bandwidth size exceeds the maximum load capacity of the current connection to execute corresponding steps. For example, when the system determines that the bandwidth size corresponding to the task content exceeds the maximum load capacity of the current connection, the system will consider that the current communication link of the Bluetooth Mesh network has reached a bottleneck. Without affecting the task execution, the system can compress the task data. For example, lossless compression algorithms can be used for sensing data, and efficient coding formats 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 load capacity of the current connection, the system can adjust the data transmission rate. For example, key control data can be transmitted preferentially, and the transmission rate of non-critical data can be delayed or reduced, so as to ensure that the core data of task execution can be processed preferentially. For example, in a smart home application, if the transmission task includes a lighting control instruction and video stream data, the system can reduce the frame rate or resolution of the video stream to ensure the real-time nature of the control instruction preferentially, and dynamically switch the available communication path. When the bandwidth load of a certain Mesh node is too high, the system can recalculate the network topology, find other available paths, and redirect some task data to the Mesh node with a 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 tasks, and give priority to ensuring the communication requirements of key control tasks and reducing 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 load 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, and the real-time requirements specifically include voice, video stream, and real-time control, and dynamically optimize the communication strategy of the Bluetooth Mesh network. The communication strategy specifically includes adjusting the path, increasing the bandwidth, and priority scheduling. According to the network topology shape preset in the Bluetooth Mesh network, the network topology shape specifically includes point-to-point, star, and mesh, and the data transmission efficiency under different network topology shapes is identified;Since the system can dynamically detect the real-time requirements of 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 shape (such as point-to-point, star, and mesh), the system can select the optimal communication method in different scenarios, reduce the data transmission failure rate, and improve the overall communication stability. At the same time, by dynamically optimizing the communication strategy (adjusting the path, increasing the bandwidth, and priority scheduling), it can ensure that the transmission path of task data in the Bluetooth Mesh network always remains in the optimal state. For example, in a smart home system, when multiple smart devices are running simultaneously, the system can adjust the path and select low-load nodes for data transmission to ensure that the response speed of the voice assistant is not delayed due to network congestion. And because the system will make adjustments based on the real-time requirements of the task when the bandwidth is not overloaded, it can ensure that the bandwidth resources are reasonably allocated and key tasks will not be affected by low-priority tasks occupying too much bandwidth. For example, in a smart conference room environment, if there is a real-time video stream transmission during the meeting, the system can automatically adjust the bandwidth according to the real-time requirements, allowing the high-definition video stream to maintain high quality when the bandwidth is sufficient and automatically reducing the resolution when other tasks occupy the bandwidth to ensure the smoothness of the conference system.;
[0161] In this embodiment, the second judgment module further includes:
[0162] A third acquisition unit, configured to acquire the bearer traffic of any connected smart gateway based on the traffic demand of the Bluetooth Mesh network, where the traffic demand specifically includes task type, number of devices, and data volume;
[0163] A fourth judgment unit, configured to judge whether the traffic demand exceeds the bearer traffic;
[0164] A fourth execution unit, configured to, if so, identify the traffic blocking point of the Bluetooth Mesh network, detect the idle and available gateways of the Bluetooth Mesh network based on the traffic blocking point, and dynamically adjust the data stream allocation of the Bluetooth Mesh network according to the idle and available gateways.
[0165] In this embodiment, the system obtains the carrying traffic of any connected smart gateway based on the traffic requirements of the Bluetooth Mesh network. The traffic requirements specifically include task type, number of devices, and data volume. Then, the system determines whether these traffic requirements exceed the carrying traffic of the connected smart gateway to execute corresponding steps. For example, when the system determines that the traffic requirements of the Bluetooth Mesh network do not exceed the carrying traffic of the connected smart gateway, the system will consider that the current smart gateway still has sufficient processing power and can normally execute operations such as traffic forwarding, task allocation, and data synchronization without the need for load balancing adjustment or additional resource scheduling. The system will continuously monitor the traffic changes in the Bluetooth Mesh network, dynamically optimize the task scheduling strategy according to the task type (such as video stream, sensing data, control instruction, etc.), and at the same time use the resources of the connected gateway to perform path optimization to avoid additional latency caused by data detouring. In the star topology (with the gateway as the central node) mode, the system can keep the main gateway working stably, while in the mesh topology, the system can use the idle gateway as a redundant node to improve the data forwarding efficiency. And when the bandwidth is sufficient, the system can improve the transmission quality of high-definition video streams, increase the data sampling rate, and optimize the user experience. For example, in the intelligent monitoring scenario, when the carrying traffic of the smart gateway is sufficient, 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 requirements of the Bluetooth Mesh network exceed the carrying traffic of the connected smart gateway, the system will consider that the current smart gateway cannot normally execute operation tasks. The system will identify the traffic bottleneck points of the Bluetooth Mesh network, detect the idle and available gateways of the Bluetooth Mesh network based on these traffic bottleneck points, and dynamically adjust the data flow distribution of the Bluetooth Mesh network according to different idle and available gateways. By continuously monitoring and analyzing the traffic bottlenecks in the network, the system can accurately identify the nodes whose communication performance degrades due to traffic overload. These bottleneck points may be certain smart gateways or specific paths. The system can reduce network latency and packet loss rate by optimizing these bottleneck nodes. Once the traffic bottleneck points are identified, the system will quickly perform load balancing and redistribute the overloaded traffic to the idle gateways or nodes.This can disperse the traffic pressure, avoid overloading a single node, 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, effectively avoiding performance degradation caused by excessive gateway load. This method helps to improve the stability and response ability of the entire network, avoid affecting the overall network operation due to local node overload, and by reasonably distributing the 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 rate 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, cope with 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 to improve the adaptability to different tasks and data streams.
[0166] In this embodiment, the test module further includes:
[0167] A test unit for testing the transmission duration of a preset device sent to the smart gateway through the Bluetooth Mesh network based on the communication efficiency metrics of the communication scenario, where the communication efficiency metrics specifically include throughput, latency, packet loss rate, and connection stability;
[0168] A fifth judgment unit for judging whether the preset latency is detected in the transmission duration, where the preset latency specifically includes single-hop latency and multi-hop latency;
[0169] A fifth execution unit for, if so, obtaining the response time after the smart gateway receives the device request, and generating the network response time difference of the Bluetooth Mesh network in real time according to the response time.
[0170] In this embodiment, the system is based on the communication efficiency metrics of the communication scenario. The communication efficiency metrics specifically include throughput, latency, packet loss rate, and connection stability. The system tests the transmission duration of the preset device sent to the smart gateway through the Bluetooth Mesh network, and then determines whether the preset latency situation is detected in the transmission duration. The preset latency specifically includes single-hop latency and multi-hop latency, so as to execute corresponding steps. For example, when the system determines that the transmission duration of the preset device sent to the smart gateway through the Bluetooth Mesh network does not detect the preset latency situation, the system will consider that the communication efficiency in this transmission process is relatively high, and the response speed of the network connection meets the expectation. The system can efficiently transmit data. The system will confirm that the current network configuration is okay and continue to maintain the existing connection and routing policies. At this time, the system can continue to monitor the network status to ensure that no new latency or instability occurs. If the network status remains within the 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, it is ensured that the network can continue to support more devices or data requirements without introducing latency, and continue to perform periodic monitoring. When the network status changes (for example, a device joins or the load increases), measures can be taken in a timely manner. For example, the system can maintain real-time tracking of the network topology structure and automatically adjust the routing when necessary to adapt to the new communication load, set a latency threshold, and when the latency approaches the set value, trigger an alarm in advance or automatically adjust the network resource configuration to cope with potential latency problems. For example, when the system determines that the transmission duration of the preset device sent to the smart gateway through the Bluetooth Mesh network detects the preset latency situation, at this time the system will consider that the communication efficiency in this transmission process is relatively low. The system will obtain the response time after the smart gateway receives 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 latency situation 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, the transmission path, or the processing ability of the gateway itself. The analysis of the response time difference can help the system identify the specific problematic link. At the same time, generating the network response time difference in real time can help the system dynamically adjust the allocation of network resources to reduce latency. For example, if the response time difference is too high, the system can accelerate data transmission by readjusting the data transmission path or increasing the bandwidth to optimize the communication efficiency. And by real-time monitoring and generating the network response time difference, the system can timely respond to the change of network load and maintain the stability of the network. Even when there is latency in the network, the system can quickly take measures to optimize and avoid latency accumulation, ensuring that the communication response speed between devices remains within an acceptable range.
[0171] Although embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the present invention, and 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 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 the key control tasks are collaboratively processed according to the distributed computing architecture preset in the Bluetooth Mesh network, wherein the key control tasks specifically include fast linkage control between devices, distribution and processing of device data, and abnormal response to device status; Among them, 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.
2. 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.
3. 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.
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 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.
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 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.
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 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.
7. 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, 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 fast linkage control between devices, distribution processing of device data, and abnormal response to device status; Wherein, 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.
8. The intelligent gateway device interconnection system of the Bluetooth ad hoc network protocol according to claim 7, 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