Transmitting power control method and device of ad hoc network equipment

By adjusting the transmission power in the self-organizing network device according to the distribution network status and historical communication data, the problems of energy consumption and communication quality of the self-organizing network device in different scenarios are solved, and power consumption is reduced and communication quality is improved.

CN121985403APending Publication Date: 2026-05-05ZHEJIANG FUTURE ELF ARTIFICIAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG FUTURE ELF ARTIFICIAL INTELLIGENCE TECH CO LTD
Filing Date
2026-01-09
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Ad hoc network devices using fixed transmit power in different scenarios can lead to unnecessary increases in energy consumption or communication interference, affecting communication quality.

Method used

Different transmission power control methods are adopted according to the network configuration status of the self-organizing network equipment. In the unconfigured state, communication messages are sent with a lower transmission power, and in the configured state, the transmission power is adaptively adjusted according to historical communication data to reduce power loss and interference.

Benefits of technology

It effectively reduces the power consumption of self-organizing network systems, improves communication quality, and reduces interference between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121985403A_ABST
    Figure CN121985403A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a transmitting power control method and a transmitting power control device for ad hoc network equipment, which are characterized in that the ad hoc network equipment has different communication requirements under the condition of different network distribution states, a communication message is sent at lower transmitting power under the condition of no network distribution, and the transmitting power of the ad hoc network equipment is controlled at lower transmitting power under the condition of network distribution. The transmitting power of the target communication message is adaptively adjusted according to the historical communication data, so that unnecessary power loss can be effectively reduced, and system power consumption is reduced. In a further improvement scheme, for different communication objects, the power attribute information of the communication objects is determined according to the transmitting power information in the historical communication messages sent by the communication objects and the received signal strength of the historical communication messages; therefore, the channel state between the communication object and the historical communication message can be judged according to the loss condition of the historical communication message in the transmission process, the appropriate transmitting power is determined to send the communication message, and the communication quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ad hoc network communication, and more specifically to a method and apparatus for controlling the transmit power of ad hoc network devices. Background Technology

[0002] With the development of short-range communication technologies, ad hoc networks are increasingly being used. An ad hoc network is a decentralized, self-organizing, multi-hop distributed network architecture where nodes function as both terminals and routers, automatically establishing and maintaining network connections through dynamic discovery and cooperation mechanisms. The network topology adapts adaptively to node movement or state changes, requiring no pre-set infrastructure or centralized control nodes. Each node can actively discover neighboring nodes and negotiate connections; data is transmitted to the target via multi-hop relays, offering features such as rapid deployment and flexible expansion.

[0003] Ad hoc network technology enables flexible networking and control of different electrical devices, which is widely used in the smart home field. However, in existing technologies, ad hoc network devices typically transmit communication messages with a preset fixed power, which increases unnecessary energy consumption in some scenarios and causes communication interference between devices in others, resulting in poor communication quality in ad hoc networks. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a method and apparatus for controlling the transmit power of an ad hoc network device, which aims to reduce the energy consumption of the ad hoc network system while ensuring communication quality.

[0005] Firstly, a method for controlling the transmit power of an ad hoc network device is provided, the method comprising: The communication messages are sent using different transmission powers depending on the network configuration status of the self-organizing network device. The transmission power in the unconfigured state is less than or equal to the transmission power in the configured state.

[0006] In some embodiments, transmitting communication messages with different transmit powers based on the network configuration status of the self-organizing network device includes: Determine the status of the power distribution network; In response to a network status of no network distribution, the transmission power of the control communication message is set to the no network distribution power; In response to the network distribution status being "networked", the transmission power of the target communication message is adaptively controlled based on the power information of the historical communication messages of the communication object. Wherein, the undistributed power is less than or equal to the adaptive control transmit power.

[0007] In some embodiments, the communication message includes a device identifier of the sending device and transmission power information, wherein the transmission power information is used to characterize the transmission power used by the sending device to send the communication message; Adaptive control of the transmission power of communication messages based on the power information of historical communication messages of the communication object includes: Identify the target communication object for the target communication message; The power attribute information of the communication object is determined based on the transmit power information and received signal strength information of the historical communication messages sent by the communication object. The transmission power of the target communication message is determined based on the power attribute information.

[0008] In some embodiments, determining the power attribute information of the communication object includes: Determine the average transmit power and average receive signal strength of at least one historical communication message sent by the communication object, wherein the plurality of historical communication messages are historical communication messages within a predetermined time period or a predetermined number of historical communication messages; The power attribute information of the communication object is determined based on the relative relationship between the average transmit power and the average receive signal strength.

[0009] In some embodiments, the power attribute information is a function of the difference or ratio of the average received power corresponding to the average transmitted power and the average received signal strength; or, The power attribute information is the level corresponding to the difference or ratio between the average transmit power and the average receive power.

[0010] In some embodiments, the power attribute information is the average transmit power and average received signal strength of at least one historical communication message sent by the communication object; Determining the transmission power of the target communication message based on the power attribute information includes: The transmission power of the target communication message is determined based on the relative relationship between the average transmission power and the average received signal strength.

[0011] In some embodiments, adaptively controlling the transmission power of the target communication message based on the power information of the historical communication messages of the communication object further includes: In response to the absence or failure to meet predetermined conditions of the power attribute information of the communication object, a test message is sent to the communication object to instruct the communication object to send at least one test response message.

[0012] In some embodiments, the self-organizing network device is a Bluetooth mesh device, and the communication message is a Bluetooth mesh communication message.

[0013] Secondly, a transmit power control device for an ad hoc network device is provided, the device comprising: The status determination unit is used to determine the distribution network status of the self-organizing network devices; and The power control unit is used to send communication messages with different transmission powers according to the distribution network status. The transmission power in the undistributed network status is less than or equal to the transmission power in the distributed network status.

[0014] Thirdly, an electronic device is provided, including a communication component, a memory, and a processor, the memory being used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in any one of the first aspects.

[0015] Fourthly, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when executed by a processor, the computer program implements the method as described in any one of the first aspects.

[0016] This invention leverages the characteristic that ad hoc network devices have different communication needs under different network configurations. In the absence of a network configuration, communication messages are transmitted with lower transmission power. In the presence of a network configuration, the transmission power of the target communication message is adaptively adjusted based on historical communication data, thereby effectively reducing unnecessary power loss and lowering the power consumption of the ad hoc network system. In a further improvement, for different communication objects, the power attribute of the communication object is determined based on the transmission power information and the received signal strength of these historical communication messages. This allows for the assessment of the channel state between the communication object and the target object based on the transmission loss of historical communication messages, adaptively determining an appropriate transmission power to send communication messages and improving communication quality. Attached Figure Description

[0017] The above and other objects, features and advantages of the present invention will become clearer from the following description of embodiments of the invention with reference to the accompanying drawings, in which: Figure 1 This is a schematic diagram of a self-organizing network system according to an embodiment of the present invention; Figure 2 This is a flowchart of a power control method for an ad hoc network device according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the state of the self-organizing network device according to an embodiment of the present invention; Figure 4This is a flowchart illustrating adaptive power control performed by the self-organizing network device in a network-already state, according to an embodiment of the present invention. Figure 5 This is a schematic diagram of the communication message format according to an embodiment of the present invention; Figure 6 This is an exemplary schematic diagram of the power attribute information table maintained by the self-organizing network device in an embodiment of the present invention; Figure 7 This is a flowchart of a power control method for an ad hoc network system according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the transmit power control device of the self-organizing network equipment according to an embodiment of the present invention; Figure 9 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0018] The present application is described below based on embodiments, but it is not limited to these embodiments. In the detailed description of the present application below, certain specific details are described in detail. Those skilled in the art can fully understand the present application without these details. To avoid obscuring the substance of the present application, well-known methods, processes, flows, elements, and circuits are not described in detail.

[0019] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.

[0020] Unless the context explicitly requires it, words such as "including" or "contains" throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, meaning "including but not limited to".

[0021] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0022] Figure 1This is a schematic diagram of a self-organizing network system according to an embodiment of the present invention. The self-organizing network system of this embodiment may include multiple self-organizing network devices 1. These node devices can form point-to-point direct communication connections with each other within a certain distance range. The communication connections are typically formed wirelessly. These self-organizing network devices extend the communication coverage range through multi-hop relay. When the source device and the destination device exceed the direct communication distance or when the communication quality is temporarily poor, intermediate nodes can automatically assume the data forwarding function, forming dynamic routing paths. The routing paths are calculated in real time based on distributed algorithms, such as AODV, OLSR protocols, or managed flooding. Each node can periodically exchange link status information with its neighbors, maintaining a routing table containing hop count, link quality, and device power consumption, completing path discovery and selection without a central controller or gateway. Wireless communication connections connecting different nodes can be formed using Bluetooth, Zigbee, Wi-Fi, or custom protocols.

[0023] In one optional implementation, the ad hoc network of this embodiment can be applied to a smart home scenario. In this scenario, electrical appliances or personal electronic devices in a residence or office, such as televisions, smart speakers, lights, switches, mobile phones, and smart wearable devices, can all connect as node devices to form an ad hoc network system and exchange information. Application developers can develop various smart home applications based on the data communication functions of this ad hoc network system, facilitating intelligent control and detection of smart home devices by users.

[0024] In another alternative implementation, the self-organizing network of this embodiment can also be applied to other types of IoT scenarios, such as controlling equipment within buildings and intelligent monitoring of fixed assets.

[0025] In this embodiment, the ad hoc network device 1 can connect to the ad hoc network gateway 1a via a multi-hop method. The ad hoc network gateway 1a can have stronger data processing capabilities and can connect to the wide area network 2 via a wireless or wired network interface. This allows the ad hoc network system to receive control commands from the wide area network 2 and feed back its status information to terminal devices (not shown in the figure) on the wide area network. The ad hoc network gateway 1a is a peer node to other ad hoc network devices 1 on the wireless communication interface side of the ad hoc network. Communication between ad hoc network devices 1 and between ad hoc network devices 1 and ad hoc network gateway 1a is achieved by sending and receiving different types of communication messages.

[0026] When a new self-organizing network device is to be added to a self-organizing network system, a configuration operation needs to be performed on the self-organizing network device. The network identifier of the self-organizing network system and the corresponding key or token configuration for authentication are written into the new self-organizing network device so that the new self-organizing network device can become a network member of a specific self-organizing network system after the configuration is completed, and communicate with other self-organizing network devices 1 in the self-organizing network system as a network node.

[0027] In the following description, the method of this embodiment of the invention is further described using a self-organizing network built with Bluetooth Mesh technology as an example. Bluetooth Mesh is a many-to-many mesh network protocol launched by the Bluetooth Special Interest Group (Bluetooth SIG) based on Bluetooth Low Energy (BLE). Built on the Bluetooth Low Energy (BLE) physical layer, it is specifically designed for large-scale Internet of Things (IoT) scenarios (such as smart lighting, building automation, sensor networks, etc.). It should be understood that the device control method of this embodiment of the invention is not limited to devices using Bluetooth Mesh technology; it can be applied to any self-organizing network system with broadcast capabilities, such as Wi-Fi EasyMesh, Zigbee, etc.

[0028] In this embodiment, the term "provisioning" refers to the process of securely adding an ad hoc device that is not currently part of an ad hoc network to an existing ad hoc network (e.g., a Bluetooth Mesh network).

[0029] For Bluetooth mesh-based ad hoc device 1, it has two different states: unprovisioned and provisioned. To perform provisioning, a provisioning device 3 (such as a smartphone with an ad hoc configuration application installed) needs to configure the unprovisioned ad hoc device. The unprovisioned ad hoc device 1b sends a broadcast communication message containing information such as the device identifier. After scanning for nearby unprovisioned ad hoc devices 1b, the provisioning device 3 establishes a GATT (Generic Attribute Profile) connection with it and communicates using the Mesh Provisioning Service. The provisioning device 3 exchanges device capability information with the unprovisioned ad hoc device 1b through communication, including supported encryption algorithms, whether out-of-band authentication is supported, and input / output capabilities. The provisioning device 3 selects an authentication method accordingly. After authentication is completed through interactive authentication (such as numeric comparison, confirmation button, etc.), a temporary session key is generated. The temporary session key is used to encrypt messages during subsequent network configuration. Network configuration device 3 sends encrypted key network parameters, including the network key, network address, and initialization vector index (IV index), to ad hoc network device 1b via a GATT connection. After receiving and storing the key network parameters, ad hoc network device 1b disconnects the GATT connection and attempts to communicate with other ad hoc network devices in the system based on the configured network address and network key. If communication is successful, ad hoc network device 1b successfully joins the ad hoc network system. Furthermore, the network configuration process can also include various application-level configurations, such as binding application keys and joining groups. After network configuration is completed, ad hoc network device 1b joins the ad hoc network system and switches to a configured state.

[0030] In existing technologies, Bluetooth mesh-based self-organizing network devices can only send communication messages at a fixed transmission power. This results in high power consumption in some scenarios and insufficient transmission power in others, leading to a decline in the communication quality of the self-organizing network system.

[0031] Research has revealed that when ad hoc network devices are in an unconfigured state, configuration devices typically only connect to the ad hoc network devices to perform configuration operations at very short distances. Given this situation, using a fixed transmission power to broadcast communication messages leads to unnecessary power loss. Furthermore, in the configured state, if only a fixed transmission power can be used to send communication messages, it is impossible to differentiate between the location and channel conditions of different communication targets, resulting in poor communication quality for distant or obstructed communication targets. On the other hand, if nearby ad hoc network devices are densely packed, mutual interference will be significant, further complicating communication quality.

[0032] In view of this, embodiments of the present invention employ different transmission powers to send communication messages based on the network configuration status of the device. Specifically, the transmission power in the unconfigured network state is less than or equal to the transmission power in the configured network state. That is, by utilizing the different communication characteristics of ad hoc network devices under different network configuration statuses, communication messages are sent with a lower transmission power in the unconfigured network state, and the transmission power of the target communication message is adaptively adjusted based on historical communication data in the configured network state. This effectively reduces unnecessary power loss, lowers system power consumption, reduces interference from unconfigured ad hoc network devices to other devices, and improves communication quality.

[0033] Figure 2 This is a flowchart of a power control method for an ad hoc network device according to an embodiment of the present invention. Figure 2 As shown, the method of this embodiment of the invention includes the following steps: In step S210, the network distribution status of the self-organizing network device is determined.

[0034] Specifically, step S210 can be performed periodically or triggered in response to a predetermined event. For example, it can be triggered after the device powers on. The ad hoc network device can maintain its own network distribution status through a register. In another alternative implementation, the ad hoc network device can also determine its own network distribution status by detecting whether key network parameters have been written.

[0035] In step S220, in response to the network distribution status being undistributed, the transmission power of the control communication message is set to the undistributed power.

[0036] The unconnected power is a predetermined power value, which is less than or equal to the lowest value of the adaptive control transmit power in the connected state. In an optional implementation, the transmit power of the self-organizing network device can be set to multiple levels according to a predetermined adjustment step size, and the unconnected power can be set to the lowest level of transmit power.

[0037] Therefore, when the self-organizing network device is in an unconfigured state, the configuration network device will typically only connect to the self-organizing network device to be configured within a very short distance to perform configuration operations. In this scenario, using a lower transmission power to broadcast communication messages for configuration and subsequent communication messages with the configuration network device can effectively reduce power consumption without affecting the communication quality during the configuration process.

[0038] In step S230, in response to the network distribution status being "networked", the transmission power of the target communication message is adaptively controlled based on the power information of the historical communication messages of the communication object.

[0039] If an ad hoc network device detects that it has joined a specific ad hoc network system through a configuration operation, the communication message to be sent may need to be sent to a nearby ad hoc network device or to a distant ad hoc network device / device with obstructions in between. In the configured state, the transmission power of the communication message (i.e., the target communication message) can be adaptively controlled based on the communication channel conditions of the communication target. Therefore, the transmission power can be controlled according to the communication target's situation, ensuring communication quality while saving power consumption and reducing interference to surrounding ad hoc network devices to some extent.

[0040] To adjust the transmit power, an adjustable RF front-end circuit can be configured for ad hoc network devices. A typical adjustable RF front-end circuit may include a variable gain amplifier, a power amplifier, a power detector, an antenna switch, and a matching network. By controlling the gain of the variable gain amplifier and / or the power amplifier, the transmit power of communication messages can be controlled as needed.

[0041] Figure 3 This is a schematic diagram of the state of a self-organizing network device according to an embodiment of the present invention. For example... Figure 3As shown, an ad hoc network device can include a device restart state 31, an unconfigured state 32, a configured state 33, and a deconfigured state 34. After initialization upon power-on, a new ad hoc network device will first jump to the device restart state 31. After power-on in the device restart state 31, it enters the unconfigured state 32. In an optional implementation, the unconfigured state 32 is maintained for a predetermined duration (e.g., 60 seconds as shown in the figure). After the predetermined duration, it can automatically jump to a sleep or power-off state 35 to prevent the ad hoc network device from continuously sending broadcast communication messages, which could rapidly deplete the battery. The user can return the ad hoc network device to the device restart state 31 by performing a de-sleep or power-on operation. If, within the predetermined duration, a configuration device connects to the unconfigured ad hoc network device and performs a configuration operation, successfully adding the ad hoc network device to a specific ad hoc network system, it switches to the configured state 33. If a self-organizing network device that has been configured for network access is powered off and then powered on again, it will directly enter the configured network state 33 from the device restart state 31. If a user connects to a self-organizing network device that has been configured for network access through a configuration device and performs a deconfiguration operation, that is, by interacting with the self-organizing network device to delete the written network key parameters, thus unbinding the self-organizing network device from the self-organizing network system it has joined, then the self-organizing network device will jump from the configured network state 33 to the deconfigured network state 34 and automatically enter the device restart state 31. After restarting, it will enter the unconfigured network state 32. Through the above state settings, the self-organizing network device can automatically switch between different states to maintain normal operation. At the same time, it can allow the self-organizing network device to determine how to control the transmission power based on its own state. For example, in the unconfigured network state 32, if communication messages need to be sent (including broadcast communication messages used to broadcast its own beacon and unicast communication messages sent after establishing a GATT connection with the configuration device), they will be sent at the minimum transmission power. If the network is already configured (state 33), then the target communication message's communication object is determined, the required transmission power for that communication object is determined based on historical data, and the transmission power is adaptively controlled.

[0042] Figure 4 This is a flowchart illustrating adaptive power control performed by a self-organizing network device in a network-already configured state, according to an embodiment of the present invention. Figure 4 As shown, step S230, which adaptively controls the transmission power of the target communication message based on the power information of the historical communication messages of the communication object, includes the following steps: In step S410, the communication target of the target communication message is determined.

[0043] The target communication message can be a communication message initiated by the self-organizing network device or a communication message that needs to be relayed by the self-organizing network device.

[0044] The communication object can be the unicast destination device identifier of the target communication message, or the device identifier of the next-hop node for multi-hop forwarding determined by the unicast or broadcast destination device identifier of the target communication message and the routing table, or the device identifier of one or more ad hoc network devices closest to it after the routing table is established. The communication object of the target communication message is not necessarily the destination address of the target communication message, but may be the next-hop relay node in the entire transmission routing process.

[0045] Specifically, the device identifier corresponding to the communication object can be determined to facilitate the search for relevant information about the communication object for subsequent adaptive power control.

[0046] The device identifier can be the device's physical address (MAC address) or UUID. For Bluetooth Mesh self-organizing network devices, the device identifier can be the Bluetooth Device Address (BD_ADDR). It is a 48-bit (6-byte) unique identifier used to uniquely identify a Bluetooth device in a Bluetooth network.

[0047] In step S420, the power attribute information of the communication object is determined. The power attribute information is determined based on the transmit power information and received signal strength information of historical communication messages sent by the communication object.

[0048] In this embodiment, the communication message includes the device identifier of the sending device and transmission power information. The transmission power information is used to characterize the transmission power used by the sending device to send the communication message.

[0049] Figure 5 This is a schematic diagram of the communication message format according to an embodiment of the present invention. Figure 5 As shown, in an exemplary communication message, a message header 51 and a payload 52 are configured. A transmit power field 52a can be added to the application data in the payload 52, allowing the ad hoc network device receiving the communication message to read the message's transmit power. It should be understood that in other alternative implementations, the communication protocol can be modified to set the transmit power field outside the payload, enabling the ad hoc network device to obtain the transmit power information at the physical layer.

[0050] Meanwhile, when receiving communication messages, the self-organizing network device can detect and obtain the received signal strength information through the power detection circuit in the RF front-end circuit. In this embodiment, the received signal strength information adopts RSSI (Received Signal Strength Indicator). RSSI is a relative indicator used in wireless communication systems (including Bluetooth, Wi-Fi, Zigbee, etc.) to characterize the strength of the received wireless signal, usually expressed as a negative dBm (decibels per milliwatt), such as -60 dBm or -90 dBm. In Bluetooth communication, RSSI is measured by the RF front-end circuit of the receiving end and provided to the protocol stack or application layer for evaluating link quality, estimating distance, implementing power control, or device positioning, etc. The larger the value (i.e., the closer to 0), the stronger the signal; the typical effective range is approximately -100 dBm (extremely weak, close to the noise floor) to -30 dBm (very strong, possibly overloaded). RSSI is not directly equal to received power (Pr). Instead, it is an approximation output by the RF front-end circuit designer based on the response characteristics of the internal RF circuits (such as LNA, mixer, filters, etc.). Therefore, RSSI readings from different manufacturers may differ. Nevertheless, there is usually a monotonic relationship between RSSI and received power, which can be approximated using empirical formulas or lookup tables.

[0051] Therefore, by comparing the relative relationship between received signal strength information and transmitted power information, the communication channel condition between the self-organizing network device and the communication object can be determined. For example, if the transmitted power information in the communication message is high, while the received signal strength information indicates a low received signal power, it indicates a poor communication channel condition. This may be due to a large distance between the self-organizing network device and the communication object, the presence of obstructions, or interference sources. In this case, a higher transmitted power is needed to ensure communication quality. Conversely, if the transmitted power information in historical communication messages is low, while the received signal strength information indicates a high or medium received signal power, it indicates a good communication channel condition. This may be due to a close distance between the self-organizing network device and the communication object and the absence of obstructions. In this case, only a lower, or even minimum, transmitted power is needed to reduce power consumption while ensuring communication quality. It should be understood that other different situations obviously exist. Therefore, by determining the power attribute information corresponding to the communication object based on the transmitted power information and received signal strength information of historical communication messages, this information can characterize the communication channel state between the self-organizing network device and the communication object.

[0052] In one alternative implementation, the power attribute information can be information obtained in advance based on statistics of historical communication message reception. For example, a periodic statistical analysis of all received historical communication messages can be triggered to determine the power attribute information of other ad hoc network devices known to this ad hoc network device. This information can be stored in the ad hoc network device's memory, and during adaptive power control, the processor determines the transmit power by reading the pre-determined power attribute information from the memory.

[0053] In one optional implementation, the power attribute information is information determined in real time at the time of transmission. Specifically, step S420 may include the following steps: Step S421: Determine the average transmit power and average receive signal strength of at least one historical communication message sent by the communication object.

[0054] The plurality of historical communication messages are historical communication messages within a predetermined time period or a predetermined number of historical communication messages.

[0055] In step S422, the power attribute information of the communication object is determined based on the relative relationship between the average transmit power and the average receive signal strength.

[0056] Specifically, the power attribute information reflects the relationship between the average transmit power of one or more historical communication packets sent by the same communication object and the average received signal strength of the communication packets received by the local ad hoc network device. In an optional implementation, the power attribute information is a function or a function of the difference or ratio between the average transmit power and the average received signal strength. By using the comparison or difference as a function, the relationship between the average transmit power and the average received power of historical communication packets can be effectively reflected, thereby reflecting the channel state through the power attribute information. It should be understood that the function of the difference includes the difference itself, and the function of the ratio also includes the ratio itself. Optionally, the function can also be a logarithmic function.

[0057] In another optional implementation, the power attribute information refers to the level of the difference or ratio between the average transmit power and the average receive power corresponding to the received signal strength information. This is suitable for cases where the transmit power is divided into multiple different levels. The relative relationship between transmit power and receive power can be characterized by segmentation. The corresponding level is determined based on the numerical range of the difference or ratio between the average transmit power and the average receive power corresponding to the received signal strength information, and this level is used as the corresponding power attribute information. Furthermore, the corresponding transmit power can be selected directly based on the level represented by the power attribute information.

[0058] In another embodiment, the power attribute information is not a single numerical value or variable, but rather the average transmit power and average received signal strength of at least one historical communication message sent by the communication object. Figure 6 As shown, ad hoc network devices can maintain the aforementioned values ​​for each known communication object in a table, using them as power attribute information. Figure 6 In the table, the first column lists the addresses of the sending devices that received historical communication messages, i.e., the communication targets. The second column shows the average received signal strength, the third column shows the average transmitted power, and the fourth column shows the timestamp of the information update. Ad hoc network devices can periodically update the data in the corresponding rows of the table and update the timestamps after receiving new communication messages.

[0059] In step S430, the transmission power of the target communication message is determined based on the power attribute information.

[0060] In the implementation method where power attribute information directly characterizes the relative relationship between the average transmit power and the average received signal strength of the communication object in the target communication message, the corresponding transmit power can be calculated directly based on the power data information, or one of the corresponding transmit power values ​​can be selected from multiple preset transmit power value levels based on the power attribute information level.

[0061] In an implementation where the power attribute information is not a single numerical value or variable, but rather the average transmit power and average received signal strength of at least one historical communication message sent by the communication object, step S430 may include: determining the transmit power of the target communication message based on the relative relationship between the average transmit power and the average received signal strength. That is, in this implementation, the ad hoc network device calculates the corresponding transmit power in real time based on the maintained average transmit power and average received signal strength before sending the target communication message.

[0062] When a target communication message has multiple communication objects, that is, when the target communication message is a broadcast or multicast message, different strategies can be used to determine the communication objects. The transmission power can be determined for each of the multiple communication objects, and the largest of the determined transmission powers can be selected.

[0063] If an ad hoc network device needs to send a communication message to a communication object that has not communicated with before or has not communicated with for a long time—that is, if there are no historical communication messages corresponding to the communication object, or the number of historical communication messages is less than a predetermined value, or the update time interval of the power attribute information is too long—the ad hoc network device can default to sending the communication message with the maximum transmit power. In another optional implementation, the ad hoc network device can send a test message to the communication object in response to the absence of historical communication messages corresponding to the communication object, the number of historical communication messages being less than a predetermined value, or the update time interval of the power attribute information being too long, to instruct the communication object to send at least one test response message. For example, after determining the device identifier of the communication object based on the target communication message, if the ad hoc network device fails to retrieve the data item corresponding to the device identifier from the power attribute information table maintained in memory, or if the timestamp of the corresponding data item shows that the update time of the data item exceeds a predetermined interval value, then it sends a test message to the communication object with a preset transmit power. After receiving a test message, the communication target sends one or more test response messages to the ad hoc network device that sent the test message, according to predetermined rules or parameters in the test message. The number and interval of the test response messages are limited by predetermined rules or parameters in the test message. Upon receiving a test response message, the ad hoc network device can update the communication target's power attribute information based on the transmit power and received signal strength information of the test response message, and then determine the transmit power of subsequent target communication messages based on the power attribute information.

[0064] Figure 7 This is a flowchart of a power control method for a self-organizing network system according to an embodiment of the present invention. Figure 7 As shown, in step S710, the ad hoc network device A determines the device identifier of the communication object B of the target communication message.

[0065] In step S720, the self-organizing network device A retrieves the power attribute information of the communication object B, which is either non-existent or does not meet the predetermined conditions (e.g., the time without update exceeds the predetermined interval value).

[0066] In step S730, the self-organizing network device A sends a test message to the communication object B using a predetermined transmission power. The test message contains parameters requiring the communication object B to reply with two test response messages.

[0067] In steps S740 and S750, communication object B returns two test response messages to ad hoc network device A based on the test messages.

[0068] The test response messages all contain the transmission power used by communication object B to transmit the message. It should be understood that this transmission power can also be the transmission power determined by the method according to the embodiments of the present invention. If a record of ad hoc network device A exists in the power attribute information table of communication object B and meets the requirements, communication object B can determine the transmission power of the test response message based on valid power attribute information. Optionally, the test response messages can also be configured to be sent using the maximum transmission power by default.

[0069] In step S760, the self-organizing network device A updates its power attribute information based on the test response message.

[0070] In step S770, the self-organizing network device A determines the transmission power of the target communication message based on the power attribute information.

[0071] Therefore, appropriate transmission power control can be performed on devices that have never communicated or have a low communication frequency in the self-organizing network system to ensure communication quality.

[0072] In another alternative implementation, the ad hoc network device can also periodically send test messages to each communication object in the routing table via broadcast to achieve periodic updates of power attribute information.

[0073] In another optional implementation, ad hoc network devices can periodically check the data items in the power attribute information table, select communication objects that have not been updated for more than a preset interval, and trigger the unicasting of test messages to these communication objects whose power attribute information has not been updated for a long time, thereby ensuring the validity of the power attribute information table. This can effectively guarantee communication quality in scenarios where the location of some ad hoc network devices in certain ad hoc network systems frequently moves.

[0074] This invention leverages the characteristic that ad hoc network devices have different communication needs under different network configurations. In the absence of a network configuration, communication messages are transmitted with lower transmission power. In the presence of a network configuration, the transmission power of target communication messages is adaptively adjusted based on historical communication data, thereby effectively reducing unnecessary power loss and lowering system power consumption. In a further improvement, for different communication objects, the power attributes of the communication object are determined based on the transmission power information and received signal strength of these historical communication messages. This allows for the assessment of the channel state between the communication object and the target object based on the transmission loss of historical communication messages, thus determining an appropriate transmission power to send communication messages and improving communication quality.

[0075] Figure 8 This is a schematic diagram of the transmit power control device of the self-organizing network equipment according to an embodiment of the present invention. Figure 8As shown, the transmit power control device in this embodiment includes: Status determination unit 81 is used to determine the network distribution status of the equipment; and The power control unit 82 is used to send communication messages with different transmission power according to the network distribution status of the equipment, wherein the transmission power in the undistributed state is less than or equal to the transmission power in the distributed state.

[0076] In one alternative implementation, the power control unit 82 includes: The first control module 82a is configured to control the transmission power of the communication message to the un-distributed power in response to the distribution network status being un-distributed; and the second control module 82b is configured to adaptively control the transmission power of the target communication message based on the power information of the historical communication messages of the communication object in response to the distribution network status being distributed; wherein the un-distributed power is less than or equal to the adaptively controlled transmission power.

[0077] This invention leverages the characteristic that ad hoc network devices have different communication needs under different network conditions. It transmits communication messages with lower transmission power. In the case of a network already in place, the transmission power of the target communication message is adaptively adjusted based on historical communication data, effectively reducing unnecessary power loss and system power consumption. In a further improvement, for different communication objects, the power attribute of the communication object is determined based on the transmission power information and received signal strength of these historical communication messages. This allows for the assessment of the channel state between the communication object and the target object based on the transmission loss of historical communication messages, thereby determining an appropriate transmission power to send communication messages and improving communication quality.

[0078] Figure 9 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Figure 9 The electronic devices shown can be used to build self-organizing network devices as described above. For example... Figure 9 As shown, the electronic device 9 may include at least one processor 91; and a memory 92 communicatively connected to at least one processor 91; and a communication component 93 communicatively connected to the processor 91 and the memory 92. The communication component 93 receives and transmits data under the control of the processor 91, and the communication component 93 may be configured with a power-adjustable radio frequency front-end circuit. The memory 92 stores instructions that can be executed by at least one processor 91, and the instructions are executed by at least one processor 91 to implement the communication method of this embodiment. Figure 9 Taking a processor 91 as an example, the processor 91 and the memory 92 can be connected via a bus or other means. Figure 9Taking a bus connection as an example, memory 92, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Processor 91 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions, and modules stored in memory 92, thus implementing the above method.

[0079] The memory 92 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; the data storage area may store an option list, etc. Furthermore, the memory 92 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 92 may optionally include memory remotely located relative to the processor 91, and this remote memory may be connected to external devices via a network.

[0080] One or more modules are stored in memory 92 and, when executed by one or more processors 91, perform the methods described in this embodiment.

[0081] The communication component 93 may include necessary filters, radio frequency signal processing circuitry, and an antenna to enable wireless communication connection with another communication component 93.

[0082] The above-mentioned products can perform the methods provided in the embodiments of this application, and have the corresponding functional modules and beneficial effects of performing the methods. For technical details not described in detail in this embodiment, please refer to the methods provided in the embodiments of this application.

[0083] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program for use by a computer to execute some or all of the above-described method embodiments.

[0084] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0085] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for controlling the transmit power of an ad hoc network device, characterized in that, The method includes: The communication messages are sent using different transmission powers depending on the network configuration status of the self-organizing network device. The transmission power in the unconfigured state is less than or equal to the transmission power in the configured state.

2. The method according to claim 1, characterized in that, Depending on the network configuration status of the self-organizing network devices, different transmission powers are used to transmit communication messages, including: Determine the status of the power distribution network; In response to a network status of no network distribution, the transmission power of the control communication message is set to the no network distribution power; In response to the distribution network status being "distributed," the transmission power of the target communication message is adaptively controlled based on the power information of the historical communication messages of the communication object. Wherein, the undistributed power is less than or equal to the adaptive control transmit power.

3. The method according to claim 1, characterized in that, The communication message includes the device identifier of the sending device and the transmission power information, wherein the transmission power information is used to characterize the transmission power used by the sending device to send the communication message; Adaptive control of the transmission power of communication messages based on the power information of historical communication messages of the communication object includes: Identify the target communication object for the target communication message; The power attribute information of the communication object is determined based on the transmit power information and received signal strength information of the historical communication messages sent by the communication object. The transmission power of the target communication message is determined based on the power attribute information.

4. The method according to claim 3, characterized in that, Determining the power attribute information of the communication object includes: Determine the average transmit power and average receive signal strength of at least one historical communication message sent by the communication object, wherein the historical communication message is a historical communication message within a predetermined time period or a predetermined number of historical communication messages; The power attribute information of the communication object is determined based on the relative relationship between the average transmit power and the average receive signal strength.

5. The method according to claim 4, characterized in that, The power attribute information is a function or ratio of the difference between the average transmit power and the average receive power corresponding to the average receive signal strength; or, The power attribute information is the level corresponding to the difference or ratio between the average transmit power and the average receive power.

6. The method according to claim 3, characterized in that, The power attribute information is the average transmit power and average received signal strength of at least one historical communication message sent by the communication object; Determining the transmission power of the target communication message based on the power attribute information includes: The transmission power of the target communication message is determined based on the relative relationship between the average transmission power and the average received signal strength.

7. The method according to claim 3, characterized in that, Adaptive control of the transmission power of the target communication message based on the power information of the historical communication messages of the communication object also includes: In response to the absence or non-compliance of the power attribute information of the communication object, a test message is sent to the communication object to instruct the communication object to send at least one test response message.

8. The method according to any one of claims 1-7, characterized in that, The self-organizing network device is a Bluetooth mesh device, and the communication message is a Bluetooth mesh communication message.

9. A transmit power control device for an ad hoc network device, characterized in that, The device includes: The status determination unit is used to determine the distribution network status of the self-organizing network devices; and The power control unit is used to send communication messages with different transmission powers according to the distribution network status. The transmission power in the undistributed network status is less than or equal to the transmission power in the distributed network status.

10. An electronic device comprising a communication component, a memory, and a processor, characterized in that, The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in any one of claims 1-8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-8.