Low-power-consumption Bluetooth communication optimization method and system based on multi-sensor application
By building the node combination of BLE Mesh network and determining the optimized transmission path, the problem of high energy consumption by BLE Mesh technology when the number of nodes is large, achieving more efficient data transmission and reducing energy consumption.
Patent Information
- Application Number
- CN202411815599.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the number of nodes is large, the amount of redundant data generated by flooding significantly increases the energy consumption of each node in the network.
By obtaining the functional information of multiple sensors, location information and hardware configuration information of the Bluetooth module, a node combination composed of the Bluetooth module is constructed, including at least one relay node, the shortest transmission path between the ordinary node and the relay node, and the communication link is determined based on the transmission path between the relay node and the central coordinator.
It realizes intelligent division of network topology, reduces the number of hops and network delays of data transmission, reduces the number of nodes participating in data forwarding, and effectively reduces the energy consumption of the entire system.
Smart Images

Figure CN119729683A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Bluetooth network technology, and in particular to a method and system for optimizing low-power Bluetooth communication based on multi-sensor applications. Background Art
[0002] In recent years, with the rapid development of Internet of Things (IoT) technology, the global IoT industry has shown explosive growth. Against this backdrop, various emerging communication technologies continue to emerge to meet the growing demand for interconnection of IoT devices. Among them, Bluetooth Low Energy Mesh (BLE Mesh) technology has gradually become one of the most competitive communication methods in the field of IoT due to its unique advantages.
[0003] BLE Mesh technology in related technologies mostly uses the managed flooding protocol (ManagedFlooding) for data transmission. Although this protocol is simple and effective, when there are a large number of network nodes, each node may participate in data forwarding, resulting in redundant data generated by flooding, which will significantly increase the energy consumption of each node in the network. Summary of the invention
[0004] The present application provides a low-power Bluetooth communication optimization method and system based on multi-sensor application, which can reduce the number of forwarding nodes and reduce system energy consumption.
[0005] In a first aspect, the present application provides a low-power Bluetooth communication optimization method based on multi-sensor application, which is applied to a central coordinator, and the method includes: Acquire function information and location information of multiple sensors, and hardware configuration information of Bluetooth modules corresponding to the sensors one by one; According to the function information, the location information and the hardware configuration information, a node combination consisting of the Bluetooth modules is constructed, wherein the node combination includes at least one relay node; Determine the shortest first transmission path between a common node in the node combination and the relay node, the common node being a node in the node combination other than the relay node; The communication link between the central coordinator and each of the Bluetooth modules is determined according to the second transmission path between the relay node and the central coordinator and the first transmission path.
[0006] By adopting the above technical solution, node combinations are constructed based on this information and relay nodes are determined, which realizes the intelligent division of network topology and improves the efficiency of data transmission. By determining the shortest first transmission path between ordinary nodes and relay nodes, and the second transmission path between relay nodes and central coordinators, an optimized end-to-end communication link is formed. This hierarchical routing strategy not only reduces the number of hops for data transmission and reduces network latency, but also significantly reduces the number of nodes involved in data forwarding, thereby effectively reducing the energy consumption of the entire system.
[0007] Optionally, the hardware configuration information includes signal strength information and power consumption information, and after constructing the node combination composed of the Bluetooth module according to the function information, the location information and the hardware configuration information, the method further includes: Determine the signal coverage range of the Bluetooth module and the number of other Bluetooth modules within the signal coverage range according to the signal strength information and the position information of the Bluetooth module; A relay node in the node combination is determined according to the signal coverage range, the coverage quantity, and the power consumption information.
[0008] By adopting the above technical solution, the relay nodes in the node combination are determined by combining the signal coverage range, coverage number and power consumption information, and a multi-dimensional node evaluation is achieved. This method not only takes into account the communication capability and network connectivity of the node, but also takes into account the energy consumption factor, thereby effectively controlling energy consumption while improving the network communication efficiency. By selecting nodes with wide signal coverage, large coverage number and low power consumption as relay nodes, the data transmission path of the entire network is optimized, unnecessary data forwarding is reduced, and the network load is reduced.
[0009] Optionally, determining the relay node in the node combination according to the signal coverage range, the coverage quantity, and the power consumption information includes: Calculate the signal strength score corresponding to each Bluetooth module according to the signal coverage range and the coverage quantity; Calculate the power consumption score corresponding to each Bluetooth module according to the power consumption information; Obtaining a signal strength requirement and a power consumption requirement input by a user, and determining a first weight corresponding to the signal strength requirement and a second weight corresponding to the power consumption requirement; Using the first weight and the second weight, respectively performing weighted summation on the signal strength score and the power consumption score to obtain a node score of each Bluetooth module; A relay node in the node combination is determined according to the node score.
[0010] By adopting the above technical solution, the signal strength score is calculated according to the signal coverage range and coverage quantity, which fully reflects the communication capability and network connectivity of the node. At the same time, the power consumption score is calculated based on the power consumption information, which effectively measures the energy efficiency of the node. The signal strength requirements and power consumption requirements input by the user are introduced, and the corresponding first weight and second weight are determined accordingly, so that the system can flexibly adapt to the specific requirements of different application scenarios. By weighted summing the signal strength score and the power consumption score, the node score obtained comprehensively reflects the overall performance of the Bluetooth module in terms of communication performance and energy consumption. Finally, the relay node in the node combination is determined based on the node score, achieving the goal of maximizing energy efficiency while ensuring communication quality.
[0011] Optionally, the determining the shortest first transmission path between a common node in the node combination and the relay node includes: Controlling the Bluetooth module corresponding to the common node to send a route detection packet to the relay node, so that the relay node replies with a route reply packet after receiving the route detection packet; Obtaining the transmission time between the Bluetooth module corresponding to the common node sending the route detection packet and receiving the route reply packet; The transmission path corresponding to the shortest transmission duration is determined as the first transmission path between the ordinary node and the relay node.
[0012] By adopting the above technical solution and implementing an active routing detection mechanism, the shortest first transmission path between the common node and the relay node is effectively determined. By controlling the Bluetooth module corresponding to the common node to send a routing detection packet to the relay node and receiving the routing reply packet from the relay node, the system can accurately measure the data transmission performance in the actual network environment. Obtaining the transmission time between sending the routing detection packet and receiving the routing reply packet directly reflects the real-time communication delay and network status of different transmission paths. Selecting the transmission path corresponding to the shortest transmission time as the first transmission path ensures the high efficiency and real-time performance of data transmission.
[0013] Optionally, the node combination includes a plurality of the relay nodes, and the controlling the Bluetooth module corresponding to the ordinary node to send a route detection packet to the relay node, so that the relay node replies to a route reply packet after receiving the route detection packet, further includes: Determine whether the number of nodes between the ordinary node and the relay node is less than a first threshold; If the number of nodes passing between the common node and the relay node is less than the first threshold, the relay node whose number of nodes passing is less than the first threshold is determined as the target relay node; The controlling the Bluetooth module corresponding to the common node to send a routing detection packet to the relay node includes: The Bluetooth module corresponding to the ordinary node is controlled to send a routing detection packet to the target relay node.
[0014] By adopting the above technical solution, the routing detection process is effectively optimized by introducing the path node number judgment mechanism and the target relay node screening strategy. First, by judging whether the path node number between the ordinary node and the relay node is less than the first threshold, the system can control the path complexity and avoid excessively long transmission links.
[0015] Optionally, constructing a node combination consisting of the Bluetooth modules according to the function information, the location information, and the hardware configuration information includes: Constructing a virtual map corresponding to the Bluetooth module according to the location information; Marking the Bluetooth module on the virtual map according to the function information and the hardware configuration information to obtain virtual node information corresponding to the Bluetooth module; The virtual node information is clustered using a clustering algorithm to determine a node combination corresponding to the Bluetooth module.
[0016] By adopting the above technical solution, a virtual map corresponding to the Bluetooth module is constructed according to the location information, which provides a basis for the visualization and analysis of the network topology. By applying the clustering algorithm to the virtual node information, the node combination corresponding to the Bluetooth module is determined, and the intelligent partitioning and management of the network is realized. This method not only considers the spatial distribution of the nodes, but also integrates the functional characteristics and hardware performance, making the node combination more reasonable and efficient. The node combination formed by clustering can optimize the network structure, reduce unnecessary communication overhead, and improve data transmission efficiency.
[0017] Optionally, after determining the communication link between the central coordinator and each of the Bluetooth modules according to the second transmission path between the relay node and the central coordinator and the first transmission path, the method further includes: Determine whether the Bluetooth module has a data transmission task at the current moment; If the Bluetooth module does not have the data transmission task at the current moment, the Bluetooth module is set to a dormant state.
[0018] By adopting the above technical solution, the system can accurately grasp the working requirements of each node by judging whether the Bluetooth module has a data transmission task at the current moment. When it is determined that the Bluetooth module does not have a data transmission task, it is set to a dormant state, which significantly reduces unnecessary energy consumption.
[0019] In a second aspect, the present application provides a low-power Bluetooth communication optimization system based on multi-sensor application, which is applied to a central coordinator, and the system includes: A data acquisition module, used to acquire function information and location information of multiple sensors, and hardware configuration information of Bluetooth modules corresponding to the sensors one by one; A node combination building module, used to build a node combination consisting of the Bluetooth modules according to the function information, the location information and the hardware configuration information, wherein the node combination includes at least one relay node; A transmission path determination module, used to determine the shortest first transmission path between a common node in the node combination and the relay node, wherein the common node is a node in the node combination other than the relay node; The communication link determination module is used to determine the communication link between the central coordinator and each of the Bluetooth modules according to the second transmission path between the relay node and the central coordinator and the first transmission path.
[0020] In a third aspect, the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing any one of the above methods.
[0021] In a fourth aspect, the present application provides an electronic device, comprising a processor, a memory and a transceiver, wherein the memory is used to store instructions, the transceiver is used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device performs any one of the methods described above.
[0022] In summary, the beneficial effects brought about by the technical solution of this application include: Based on this information, node combinations are constructed and relay nodes are determined, which realizes the intelligent division of network topology and improves the efficiency of data transmission. By determining the shortest first transmission path between ordinary nodes and relay nodes, and the second transmission path between relay nodes and central coordinators, an optimized end-to-end communication link is formed. This hierarchical routing strategy not only reduces the number of hops for data transmission and reduces network latency, but also significantly reduces the number of nodes involved in data forwarding, thereby effectively reducing the energy consumption of the entire system. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a flowchart of a method for optimizing low-power Bluetooth communication based on multi-sensor application according to an embodiment of the present application; Figure 2 It is a structural diagram of a low-power Bluetooth communication optimization system based on multi-sensor application in an embodiment of the present application; Figure 3This is a scenario diagram of a low-power Bluetooth communication optimization system based on multi-sensor application provided in an embodiment of the present application; Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0024] Description of reference numerals: 400, electronic device; 401, processor; 402, communication bus; 403, user interface; 404, network interface; 405, memory. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0026] In the description of the embodiments of the present application, words such as "illustrative", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "illustrative", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "illustrative", "for example" or "for example" is intended to present related concepts in a specific way.
[0027] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0028] First, a brief description is given of the central coordinator as the executive subject in the embodiment of the present application. As the center of the system, the central coordinator is responsible for receiving data from each sensor node and processing, analyzing and storing the data. The central coordinator usually has a more powerful processing capability and a larger storage capacity. The central coordinator can effectively manage and optimize the entire low-power Bluetooth network, achieve efficient data collection, processing and analysis, and optimize system performance and energy efficiency through intelligent decision-making. It is the core executor of the low-power Bluetooth communication optimization method proposed in this application.
[0029] See also Figure 1, which is a flow chart of a method for optimizing low-power Bluetooth communication based on multi-sensor applications provided in an embodiment of the present application. The method can be implemented by a computer program, can be implemented by a single-chip microcomputer, or can be run on a low-power Bluetooth communication optimization system based on multi-sensor applications based on a von Neumann system. The computer program can be integrated into an application or run as an independent tool application. The specific steps of the method for optimizing low-power Bluetooth communication based on multi-sensor applications are described in detail below.
[0030] S101: Acquire function information and location information of a plurality of sensors, and hardware configuration information of Bluetooth modules corresponding to the sensors one by one.
[0031] Among them, the functional information of the sensor refers to a data set that describes the basic working characteristics and capabilities of the sensor. In the embodiment of the present application, it can be understood as a comprehensive description of key parameters such as the type of sensor, measurement range, accuracy, sampling frequency, and data output format. This information includes sensor type (such as temperature, humidity, pressure, light, etc.), measurement range, measurement accuracy, resolution, response time, sampling frequency, data output format, power consumption characteristics, and special functions (such as self-calibration capabilities). In the embodiment of the present application, the functional information of the sensor is used for network planning, communication strategy optimization, relay node selection, power consumption management, data processing, and system scalability planning. By using this information, the central coordinator can reasonably plan the network topology according to the characteristics of different sensors.
[0032] Among them, the location information of the sensor refers to the data that describes the geographical location and spatial relationship of the sensor in the physical space. In the embodiment of the present application, it can be understood as a comprehensive description of the specific coordinates, relative position, installation height, orientation and other spatial attributes of the sensor in the monitoring area. This information may include the absolute coordinates of the sensor (such as longitude and latitude or three-dimensional coordinates), the position relative to a reference point, the floor and room position in the building, the installation height and angle, the surrounding environment characteristics, etc. In the embodiment of the present application, the location information of the sensor is used to construct a network topology map, optimize the communication path, evaluate the signal propagation characteristics, identify potential communication obstacles, select appropriate relay nodes, and realize location-aware data analysis and visualization.
[0033] Among them, the hardware configuration information of the Bluetooth module refers to a data set that describes the technical specifications and performance parameters of the Bluetooth communication device. In the embodiment of the present application, it can be understood as a comprehensive description of key hardware attributes such as the version, transmission power, sensitivity, antenna characteristics, and chip model of the Bluetooth module. This information may cover Bluetooth protocol versions (such as Bluetooth 5.0, 5.1, etc.), supported communication modes (such as BR / EDR, LE), maximum transmission power, receiving sensitivity, antenna gain, chip manufacturers and models, built-in storage and processing capabilities, power management features, supported data rates, etc. In the embodiment of the present application, the hardware configuration information of the Bluetooth module is used to evaluate the communication capabilities of the node, optimize the network topology, formulate transmission strategies, manage power consumption, and select appropriate communication parameters and protocols. By using this information, the central coordinator can more accurately estimate the communication range and quality of each node.
[0034] In this embodiment, in order to optimize the low-power Bluetooth communication system, it is first necessary to obtain the functional information and location information of multiple sensors, as well as the hardware configuration information of the Bluetooth modules corresponding to these sensors. The purpose of this step is to establish a comprehensive system knowledge base to provide basic data support for subsequent network optimization and communication strategy formulation. In specific implementation, the central coordinator can obtain this information in the following ways: for the functional information of the sensor, each sensor node can send a configuration message containing parameters such as its type, measurement range, accuracy, sampling frequency, etc. to the central coordinator when the system is initialized; for the location information, it can be manually input by inputting the preset installation location coordinates, or automatically obtained by using the system's built-in positioning algorithm (such as triangulation positioning based on signal strength); and the hardware configuration information of the Bluetooth module can be actively reported by each node during the device registration phase, or obtained by the central coordinator through specific query instructions. After the acquisition of this information, the central coordinator stores it in the local database to establish a complete configuration file for each sensor node.
[0035] S102: constructing a node combination consisting of Bluetooth modules according to the function information, the location information and the hardware configuration information, wherein the node combination includes at least one relay node.
[0036] Among them, node combination refers to the division of multiple sensor nodes into different functional groups or communication sets according to specific standards or goals in a low-power Bluetooth communication network. In an embodiment of the present application, it can be understood as the result of intelligent classification and organization of nodes in the network based on the functional information, location information of the sensor and the hardware configuration information of the corresponding Bluetooth module. The node combination may include a node cluster with similar geographical locations, a sensor group with complementary functions, a device group with similar communication capabilities, etc. In an embodiment of the present application, the node combination is used to optimize the network structure, improve communication efficiency, achieve functional coordination and balance system load. Through a reasonable node combination, the central coordinator can manage network resources more effectively, such as specifying a suitable relay node for each combination, formulating a data aggregation strategy within the group, coordinating the communication timing between groups, and realizing hierarchical network management.
[0037] Wherein, relay node refers to the node with special function and role in low power consumption bluetooth communication network, which is responsible for receiving, processing and forwarding data of other nodes. In the embodiment of the present application, it can be understood as the node with strong communication capability and superior position selected in the node combination, which undertakes the tasks of data transfer, routing decision and local coordination. Relay node usually has higher hardware configuration, such as greater transmission power, higher processing power and more storage space. In the embodiment of the present application, relay node is used to optimize network topology, improve communication efficiency and reduce network energy consumption.
[0038] In this embodiment, in the embodiment of the present application, based on the previously acquired functional information, location information of multiple sensors and the hardware configuration information of the Bluetooth module corresponding to the sensor, the next key operation is to construct a node combination composed of Bluetooth modules, wherein each node combination includes at least one relay node. The purpose of this step is to lay the foundation for realizing an efficient node combination on-demand routing protocol, thereby optimizing the network structure, improving communication efficiency, and significantly reducing system energy consumption. In the specific implementation, the central coordinator first comprehensively analyzes the information of all nodes, and then intelligently classifies and combines them according to the preset algorithms and rules. In this process, the system will comprehensively consider multiple factors: first, the location information is used to divide the nodes with similar geographical locations into a preliminary combination to facilitate the rapid convergence of local data; secondly, according to the functional information of the sensor, the combination structure is adjusted to ensure that each combination contains sensors with complementary functions to support composite data analysis; finally, considering the hardware configuration information of the Bluetooth module, a node with strong communication capability, sufficient power and moderate location is selected in each node combination as a relay node. This combination method can effectively reduce the number of nodes involved in data forwarding, thereby greatly reducing redundant data transmission and overall energy consumption in the network.
[0039] Based on the above embodiment, as an optional implementation manner, the manner of determining the relay node can be specifically implemented through the following steps S201-S202.
[0040] S201: Determine the signal coverage range of the Bluetooth module and the number of other Bluetooth modules within the signal coverage range according to the signal strength information and the position information of the Bluetooth module.
[0041] Specifically, the hardware configuration information includes signal strength information and power consumption information.
[0042] Among them, signal strength information refers to a data indicator that describes the quality of signal transmission between wireless communication devices. In the embodiment of the present application, it can be understood as the power level of the wireless signal received by the low-power Bluetooth device, usually expressed as a received signal strength indicator (RSSI) value. This value reflects the degree of signal attenuation during transmission and is affected by many factors such as transmission power, transmission distance, and environmental factors.
[0043] Among them, power consumption information refers to a data indicator that describes the energy consumption status of the device. In the embodiment of the present application, it can be understood as a comprehensive description of the energy consumption rate and remaining power level of the low-power Bluetooth module in different working states. This includes but is not limited to the power consumption of the device in different modes such as sending, receiving, idle and sleeping, battery capacity, current power percentage, estimated remaining working time and other information.
[0044] Among them, signal coverage refers to the spatial area where the wireless communication device can effectively transmit and receive signals. In the embodiment of the present application, it can be understood as the maximum radius or area in which the low-power Bluetooth module can maintain stable communication under specific environmental conditions. This range is affected by many factors, such as transmission power, antenna characteristics, environmental obstacles, signal frequency, etc. Specifically, the central coordinator can use signal coverage information to determine the possibility of connection between nodes, identify coverage blind spots or overlapping areas in the network, and rationally plan the location and number of relay nodes.
[0045] Among them, the coverage number refers to the number of other nodes with which a communication node can directly establish an effective connection. In the embodiment of the present application, it can be understood as the total number of other Bluetooth modules with which a low-power Bluetooth module can stably communicate within its signal coverage range. This value reflects the connection density and potential communication capability of the node in the network. For example, when building a node combination, the system will give priority to nodes with a large coverage number as relay node candidates, because these nodes usually have better network connectivity and can more effectively aggregate and forward data. At the same time, the system will also balance the coverage number of each node to avoid overburdening some nodes while other nodes are idle.
[0046] In an embodiment of the present application, in order to further optimize the network structure and communication efficiency of the low-power Bluetooth communication system, the system needs to determine the signal coverage of each Bluetooth module and the number of other Bluetooth modules covered within the signal coverage according to the signal strength information and location information of the Bluetooth module. The implementation of this step is crucial for building an efficient node combination and selecting a suitable relay node. In specific implementation, the central coordinator first collects the signal strength information of each Bluetooth module, usually expressed as a received signal strength indication (RSSI) value. At the same time, using the previously acquired location information, the system can calculate the relative distance between the nodes. Combining these two data, the system can estimate the signal coverage of each Bluetooth module. In this process, the system considers the impact of environmental factors on signal propagation, such as obstacles, interference sources, etc., to obtain a more accurate coverage estimate. After determining the signal coverage, the system further analyzes the number of other modules within the coverage of each Bluetooth module, that is, the coverage number. The signal coverage reflects the communication capability of the node, while the coverage number indicates the importance of the node in the network and the potential data aggregation capability.
[0047] S202: Determine a relay node in the node combination according to the signal coverage range, coverage quantity and power consumption information.
[0048] In an embodiment of the present application, the central coordinator first comprehensively analyzes the signal coverage, coverage quantity and power consumption information of each Bluetooth module. The signal coverage reflects the communication capability of the node, the coverage quantity indicates the connectivity of the node in the network, and the power consumption information represents the energy consumption rate of the node under different working conditions. The system will give priority to nodes with larger signal coverage, high coverage quantity and low power consumption as relay node candidates. The reason for this is that these nodes are usually able to communicate directly with more other nodes, while consuming less energy during data forwarding, which is conducive to efficient data aggregation and forwarding. At the same time, the system will also consider the geographical distribution of the nodes to ensure that the selected relay nodes can form a backbone structure covering the entire network. In the selection process, the system will weigh the importance of various factors. For example, although the coverage and coverage quantity of a node are very high, if its power consumption information shows a high energy consumption rate, the system may select another node with slightly weaker coverage but lower power consumption as a relay node to ensure the long-term efficient operation of the network. In addition, the system will also consider load balancing to avoid concentrating all communication tasks on a few nodes, but to disperse the communication burden as much as possible. This approach helps optimize the energy utilization of the network because it takes into account the power consumption characteristics of the nodes and avoids the situation where high-power consumption nodes frequently participate in data forwarding, which increases the overall energy consumption of the network.
[0049] Based on the above embodiment, as an optional implementation, step S202 specifically also includes steps S2021-S2025.
[0050] S2021: Calculate the signal strength score corresponding to each Bluetooth module according to the signal coverage range and coverage quantity.
[0051] Among them, the signal strength score refers to the quantitative representation of the signal strength of the Bluetooth module, which is usually calculated and normalized based on the received signal strength indication (RSSI) value. In the embodiment of the present application, it can be understood as a value between 0 and 100, where 0 represents the weakest detectable signal strength and 100 represents the strongest signal strength. The signal strength score is used to more accurately evaluate the communication capability and potential coverage of the Bluetooth module. By converting the original RSSI value into a standardized score, the system can more easily compare the signal strengths of different Bluetooth modules.
[0052] In specific implementation, the central coordinator first uses the previously acquired signal coverage and coverage data to calculate the signal strength score of each Bluetooth module through a certain algorithm. During the calculation process, the system will give different weights to the signal coverage and coverage to balance the impact of these two factors on the importance of the node. For example, the weighted average method can be used to normalize the signal coverage and coverage, assign certain weight coefficients to each, and then sum them up to get the final signal strength score. The reason for this is that the signal coverage reflects the communication capability of the node, while the coverage indicates the importance of the node's connection in the network. The two together determine the potential of the node as a relay node.
[0053] S2022: Calculate the power consumption score corresponding to each Bluetooth module according to the power consumption information.
[0054] Among them, the power consumption score refers to the quantitative representation of the energy consumption characteristics of the Bluetooth module, which is usually calculated and normalized based on the average power consumption of the module under different working states. In the embodiment of the present application, it can be understood as a value between 0 and 100, where 0 represents the highest power consumption level and 100 represents the lowest power consumption level. This reverse scoring mechanism makes the higher the power consumption score, the better the energy efficiency of the node. The power consumption score is used to accurately evaluate the energy consumption characteristics of the Bluetooth module, providing an important basis for energy efficiency for the selection of relay nodes.
[0055] In specific implementation, the central coordinator first uses the previously acquired power consumption information to calculate the power consumption score of each Bluetooth module through a specific algorithm. During the calculation process, the system considers the average power consumption of the Bluetooth module in different working states, such as the power consumption data of the standby, receiving and sending states. These data are usually expressed in milliwatts (mW). In order to obtain a standardized power consumption score, the system may adopt the following method: First, determine the maximum and minimum power consumption values of all nodes in the network, and then use linear mapping or other normalization methods to map the power consumption data of each node to a range of 0 to 100. In this process, the highest power consumption corresponds to 0 points, the lowest power consumption corresponds to 100 points, and the power consumption scores of other nodes are calculated based on their relative positions. The advantage of this calculation method is that it can intuitively reflect the power consumption differences between nodes, so that energy-efficient nodes get higher scores, which is conducive to the subsequent selection of relay nodes.
[0056] S2023: Obtain a signal strength requirement and a power consumption requirement input by a user, and determine a first weight corresponding to the signal strength requirement and a second weight corresponding to the power consumption requirement.
[0057] Among them, the first weight refers to the weight coefficient assigned to the signal strength score when calculating the comprehensive score of the Bluetooth module. In the embodiment of the present application, it can be understood as a decimal value between 0 and 1, which is used to adjust the influence of the signal strength score in the final comprehensive score. By adjusting the value of the first weight, the system can flexibly control the influence of the two factors of signal coverage range and coverage quantity on the final decision.
[0058] Among them, the second weight refers to the weight coefficient assigned to the power consumption score when calculating the comprehensive score of the Bluetooth module. In the embodiment of the present application, it can be understood as a decimal value between 0 and 1, which is used to adjust the influence of the power consumption score in the final comprehensive score. By adjusting the value of the second weight, the system can flexibly control the influence of the node energy consumption characteristics on the final decision.
[0059] In an embodiment of the present application, in order to better meet the specific needs of the user and optimize the performance of the low-power Bluetooth communication network, the system needs to obtain the signal strength requirements and power consumption requirements input by the user, and determine the corresponding first weight and second weight accordingly. In specific implementation, the system first obtains the user's signal strength requirements and power consumption requirements through a user interface or a configuration file. These requirements may be expressed in the form of qualitative descriptions (such as "high", "medium", "low") or quantitative indicators. Subsequently, the system maps these requirements to corresponding weight values. For example, a predefined mapping table or algorithm can be used to convert the user's requirements into weight values between 0 and 1. In this process, the system considers the relative importance and complementarity of the requirements. If the user indicates that he has a high demand for signal strength, the system may set the first weight to a larger value (such as 0.7) and set the second weight to a smaller value (such as 0.3) to ensure that the sum of the two weights is 1.
[0060] The reason for this practice is that signal strength and power consumption are usually mutually restrictive factors, and increasing one often leads to a decrease in the performance of the other. By flexibly adjusting the weights, the system can find the best balance between these two key indicators. This method of determining weights based on user needs can significantly improve the overall performance and user experience of low-power Bluetooth communication systems. First, it provides a more personalized and scenario-adaptive evaluation standard for the selection of relay nodes, which helps the system select the most appropriate relay node combination based on the actual needs of users.
[0061] S2024: Using the first weight and the second weight, respectively perform weighted summation on the signal strength score and the power consumption score to obtain a node score of each Bluetooth module.
[0062] Among them, the node score refers to the quantitative evaluation of the comprehensive performance of the Bluetooth module, which takes into account the two main factors of signal strength and energy efficiency. In the embodiment of the present application, it can be understood as a value between 0 and 100, where a higher score indicates that the node is better in communication performance and energy consumption balance. This score combines the signal strength score and the power consumption score, and considers the weight determined by user needs, and finally derives a single indicator that can reflect the overall performance of the node.
[0063] In the embodiment of the present application, in order to achieve the best balance between network performance and energy consumption, and to meet the specific needs of users. In the specific implementation, the system first calls the previously calculated signal strength score and power consumption score, as well as the first weight and second weight determined based on user needs. For each Bluetooth module in the network, the system calculates its node score using the following formula: Node score = first weight × signal strength score + second weight × power consumption score. In this calculation process, the signal strength score and power consumption score are usually standardized to a range of 0 to 100, and the sum of the first weight and the second weight is equal to 1, ensuring that the final node score also falls within the range of 0 to 100, which is convenient for comparison and sorting. This weighted summation method can effectively integrate the two key performance indicators into a comprehensive score, while taking into account the different preferences of users for signal strength and power consumption. For example, if the user pays more attention to communication quality, the first weight may be set to 0.7 and the second weight to 0.3; conversely, if the user is more concerned about energy consumption, the first weight may be set to 0.3 and the second weight to 0.7. Through this flexible weight adjustment, the system can generate the most suitable node scores for different application scenarios and user needs.
[0064] S2025: Determine the relay nodes in the node combination according to the node scores.
[0065] In specific implementation, the system first sorts the node scores of all Bluetooth modules and lists potential relay node candidates from high to low. The system adopts an iterative selection strategy: first select the Bluetooth module with the highest node score as the first relay node, and then evaluate the network coverage. If the network coverage is insufficient, the system will continue to select from the remaining high-scoring nodes, but will give priority to those that can supplement the existing coverage blind spots. This process will be repeated until the preset coverage target or the upper limit of the number of relay nodes is reached. During the selection process, the system also considers the distance and distribution between nodes to avoid over-concentration or network segmentation. For example, if two high-scoring nodes are too close, the system may select one of them and look for the next relay node in other areas to achieve a more balanced network structure.
[0066] Based on the above embodiment, as an optional implementation, the method of constructing a node combination can be specifically implemented through the following steps S301-S303.
[0067] S301: Construct a virtual map corresponding to the Bluetooth module according to the location information.
[0068] A virtual map refers to a digital spatial representation model used to describe and simulate the location, distribution, and relationship between nodes in a low-power Bluetooth communication network. In the embodiments of the present application, it can be understood as a two-dimensional or three-dimensional coordinate system, in which each Bluetooth module is abstracted as a point or area with specific attributes. The virtual map is used to simulate and analyze the Bluetooth network topology in the actual physical space in a digital environment, providing a visualization and calculation basis for the selection of relay nodes and network optimization.
[0069] In specific implementation, the system first collects the location information of each Bluetooth module, which may include GPS coordinates, indoor positioning data, or preset fixed locations. Then, the system maps this location information into a two-dimensional or three-dimensional coordinate system. In simple scenarios, a plane rectangular coordinate system can be used; for complex multi-story buildings or irregular terrain, a three-dimensional coordinate system or a more complex spatial representation method may be required.
[0070] S302: Mark the Bluetooth module on the virtual map according to the function information and the hardware configuration information to obtain the virtual node information corresponding to the Bluetooth module.
[0071] Among them, virtual node information refers to a comprehensive set of digital attributes used to describe and characterize each Bluetooth module in a virtual map. In the embodiment of the present application, it can be understood as a multidimensional data structure, which not only contains the basic attributes of the Bluetooth module, but also integrates dynamic performance indicators and network relationship data. Virtual node information is used to comprehensively and accurately represent and manage the characteristics and status of each Bluetooth module in a digital environment.
[0072] In this embodiment, the static and dynamic characteristics of each Bluetooth module are integrated into the virtual map to create a comprehensive and detailed network digital twin model. The main purpose of this annotation is to create a rich digital representation for each Bluetooth module, so that the system can more comprehensively understand and manage each node in the network. In specific implementation, the system first collects the functional information of each Bluetooth module, including its role in the network (such as relay node, terminal node, etc.), supported communication protocols, data processing capabilities, etc. At the same time, the system also collects hardware configuration information, such as processor type, memory capacity, battery capacity, antenna specifications, etc. This information can be obtained by device self-reporting, network scanning or pre-configuration. Next, the system associates this information with the corresponding Bluetooth module position on the virtual map. On the visual interface of the virtual map, different icons, colors or labels can be used to intuitively represent different functions and hardware configurations. For example, icons of different shapes can be used to represent different types of nodes (such as squares for relay nodes and circles for terminal nodes), color depth can be used to represent signal strength or battery power, and icon size can be used to represent processing power, etc. In addition to static information, the system also collects and updates dynamic information in real time, such as current signal strength, battery power, data throughput, etc. This dynamic information can be obtained through regular polling or event triggering, and updated to the virtual node information in real time.
[0073] S303: Clustering the virtual node information using a clustering algorithm to determine a node combination corresponding to the Bluetooth module.
[0074] When implementing it, the system first needs to select an appropriate clustering algorithm. Considering the characteristics of the Bluetooth low energy network, you can choose algorithms such as K-means, DBSCAN, or hierarchical clustering. When selecting an algorithm, you need to consider factors such as the size of the network, the density of node distribution, and the dimension of the data. For example, for a network with a relatively uniform node distribution, the K-means algorithm may be a good choice; for a network with an uneven node distribution or noisy data, the DBSCAN algorithm may be more suitable.
[0075] Next, the system needs to extract features for clustering from the virtual node information. These features include the node's geographic location, signal strength, power consumption level, processing power, connection stability, etc. After preparing the data, the system starts to execute the clustering algorithm. Taking the K-means algorithm as an example, the system first needs to determine the number of clusters K. This value can be determined by preset rules, such as the square root of the network size, or dynamically determined by methods such as the Elbow Method. The algorithm will iteratively execute and continuously adjust the cluster center until the convergence condition is reached or the maximum number of iterations is reached. After clustering is completed, the system will assign a unique identifier to each cluster and associate the clustering results with the virtual map. In the visual interface, different colors or boundaries can be used to mark different node combinations.
[0076] S103: Determine the shortest first transmission path between a common node and a relay node in the node combination, where the common node is a node other than the relay node in the node combination; Among them, in the embodiment of the present application, ordinary nodes refer to Bluetooth modules that do not undertake data forwarding functions in low-power Bluetooth networks. These nodes are mainly responsible for sending and receiving their own data. Since they do not need to process and forward data from other nodes, ordinary nodes can usually maintain a lower power consumption state. Overall, the number of forwarding nodes in the node combination can be reduced, thereby achieving the purpose of reducing energy consumption.
[0077] The first transmission path refers to the initial data transmission route from the source node to the target node in the low-power Bluetooth network. In the embodiment of the present application, it can be understood as a link composed of multiple relay nodes, which are connected in a specific order to form a logical channel from the data sending end to the receiving end.
[0078] In this embodiment, the optimal data transmission channel is found for each common node to ensure that the data can be transmitted to the relay node with the least number of hops and the lowest energy consumption. As nodes other than relay nodes in the node combination, the main task of common nodes is to collect and send data, and they do not participate in data forwarding. By finding the shortest first transmission path, the system can ensure that the transmission time of the data packet in the network is the shortest, thereby improving real-time performance and response speed. At the same time, the shortest path also means that the number of relay nodes through which the data packet passes is the least, which can not only reduce the data flow in the network, but also reduce the load and energy consumption of the relay node.
[0079] Specifically, the central coordinator first controls the Bluetooth module corresponding to the ordinary node to send a routing detection packet to the relay node. These routing detection packets contain necessary information, such as the identification of the sending node, timestamp, etc. When the relay node receives the routing detection packet, it will immediately reply with a routing reply packet. This process is similar to the commonly used "ping" operation in the network, but here it is specifically used to determine the optimal transmission path.
[0080] Next, the central coordinator obtains the transmission time between the Bluetooth module corresponding to the ordinary node sending the route detection packet and receiving the route reply packet. This duration reflects the communication delay between the two nodes, including factors such as signal propagation time and processing time. By comparing the transmission time of different paths, the central coordinator can identify the shortest transmission path. Specifically, the transmission path corresponding to the shortest transmission time is determined as the first transmission path between the ordinary node and the relay node.
[0081] Based on the above embodiment, as an optional implementation, step S103 also includes S401-S403.
[0082] S401: Control the Bluetooth module corresponding to the common node to send a route detection packet to the relay node, so that the relay node replies with a route reply packet after receiving the route detection packet.
[0083] Among them, the routing detection packet is a specially designed data packet used to detect and evaluate the quality of the communication path between different nodes in a low-power Bluetooth network. In an embodiment of the present application, the routing detection packet can be understood as a lightweight data packet sent by an ordinary node to a relay node, and its main purpose is to trigger the response of the relay node and measure the round-trip time. The routing detection packet usually contains key information such as the unique identifier of the sending node, the unique identifier of the target node (relay node), the sequence number, the timestamp, the lifetime (TTL), and optional load data. This information is used to identify the source and intended recipient of the detection packet, distinguish different detection packets, record the sending time, limit the number of propagation hops, and simulate actual data transmission.
[0084] Among them, the route reply packet is a response data packet corresponding to the route detection packet. The route reply packet refers to a confirmation information packet that the relay node immediately generates and sends back to the ordinary node after receiving the route detection packet sent by the ordinary node. In the embodiment of the present application, the route reply packet can be understood as the relay node's instant feedback on the route detection request, which carries the necessary information to help evaluate the quality and availability of the communication link.
[0085] In the specific implementation, the central coordinator first sends a control instruction to the ordinary node, instructing it to start the route detection process. After receiving the instruction, the Bluetooth module of the ordinary node will generate a route detection packet containing its own identifier, the target relay node identifier, the serial number and the timestamp. This information is crucial for the subsequent path quality assessment. Subsequently, the Bluetooth module of the ordinary node sends the route detection packet through the preset low-power Bluetooth broadcast channel.
[0086] When a relay node receives a route detection packet, it immediately processes the data packet, extracts the key information, and quickly generates a corresponding route reply packet. This reply packet contains the received detection packet sequence number, the relay node's own identifier, the reception timestamp, and other information that may be helpful for path evaluation, such as the node's current load status or remaining power. The relay node then sends the route reply packet back to the normal node through the same low-power Bluetooth channel.
[0087] S402: Obtain the transmission time between sending a route detection packet and receiving a route reply packet by the Bluetooth module corresponding to the common node.
[0088] In specific implementation, the Bluetooth module of an ordinary node records an accurate sending timestamp when sending a route detection packet. This timestamp is usually the system time in microseconds, ensuring high measurement accuracy. When an ordinary node receives the corresponding route reply packet, it immediately records the receiving timestamp. Subsequently, the Bluetooth module calculates the difference between the two timestamps to obtain the time it takes for the route detection packet to be sent and received, that is, the transmission duration.
[0089] S403: Determine the transmission path corresponding to the shortest transmission duration as the first transmission path between the common node and the relay node.
[0090] In specific implementation, the system first collects and compares the transmission time data between the ordinary node and all available relay nodes. This data is obtained through the aforementioned interaction process of the route detection packet and the route reply packet. The system maintains a data structure, which may be a sorted list or a priority queue, to store the identifier of each relay node and its corresponding transmission time. Then, the system sorts this data and finds the relay node with the shortest transmission time. The path from the ordinary node to the relay node is marked as the first transmission path.
[0091] Based on the above embodiment, as an optional implementation mode, it is determined whether the number of nodes in the path between the ordinary node and the relay node is less than a first threshold value; if the number of nodes in the path between the ordinary node and the relay node is less than the first threshold value, the relay node whose number of nodes in the path is less than the first threshold value is determined as the target relay node; the Bluetooth module corresponding to the ordinary node is controlled to send a routing detection packet to the relay node, including: controlling the Bluetooth module corresponding to the ordinary node to send a routing detection packet to the target relay node.
[0092] In the embodiment of the present invention, judging whether the number of nodes in the path between the common node and the relay node is less than the first threshold, and determining the relay node whose number of nodes in the path is less than the first threshold as the target relay node, is an important step to optimize the communication efficiency and reliability of the low-power Bluetooth network. The design purpose of this step is to control the complexity of the data transmission path while ensuring the communication quality, thereby improving the overall performance and stability of the network.
[0093] In specific implementation, the system first needs to obtain the path information from the ordinary node to each relay node. This information can be obtained through the aforementioned interaction between the route detection packet and the route reply packet. During the propagation of the route detection packet, each time it passes through a node, the node will record its own identifier in the data packet. When the relay node receives the route detection packet and generates a route reply packet, it will include this path information in the reply packet. By analyzing this path information, the system can calculate the number of nodes on each path.
[0094] Next, the system will compare the calculated number of nodes in the path with the preset first threshold. This first threshold is a parameter that is preset based on factors such as network size, expected performance, and energy consumption requirements. It represents the maximum number of hops or transfers that the system can accept. For example, if the first threshold is set to 3, the system will give priority to paths with no more than 2 nodes in the path (a total of 3 nodes including the target relay node). For each relay node, if the number of nodes in the path to reach the node is less than the first threshold, the system will mark it as a candidate target relay node.
[0095] S104: Determine a communication link between the central coordinator and each Bluetooth module according to the second transmission path between the relay node and the central coordinator and the first transmission path.
[0096] Among them, the second transmission path refers to the communication path between the relay node and the central coordinator. Specifically, it is the path in the entire communication link that is responsible for transmitting data from the relay node to the central coordinator. In the embodiment of the present application, it can be understood that the second transmission path is the second half of the entire communication link, which together with the first transmission path (i.e., the path from the ordinary node to the relay node) constitutes a complete end-to-end communication link. This segmented definition reflects the hierarchical structure in the low-power Bluetooth network, in which the relay node plays the role of a bridge connecting the ordinary node and the central coordinator.
[0097] In specific implementation, due to the existence of multiple relay nodes, the transmission paths between different relay nodes and the central coordinator are different, and the communication quality is also different. Therefore, the system first needs to obtain and integrate two key pieces of information: detailed data of the first transmission path and the second transmission path. The information of the first transmission path comes from the path selection process between the ordinary node and the relay node in the previous step, including the path corresponding to the shortest transmission time and the path with a number of nodes less than the first threshold. The information of the second transmission path is obtained through the communication test between the relay node and the central coordinator, which may include parameters such as signal strength and transmission delay.
[0098] The system will match and combine these two pieces of information. For each common node (i.e., Bluetooth module), the system will find the best relay node connected to it (based on the selection of the first transmission path), and then determine the best path from the relay node to the central coordinator (based on the data of the second transmission path). This process is actually building an end-to-end communication link, starting from the Bluetooth module, passing through the relay node, and finally reaching the central coordinator.
[0099] Based on the above embodiment, as an optional implementation, it is determined whether the Bluetooth module has a data transmission task at the current moment; if the Bluetooth module does not have a data transmission task at the current moment, the Bluetooth module is set to a sleep state.
[0100] In specific implementation, the system first needs to monitor the working status of each Bluetooth module in real time. This includes checking whether there are data packets to be sent, whether there are ongoing data reception tasks, and whether there are scheduled periodic data collection tasks. This information can be obtained through the internal task queue or status register of the Bluetooth module. The system will perform this status check periodically (for example, at certain time intervals) or when a specific event is triggered (such as when a data transmission task is completed).
[0101] When the system determines that a Bluetooth module does not have any data transmission tasks at the current moment, it will start the process of setting the module to sleep. This process usually includes several steps: First, the system will ensure that all ongoing data transmission tasks have been completed and no new tasks are about to start. Then, the system will save the current working state, including important configuration parameters and context information, so that it can be quickly restored when awakened. Next, the system will gradually shut down non-essential functions of the Bluetooth module, such as the RF transceiver, data processing unit, etc., and only retain the minimum functions (such as the timed wake-up circuit). Finally, the system will switch the Bluetooth module to low-power mode, that is, sleep state.
[0102] In the dormant state, the energy consumption of the Bluetooth module is reduced to a minimum, and only the necessary monitoring functions are maintained so that it can be awakened when needed. The awakening may be triggered by several ways: a preset timer wakeup, an external interrupt signal (such as a data collection completion signal from a sensor), or a wakeup signal sent by other nodes in the network.
[0103] Based on the above examples, see Figure 2 , which is a scenario diagram of a low-power Bluetooth communication optimization system based on multi-sensor application provided in an embodiment of the present application.
[0104] The figure shows an air conditioner A located in the living room, which has a built-in sensor and a Bluetooth module (its internal structure is not shown in the figure). Routers B and C are set as relay nodes in the living room and the dining room. Routers B and C can establish communication connections with the smart Bluetooth speaker (central coordinator), and the smart Bluetooth speaker here can control multiple smart home devices through control instructions, so it can be used as a central coordinator in this application.
[0105] By obtaining the function information and location information of the sensor of air conditioner A, it can be concluded that its function information is a sensor for monitoring temperature and humidity, and its location information is located in the living room. In practice, there may be multiple different types of routes (relay nodes) in the living room to meet the control requirements of different smart home devices. For example, a curtain control device equipped with a light sensor may establish a communication connection with other routes besides route C. Therefore, the node combination corresponding to air conditioner A can be determined through the function information.
[0106] In addition, the judgment of the node combination needs to be determined by the location information of the sensor and the hardware configuration information corresponding to the sensor. As can be seen from the figure, the route B in the living room and the route C in the restaurant are both within the communication coverage of the air conditioner A. Therefore, the node combinations between the Bluetooth module of the air conditioner A and the smart Bluetooth speaker are air conditioner A-route B-smart Bluetooth speaker, air conditioner A-route C-smart Bluetooth speaker, air conditioner A-route B-smart Bluetooth speaker, air conditioner A-route B-route C-smart Bluetooth speaker, air conditioner A-route C-route B-smart Bluetooth speaker, and air conditioner A-route C-route B-smart Bluetooth speaker. The node combinations correspond to the corresponding communication links.
[0107] After determining the multiple node combinations as above, in order to determine the optimal communication path between air conditioner A and the smart Bluetooth speaker, it is necessary to first determine the first transmission path between the common node and the relay node, that is, the transmission path between the Bluetooth module of air conditioner A and router B and router C respectively. It should be understood that the transmission path includes not only the actual distance in space, but also the number of relay nodes between the two. Therefore, two node combinations of air conditioner A-router B-smart Bluetooth speaker and air conditioner A-router B-router C-smart Bluetooth speaker can be screened through the first transmission path.
[0108] Subsequently, based on the second transmission path between the relay node and the central coordinator, it can be determined that the final transmission path is air conditioner A-router B-smart Bluetooth speaker.
[0109] Therefore, when the user issues instructions to the smart Bluetooth speaker through voice messages, the smart Bluetooth speaker can establish a communication connection with the Bluetooth module of air conditioner A through router B, thereby quickly achieving the purpose of controlling air conditioner A.
[0110] It should be noted that Figure 2 The application scenarios of smart homes are only exemplary scenarios and are only used to explain the technical solutions provided in the embodiments of the present application. The number and positions of actual sensors and Bluetooth modules may vary and can be adjusted according to actual conditions, which will not be described in detail here.
[0111] The following is an embodiment of the system of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the system of the present application, please refer to the embodiment of the method of the application.
[0112] See also Figure 3 , which shows a schematic diagram of the structure of a low-power Bluetooth communication optimization system based on multi-sensor application provided by an exemplary embodiment of the present application. The system can be implemented as all or part of the system through software, hardware or a combination of both. The low-power Bluetooth communication optimization system based on multi-sensor application includes: A data acquisition module, used to acquire function information and location information of multiple sensors, and hardware configuration information of Bluetooth modules corresponding to the sensors one by one; A node combination building module, used to build a node combination consisting of Bluetooth modules according to the function information, location information and hardware configuration information, wherein the node combination includes at least one relay node; A transmission path determination module, used to determine the shortest first transmission path between a common node and a relay node in the node combination, where the common node is a node other than the relay node in the node combination; The communication link determination module is used to determine the communication link between the central coordinator and each Bluetooth module according to the second transmission path and the first transmission path between the relay node and the central coordinator.
[0113] Based on the above embodiments, as an optional embodiment, the node combination construction module is also used to determine the signal coverage range of the Bluetooth module and the number of coverage of other Bluetooth modules within the signal coverage range according to the signal strength information and location information of the Bluetooth module; determine the relay node in the node combination according to the signal coverage range, coverage number and power consumption information.
[0114] Based on the above embodiments, as an optional embodiment, the node combination construction module is also used to calculate the signal strength score corresponding to each Bluetooth module according to the signal coverage range and the coverage quantity; calculate the power consumption score corresponding to each Bluetooth module according to the power consumption information; obtain the signal strength requirement and the power consumption requirement input by the user, and determine the first weight corresponding to the signal strength requirement and the second weight corresponding to the power consumption requirement; use the first weight and the second weight to perform weighted summation on the signal strength score and the power consumption score, respectively, to obtain the node score of each Bluetooth module; determine the relay node in the node combination according to the node score.
[0115] Based on the above embodiments, as an optional embodiment, the node combination construction module is also used to construct a virtual map corresponding to the Bluetooth module according to the location information; mark the Bluetooth module on the virtual map according to the function information and the hardware configuration information to obtain the virtual node information corresponding to the Bluetooth module; use the clustering algorithm to cluster the virtual node information to determine the node combination corresponding to the Bluetooth module.
[0116] On the basis of the above embodiments, as an optional embodiment, the transmission path determination module is also used to control the Bluetooth module corresponding to the ordinary node to send a route detection packet to the relay node, so that the relay node replies with a route reply packet after receiving the route detection packet; obtain the transmission time between the Bluetooth module corresponding to the ordinary node sending the route detection packet and receiving the route reply packet; and determine the transmission path corresponding to the shortest transmission time as the first transmission path between the ordinary node and the relay node.
[0117] Based on the above embodiment, as an optional embodiment, the transmission path determination module is also used to determine whether the number of nodes in the path between the ordinary node and the relay node is less than a first threshold; if the number of nodes in the path between the ordinary node and the relay node is less than the first threshold, the relay node with the number of nodes in the path less than the first threshold is determined as the target relay node; the Bluetooth module corresponding to the ordinary node is controlled to send a routing detection packet to the relay node, including: controlling the Bluetooth module corresponding to the ordinary node to send a routing detection packet to the target relay node.
[0118] Based on the above embodiment, as an optional embodiment, the communication link determination module is also used to determine whether the Bluetooth module has a data transmission task at the current moment; if the Bluetooth module does not have a data transmission task at the current moment, the Bluetooth module is set to a sleep state.
[0119] An embodiment of the present application also provides a computer storage medium, which can store multiple instructions. The instructions are suitable for being loaded and executed by a processor such as the low-power Bluetooth communication optimization method based on multi-sensor application in the above-mentioned embodiment. The specific execution process can be found in the specific description of the above-mentioned embodiment, which will not be repeated here.
[0120] See also Figure 4 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .
[0121] The communication bus 402 is used to realize the connection and communication between these components.
[0122] The user interface 403 may include a standard wired interface or a wireless interface.
[0123] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0124] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.
[0125] Among them, the memory 405 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may also be optionally at least one storage device located away from the aforementioned processor 401. As Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of a low-power Bluetooth communication optimization method based on multi-sensor application.
[0126] exist Figure 4In the electronic device 400 shown, the user interface 403 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 401 can be used to call an application program stored in the memory 405 for a low-power Bluetooth communication optimization method based on multi-sensor application. When executed by one or more processors, the electronic device executes one or more methods in the above-mentioned embodiments.
[0127] An electronic device readable storage medium stores instructions, which, when executed by one or more processors, enable the electronic device to execute one or more methods in the above embodiments.
[0128] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0129] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0130] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0131] 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 on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0132] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0133] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0134] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and practice, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure.
Claims
1. A low-power Bluetooth communication optimization method based on multi-sensor application, characterized in that: Applied to a central coordinator, the method comprises: Acquire function information and location information of multiple sensors, and hardware configuration information of Bluetooth modules corresponding to the sensors one by one; According to the function information, the location information and the hardware configuration information, a node combination consisting of the Bluetooth modules is constructed, wherein the node combination includes at least one relay node; Determine the shortest first transmission path between a common node in the node combination and the relay node, the common node being a node in the node combination other than the relay node; The communication link between the central coordinator and each of the Bluetooth modules is determined according to the second transmission path between the relay node and the central coordinator and the first transmission path.
2. The method according to claim 1, characterized in that The hardware configuration information includes signal strength information and power consumption information. After constructing a node combination consisting of the Bluetooth module according to the function information, the location information and the hardware configuration information, the method further includes: Determine the signal coverage range of the Bluetooth module and the number of other Bluetooth modules within the signal coverage range according to the signal strength information and the position information of the Bluetooth module; A relay node in the node combination is determined according to the signal coverage range, the coverage quantity, and the power consumption information.
3. The method according to claim 2, characterized in that The determining, according to the signal coverage range, the coverage quantity, and the power consumption information, a relay node in the node combination includes: Calculate the signal strength score corresponding to each Bluetooth module according to the signal coverage range and the coverage quantity; Calculate the power consumption score corresponding to each Bluetooth module according to the power consumption information; Obtaining a signal strength requirement and a power consumption requirement input by a user, and determining a first weight corresponding to the signal strength requirement and a second weight corresponding to the power consumption requirement; Using the first weight and the second weight, respectively performing weighted summation on the signal strength score and the power consumption score to obtain a node score of each Bluetooth module; A relay node in the node combination is determined according to the node score.
4. The method according to claim 1, characterized in that: The determining the shortest first transmission path between the common node in the node combination and the relay node comprises: Controlling the Bluetooth module corresponding to the common node to send a route detection packet to the relay node, so that the relay node replies with a route reply packet after receiving the route detection packet; Obtaining the transmission time between the Bluetooth module corresponding to the common node sending the route detection packet and receiving the route reply packet; The transmission path corresponding to the shortest transmission duration is determined as the first transmission path between the ordinary node and the relay node.
5. The method according to claim 4, characterized in that The node combination includes a plurality of the relay nodes, and the control of the Bluetooth module corresponding to the common node to send a route detection packet to the relay node, so that the relay node replies with a route reply packet after receiving the route detection packet, further includes: Determine whether the number of nodes between the ordinary node and the relay node is less than a first threshold; If the number of nodes passing between the common node and the relay node is less than the first threshold, the relay node whose number of nodes passing is less than the first threshold is determined as the target relay node; The controlling the Bluetooth module corresponding to the common node to send a routing detection packet to the relay node includes: The Bluetooth module corresponding to the ordinary node is controlled to send a routing detection packet to the target relay node.
6. The method according to claim 1, characterized in that The step of constructing a node combination composed of the Bluetooth modules according to the function information, the location information and the hardware configuration information includes: Constructing a virtual map corresponding to the Bluetooth module according to the location information; Marking the Bluetooth module on the virtual map according to the function information and the hardware configuration information to obtain virtual node information corresponding to the Bluetooth module; The virtual node information is clustered using a clustering algorithm to determine a node combination corresponding to the Bluetooth module.
7. The method according to claim 1, characterized in that After determining the communication link between the central coordinator and each of the Bluetooth modules according to the second transmission path between the relay node and the central coordinator and the first transmission path, the method further includes: Determine whether the Bluetooth module has a data transmission task at the current moment; If the Bluetooth module does not have the data transmission task at the current moment, the Bluetooth module is set to a dormant state.
8. A low-power Bluetooth communication optimization system based on multi-sensor application, characterized in that: Applied to a central coordinator, the system comprises: A data acquisition module, used to acquire function information and location information of multiple sensors, and hardware configuration information of Bluetooth modules corresponding to the sensors one by one; A node combination building module, used to build a node combination consisting of the Bluetooth modules according to the function information, the location information and the hardware configuration information, wherein the node combination includes at least one relay node; A transmission path determination module, used to determine the shortest first transmission path between a common node in the node combination and the relay node, wherein the common node is a node in the node combination other than the relay node; The communication link determination module is used to determine the communication link between the central coordinator and each of the Bluetooth modules according to the second transmission path between the relay node and the central coordinator and the first transmission path.
9. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It includes a processor, a memory and a transceiver, the memory is used to store instructions, the transceiver is used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method according to any one of claims 1 to 7.
Citation Information
Cited By
Low-power-consumption ad hoc network positioning method based on Bluetooth rapid pairing
CN120568461A