Transmitting power adjusting method and device, electronic equipment and computer program product
By dynamically adjusting the packet loss rate threshold of the router, the problem that the router's transmission power adjustment cannot adapt to changes in the channel environment is solved, and a more efficient power adjustment effect is achieved, balancing network performance and energy consumption.
Patent Information
- Application Number
- CN202510794460.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-08-01
AI Technical Summary
The router transmission power adjustment is based on a fixed packet loss rate threshold, making it difficult to adapt to the dynamically changing channel environment, resulting in unsatisfactory adjustment effect.
By obtaining the current transmit power and packet loss rate of the router, dynamically adjusting the packet loss rate threshold, determining the next transmit power of the router, and achieving flexible power adjustment.
It improves the adaptability of router transmission power adjustment, balances network performance and energy consumption, and improves the efficiency and user experience of wireless networks.
Smart Images

Figure CN120417002A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technologies, and in particular, to a method, device, electronic device, and computer program product for adjusting transmission power. Background Art
[0002] Currently, when a router adjusts its transmission power, it often does so based on a packet loss rate threshold. That is, when the detected packet loss rate is higher than the packet loss rate threshold, the transmission power is increased; when the detected packet loss rate is lower than the packet loss rate threshold, the transmission power is decreased. However, a fixed packet loss rate threshold cannot adapt to a dynamically changing channel environment, resulting in a possible missed opportunity to reduce the transmission power or blindly reducing the transmission power and affecting the transmission quality.
[0003] In response to the above problems, no effective solution has been proposed yet. Summary of the Invention
[0004] Embodiments of the present invention provide a method, device, electronic device, and computer program product for adjusting transmission power, so as to at least solve the technical problem that the current router adjusts its transmission power based on a fixed packet loss rate threshold and it is difficult to adapt to a dynamically changing channel environment, resulting in an unsatisfactory adjustment effect.
[0005] According to one aspect of the embodiments of the present invention, a method for adjusting transmission power is provided, including: obtaining the current transmission power and the current packet loss rate of the router; determining whether the current transmission power reaches a preset power threshold; in the case where the current transmission power reaches the power threshold, adjusting the current packet loss rate threshold based on the current packet loss rate to obtain a target packet loss rate threshold; and determining the next transmission power of the router based on the target packet loss rate threshold.
[0006] Optionally, adjusting the current packet loss rate threshold based on the current packet loss rate to obtain a target packet loss rate threshold includes: adjusting the minimum threshold in the current packet loss rate threshold to the current packet loss rate to obtain a target minimum packet loss rate threshold; adjusting the maximum threshold in the current packet loss rate threshold to a value that is a preset value greater than the current packet loss rate to obtain a target maximum packet loss rate threshold; and determining the target packet loss rate threshold based on the target minimum packet loss rate threshold and the target maximum packet loss rate threshold.
[0007] Optionally, determining the next transmission power of the router based on the target packet loss rate threshold, where the target packet loss rate threshold includes a target maximum packet loss rate threshold and a target minimum packet loss rate threshold, includes: comparing the current packet loss rate with the target minimum packet loss rate threshold and the target maximum packet loss rate threshold; and in the case where the current packet loss rate is between the target minimum packet loss rate threshold and the target maximum packet loss rate threshold, using the current transmission power as the next transmission power.
[0008] Optionally, the above method further includes: when the current packet loss rate is greater than the maximum threshold of the target packet loss rate, increasing the current transmission power to obtain the next transmission power.
[0009] Optionally, the above method further includes: when the current packet loss rate does not exceed the minimum threshold of the target packet loss rate, determining whether the number of data packets that continuously satisfy the condition that the packet loss rate does not exceed the minimum threshold of the target packet loss rate is greater than a second threshold, where the second threshold represents the lowest standard for the number of data packets that continuously satisfy the condition that the packet loss rate does not exceed the minimum threshold of the target packet loss rate; when the number of data packets that continuously satisfy the condition that the packet loss rate does not exceed the minimum threshold of the target packet loss rate is greater than the second threshold, decreasing the current transmission power to obtain the next transmission power.
[0010] Optionally, the above method further includes: determining whether the currently transmitted data packet is a rate detection data packet; when the currently transmitted data packet is a rate detection data packet, obtaining the number of data packets transmitted between the current rate detection data packet and the previous rate detection data packet; when the number of data packets is greater than the number of data packets obtained when transmitting the previous rate detection data packet, increasing the second threshold; and / or, when the number of data packets is less than the number of data packets obtained when transmitting the previous rate detection data packet, decreasing the second threshold.
[0011] Optionally, obtain the current transmission rate of the router; select the transmission rate corresponding to the throughput that satisfies the first preset threshold among multiple preset transmission rates as the next transmission rate; determine whether the next transmission rate is the same as the current transmission rate; when the next transmission rate is different from the current transmission rate, determine that the next transmission power of the router is the power corresponding to the power threshold.
[0012] According to another aspect of the embodiments of the present invention, there is also provided a transmission power adjustment device, including: an acquisition module for acquiring the current transmission power and the current packet loss rate of the router; a judgment module for judging whether the current transmission power reaches a preset power threshold; an adjustment module for, when the current transmission power reaches the power threshold, adjusting the current packet loss rate threshold based on the current packet loss rate to obtain a target packet loss rate threshold; a determination module for determining the next transmission power of the router based on the target packet loss rate threshold.
[0013] According to still another aspect of the present invention, there is provided a computer-readable storage medium, the computer-readable storage medium including an executable program stored therein, wherein when the executable program runs, it controls the device where the computer-readable storage medium is located to execute any one of the above transmission power adjustment methods.
[0014] According to another aspect of the present invention, there is provided an electronic device, including: a memory storing an executable program; and a processor for running the program, wherein when the program runs, it executes any one of the above-mentioned transmission power adjustment methods.
[0015] According to another aspect of an embodiment of the present invention, there is also provided a computer program product, including a computer program which, when executed by a processor, implements any one of the above-mentioned transmission power adjustment methods.
[0016] In an embodiment of the present invention, by adopting the method of adjusting the transmission power, the current transmission power and the current packet loss rate of the router are obtained; it is determined whether the current transmission power reaches a preset power threshold; when the current transmission power reaches the power threshold, based on the current packet loss rate, the current packet loss rate threshold is adjusted to obtain a target packet loss rate threshold; based on the target packet loss rate threshold, the next transmission power of the router is determined, achieving the purpose of flexibly adjusting the packet loss rate threshold according to the specific transmission situation, thereby realizing the technical effect of improving the adjustment effect of the transmission power, and further solving the technical problem that the current transmission power of the router is adjusted based on a fixed packet loss rate threshold, making it difficult to adapt to the dynamically changing channel environment and resulting in an unsatisfactory adjustment effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention, form a part of this application, and the illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:
[0018] Figure 1 is a flowchart of the transmission power adjustment method provided by an embodiment of the present invention;
[0019] Figure 2 is a flowchart of the dynamic power adjustment provided by an optional embodiment of the present invention;
[0020] Figure 3 is a specific implementation flowchart of the transmission power adjustment method provided by an optional embodiment of the present invention;
[0021] Figure 4 is a structural block diagram of the transmission power adjustment device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0022] To enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0023] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order different from those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0024] First, some nouns or terms that appear during the description of the embodiments of the present application are applicable to the following explanations:
[0025] PPDU, the full name is Physical Protocol Data Unit, which is the basic unit of physical layer data transmission defined in the IEEE 802.11 standard (i.e., the Wi-Fi standard). It is an important part of information transmission in a wireless network. The PPDU contains all the information and control data transmitted on the physical layer.
[0026] MPDU, the full name is MAC Protocol Data Unit, and is often translated as "MAC layer protocol data unit" in Chinese. In the IEEE 802.11 standard (i.e., the Wi-Fi standard), the MPDU is a data structure transmitted on the MAC (Medium Access Control) layer, which contains the user data to be transmitted and the control information of the MAC layer.
[0027] According to an embodiment of the present invention, there is provided a method embodiment of a transmission power adjustment method. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described here can be executed in an order different from that here.
[0028] A router transmits a PPDU in a wireless network, and its transmission power directly affects the signal strength and coverage. A higher transmission power can make the signal propagate farther and cover a larger area. Similarly, a higher transmission power also means that the router will consume more electrical energy. Therefore, dynamically adjusting the transmission power of the router can appropriately reduce the transmission power when the channel environment is good to reduce the power consumption of the router, but the transmission power needs to be increased when the channel environment is poor. Currently, the method for adjusting the transmission power of the router is based on the real-time packet loss rate, comparing the packet loss rate with a fixed threshold, and adjusting the transmission power according to the comparison result. However, a fixed threshold is difficult to apply to a dynamically changing channel environment. For example, if the threshold is set too small, the opportunity to reduce the transmission power consumption may be missed; while if the threshold is set too large, the effect of the transmitted signal may be affected. To solve the above technical problems, an embodiment of the present invention proposes a method for adjusting the transmission power, Figure 1 is a schematic flowchart of the method for adjusting the transmission power provided by an embodiment of the present invention, as Figure 1 shown, the method includes the following steps:
[0029] Step S102, obtain the current transmission power and the current packet loss rate of the router.
[0030] The execution subject of the method in this embodiment can be a router, specifically, a control module in the router. The current transmission power refers to the actual power used by the router in the current transmission process. The current packet loss rate (PER) represents the proportion of data packets that have not successfully reached the receiving party during the current network transmission process. The current packet loss rate can reflect the current network transmission quality. The higher the packet loss rate, the worse the transmission quality of the current channel, and it may be necessary to increase the transmission power to ensure that the signal transmission is not interfered. The current transmission power reflects the energy consumption level of the router. In an environment with good signal coverage, reducing the transmission power can reduce power consumption. Therefore, obtaining the current transmission power and the current packet loss rate is convenient for understanding the current transmission situation and channel situation. Based on these data, the router can dynamically adjust the transmission power to adapt to the constantly changing channel environment.
[0031] The current packet loss rate PER can be calculated based on the following formula:
[0032]
[0033] where rate is the current rate, MPDU is a part of the PPDU, that is, the PPDU is equivalent to the total data transmitted at one time, which includes multiple MPDUs. That is, the ratio obtained by dividing the number of MPDUs that failed to be transmitted in the current transmission by the total number of MPDUs transmitted is the packet loss rate.
[0034] Step S104, determine whether the current transmission power reaches a preset power threshold.
[0035] In this step, the power threshold here can be the maximum transmission power of the router. It is determined whether the current transmission power reaches the preset power threshold, that is, it is determined whether the current transmission power is the maximum transmission power. Since the goal of power adjustment is to reduce power consumption under the condition of maintaining the throughput performance (i.e., the throughput performance when transmitting PPDU at the maximum power) unchanged, therefore, the packet loss rate of the PPDU transmitted at the maximum power can be used as a standard for maintaining the throughput performance unchanged. Therefore, it is necessary to determine whether the current transmission power is the maximum transmission power to determine whether it is necessary to adjust the packet loss rate threshold.
[0036] In practical applications, the determination of the maximum transmission power is usually comprehensively considered by device manufacturers considering factors such as application scenarios and device limitations, set at a safe, legal and compliant level, and restricted through the firmware or software of the router.
[0037] Step S106, in the case that the current transmission power reaches the power threshold, based on the current packet loss rate, adjust the current packet loss rate threshold to obtain the target packet loss rate threshold.
[0038] The packet loss rate at the maximum transmission power can be regarded as an index of the best transmission performance that the device can achieve under the current channel conditions. This is because when the transmission power reaches the maximum value, the signal strength is the strongest, and theoretically the lowest packet loss rate should be obtained, unless there is a problem with the channel itself. Therefore, taking the packet loss rate of transmitting at the maximum power as the benchmark, the packet loss rate threshold is dynamically adjusted, so that the router can adjust the transmission power according to the actual network conditions and channel quality.
[0039] For example, the target packet loss rate threshold can be set to the current packet loss rate, that is, the packet loss rate corresponding to the maximum transmission power. If it is detected that the packet loss rate is much lower than the target packet loss rate threshold during the subsequent transmission process, it indicates that the transmission situation is good, and the transmission power can be reduced to save energy. If it is detected that the packet loss rate is much higher than the target packet loss rate threshold during the subsequent transmission process, it indicates that the transmission situation is poor, and the transmission power may need to be increased to maintain the stability of the transmitted signal. If it is detected that the packet loss rate during the subsequent transmission process is at the edge of the target packet loss rate threshold, the transmission power can be maintained unchanged.
[0040] As an optional embodiment, based on the current packet loss rate, adjusting the current packet loss rate threshold to obtain the target packet loss rate threshold includes: adjusting the minimum threshold in the current packet loss rate threshold to the current packet loss rate to obtain the minimum target packet loss rate threshold; adjusting the maximum threshold in the current packet loss rate threshold to a value that is a preset value larger than the current packet loss rate to obtain the maximum target packet loss rate threshold; determining the target packet loss rate threshold based on the minimum target packet loss rate threshold and the maximum target packet loss rate threshold.
[0041] Optionally, the packet loss rate threshold includes a maximum packet loss rate threshold and a minimum packet loss rate threshold. Among them, the minimum packet loss rate threshold can be adjusted to the value corresponding to the current packet loss rate, and the maximum packet loss rate threshold can be adjusted to a value that is a preset value larger than the current packet loss rate. The preset value here can be adjusted based on the actual situation.
[0042] Optionally, there are also many ways to adjust the packet loss threshold. For example, the maximum packet loss rate threshold can be adjusted to the current packet loss rate, and the minimum packet loss rate threshold can be adjusted to a value less than the current packet loss rate; or the maximum packet loss rate threshold can be adjusted to a value greater than the current packet loss rate, and the minimum packet loss rate threshold can be adjusted to a threshold less than the current packet loss rate.
[0043] Adjust the packet loss rate threshold according to the packet loss rate corresponding to the maximum transmit power, so that the setting of the packet loss rate threshold is more in line with the current channel conditions, thereby improving the adjustment effect of the subsequent transmit power.
[0044] Step S108, determine the next transmit power of the router based on the target packet loss rate threshold.
[0045] In this step, the next transmit power can be determined according to the target packet loss rate threshold. The current packet loss rate can be compared with the target packet loss rate threshold to adjust the next transmit power. For example, if the current packet loss rate is lower than the target packet loss rate threshold, it indicates that the channel environment allows a lower transmit power and the network performance can still meet the requirements. At this time, the system can reduce the transmit power to reduce energy consumption. If the current packet loss rate is higher than the target packet loss rate threshold, this may indicate that the channel conditions have deteriorated, or the current transmit power is not sufficient to maintain the required network service quality. At this time, the system will increase the transmit power to improve the transmission quality and reliability. If the current packet loss rate is close to the target packet loss rate threshold, it means that the current power setting is more appropriate and no adjustment is required. The power adjustment can use an adaptive algorithm to determine the amplitude and speed of the power adjustment. These algorithms can optimize the adjustment process based on historical data and channel state prediction to avoid network performance fluctuations caused by excessive adjustment. To prevent the power adjustment from suddenly affecting the network, the system may gradually adjust the transmit power and find the optimal power setting point through small-step adjustments.
[0046] It is also possible to obtain the transmission rate currently used by the router. Usually, there are multiple preset rates for the router, and the throughput corresponding to each rate can be calculated based on the throughput calculation formula. Then, a transmission rate whose throughput meets the first preset threshold can be selected as the candidate for the next transmission rate. For example, the rate corresponding to the maximum throughput can be selected as the next transmission rate. After determining the next transmission rate, it can be compared with the current transmission rate. If the two rates are the same, it means that the channel conditions may not have changed. At this time, the next transmission power can be adjusted according to the target packet loss rate threshold. If the rates are different, the channel conditions may be unstable at this time. Therefore, the next transmission power can be set to the power corresponding to the power threshold, that is, the next transmission power is the maximum transmission power.
[0047] The dynamic power control strategy based on the target packet loss rate threshold can help the router intelligently adapt to the changing network environment, achieve a balance between network performance and energy consumption, thereby improving the efficiency and user experience of the wireless network while reducing the operating cost.
[0048] Through the above steps, the purpose of flexibly adjusting the packet loss rate threshold according to the specific situation of the transmission is achieved, thus realizing the technical effect of improving the adjustment effect of the transmission power, and further solving the technical problem that the current transmission power of the router is adjusted based on a fixed packet loss rate threshold and it is difficult to adapt to the dynamically changing channel environment, resulting in an unsatisfactory adjustment effect.
[0049] As an optional embodiment, based on the target packet loss rate threshold, determine the next transmission power of the router, where the target packet loss rate threshold includes the maximum target packet loss rate threshold and the minimum target packet loss rate threshold, including: comparing the current packet loss rate with the minimum target packet loss rate threshold and the maximum target packet loss rate threshold; in the case where the current packet loss rate is between the minimum target packet loss rate threshold and the maximum target packet loss rate threshold, taking the current transmission power as the next transmission power.
[0050] Optionally, the next transmission power of the router can be adjusted according to the current packet loss rate and the target packet loss rate threshold. When the current packet loss rate is between the minimum target packet loss rate threshold and the maximum target packet loss rate threshold, it can be considered that the current packet loss rate meets the conditions, that is, the current transmission power is relatively appropriate. Therefore, the current transmission power can still be used for the next transmission.
[0051] The above adjustment process can be carried out when the channel conditions are stable. Among them, it can be determined whether the channel conditions are stable through the transmission rate. When the next transmission rate is the same as the current transmission rate, it can be considered that the channel conditions are relatively stable. If they are different, the channel conditions may be unstable. At this time, the transmission power can be adjusted after comprehensively considering the channel conditions.
[0052] As an alternative embodiment, when the current packet loss rate is greater than the maximum threshold of the target packet loss rate, increase the current transmission power to obtain the next transmission power.
[0053] Optionally, if the current packet loss rate exceeds the maximum threshold of the target packet loss rate, this indicates that the signal may be too weak, resulting in the inability to reliably receive data packets. In this case, the system can increase the transmission power to enhance the signal strength, reduce the packet loss rate, and ensure the stability of data transmission.
[0054] Through this power adjustment strategy, the network device can dynamically adjust the signal strength according to the change of channel conditions while maintaining the current data transmission rate, so as to reduce packet loss and improve the reliability and efficiency of data transmission.
[0055] As an alternative embodiment, when the current packet loss rate does not exceed the minimum threshold of the target packet loss rate, determine whether the number of data packets continuously meeting the condition that the packet loss rate does not exceed the minimum threshold of the target packet loss rate is greater than the second threshold, where the second threshold represents the minimum standard for the number of data packets continuously meeting the condition that the packet loss rate does not exceed the minimum threshold of the target packet loss rate; when the number of data packets continuously meeting the condition that the packet loss rate does not exceed the minimum threshold of the target packet loss rate is greater than the second threshold, reduce the current transmission power to obtain the next transmission power.
[0056] Optionally, when the current packet loss rate does not exceed the preset minimum threshold of the target packet loss rate, the stability and reliability of the channel can be further evaluated to determine whether the transmission power can be reduced. The number of data packets continuously meeting the condition that the packet loss rate does not exceed the minimum threshold of the target packet loss rate can be counted and compared with the second threshold to evaluate the channel condition.
[0057] Among them, the minimum threshold of the target packet loss rate reflects the minimum communication quality requirement that the system hopes to maintain when reducing the transmission power. When the packet loss rate is lower than this threshold, the system believes that the current channel condition is sufficient to support a lower transmission power, thereby reducing energy consumption without significantly affecting the data transmission performance. The second threshold refers to the minimum standard that the number of data packets continuously meeting the condition that the packet loss rate does not exceed the minimum threshold of the target packet loss rate should reach. The design of this value is based on a comprehensive evaluation of channel stability and data transmission reliability. If the number of data packets exceeds the second threshold, it indicates that the channel has been stable during this period and the packet loss rate has remained at a low level, and the transmission power can be considered to be reduced to save energy.
[0058] When it is monitored that the current packet loss rate does not exceed the minimum threshold of the target packet loss rate, and the number of data packets with a consecutive packet loss rate not exceeding the minimum threshold of the target packet loss rate is greater than the second threshold, the system considers that the current channel quality and power usage situation allow power reduction. At this time, the system will choose to reduce the current transmission power to obtain the next transmission power for subsequent data transmission attempts. This strategy pursues better energy efficiency while ensuring network performance.
[0059] By implementing such a power control strategy, it is possible to dynamically adjust the power according to the actual performance of the channel on the basis of ensuring the data transmission quality, avoiding unnecessary energy waste.
[0060] As an optional embodiment, it is determined whether the currently transmitted data packet is a rate detection data packet; when the currently transmitted data packet is a rate detection data packet, the number of data packets transmitted between the current rate detection data packet and the last transmitted rate detection data packet is obtained; when the number of data packets is greater than the number of data packets obtained when the last rate detection data packet was sent, the second threshold is increased; and / or, when the number of data packets is less than the number of data packets obtained when the last rate detection data packet was sent, the second threshold is decreased.
[0061] Optionally, in a wireless communication system, rate detection data packets are used to evaluate the current state of the channel and the potential transmission rate capabilities. Rate detection data packets are sent at regular intervals for evaluation. When the data packet transmitted by the device is a rate detection data packet, the system records the number of data packets transmitted since the last rate detection data packet was sent. This process is then used to dynamically adjust the second threshold, which is an important parameter for determining whether the transmission power can be reduced. When the number of data packets is greater than the number of data packets obtained when the last rate detection data packet was sent, the number of data packets increases, and the corresponding second threshold should also be increased. On the contrary, if the number of data packets decreases, the second threshold should be decreased accordingly.
[0062] Wi-Fi systems or devices will periodically transmit rate detection data packets to test the transmission capabilities and stability of the channel at different rates. Among them, the detection period can be adjusted according to the channel conditions. For example, if the transmission of the detection data packets in this channel is good, the detection period can be appropriately reduced; if the transmission of the detection data packets is poor, the detection period is increased.
[0063] According to the rate detection mechanism, the detection period reflects the quality of the channel environment. The PPDU interval between the last two rate detections is recorded in real time, and the threshold N in the power adjustment process is set according to the PPDU interval between the last two rate detections. After confirming that the current data packet is a rate detection data packet, the system starts to query the number of data packets that have been transmitted during the period from the transmission of the last rate detection data packet to the current rate detection data packet. This information reflects the usage of the channel during this period and the stability of the channel conditions. Based on the recorded number of data packets, the system adjusts the second threshold used for power control decisions. The purpose of this adjustment strategy is to ensure that the power adjustment decision is more adaptable to the current channel conditions and network load. For example, if the number of data packets transmitted between two rate detections is small, it may mean that the channel is used less frequently or the network load is not heavy. In this case, the system may tend to set a lower second threshold so as to reduce the transmission power faster when the channel conditions permit, reducing energy consumption. On the contrary, if the number of data packets transmitted between two rate detections is large, it indicates that the channel is in a busy state or the network load is heavy. At this time, the system may need to set a higher second threshold to ensure that the channel conditions have sufficient stability and reliability before making a decision to reduce the transmission power.
[0064] Dynamically adjusting the second threshold enables network devices to more intelligently adapt to changes in the network environment. In scenarios where the channel conditions are good and the network load is low, the device can reduce the transmission power faster, saving energy. In cases where the channel conditions fluctuate or the network load is high, the device will be more cautious to avoid a decline in data transmission quality caused by prematurely reducing the transmission power.
[0065] As an alternative embodiment, obtain the current transmission rate of the router; select the transmission rate corresponding to the throughput that meets the first preset threshold among multiple preset transmission rates as the next transmission rate; determine whether the next transmission rate is the same as the current transmission rate; in the case where the next transmission rate is different from the current transmission rate, determine that the next transmission power of the router is the power corresponding to the power threshold.
[0066] Optionally, obtain the transmission rate currently used by the router to ensure that subsequent adjustment decisions are based on the real-time network status. Usually, there are multiple preset rates for the router, and the throughput corresponding to different rates can be calculated based on the following formula:
[0067] Throughput(rate) = [1 - PER(rate)] × rate
[0068] Among them, rate is the rate, and PER(rate) is the packet loss rate corresponding to different rates. This value can be obtained based on historical transmission processes. Through this formula, the throughput corresponding to each of multiple rates can be calculated. Then, a transmission rate whose throughput meets the first preset threshold can be selected as the candidate for the next transmission rate. For example, the rate corresponding to the maximum throughput can be selected as the next transmission rate. After determining the next transmission rate, it can be compared with the current transmission rate. If the two rates are different, this means that the channel conditions may have changed. The channel conditions at this time may not be very stable. Therefore, the next transmission power can be set to the power corresponding to the power threshold, that is, the next transmission power is the maximum transmission power. Among them, the maximum transmission power corresponding to different rates may also be different.
[0069] Optionally, during the actual transmission process, when the current transmission power reaches the power threshold, that is, in the case of the maximum transmission power, the current packet loss rate corresponding to the maximum transmission power at this time can be recorded to update the previously recorded rate-packet loss rate mapping table, so that the recorded data can be updated in a timely manner with the change of the channel, improving the accuracy of transmission power adjustment.
[0070] As an alternative embodiment, obtain the current transmission rate of the router; select a transmission rate whose corresponding throughput among multiple preset transmission rates meets the first preset threshold as the next transmission rate; when the preset detection period is reached, based on the preset rate range, determine the actual transmission rate according to the next transmission rate; and transmit rate detection packets based on the actual transmission rate and the next transmission power.
[0071] Optionally, usually the rate corresponding to the maximum throughput is selected as the next transmission rate. However, when transmitting rate detection packets, a rate slightly larger than the rate corresponding to the maximum throughput is usually selected as the actual transmission rate.
[0072] Therefore, when the preset detection period is reached, the next transmission needs to send rate detection packets at this time. The actual transmission rate can be determined according to the next transmission rate in combination with multiple preset rates. Then, rate detection packets are transmitted based on the actual transmission rate and the maximum transmission power.
[0073] Select the rate one level higher than the rate corresponding to the maximum throughput as the transmission rate of the rate detection data packet, which is beneficial for the system to evaluate the actual capacity of the channel, that is, the highest data transmission rate that can be supported under specific channel conditions. By regularly trying a slightly higher rate, the system can continuously update its understanding of the channel performance and then make a more accurate rate selection. The system can judge whether the channel can stably support this rate according to the received feedback (such as bit error rate, success rate, etc.). If the detection result shows that the channel performance is still stable, then the system can increase the transmission rate to this higher level to improve the throughput; otherwise, maintain the current transmission rate to ensure the stability of the throughput.
[0074] Select the transmission rate of the rate detection data packet slightly higher than the rate corresponding to the current maximum throughput, in order to actively explore and utilize the potential performance of the channel on the premise of maintaining the stability of network performance, and ensure that the system can make the best rate adaptation decision according to the real-time channel conditions.
[0075] Figure 2 It is a flowchart of dynamic power adjustment provided according to an optional embodiment of the present invention, as Figure 2 shown, discloses a dynamic power adjustment method, where N is the second threshold, and pktnum is the number of data packets whose packet loss rate does not exceed the minimum threshold of the target packet loss rate. The specific process is as follows:
[0076] First, judge whether the current PPDU is transmitted at the maximum transmission power. If it is transmitted at the maximum transmission power, update the minimum packet loss rate threshold and the maximum packet loss rate threshold according to the packet loss rate at the current maximum power; if it is not transmitted at the maximum transmission power, do not adjust the packet loss rate threshold. Then judge whether the currently transmitted PPDU is a rate detection PPDU. If it is a rate detection PPDU, update N according to the number of data packets between the previous rate detection PPDU and the current rate detection PPDU. The more the number of data packets in the interval, the larger N should be. Then judge the relationship between the current packet loss rate and the minimum packet loss rate threshold and the maximum packet loss rate threshold. If the current packet loss rate is less than the minimum packet loss rate threshold, at this time, the number of data packets with a continuous packet loss rate less than the minimum packet loss rate threshold increases. Judge whether this number exceeds N. If it does not exceed, keep the transmission power unchanged. If it exceeds N, reduce the transmission power and clear the number of data packets with a continuous packet loss rate not exceeding the minimum packet loss rate threshold. If the current packet loss rate is greater than the maximum packet loss rate threshold, increase the transmission power. Similarly, the number of data packets with a continuous packet loss rate not exceeding the minimum packet loss rate threshold should also be cleared. If the current packet loss rate is between the minimum packet loss rate threshold and the maximum packet loss rate threshold, maintain the current transmission power unchanged.
[0077] Figure 3 It is a specific implementation flowchart of the transmission power adjustment method provided according to an optional embodiment of the present invention, asFigure 3 As shown below, the specific process is as follows:
[0078] 1. The current PPDU transmission is completed.
[0079] 2. Update the PER according to the transmission situation of the current PPDU, that is, maintain a rate-PER table. If the current PPDU is the maximum power PPDU, store the updated PER at the position corresponding to the rate of the current PPDU in the table.
[0080] 3. Calculate the throughput corresponding to each rate according to the rate-PER table, and select the rate corresponding to the maximum throughput as the optimal rate. If the rate detection condition is met, select a rate gear slightly higher than the optimal rate as the transmission rate of the next PPDU; otherwise, select the optimal rate as the transmission rate of the next PPDU.
[0081] 4. Determine whether the current PPDU is transmitted at the maximum power. If it is transmitted at the maximum power, update the minimum threshold PER of the target packet loss rate and the maximum threshold PER of the target packet loss rate based on the PER of the current PPDU min to f1 and f2 respectively. max as f1 and f2.
[0082] 5. Determine whether the current PPDU is a rate detection PPDU. If it is a rate detection PPDU, update the second threshold N as, where N = g(interval) is the second threshold N obtained based on the rate detection interval interval. The counter interval is used to record the number of PPDUs in two rate detection intervals, that is, the value in the counter interval at this time, and then clear the counter interval; if it is not a rate detection PPDU, increment the counter interval by one.
[0083] 6. Determine whether the transmission rate of the next PPDU is equal to the transmission rate of the current PPDU. If not, that is, the transmission rate changes, no power adjustment is performed, and the next PPDU is transmitted at the maximum transmission power corresponding to the next transmission rate, and go to step 8.
[0084] 7. If the current PER is less than or equal to PER min and the PER of N consecutive PPDUs is less than or equal to PER min , reduce the transmission power; if the PER of the current PPDU is greater than or equal to PER max , increase the transmission power; otherwise, keep the transmission power unchanged.
[0085] 8. Transmit the PPDU at the new rate and new transmission power.
[0086] Through the above steps, the packet loss rate threshold and the N threshold in the power adjustment process are set according to the PER corresponding to the PPDU transmitted at the maximum transmission power and the number of PPDUs in two rate detection intervals, making full use of the metrics reflecting the actual channel quality in the current channel environment, and updating the power adjustment conditions in real time according to the dynamic changes of the environment, achieving the technical effect of balancing throughput performance and power consumption in different environments and minimizing power consumption while ensuring the user experience.
[0087] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0088] Through the description of the above embodiments, those skilled in the art can clearly understand that the transmission power adjustment method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation manner. Based on such an understanding, the technical solution of the present invention, in essence, or the part that makes contributions to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of the various embodiments of the present invention.
[0089] According to an embodiment of the present invention, there is also provided a transmission power adjustment device for implementing the above transmission power adjustment method. Figure 4 It is a structural block diagram of the transmission power adjustment device provided according to an embodiment of the present invention, as Figure 4 shown. The transmission power adjustment device includes: an acquisition module 402, a judgment module 404, an adjustment module 406, and a determination module 408. The following describes the transmission power adjustment device.
[0090] The acquisition module 402 is configured to acquire the current transmission power and the current packet loss rate of the router.
[0091] The judgment module 404 is connected to the acquisition module 402 and is configured to judge whether the current transmission power reaches a preset power threshold.
[0092] The adjustment module 406 is connected to the judgment module 404 and is configured to, when the current transmission power reaches the power threshold, adjust the current packet loss rate threshold based on the current packet loss rate to obtain a target packet loss rate threshold.
[0093] A determination module 408, connected to the adjustment module 406, is configured to determine the next transmission power of the router based on a target packet loss rate threshold.
[0094] It should be noted here that the above-mentioned acquisition module 402, judgment module 404, adjustment module 406, and determination module 408 correspond to steps S102 to S108 in the embodiment. The instances and application scenarios implemented by multiple modules and the corresponding steps are the same, but are not limited to the content disclosed in the above-mentioned embodiment.
[0095] According to an embodiment of the present invention, there is provided a computer-readable storage medium, characterized in that the computer-readable storage medium includes an executable program stored therein. When the executable program runs, it controls the device where the computer-readable storage medium is located to execute any one of the above-mentioned transmission power adjustment methods.
[0096] According to an embodiment of the present invention, there is provided an electronic device, characterized by including:
[0097] A memory storing an executable program;
[0098] A processor for running a program, where when the program runs, it executes any one of the above-mentioned transmission power adjustment methods.
[0099] According to an embodiment of the present invention, there is provided a computer program product including a computer program, characterized in that when the computer program is executed by a processor, it implements the steps of any one of the above-mentioned transmission power adjustment methods.
[0100] The serial numbers of the above-mentioned embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0101] In the above-mentioned embodiments of the present invention, the descriptions of each embodiment have their own emphases. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0102] In several embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units can be a logical function division. In actual implementation, there can be other division methods. For example, 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 displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of units or modules can be in an electrical or other form.
[0103] The unit described as a separation component may or may not be physically separated. The component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional unit in various embodiments of the present invention may be integrated in a processing unit, may exist physically alone for each unit, or two or more units may be integrated in one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0105] If the above-mentioned 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 storage medium. Based on such an understanding, the technical solution of the present invention, in essence, 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. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), mobile hard disks, magnetic disks, or optical discs, and other various media that can store program codes.
[0106] The above is only the preferred embodiment of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.
Claims
1. A method for adjusting transmission power, characterized in that Including: Obtain the current transmission power and the current packet loss rate of the router; Judge whether the current transmission power reaches a preset power threshold; When the current transmission power reaches the power threshold, based on the current packet loss rate, adjust the current packet loss rate threshold to obtain a target packet loss rate threshold; Based on the target packet loss rate threshold, determine the next transmission power of the router.
2. The method according to claim 1, wherein The adjusting the current packet loss rate threshold based on the current packet loss rate to obtain a target packet loss rate threshold includes: Adjust the minimum threshold in the current packet loss rate threshold to the current packet loss rate to obtain a minimum target packet loss rate threshold; Adjust the maximum threshold in the current packet loss rate threshold to a value that is a preset value larger than the current packet loss rate to obtain a maximum target packet loss rate threshold; Based on the minimum target packet loss rate threshold and the maximum target packet loss rate threshold, determine the target packet loss rate threshold.
3. The method according to claim 1, wherein The determining the next transmission power of the router based on the target packet loss rate threshold, where the target packet loss rate threshold includes a maximum target packet loss rate threshold and a minimum target packet loss rate threshold, includes: Compare the current packet loss rate with the minimum target packet loss rate threshold and the maximum target packet loss rate threshold; When the current packet loss rate is between the minimum target packet loss rate threshold and the maximum target packet loss rate threshold, use the current transmission power as the next transmission power.
4. The method according to claim 3, wherein It also includes: When the current packet loss rate is greater than the maximum target packet loss rate threshold, increase the current transmission power to obtain the next transmission power.
5. The method according to claim 3, characterized in that, It also includes: When the current packet loss rate does not exceed the minimum target packet loss rate threshold, judge whether the number of data packets that continuously satisfy the condition that the packet loss rate does not exceed the minimum target packet loss rate threshold is greater than a second threshold, where the second threshold represents the lowest standard for the number of data packets that continuously satisfy the condition that the packet loss rate does not exceed the minimum target packet loss rate threshold; When the number of data packets that continuously satisfy the condition that the packet loss rate does not exceed the minimum target packet loss rate threshold is greater than the second threshold, decrease the current transmission power to obtain the next transmission power.
6. The method according to claim 5, wherein It also includes: Judge whether the currently transmitted data packet is a rate detection data packet; When the currently transmitted data packet is the rate detection data packet, obtain the number of data packets transmitted between the current rate detection data packet and the previous rate detection data packet; When the number of data packets is greater than the number of data packets obtained when the previous rate detection data packet was sent, increase the second threshold; And / or, when the number of data packets is less than the number of data packets obtained when the previous rate detection data packet was sent, decrease the second threshold.
7. The method according to any one of claims 1 to 6, characterized in that, It also includes: Obtain the current transmission rate of the router; Select the transmission rate corresponding to the throughput that meets the first preset threshold among multiple preset transmission rates as the next transmission rate; Judge whether the next transmission rate is the same as the current transmission rate; When the next transmission rate is different from the current transmission rate, determine that the next transmission power of the router is the power corresponding to the power threshold.
8. A transmission power adjustment device, characterized in that, Including: An acquisition module, configured to acquire the current transmission power and the current packet loss rate of a router; A judgment module, configured to judge whether the current transmission power reaches a preset power threshold; An adjustment module, configured to, when the current transmission power reaches the power threshold, adjust a current packet loss rate threshold based on the current packet loss rate to obtain a target packet loss rate threshold; A determination module, configured to determine a next transmission power of the router based on the target packet loss rate threshold.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored executable program, wherein when the executable program runs, it controls the device where the computer-readable storage medium is located to execute the transmission power adjustment method according to any one of claims 1 to 7.
10. An electronic device, characterized in that, Comprising: A memory, storing an executable program; A processor, configured to run the program, wherein when the program runs, it executes the transmission power adjustment method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the transmission power adjustment method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Network bandwidth allocation method, electronic equipment and storage medium
CN117376278A
LoRa transmission power adaptive adjustment method
CN118828842A
Wireless signal transmission method, wireless signal transmission device and terminal device
WO2020102928A1