Integrated control method and system for Bluetooth smart home

By obtaining hardware parameters and communication protocol data in Bluetooth smart home system, role allocation and device interconnection efficiency optimization, the problem of low data transmission efficiency in the system is solved, and more efficient data transmission and resource configuration are achieved.

CN120165992APending Publication Date: 2025-06-17WUXI WEIDA INTELLIGENT ELECTRONICS CO LTD

Patent Information

Application Number
CN202510647596.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

The existing Bluetooth smart home system has high data transmission power consumption and delay due to limited transmission distance and excessive repeater arrangement, thus reducing the overall data transmission efficiency.

Method used

By obtaining hardware parameters and communication protocol data, initial role allocation and flexibility analysis are performed, dual role equipment collections are identified, and device interconnection efficiency is optimized, communication protocols are adjusted to optimize network structure diagrams, and finally the optimal device network topology diagram is generated.

Benefits of technology

It improves the data transmission efficiency of Bluetooth smart home systems, reduces power consumption and latency, enhances the flexibility and reliability of the network, and ensures the optimal configuration and utilization of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120165992A_ABST
    Figure CN120165992A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of smart home, and discloses an integrated control method and system for Bluetooth smart home, and the method comprises the steps: obtaining hardware parameters and communication protocol data; performing initial role allocation according to the hardware parameters and the communication protocol data to obtain an initial network structure chart; performing flexibility analysis according to the initial network structure chart to obtain a dual role device set; performing equipment interconnection efficiency optimization according to the initial network structure chart and the dual-role equipment set, and adjusting a communication protocol of the dual-role equipment to obtain an optimized network structure chart; performing simulation operation according to the optimized network structure diagram, acquiring real-time power consumption data and interconnection delay data of each device, and performing clustering to obtain device state groups; and carrying out topology configuration optimization according to the equipment state groups to obtain a final equipment network topological graph. The method has the following effect that the transmission efficiency of Bluetooth communication between smart homes can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart home, and particularly to an integrated control method and system for Bluetooth smart home. Background Art

[0002] Currently, with the development of Internet of Things technology, smart home systems have been gradually popularized, providing users with a more convenient and intelligent living experience. Among them, Bluetooth technology has been widely used in smart home devices due to its low power consumption and easy integration. Through Bluetooth technology, various smart devices such as lights, thermostats, door locks, etc. can be interconnected to form a unified home automation network. However, most of the existing smart home solutions rely on the mixed use of multiple wireless communication protocols, resulting in an increase in system complexity and challenges in compatibility and stability. Therefore, it is particularly important to develop an integrated control method and system for Bluetooth-based smart home, which can simplify the home network architecture and improve the overall performance of the system.

[0003] An existing integrated control system for Bluetooth smart home includes a central controller and multiple Bluetooth node devices. First, the user needs to install a specific application on a smartphone or tablet and establish a connection with the central controller through this application. Then, the user can configure the working parameters of each Bluetooth node device through the application, such as switch state, brightness adjustment, etc. In addition, the central controller is responsible for receiving the status information from the Bluetooth node devices and automatically adjusting the working mode of the devices according to preset rules. For example, when the ambient light intensity is lower than the set value, the central controller will automatically turn on the indoor lighting devices; or according to the user's schedule, turn off all unnecessary electrical appliances to save energy. The whole process is completed relying on the reliable data transmission channel provided by Bluetooth technology.

[0004] However, due to the limited transmission distance of Bluetooth, high-speed long-distance transmission requires a repeater to achieve. The arrangement of too many repeaters causes problems of high data transmission power consumption and delay. Even if there are devices that can play the dual roles of a repeater and a terminal, the delay in role switching will result in low data transmission efficiency, thus leading to low data transmission efficiency of the entire Bluetooth smart home. Summary of the Invention

[0005] The present invention provides an integrated control method and system for Bluetooth smart home to improve the data transmission efficiency of Bluetooth smart home.

[0006] In a first aspect, to solve the above technical problems, the present invention provides an integrated control method for Bluetooth smart home, including: Obtain hardware parameters and communication protocol data; Perform initial role assignment based on the hardware parameters and the communication protocol data to obtain an initial network structure diagram; Conduct flexibility analysis based on the initial network structure diagram to obtain a set of dual-role devices; Optimize the device interconnection efficiency based on the initial network structure diagram and the set of dual-role devices, adjust the communication protocols of the dual-role devices, and obtain an optimized network structure diagram; Perform simulation operation based on the optimized network structure diagram, obtain real-time power consumption data and interconnection delay data of each device, and perform clustering to obtain device status groupings; Optimize the topology configuration based on the device status groupings to obtain the final device network topology diagram.

[0007] In an alternative implementation, the performing initial role assignment based on the hardware parameters and the communication protocol data to obtain an initial network structure diagram includes: Conduct power consumption assessment based on the hardware parameters to obtain a power consumption assessment result; Perform weighted summation based on the power consumption assessment result and the communication protocol data to obtain a device role score; Assign the device with the highest device role score as the network coordinator; Sort the remaining devices from high to low according to the device role score to obtain a device score list; Select a preset number of devices from the device score list from high to low and assign them as data forwarding nodes; Assign the remaining devices in the device score list as edge nodes; Generate an initial network structure diagram based on the allocation results of the network coordinator, the data forwarding nodes, and the edge nodes.

[0008] In an alternative implementation, the conducting power consumption assessment based on the hardware parameters to obtain a power consumption assessment result includes: Calculate the power consumption assessment result through the following formula: where, represents the power consumption assessment result, represents the central processor weight, represents the memory weight, represents the processor frequency of the device, represents the memory capacity of the device, represents the reference frequency, represents the reference capacity.

[0009] In an alternative embodiment, the flexibility analysis based on the initial network structure diagram to obtain a dual-role device set includes: Determine the hardware resources of all devices in the initial network structure diagram to obtain a first candidate set; Check the protocol compatibility of all devices in the first candidate set to obtain a second candidate set; Conduct a dual-role performance test on all devices in the second candidate set to obtain test scores; Form a dual-role device set with all devices whose test scores are greater than a preset dual-role threshold.

[0010] In an alternative embodiment, the device interconnection efficiency optimization based on the initial network structure diagram and the dual-role device set, adjusting the communication protocol of the dual-role devices to obtain an optimized network structure diagram, includes: Change the path protocol of all paths connected to the dual-role devices in the dual-role device set in the initial network structure diagram to a low-latency and high-efficiency protocol; Calculate the load of all data forwarding nodes in the initial network structure diagram to obtain the load of the transit devices; Connect the data forwarding nodes whose transit device load exceeds the preset load threshold to the nearest dual-role device, and transfer the calculation tasks exceeding the load threshold to the dual-role device; Change the communication protocol of the dual-role devices to a dynamic protocol to obtain an optimized network structure diagram.

[0011] In an alternative embodiment, the simulation run based on the optimized network structure diagram, obtaining the real-time power consumption data and interconnection delay data of each device, and performing clustering to obtain device status groups, includes: Calculate the mean value according to the real-time power consumption data to obtain the power consumption mean value; Classify the devices with power consumption mean values greater than the preset power consumption threshold into the high-power-consumption group; Classify the devices with power consumption mean values less than the power consumption threshold into the low-power-consumption group; Calculate the mean value according to the interconnection delay data to obtain the delay mean value; Classify the devices with delay mean values greater than the preset first delay threshold into the high-delay group; Classify the devices with delay mean values less than the first delay threshold but greater than the preset second delay threshold into the medium-delay group; Classify the devices with delay mean values less than the second delay threshold into the low-delay group; The device status group includes a group name, group characteristics, and devices within the group.

[0012] In an alternative embodiment, the topology configuration optimization based on the device status grouping to obtain the final device network topology diagram includes: Adjust the communication protocol of all paths connected to the devices in the high-latency group to a low-latency protocol; Adjust the communication protocol of the devices in the high-power-consumption group to a low-power-consumption protocol.

[0013] In a second aspect, the present invention provides an integrated control system for a Bluetooth smart home, including: A data acquisition module for acquiring hardware parameters and communication protocol data; A role assignment module for performing initial role assignment based on the hardware parameters and the communication protocol data to obtain an initial network structure diagram; A dual-role module for performing flexibility analysis based on the initial network structure diagram to obtain a set of dual-role devices; A primary optimization module for optimizing the device interconnection efficiency based on the initial network structure diagram and the set of dual-role devices, and adjusting the communication protocol of the dual-role devices to obtain an optimized network structure diagram; A device grouping module for performing simulation operation based on the optimized network structure diagram, acquiring real-time power consumption data and interconnection delay data of each device, and performing clustering to obtain device status grouping; A final optimization module for performing topology configuration optimization based on the device status grouping to obtain the final device network topology diagram.

[0014] In a third aspect, the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the integrated control method of the Bluetooth smart home described in any one of the above is implemented.

[0015] In a fourth aspect, the present invention further provides a computer-readable storage medium, which includes a stored computer program. When the computer program runs, it controls the device where the computer-readable storage medium is located to execute the integrated control method of the Bluetooth smart home described in any one of the above.

[0016] Compared with the prior art, the present invention has the following beneficial effects: (1)The process of obtaining hardware parameters and communication protocol data ensures a comprehensive understanding of network devices and their interconnection methods. By collecting the hardware specifications of each device (such as processor speed, memory size, etc.) and the information on supported communication protocols, it provides a solid data foundation for subsequent role assignment and network optimization. This process not only improves the accuracy and integrity of data but also lays the foundation for personalized configuration, contributing to the improvement of the overall network performance.

[0017] (2)Based on the hardware parameters and the communication protocol data, an initial role assignment is performed to obtain an initial network structure diagram. Through threshold determination, a preliminary role assignment is made for the hardware capabilities and communication protocol characteristics of the devices, forming a basic network topology. This method can make full use of the capabilities of each device, ensure reasonable task allocation, and provide a clear starting point for subsequent optimization steps.

[0018] (3)According to the initial network structure diagram, a flexibility analysis is carried out to obtain a set of dual-role devices. Through in-depth analysis of the initial network structure diagram, those devices with the ability to undertake multiple roles are identified, forming a set of dual-role devices. This step helps to improve the flexibility and reliability of the network, enabling quick adjustment of resource allocation when network requirements change and enhancing the efficiency of network data transmission.

[0019] (4)Based on the initial network structure diagram and the set of dual-role devices, the interconnection efficiency of the devices is optimized by adjusting the communication protocols of the dual-role devices to obtain an optimized network structure diagram. Combining the initial network structure diagram and the information of the dual-role devices, the interconnection method between devices is further optimized, and the communication protocols are adjusted to meet the new role requirements. This dynamic optimization strategy can significantly improve the communication efficiency between devices, reduce latency, and ensure the quality of data transmission.

[0020] (5)According to the optimized network structure diagram, a simulation run is carried out to obtain the real-time power consumption data and interconnection latency data of each device, and clustering is performed to obtain device state groups. Using simulation tools to run tests on the optimized network structure, collecting the real-time power consumption and interconnection latency data of each device, and based on these data, clustering analysis is carried out on the devices to form different device state groups for subsequent final optimization to further improve network performance.

[0021] (6) Optimize the topology configuration according to the device status grouping to obtain the final device network topology diagram. Finally, based on the results of the device status grouping, the topology structure of the network is finally optimized to generate the optimized device network topology diagram. This step takes into account the actual performance of all devices, ensures the best configuration and utilization of resources, and realizes an efficient and stable network environment. In this way, the entire system not only improves the computing efficiency and accuracy, but also better adapts to the changing needs and provides continuously optimized solutions. Brief Description of the Drawings

[0022] Figure 1 is a schematic flowchart of an integrated control method for a Bluetooth smart home provided in the first embodiment of the present invention; Figure 2 is a schematic structural diagram of an integrated control system for a Bluetooth smart home provided in the second embodiment of the present invention. Detailed Embodiments

[0023] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the 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 the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0024] Referring to Figure 1 , the first embodiment of the present invention provides an integrated control method for a Bluetooth smart home, including the following steps: S11, obtain hardware parameters and communication protocol data; S12, perform initial role assignment according to the hardware parameters and the communication protocol data to obtain an initial network structure diagram; S13, perform flexibility analysis according to the initial network structure diagram to obtain a set of dual-role devices; S14, optimize the device interconnection efficiency according to the initial network structure diagram and the set of dual-role devices, and adjust the communication protocol of the dual-role devices to obtain an optimized network structure diagram; S15, perform a simulation run according to the optimized network structure diagram, obtain real-time power consumption data and interconnection delay data of each device, and perform clustering to obtain device status grouping; S16, optimize the topology configuration according to the device status grouping to obtain the final device network topology diagram.

[0025] In step S11, hardware parameters and communication protocol data are obtained.

[0026] In one implementation, the specific process of obtaining hardware parameters and communication protocol data is as follows: Through the embedded system API or directly reading the hardware registers, core hardware parameters such as the processor frequency of the device (e.g., the main frequency of 240 MHz of ARM Cortex-M7), the memory size (e.g., 512 KB SRAM or 1 MB flash) are collected, and the supported communication protocol types (e.g., Bluetooth 5.2, ZigBee 3.0), protocol versions, transmission rates (e.g., BLE 2 Mbps mode), and security configurations (e.g., AES-128 encryption) are extracted from the device protocol stack or configuration file. The data storage uses the binary structure format. After serializing the parameters, they are written into the non-volatile storage medium (e.g., SPI Flash or EEPROM). At the same time, a mapping table is established in the local database (e.g., SQLite) in JSON format to achieve fast query and parsing. The storage interface preferably uses the low-pin-count SPI protocol to ensure both storage efficiency and hardware resource occupancy in embedded devices. For example, the processor frequency is stored as a uint32_t type, the memory information is contained in a struct structure with fields for the total capacity and the used space, and the communication protocol parameters are recorded through key-value pairs (e.g., "protocol": "Bluetooth LE"), finally forming structured data for subsequent steps to call.

[0027] In step S12, an initial role assignment is performed according to the hardware parameters and the communication protocol data to obtain an initial network structure diagram.

[0028] In one implementation, a power consumption assessment is performed according to the hardware parameters to obtain a power consumption assessment result; A weighted sum is performed according to the power consumption assessment result and the communication protocol data to obtain a device role score; The device with the highest device role score is assigned as the network coordinator; The remaining devices are sorted from high to low according to the device role score to obtain a device score list; A preset number of devices are selected from the device score list from high to low and assigned as data forwarding nodes; The remaining devices in the device score list are assigned as edge nodes; An initial network structure diagram is generated according to the allocation results of the network coordinator, the data forwarding nodes, and the edge nodes.

[0029] It should be noted that the specific implementation of generating the initial network structure diagram according to the allocation results of the network coordinator, data forwarding nodes, and edge nodes is as follows: First, the device with the highest device role score is determined as the network coordinator, which serves as the core management node of the network and is responsible for initializing network parameters (such as channels, PAN ID), maintaining the topology structure, and managing device access to the network; Second, a preset number of high-scoring devices are selected from the device score list as data forwarding nodes. These nodes are deployed on the critical path and undertake cross-layer data relay tasks, optimizing the path through dynamic routing selection; The remaining devices are assigned as edge nodes, which are deployed at the network edge close to the data source and are responsible for local data processing (such as sensor data compression), protocol conversion, and low-latency response, while undertaking part of the computing tasks to reduce the central load. Finally, a backbone network is formed by connecting the coordinator and data forwarding nodes through connectors, and the edge nodes are connected to the forwarding nodes or coordinator nearby to form a hierarchical structure diagram, marking the roles and connection relationships of each node (such as bandwidth, protocol type), and storing device parameters (such as IP address, power consumption level) to support subsequent optimization.

[0030] In one implementation, when calculating the device role score, first multiply the power consumption evaluation result of the device (for example, the high-power consumption group gets 8 points and the low-power consumption group gets 2 points) by a weight of 60% (reflecting the core impact of energy efficiency on the device role), then multiply the communication protocol evaluation result by a weight of 40% (reflecting the auxiliary role of communication efficiency in the device function), and finally add the two parts of the values to get the comprehensive score. For example, if a smart door lock belongs to the high-power consumption group and uses a low-latency protocol, the score is: (8×0.6)+(9×0.4)=4.8 + 3.6 = 8.4 points, indicating that it performs well in both energy efficiency and communication performance; while if a Wi-Fi camera belongs to the low-power consumption group but has a high protocol latency, the score is: (2×0.6)+(5×0.4)=1.2 + 2.0 = 3.2 points, and the protocol configuration needs to be optimized first. This weight assignment is based on the direct impact of device energy efficiency on the long-term operation and maintenance costs (dominant weight) in the home smart home scenario, while taking into account the indirect impact of the communication protocol on the user experience (auxiliary weight), ensuring that the score result meets both the energy-saving requirements and the real-time requirements.

[0031] It should be noted that the communication protocol evaluation data is mapped to the standard scoring system by quantifying the protocol performance indicators to obtain the communication protocol evaluation results. The specific scoring is as follows: protocols with sub-millisecond response capabilities (end-to-end delay ≤ 10 ms) and supporting dynamic routing optimization or forward error correction (FEC) are determined as high-priority protocols and scored 9 points; those with a delay between 10 - 30 ms and having basic QoS guarantees (such as retransmission mechanisms) are determined as medium-priority protocols and scored 7 points; those with a delay ≥ 30 ms and lacking data integrity protection are determined as low-priority protocols and scored 5 points. If the protocol supports key functions in the home environment (such as low-power wake-up, multi-device multicast), an additional 1 - 2 points will be added (for example, the sleep wake-up mechanism of Zigbee can add 1 point).

[0032] It should be noted that in a Bluetooth smart home network, the network coordinator is the core management node, responsible for initializing the network, allocating addresses, maintaining the topology structure, and security authentication, and is served by devices with stable power supply and strong computing capabilities (such as smart gateways or routers); the data forwarding node (or routing node) is a relay device that undertakes the task of cross-node data transmission, extends the network coverage through multi-hop communication, and optimizes the transmission path. For example, the relay node in Bluetooth Mesh can forward data packets, but it needs to balance power consumption and performance (such as implemented by a light bulb or set-top box powered by mains electricity); the edge node is deployed near the data source and performs local computing and real-time tasks (such as sensor data preprocessing, protocol conversion), reducing the cloud transmission delay and the central load. For example, a battery-powered temperature and humidity sensor or smart switch can achieve fast response through edge computing. The three work together: the coordinator ensures network stability, the forwarding node guarantees efficient data transmission, and the edge node realizes low-latency services, jointly building a hierarchical, low-power, and highly reliable smart home network architecture.

[0033] It should be noted that for small networks in the home scenario, the preset quantity is set according to 25% of the total number of devices. For example, for a total of 15 devices, 3 devices are selected.

[0034] In a specific embodiment, assume there are 15 devices at home, and the preset number of forwarding nodes is 25% of the total number of devices (i.e., 3 devices). After sorting by score, the top 3 devices are selected as forwarding nodes and ensured to be located in the living room, bedroom, and kitchen respectively to cover the main areas; the remaining devices (such as sensors, smart light bulbs) are used as edge nodes and are connected to the nearest forwarding node nearby.

[0035] It should be noted that the distribution of data forwarding nodes is evenly distributed physically to ensure low latency.

[0036] In one implementation, the power consumption evaluation result is calculated by the following formula: Among them, Indicates the power consumption evaluation result, Indicates the central processing unit weight, Indicates the memory weight, Indicates the processor frequency of the device, Indicates the memory capacity of the device, Indicates the reference frequency, Indicates the reference capacity.

[0037] It should be noted that in the power consumption evaluation calculation, the power consumption evaluation result consists of two parts: the contribution values of the central processing unit (CPU) and the memory (RAM) are multiplied by their corresponding weights and then added together. The central processing unit weight (such as 0.7) and the memory weight (such as 0.3) represent the relative importance of the two to the overall power consumption, and the sum of the weights is 1. The ratio of the processor frequency (such as 2.4 GHz) to the reference frequency (1.8 GHz) reflects the relative energy consumption of the device's CPU performance, and the ratio of the memory capacity (such as 8 GB) to the reference capacity (4 GB) measures the occupancy degree of the memory resources. The formula comprehensively evaluates the power consumption level of the device by normalizing the ratios of various parameters to the reference values and combining the weights. This calculation idea aims to quantify the impact of different hardware configurations on power consumption, help the system to preferentially select low-power solutions (such as reducing the use of high-frequency processors or optimizing memory requirements) when allocating resources or selecting devices, so as to achieve energy efficiency optimization. The evaluation result can be used as a basis for dynamically adjusting the device working mode (such as frequency reduction or memory compression), or optimizing task allocation in a multi-device collaboration scenario to reduce the overall energy consumption.

[0038] In step S13, according to the initial network structure diagram, a flexibility analysis is performed to obtain a dual-role device set.

[0039] In one implementation, a hardware resource determination is performed on all devices in the initial network structure diagram to obtain a first candidate set; A protocol compatibility check is performed on all devices in the first candidate set to obtain a second candidate set; A dual-role performance test is performed on all devices in the second candidate set to obtain test scores; Devices with all the test scores greater than a preset dual-role threshold are grouped into a dual-role device set.

[0040] In one implementation, the specific process of hardware resource determination is as follows: First, set the processor frequency threshold of 1.2 GHz and the memory capacity threshold of 512 MB, and screen the hardware parameters of all devices in the initial network structure diagram, only retaining the devices that are greater than the above conditions simultaneously as the first candidate set (for example, a smart gateway with a 1.5 GHz processor and 1 GB of memory meets the requirements, while a sensor that only supports a 0.8 GHz processor is excluded). Subsequently, in the protocol compatibility check, the device must support the coexistence operation of both Bluetooth 5.2 and ZigBee 3.0 communication protocols simultaneously, and the Bluetooth protocol version must be above 5.1, and the ZigBee protocol must support the IPv6 over IEEE 802.15.4 standard. Devices that meet the above protocol compatibility check standards are included in the second candidate set. In addition, the device needs to pass the protocol stack verification to ensure that the concurrent operation of the two protocols will not cause resource conflicts or communication interference. For example, the 2 Mbps physical layer of Bluetooth LE and the Green Power mode of ZigBee need to coexist in harmony. For example, if a device meets the hardware standards but only supports a single protocol (such as only Bluetooth LE), or its ZigBee protocol version is 2.4 (incompatible with the IPv6 function of 3.0), it will be excluded from the second candidate set. Finally, the dual-role device set only includes devices with sufficient hardware resources and protocol compatibility. For example, a smart central control panel that supports both Bluetooth Mesh and ZigBee can flexibly switch between the coordinator and forwarder node roles, thereby enhancing the dynamic adjustment ability of the network topology.

[0041] In one implementation, in the dual-role performance test, first simulate the scenario where the device undertakes two network roles simultaneously (such as the coordinator and the forwarder node), and gradually increase the device's load through stepped pressure loading: In the initial stage, test the basic performance with daily pressure (such as processing 100 concurrent connections, response latency ≤ 50 ms), and record the CPU occupancy rate, memory usage rate, and data throughput; Subsequently, conduct a peak pressure test (such as simulating the expected load in the next 3 years, for example, 200 concurrent connections), and monitor whether the system maintains a throughput ≥ 80% of the benchmark value and a packet loss rate ≤ 0.1% within 120 seconds; Finally, perform a 48-hour stability test to verify whether the device experiences a sudden drop in performance or crashes during continuous operation. The test score is calculated by weighted calculation: throughput weight 40% (requirement ≥ 1 Mbps), latency stability weight 30% (average latency ≤ 100 ms and volatility < 15%), resource occupancy weight 30% (CPU peak ≤ 85%, memory occupancy ≤ 90%). The preset dual-role threshold is set at 80 points. If the device meets the above indicators in all test stages and the comprehensive score exceeds the threshold, it is included in the dual-role device set. For example, a smart gateway has a throughput of 1.2 Mbps, a stable latency of 80 ms, and resource occupancies of 75% and 80% respectively under the dual-role, and finally scores 85 points and is successfully selected.

[0042] It should be noted that the specific criteria for test scores include: in the dual-role performance test, throughput accounts for 40% weight, and the device is required to achieve stable transmission of ≥1Mbps under peak pressure. If the actual throughput ≥1.2Mbps, it gets full marks (40 points). For every 0.1Mbps lower, 5 points are deducted (e.g., 1.1Mbps gets 35 points, 1.0Mbps gets 30 points), and if it is lower than 1Mbps, this indicator gets no score. Latency stability accounts for 30% weight and needs to meet the average latency ≤100ms and the volatility <15%. If the average latency ≤80ms and the volatility ≤10%, it gets full marks (30 points). If the average latency exceeds 100ms or the volatility ≥15%, the score of this indicator is directly deducted to zero. Resource occupancy accounts for 30% weight, and it is required that the CPU peak ≤85% and the memory occupancy ≤90%. If the CPU ≤80% and the memory ≤85%, it gets full marks (30 points). If the CPU is between 85%-90% or the memory is between 90%-95%, 10 points are deducted, and if it exceeds 95%, the score is deducted to zero. The final total score needs to be ≥80 points (e.g., a certain smart gateway has a throughput of 1.2Mbps and gets 40 points, a latency of 80ms and a volatility of 10% and gets 30 points, and resource occupancy of 75% and 80% and gets 30 points, totaling 85 points) to be selected into the dual-role device set, ensuring that the device has high performance, low latency, and resource redundancy capabilities under high load.

[0043] In step S14, according to the initial network structure diagram and the dual-role device set, optimize the device interconnection efficiency, adjust the communication protocol of the dual-role device, and obtain an optimized network structure diagram.

[0044] In one implementation, change the path protocol of all paths connected to the dual-role devices in the dual-role device set in the initial network structure diagram to a low-latency and high-efficiency protocol. Perform load calculation on all data forwarding nodes in the initial network structure diagram to obtain the load of the transit device. Connect the data forwarding nodes whose load of the transit device exceeds the preset load threshold to the nearest dual-role device, and transfer the calculation tasks exceeding the load threshold part to the dual-role device. Change the communication protocol of the dual-role device to a dynamic protocol to obtain an optimized network structure diagram.

[0045] In one implementation, the low-latency and high-efficiency protocol includes: RoCE v2 (RDMA over Converged Ethernet) is a typical representative. It allows data to be directly transmitted between devices without CPU intervention through the Remote Direct Memory Access (RDMA) technology, significantly reducing latency (e.g., the end-to-end latency can be reduced to the microsecond level in the data center scenario), and at the same time supporting high-bandwidth transmission of Ethernet (e.g., above 100Gbps), which is suitable for large-scale data transfer between data forwarding nodes.

[0046] In one implementation, during the load calculation process, the system collects four core metrics of the data forwarding node in real time through the SNMP protocol or the embedded monitoring module: 1) CPU usage rate (the average value is statistically calculated by the `top` command for 1 minute, and when the continuous 3 - time sampling is ≥ 85%, it is scored as 85%); 2) Memory occupancy rate (the proportion of used memory is calculated by `free -m`, and when ≥ 90%, it is scored as 90%); 3) Throughput ratio (the actual traffic ratio is calculated according to the interface bandwidth, and when ≥ 95%, it is scored as 95%); 4) Queue delay (the average value of 10 - time delays is statistically calculated by the `ping` or `tc` tool, and when ≥ 150ms, it is scored as 100%). The load percentage of the transit device is calculated according to the weighted formula: CPU (40%) + Memory (30%) + Throughput (20%) + Delay (10%). For example, when the CPU of a certain node is 88%, the memory is 92%, the throughput is 98%, and the delay is 160ms, the load value of the transit device is 88.5%. The preset load threshold is dynamically set according to the device type: the threshold for ordinary nodes is 80%, and if the load of the transit device ≥ 80% (such as 82%), migration is triggered; the threshold for dual - role devices is 90%, and 10% redundancy needs to be reserved (tasks can be received only when the load ≤ 85%). When a node is overloaded, the system locates the dual - role device with the nearest distance and a load ≤ 70% through the Dijkstra algorithm combined with the physical distance and network delay (the path delay is obtained through `traceroute`), migrates the excess tasks (such as new video streams) to the target device through the REST API call (parameters such as the target IP and task ID are passed through the ` / api / task / migrate` interface), and realizes seamless switching through the redirection of the OpenFlow flow table (issuing the `flow - mod` instruction to modify the traffic path). After migration, the load is continuously monitored. If the load of the dual - role device rises to 88% (close to the 90% threshold), a secondary migration (transferring non - real - time tasks to other nodes) is initiated or an SNMP trap alarm is triggered to ensure the stable operation of the network.

[0047] In step S15, according to the optimized network structure diagram, simulation operation is carried out to obtain the real - time power consumption data and inter - connection delay data of each device, and clustering is performed to obtain the device state grouping.

[0048] In one implementation, an open-source network simulator (such as GNS3, Mininet, or Cloonix) is used to build a virtual topology, or Huawei eNSP / H3C HCL is adopted to simulate vendor devices. The tc command of Linux is combined to simulate network latency (such as setting a fixed latency with tcqdisc add dev eth0 netem delay 100ms), and the NVIDIA PCAT tool is used to monitor the device power consumption in real time. Data acquisition: The power consumption data is collected through the PCAT graphics card power consumption analysis module or the built-in monitoring API of the simulator (such as the get_cpu / get_energy interface of Mininet). The latency data is measured by periodically sending TCP heartbeat packets (referring to the ping-pong mechanism of the Ethereum Geth protocol) or the tcptraceroute tool to measure the RTT, and the ping3 or scapy library of Python is used to continuously record with an automated script. Storage form: It is stored in a structured database (such as the InfluxDB time series database). Each record contains a timestamp, a device ID, a power consumption value (in watts), and a latency value (in milliseconds), or is exported in CSV / JSON format by period. For example, {"timestamp": "2025-04-27T17:15:08Z", "device_id": "router_01", "power": 15.2W, "latency": 135ms}, which is convenient for subsequent analysis of the correlation between network performance and energy consumption.

[0049] In one implementation, the average value is calculated based on the real-time power consumption data to obtain the average power consumption. The devices with the average power consumption greater than a preset power consumption threshold are classified into the high-energy consumption group. The devices with the average power consumption less than the power consumption threshold are classified into the low-energy consumption group. The average value is calculated based on the interconnection latency data to obtain the average latency. The devices with the average latency greater than a preset first latency threshold are classified into the high-latency group. The devices with the average latency less than the first latency threshold but greater than a preset second latency threshold are classified into the medium-latency group. The devices with the average latency less than the second latency threshold are classified into the low-latency group. The device status grouping includes a group name, group characteristics, and devices within the group.

[0050] It should be noted that the power consumption threshold is set at 12W, based on the power consumption range of typical network devices. For example, the average power consumption of enterprise-level switches is about 8 - 15W, and that of home routers is about 5 - 10W. The calculation logic is to take the arithmetic mean of the real-time power consumption data of the device for each hour within 24 hours. If the mean value is greater than 12W, it is classified into the high-power-consumption group; otherwise, it is classified into the low-power-consumption group.

[0051] It should be noted that the first latency threshold is 100ms, and the second latency threshold is set at 30ms. The calculation logic is to take the moving window average of the device interconnection latency data (such as the mean value of multiple ping tests within 1 minute). If the mean value is greater than 100ms, it is in the high-latency group; if the mean value is between 30ms and 100ms, it is in the medium-latency group; if it is less than 30ms, it is in the low-latency group.

[0052] It should be noted that based on the real-time power consumption and interconnection latency data, the devices are divided into the following five state groups: For the power consumption grouping with a threshold of 12W, the high-power-consumption group includes core devices with a power consumption mean exceeding 12W (such as core switch SW-01, server SRV-05), while the low-power-consumption group covers edge devices with power consumption ≤ 12W (such as wireless access point AP-10, edge gateway GW-03); for the latency grouping based on the dual thresholds of 100ms and 30ms, the high-latency group (mean > 100ms) includes long-distance public network links (such as WAN-Link-02), the medium-latency group (30ms < mean ≤ 100ms) corresponds to ordinary local area networks or medium-distance connections (such as LAN-Segment-04), and the low-latency group (≤ 30ms) is for local direct connections or high-performance dedicated lines (such as the data center direct connection link DC-Link-01). This grouping scheme clearly differentiates the key performance differences in energy consumption and latency in the network by combining quantization thresholds (power consumption 12W, latency 100ms / 30ms) with device characteristics and examples, providing a structured basis for subsequent resource scheduling and optimization.

[0053] In step S16, according to the device state grouping, topology configuration optimization is performed to obtain the final device network topology diagram.

[0054] In one implementation, the communication protocol of all paths connected to the devices in the high-latency group is adjusted to a low-latency protocol; the communication protocol of the devices in the high-power-consumption group is adjusted to a low-power-consumption protocol.

[0055] It should be noted that in the topology configuration optimization, for the connection paths of high-latency group devices in the home Bluetooth smart home, the protocol can be adjusted to the low-latency mode of Bluetooth Low Energy (BLE) (such as the real-time control instruction transmission between the smart lock and the mobile phone). It shortens the response time through the Connection Event Segmentation technology. For example, in the home security scenario, when the user triggers the door lock unlocking instruction through the mobile phone, the BLE protocol can compress the end-to-end latency to within 8 ms to ensure instant feedback. For long-distance home public network links (such as the communication between cross-floor smart cameras and cloud servers), the Matter over Thread protocol is adopted. Through the mesh network topology and IPv6 multi-path routing optimization, the latency is reduced from 200 ms of traditional Wi-Fi to below 50 ms to ensure the real-time nature of the video stream.

[0056] It should be noted that for high-power consumption group devices, the communication protocol is switched to the Zigbee 3.0 protocol (such as the periodic data reporting between the temperature and humidity sensor and the gateway). Based on the deep sleep mechanism of the IEEE 802.15.4 standard, the power consumption of the sensor node is less than 0.5 W during standby, and the average power consumption for all-day data collection is only 1.2 W; or the IEEE 802.11ah (HaLow) protocol is enabled (such as the long-distance low-power transmission between the home NAS and the smart TV). Through the sub-GHz frequency band optimization and dynamic transmit power adjustment, the energy consumption of the video stream transmission is reduced by 40%.

[0057] In summary, the present invention discloses an integrated control method for Bluetooth smart homes, aiming to optimize the communication efficiency between Bluetooth smart home devices through a series of steps. First, the method involves obtaining hardware parameters and communication protocol data, which ensures a comprehensive understanding of each device in the network and its interconnection method. Specifically, this process not only includes collecting core hardware parameters of devices such as processor speed and memory size, but also includes extracting information such as the supported communication protocol types, versions, and transmission rates from the device protocol stack or configuration file. Based on these data, the next step is to perform an initial role assignment according to the hardware parameters and communication protocol data to form a basic network topology structure. During this process, intelligent algorithms are used to evaluate the capabilities of each device and perform preliminary role assignments accordingly. For example, the device with the highest score is designated as the network coordinator, and the remaining devices are assigned as data forwarding nodes or edge nodes according to the score.

[0058] After determining the basic network structure, the method further analyzes the existing network structure diagram to identify a set of devices capable of assuming dual roles. By judging the hardware resources of all devices, checking protocol compatibility, and conducting dual-role performance tests, eligible devices are selected to form a dual-role device set. This process helps improve the flexibility and reliability of the entire network, enabling quick adjustment of resource allocation when network requirements change. Subsequently, based on the identified dual-role device set, the device interconnection efficiency is optimized, especially by adjusting the communication protocols on the paths connecting to dual-role devices to low-latency and high-efficiency protocols. In addition, load calculations are performed on data forwarding nodes. When it is found that the load of certain nodes exceeds the preset threshold, they are connected to the nearest dual-role device, and part of the tasks are transferred to balance the load.

[0059] To verify the effectiveness of the optimized network structure, the method also includes a simulation operation session, that is, running tests according to the optimized network structure diagram to obtain real-time power consumption data and interconnection delay data of each device. Then, clustering analysis technology is used to group the device states. Based on the differences in the average power consumption and average interconnection delay, the devices are divided into high-power-consumption groups, low-power-consumption groups, high-delay groups, medium-delay groups, and low-delay groups. Finally, based on the results of the device state grouping, the network topology structure is finally optimized to generate an optimized device network topology diagram, ensuring the best configuration and utilization of resources and achieving an efficient and stable network environment.

[0060] In summary, the present invention details a systematic integrated control solution for Bluetooth smart homes, covering the entire process from hardware parameter collection to network topology optimization, emphasizing how to improve the communication efficiency between smart home devices through scientific methods and technical means throughout the process, while ensuring the stability and reliability of the system. This method not only takes into account the hardware differences between different devices but also fully considers protocol compatibility and the actual performance of devices. Through dynamic adjustment and optimization strategies, the efficient operation of the smart home network is achieved.

[0061] Referring to Figure 2 , the second embodiment of the present invention provides an integrated control system for Bluetooth smart homes, including: A data acquisition module for acquiring hardware parameters and communication protocol data; A role assignment module for performing initial role assignment based on the hardware parameters and the communication protocol data to obtain an initial network structure diagram; A dual-role module for performing flexibility analysis based on the initial network structure diagram to obtain a dual-role device set; The initial optimization module is used to optimize the device interconnection efficiency according to the initial network structure diagram and the dual-role device set, adjust the communication protocol of the dual-role device, and obtain an optimized network structure diagram; The device grouping module is used to perform a simulation run according to the optimized network structure diagram, obtain the real-time power consumption data and interconnection delay data of each device, and perform clustering to obtain device status groups; The final optimization module is used to optimize the topology configuration according to the device status groups to obtain the final device network topology diagram.

[0062] It should be noted that the integrated control system of a Bluetooth smart home provided in the embodiments of the present invention is used to execute all the process steps of the integrated control method of a Bluetooth smart home in the above embodiments. The working principles and beneficial effects of the two correspond one by one, so they will not be repeated here.

[0063] The embodiments of the present invention also provide an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a data acquisition program. When the processor executes the computer program, it implements the steps in the embodiments of the above-mentioned integrated control methods of Bluetooth smart homes, such as Figure 1 the step S11 shown. Alternatively, when the processor executes the computer program, it implements the functions of each module / unit in the above-mentioned device embodiments, such as the data acquisition module.

[0064] Exemplarily, the computer program can be divided into one or more modules / units. The one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program in the electronic device.

[0065] The electronic device can be a computing device such as a desktop computer, a notebook, a palm computer, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the above components are only examples of the electronic device, and do not constitute a limitation on the electronic device. It may include more or fewer components than the above, or combine some components, or different components. For example, the electronic device may further include input / output devices, network access devices, a bus, etc.

[0066] The so-called processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The processor is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and circuits.

[0067] The memory can be used to store the computer programs and / or modules. By running or executing the computer programs and / or modules stored in the memory, and by calling the data stored in the memory, the processor realizes various functions of the electronic device. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, at least one magnetic disk storage device, flash device, or other volatile solid-state storage devices.

[0068] Among them, if the modules / units integrated in the electronic device are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above-described embodiment methods of the present invention, it can also be completed by a computer program instructing relevant hardware. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0069] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the attached drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0070] The above-described specific embodiments have further elaborated on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only the specific embodiments of the present invention and is not used to limit the protection scope of the present invention. It is particularly pointed out that for those skilled in the art, any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An integrated control method for a Bluetooth smart home, characterized in that: include: Get hardware parameters and communication protocol data; Perform initial role allocation according to the hardware parameters and the communication protocol data to obtain an initial network structure diagram; Performing flexibility analysis according to the initial network structure diagram to obtain a set of dual-role devices; Optimize the device interconnection efficiency according to the initial network structure diagram and the dual-role device set, adjust the communication protocol of the dual-role device, and obtain an optimized network structure diagram; Perform simulation operation according to the optimized network structure diagram, obtain real-time power consumption data and interconnection delay data of each device, and perform clustering to obtain device status grouping; Perform topology configuration optimization according to the device status grouping to obtain a final device network topology diagram; wherein determining a device role score according to the hardware parameters and the communication protocol data; Allocating the device with the highest device role score as the network coordinator; Sort the remaining devices from high to low according to the device role scores to obtain a device score list; select a preset number of devices from the device score list from high to low and assign them as data forwarding nodes, and assign the remaining devices in the device score list as edge nodes; The network coordinator and the data forwarding node are connected to form a backbone network through a connector, and the edge node is connected to the data forwarding node or the network coordinator nearby to form an initial network structure diagram.

2. The integrated control method of Bluetooth smart home according to claim 1, characterized in that: The determining of the device role score according to the hardware parameters and the communication protocol data comprises: Perform power consumption evaluation according to the hardware parameters to obtain a power consumption evaluation result; A weighted sum is performed based on the power consumption evaluation result and the communication protocol data to obtain a device role score.

3. The integrated control method of Bluetooth smart home according to claim 2, characterized in that: The performing power consumption evaluation according to the hardware parameters to obtain a power consumption evaluation result includes: The power consumption estimation result is calculated by the following formula: in, Indicates the power consumption evaluation result, represents the CPU weight, represents the memory weight, Indicates the processor frequency of the device. Indicates the memory capacity of the device. represents the reference frequency, Indicates baseline capacity.

4. The integrated control method of Bluetooth smart home according to claim 1, characterized in that: The flexibility analysis is performed according to the initial network structure diagram to obtain a dual-role device set, including: Performing hardware resource determination on all devices in the initial network structure diagram to obtain a first candidate set; Performing a protocol compatibility check on all devices in the first candidate set to obtain a second candidate set; Performing a dual-role performance test on all devices in the second candidate set to obtain a test score; All devices whose test scores are greater than a preset dual-role threshold are grouped into a dual-role device set.

5. The integrated control method of Bluetooth smart home according to claim 1, characterized in that: The optimizing the device interconnection efficiency according to the initial network structure diagram and the dual-role device set, adjusting the communication protocol of the dual-role device, and obtaining the optimized network structure diagram includes: Changing the path protocols of all the dual-role devices in the dual-role device set in the initial network structure diagram to low-latency and high-efficiency protocols; Perform load calculation on all data forwarding nodes in the initial network structure diagram to obtain a transfer device load; Connecting the data forwarding node whose load exceeds the preset load threshold to the nearest dual-role device, and transferring the computing task exceeding the load threshold to the dual-role device; The communication protocol of the dual-role device is changed to a dynamic protocol to obtain an optimized network structure diagram.

6. The integrated control method of Bluetooth smart home according to claim 1, characterized in that: The simulation operation is performed according to the optimized network structure diagram to obtain the real-time power consumption data and interconnection delay data of each device, and clustering is performed to obtain device status grouping, including: Performing mean calculation according to the real-time power consumption data to obtain a power consumption mean; Classify the devices whose average power consumption is greater than a preset power consumption threshold into a high energy consumption group; Classify the devices whose average power consumption is less than the power consumption threshold into a low energy consumption group; Performing mean calculation according to the interconnection delay data to obtain a delay mean; Divide the devices whose delay mean value is greater than a preset first delay threshold into a high delay group; Classify the devices whose delay mean is less than the first delay threshold but greater than a preset second delay threshold into a medium delay group; Divide the devices whose delay mean is less than the second delay threshold into a low delay group; The device status group includes a group name, group characteristics and devices in the group.

7. The integrated control method of Bluetooth smart home according to claim 1, characterized in that: The topology configuration optimization is performed according to the device status grouping to obtain a final device network topology diagram, including: Adjust the communication protocols of all paths connected to the devices in the high-latency group to low-latency protocols; The communication protocol of the devices in the high energy consumption group is adjusted to a low energy consumption protocol.

8. An integrated control system for a Bluetooth smart home, characterized in that: include: Data acquisition module, used to obtain hardware parameters and communication protocol data; A role allocation module, used to perform initial role allocation according to the hardware parameters and the communication protocol data to obtain an initial network structure diagram; A dual-role module, used for performing flexibility analysis according to the initial network structure diagram to obtain a dual-role device set; A primary optimization module, configured to optimize the device interconnection efficiency according to the initial network structure diagram and the dual-role device set, adjust the communication protocol of the dual-role device, and obtain an optimized network structure diagram; A device grouping module is used to perform simulation operation according to the optimized network structure diagram, obtain real-time power consumption data and interconnection delay data of each device, and perform clustering to obtain device status groups; The final optimization module is used to perform topology configuration optimization according to the device status grouping to obtain a final device network topology diagram.

9. An electronic device, characterized in that: The invention comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the integrated control method of the Bluetooth smart home as claimed in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the integrated control method of the Bluetooth smart home according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Information processing method and smart home equipment

    CN105515962A

  • Wireless control system based on hybrid network

    CN114902737A

  • Dynamic clustering and role adjustment networking method, device, equipment, medium and product

    CN119676794A

  • Systems and methods for implementing multiple personas in a computing system

    US10831877B1

Cited By

  • Wireless optimization transmission method based on smart home

    CN120416937A

  • Multi-Bluetooth device interconnection and intercommunication method based on transmission state feedback mechanism

    CN121262556A

  • Method for interconnection and intercommunication of multiple bluetooth devices based on transmission state feedback mechanism

    CN121262556B