Method and device for adjusting transmitting power, network equipment and computer storage medium
By receiving the signal strength information of the terminal equipment and adjusting the transmission power of the network equipment, the problem of power consumption waste in the prior art is solved, and the effect of reducing the power consumption of the network equipment while ensuring communication quality is achieved.
Patent Information
- Application Number
- CN202310781082.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2024-12-31
AI Technical Summary
During communication, existing network equipment always uses the highest power to send wireless signals, resulting in waste of power consumption, especially when the terminal equipment is close to the access point, the signal quality is good but the power consumption is too large.
By receiving the signal strength information sent by the terminal device, the transmission power is adjusted to determine the appropriate transmission power according to the signal strength of the terminal device, thereby reducing the power consumption of the network device.
While ensuring communication quality, the power consumption of network equipment is reduced, especially for equipment with batteries, it helps to extend battery life.
Smart Images

Figure CN119233380A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and more specifically, to a method and device for adjusting transmission power, a network device, and a computer storage medium. Background Art
[0002] With the development of communication technology, the functions of network devices are becoming more and more abundant, but correspondingly, the power consumption of network devices is also increasing. Therefore, how to reduce the power consumption of network devices has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a method and apparatus for adjusting transmit power, a network device, and a computer storage medium. The following introduces various aspects of the embodiments of the present application.
[0004] In a first aspect, a method for adjusting transmission power is provided, which is applied to a first device, wherein the first device is communicatively connected with a second device, and the method comprises: the first device receives first information sent by the second device, wherein the first information is used to indicate the signal strength at a location of the second device; and the first device adjusts the transmission power according to the first information.
[0005] In a second aspect, a device for adjusting transmission power is provided, which is applied to a first device, wherein the first device is communicatively connected with a second device, and the device includes: a receiving unit, for receiving first information sent by the second device, wherein the first information is used to indicate the signal strength at the location of the second device; and an adjustment unit, for adjusting the transmission power according to the first information.
[0006] According to a third aspect, a network device is provided, comprising a processor and a memory storing a program, wherein the processor is configured to call the program from the memory so that the network device executes the method according to the first aspect.
[0007] In a fourth aspect, a chip is provided, comprising a processor, configured to call a program from a memory so that a device equipped with the chip executes the method described in the first aspect.
[0008] According to a fifth aspect, a computer-readable storage medium is provided, on which a program is stored, wherein the program enables a computer to execute the method described in the first aspect.
[0009] According to a sixth aspect, a computer program product is provided, comprising a program, wherein the program enables a computer to execute the method described in the first aspect.
[0010] According to a seventh aspect, a computer program is provided, wherein the computer program enables a computer to execute the method described in the first aspect.
[0011] In an embodiment of the present application, the first information is used to indicate the signal strength at the location of the second device. The first device adjusts the transmission power according to the first information, which helps to reduce the power consumption of the first device while ensuring the communication quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is an example diagram of a communication system applied in an embodiment of the present application.
[0013] Figure 2 A schematic flowchart of a method for adjusting transmit power provided in accordance with an embodiment of the present application.
[0014] Figure 3 This is an example diagram of a probe request frame according to an embodiment of the present application.
[0015] Figure 4 This is an example diagram of a beacon frame according to an embodiment of the present application.
[0016] Figure 5 An example diagram of an application scenario provided for an embodiment of the present application.
[0017] Figure 6 It is a schematic block diagram of the system architecture of an embodiment of the present application.
[0018] Figure 7 A schematic flowchart of a method for adjusting transmit power provided in another embodiment of the present application.
[0019] Figure 8 It is a schematic block diagram of a device for adjusting transmit power provided in another embodiment of the present application.
[0020] Fig. 9 It is a schematic block diagram of a device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0021] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0022] Figure 1 This is an application scenario 100 of an embodiment of the present application. The application scenario 100 may include a network device 110, a terminal device 120, and a terminal device 130. The network device 110 may provide signal coverage for a specific geographical area, and may communicate with the terminal devices 120 and 130 located in the coverage area. The terminal devices 120 and 130 may access the network 10 through the network device 110.
[0023] Figure 1The example shows one network device and two terminal devices. Optionally, the application scenario 100 may include more or fewer network devices or terminal devices, which is not limited in the present embodiment. Figure 1 The system architecture shown, the technical solution of the embodiment of the present application can be applied to various system architectures, which is not limited in the embodiment of the present application.
[0024] The network device 110 in the embodiment of the present application may also be referred to as an access point (AP), etc. For example, the network device 110 may be a network controller, a router, etc. The terminal device 120 and the terminal device 130 in the embodiment of the present application may also be referred to as a station (STA), a node device, a user equipment (UE), etc. For example, the terminal device 120 and the terminal device 130 may be a mobile phone, a tablet computer (Pad), a laptop computer, a PDA, a wearable device, etc., or may be an IoT device such as lighting, door locks, blinds, televisions, HVAC systems, security sensors and controllers, and gateways.
[0025] Typically, when a network device sends a wireless signal (such as a data frame) to a terminal device, it sends it at a power (i.e., transmit power) corresponding to the modulation and coding scheme (MCS) used. However, the power corresponding to the MCS used by the network device is usually the required (or specified) upper limit, which is often relatively large.
[0026] For example, the following Table 1 shows an example of a power meter used in an AP product:
[0027] Table 1 Power meter used by an AP product
[0028]
[0029] As can be seen from the table above, different MCSs correspond to different powers. At present, wireless signals are usually sent at the highest power corresponding to the MCS. However, if the network device always uses the highest power corresponding to the MCS to send wireless signals, it may cause power consumption waste. For example, when the STA is close to the AP (for example, within 10 meters), the signal quality is often good. At this time, sending data frames at the highest power will cause great power consumption waste, especially for battery-powered AP devices (such as portable Wi-Fi, also known as MIFI).
[0030] In order to solve one or more of the above technical problems, the present application proposes a method and apparatus for adjusting transmit power, a network device and a computer storage medium, which are helpful to reduce the power consumption of the network device while ensuring the communication quality. Figures 2 to 7 The embodiments of the present application are described in detail with examples.
[0031] Figure 2 It is a schematic flowchart of a method for adjusting transmit power according to an embodiment of the present application. Figure 2 The method 200 shown can be applied to a first device, and the first device can be connected to a second device for communication. The method 200 can include steps S210 and S220, which are as follows:
[0032] S210, the first device receives first information sent by the second device.
[0033] The first device may be a network device, and the second device may be a terminal device.
[0034] The first information may be used to indicate the signal strength at the location of the second device. The signal strength at the location of the second device may refer to: the signal strength of a wireless signal sent by the first device received at the location of the second device. Optionally, the signal strength may be a received signal strength indication (RSSI). For example, the first information may indicate the RSSI at the location of the second device, where the RSSI unit is dBm.
[0035] Optionally, the first information may be carried in a probe request frame. Optionally, the first information may be carried in a vendor specific element of the probe request frame, or the first information may be carried in other fields (or domains) of the probe request frame.
[0036] For example, Figure 3 The following figure shows the probe request frame in the management frame of the 802.11 protocol. Figure 3 As shown, the vendor-defined element in the probe request frame in the management frame may include the following fields (or domains): element ID, length, organizationally unique identifier (OUI) and value. The first information may be carried in the value field in the vendor-defined element.
[0037] The value field in the manufacturer-defined element may also include the following fields (or domains): type, length, and value. The type field may indicate that the second device returns the signal strength of the location of the second device to the first device (for example, when the type field is 0x02, it may indicate that the second device returns the signal strength of the location of the second device to the first device), the length field may indicate the length of the value field (in the value field), and the value field (in the value field) may indicate the signal strength of the location of the second device.
[0038] In some embodiments, before S210, method 200 may further include step S230, which is as follows:
[0039] S230: The first device sends second information to the second device.
[0040] Optionally, the second information may be used to request the second device to send a signal strength of a location where the second device is located.
[0041] Optionally, the second information may be carried in a beacon frame. Optionally, the second information may be carried in a vendor specific element of the beacon frame, or the second information may be carried in other fields (or domains) of the beacon frame.
[0042] For example, Figure 4 The following figure shows the beacon frame in the management frame of the 802.11 protocol. Figure 4 As shown, the vendor-defined element in the beacon frame in the management frame may include the following fields (or domains): element ID, length, organizationally unique identifier (OUI) and value. The second information may be carried in the value field in the vendor-defined element.
[0043] The value field in the manufacturer-defined element may also include a type field (or domain). The type field may indicate that the first device requests the second device to send the signal strength of the location of the second device (for example, when the type field is 0x01, it may indicate that the first device requests the second device to send the signal strength of the location of the second device).
[0044] S220: The first device adjusts transmit power according to the first information.
[0045] Optionally, in S220, the first device may adjust the transmission power according to the MCS used when the first device sends information to the second device (such as sending a wireless signal (data frame) to the second device) and the signal strength at the location of the second device.
[0046] In some embodiments, the first device may determine a power adjustment value based on the difference between the minimum sensitivity corresponding to the MCS used when the first device sends information to the second device and the signal strength at the location of the second device; and adjust the transmission power according to the power adjustment value.
[0047] For example, the difference between the minimum sensitivity corresponding to the MCS used by the first device to send information to the second device and the signal strength at the location of the second device can be calculated by the following formula:
[0048] RSSI_delta=RSSI_sta–RSSI_sens
[0049] RSSI_delta may represent a difference, RSSI_sta may represent the RSSI at the location of the STA, and RSSI_sens may represent the minimum sensitivity corresponding to the MCS used when the AP sends a wireless signal (such as a data frame) to the STA.
[0050] It should be noted that, in the communication protocol, each MCS may correspond to (one or more) minimum sensitivities. For example, in the 802.11 protocol, the correspondence between the MCS and the minimum sensitivity may be as shown in Table 2 below:
[0051] Table 2 Correspondence between MCS and minimum sensitivity
[0052]
[0053] In some embodiments, different power adjustment values may be determined according to different differences (between the minimum sensitivity corresponding to the MCS used when the first device sends information to the second device and the signal strength at the location of the second device).
[0054] For example, multiple value ranges of the difference between the minimum sensitivity corresponding to the MCS used when the first device sends information to the second device and the signal strength at the location of the second device can correspond to multiple gears (as shown in Table 3 below, multiple value ranges and multiple gears can correspond one to one), and the first device can determine the gear corresponding to the value range of the difference between the minimum sensitivity corresponding to the MCS used when the first device sends information to the second device and the signal strength at the location of the second device as the target gear.
[0055] For example, an example of the corresponding relationship between the difference value range and the gear position can be shown in the following Table 3:
[0056] Table 3 Correspondence between difference value range and gear position
[0057] Difference value range (dBm) Corresponding gear >=5 L2 >=10 L4 >=15 L5 >=20 L6 >=25 L7
[0058] For example, in the above table, if the difference between the minimum sensitivity corresponding to the MCS used when the first device sends a message to the second device and the signal strength at the location of the second device is 8dBm (i.e. 8>=5), the gear corresponding to the difference is L2; if the difference between the minimum sensitivity corresponding to the MCS used when the first device sends a message to the second device and the signal strength at the location of the second device is 16dBm (i.e. 16>=15), the gear corresponding to the difference is L5.
[0059] In some embodiments, different power adjustment values may be determined according to different gears.
[0060] For example, multiple gears may correspond to multiple power adjustment values (as shown in Table 4 below, multiple gears and multiple power adjustment values may correspond one to one), and the first device may determine the power adjustment value corresponding to the target gear as the target power adjustment value.
[0061] For example, an example of the corresponding relationship between the gear position and the power adjustment value may be shown in the following Table 4:
[0062] Table 4 Correspondence between gear position and power adjustment value
[0063] Gear Power adjustment value (dBm) L1 0.5 L2 1 L3 2 L4 3 L5 6 L6 9 L7 12
[0064] For example, in the above table, if the difference corresponds to the gear position L1, the target power adjustment value is 0.5dBm; if the difference corresponds to the gear position L5, the target power adjustment value is 6dBm.
[0065] Optionally, after determining the power adjustment value, the first device may adjust the transmit power according to the target power adjustment value. For example, the first device may reduce (or increase) the transmit power by the target power adjustment value.
[0066] In some embodiments, after adjusting the transmit power through the above step S220, the first device may continue to adjust the transmit power (eg, fine-tune the transmit power).
[0067] For example, the method 200 may further include step S240, which is as follows:
[0068] S240, the first device adjusts the transmission power according to the MCS used when the first device sends information to the second device.
[0069] Optionally, in S240, the first device may adjust the transmit power by one or more of the following:
[0070] If the MCS used by the first device to send information to the second device becomes smaller, the first device may increase the transmission power;
[0071] If the MCS used by the first device to send information to the second device becomes larger, the first device may end the transmission power adjustment;
[0072] If the MCS used by the first device to send information to the second device does not change, and the first device has not increased the transmission power, the first device may reduce the transmission power;
[0073] If the MCS used by the first device to send information to the second device does not change, and the first device has increased the transmit power at least once, the first device may end the transmit power adjustment.
[0074] Optionally, the adjustment range of the transmit power adjusted by the first device according to the MCS used when the first device sends information to the second device may be less than or equal to the adjustment range of the transmit power adjusted by the first device according to the first information. In other words, the process of adjusting the transmit power of the first device according to the first information may be referred to as a coarse adjustment process, and the process of adjusting the transmit power of the first device according to the MCS used when the first device sends information to the second device may be referred to as a fine adjustment process.
[0075] In the embodiment of the present application, the first information is used to indicate the signal strength at the location of the second device. The first device adjusts the transmission power according to the first information, which helps to reduce the power consumption of the first device while ensuring the communication quality. Figure 5 As shown, in the prior art, AP usually uses the highest power corresponding to the MCS to send wireless signals. At this time, the transmission power is often relatively large, far exceeding the minimum sensitivity requirement of the MCS used by the AP to send wireless signals to the STA, which will cause power waste; while in this solution, the AP will adjust the transmission power according to the RSSI of the STA's location on the premise that the MCS used by the AP to send wireless signals to the STA does not decrease, so as to save the power consumption of the AP, especially for AP devices with batteries (such as MIFI), which will greatly improve their battery life.
[0076] Combine the following Figure 6 and Figure 7 The scheme in the embodiments of the present application is illustrated by examples.
[0077] Figure 6 : is a schematic structural diagram of the overall framework of the solution provided by an embodiment of the present application. Figure 6As shown, the solution in the embodiment of the present application may include a signal strength acquisition module 610, a power adjustment module 620 and a power fine-tuning module 630. The signal strength acquisition module 610 can be used to obtain the signal strength at the location of the second device (i.e., the signal strength of the signal sent by the first device received at the location of the second device). The power adjustment module 620 can be used to calculate the power adjustment value according to the signal strength at the location of the second device and the MCS used by the first device, and adjust the transmission power according to the power adjustment value. The power fine-tuning module 630 can be used to adjust the transmission power according to the MCS used by the first device.
[0078] Figure 7 It is a schematic flowchart of a method for adjusting transmit power according to an embodiment of the present application, wherein the first device is an AP (network device) and the second device is a STA (terminal). Figure 7 The method 700 shown may include steps S701 to S709, which are specifically as follows:
[0079] S701, obtaining the RSSI of the STA location.
[0080] The AP may request the STA to send the RSSI of the STA's location through a beacon frame; correspondingly, the STA may send the RSSI of the STA's location to the AP through a probe request frame.
[0081] S702: Obtain the MCS used by the AP.
[0082] The AP can obtain the MCS used when the AP sends a wireless signal (such as a data frame) to the STA.
[0083] S703: Obtain the minimum sensitivity corresponding to the MCS.
[0084] The AP can obtain the minimum sensitivity corresponding to the MCS through Table 2 above.
[0085] S704, calculating the power difference Delta.
[0086] The AP can calculate the power difference Delta using the following formula:
[0087] Delta = RSSI_sta – RSSI_sens
[0088] Delta may represent a power difference, RSSI_sta may represent the RSSI at the location of the STA, and RSSI_sens may represent a minimum sensitivity corresponding to the MCS used by the AP to send a wireless signal (such as a data frame) to the STA.
[0089] S705: Adjust the transmit power according to the power difference Delta.
[0090] The AP may determine the gear position corresponding to the power difference Delta according to the above Table 3, may determine the power adjustment value corresponding to the gear position according to the above Table 4, and may adjust the transmit power based on the power adjustment value.
[0091] S706: Determine whether the MCS used by the AP has changed.
[0092] The AP can determine whether the MCS used when the AP sends wireless signals to the STA becomes smaller.
[0093] If it becomes smaller, S707 can be executed;
[0094] If it is unchanged, S708 can be executed;
[0095] If it becomes larger, the transmit power fine-tuning can be ended.
[0096] S707, increase the transmission power.
[0097] The AP may increase the transmit power. After increasing the transmit power, S706 may be executed.
[0098] S708, determining whether at least one increase and fine-tuning has been performed.
[0099] The AP may determine whether to perform at least one increase fine adjustment, that is, perform S707 at least once. If yes, the transmit power fine adjustment may be terminated; otherwise, S709 may be performed.
[0100] S709, reduce the transmission power.
[0101] The AP may reduce the transmit power. After reducing the transmit power, S706 may be executed.
[0102] Through the above method, the transmit power of the AP can be reduced while optimizing the MCS used by the AP (that is, without reducing the MCS used by the AP), thereby reducing the power consumption of the AP.
[0103] Combination of the above Figures 1 to 7 , describes the method embodiment of the present application in detail, and the following is combined with Figure 8 and Fig. 9 , describes the device embodiment of the present application in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.
[0104] Figure 8 is a schematic structural diagram of an apparatus for adjusting transmit power provided in an embodiment of the present application, the apparatus can be applied to a first device, and the first device can be connected to a second device for communication. Figure 8 As shown, the device 800 includes a receiving unit 810 and an adjusting unit 820, which are specifically as follows:
[0105] A receiving unit 810 is configured to receive first information sent by the second device, where the first information is used to indicate a signal strength at a location of the second device; and
[0106] The adjustment unit 820 is configured to adjust the transmit power according to the first information.
[0107] Optionally, the apparatus further includes a sending unit 830, and before receiving the first information sent by the second device, the sending unit 830 is used to: send second information to the second device, where the second information is used to request the second device to send a signal strength of a location of the second device.
[0108] Optionally, the second information is carried in a vendor-defined element of a beacon frame.
[0109] Optionally, the first information is carried in a vendor-defined element of a probe request frame.
[0110] Optionally, the adjustment unit 820 is specifically used to adjust the transmission power according to the modulation and coding strategy MCS used when the first device sends information to the second device and the signal strength of the location of the second device.
[0111] Optionally, the adjustment unit 820 is specifically used to: determine a power adjustment value based on the difference between the minimum sensitivity corresponding to the MCS used when the first device sends information to the second device and the signal strength at the location of the second device; and adjust the transmission power according to the power adjustment value.
[0112] Optionally, multiple value ranges of the difference between the minimum sensitivity corresponding to the MCS used when the first device sends information to the second device and the signal strength at the location of the second device correspond to multiple gears, and the multiple gears correspond to multiple power adjustment values; the adjustment unit 820 is specifically used to: determine the gear corresponding to the value range of the difference between the minimum sensitivity corresponding to the MCS used when the first device sends information to the second device and the signal strength at the location of the second device as the target gear; determine the power adjustment value corresponding to the target gear as the target power adjustment value; and adjust the transmission power according to the target power adjustment value.
[0113] Optionally, after adjusting the transmit power according to the first information, the adjustment unit 820 is further used to: adjust the transmit power according to a modulation and coding strategy MCS used when the first device sends information to the second device.
[0114] Optionally, the adjusting unit 820 is specifically configured to adjust the transmit power by one or more of the following:
[0115] If the MCS used by the first device to send information to the second device becomes smaller, increasing the transmission power;
[0116] If the MCS used by the first device to send information to the second device becomes larger, then the transmission power adjustment is terminated;
[0117] If the MCS used by the first device to send information to the second device does not change, and the first device has not increased the transmission power, reducing the transmission power;
[0118] If the MCS used by the first device to send information to the second device does not change, and the first device has increased the transmission power at least once, the transmission power adjustment is terminated.
[0119] Optionally, the adjustment range of adjusting the transmit power according to the MCS used when the first device sends information to the second device is less than or equal to the adjustment range of adjusting the transmit power according to the first information.
[0120] Optionally, the first device is a network device, and the second device is a terminal device.
[0121] Fig. 9 It is a schematic structural diagram of a device provided in one embodiment of the present application. Fig. 9 The dotted line in the figure indicates that the unit or module is optional. The device 900 can be used to implement the method described in the above method embodiment. The device 900 can be a chip or a device for adjusting the transmission power.
[0122] The device 900 may include one or more processors 910. The processor 910 may support the device 900 to implement the method described in the foregoing method embodiment. The processor 910 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit (CPU). Alternatively, the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0123] The apparatus 900 may further include one or more memories 920. The memory 920 stores a program, which can be executed by the processor 910, so that the processor 910 executes the method described in the above method embodiment. The memory 920 may be independent of the processor 910 or integrated in the processor 910.
[0124] The apparatus 900 may further include a transceiver 930. The processor 910 may communicate with other devices or chips through the transceiver 930. For example, the processor 910 may transmit and receive data with other devices or chips through the transceiver 930.
[0125] The embodiment of the present application also provides a computer-readable storage medium for storing a program. The computer-readable storage medium can be applied to the device for adjusting the transmit power provided in the embodiment of the present application, and the program enables the computer to execute the method performed by the device for adjusting the transmit power in each embodiment of the present application.
[0126] The embodiment of the present application also provides a computer program product. The computer program product includes a program. The computer program product can be applied to the device for adjusting the transmission power provided in the embodiment of the present application, and the program enables the computer to execute the method performed by the device for adjusting the transmission power in each embodiment of the present application.
[0127] It should be understood that in the embodiments of the present application, "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B only based on A, and B can also be determined based on A and / or other information. The term "and / or" herein is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone. In addition, the character " / " herein generally indicates that the related objects before and after are in an "or" relationship. In the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0128] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0129] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0130] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be read by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0131] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for adjusting transmission power, applied to a first device, wherein the first device is in communication connection with a second device, characterized in that: The method comprises: The first device receives first information sent by the second device, where the first information is used to indicate a signal strength at a location of the second device; and The first device adjusts transmit power according to the first information.
2. The method according to claim 1, characterized in that Before the first device receives the first information sent by the second device, the method further includes: The first device sends second information to the second device, where the second information is used to request the second device to send a signal strength of a location where the second device is located.
3. The method according to claim 2, characterized in that The second information is carried in a vendor-defined element of the beacon frame.
4. The method according to claim 1, characterized in that: The first information is carried in a vendor-defined element of the probe request frame.
5. The method according to any one of claims 1 to 4, characterized in that The first device adjusting the transmit power according to the first information includes: The first device adjusts the transmission power according to the modulation and coding strategy MCS used when the first device sends information to the second device and the signal strength of the location of the second device.
6. The method according to claim 5, characterized in that The first device adjusting the transmit power according to the first information includes: The first device determines a power adjustment value according to a difference between a minimum sensitivity corresponding to an MCS used by the first device to send information to the second device and a signal strength at a location of the second device; The first device adjusts transmit power according to the power adjustment value.
7. The method according to claim 6, characterized in that Multiple ranges of values of the difference between the minimum sensitivity corresponding to the MCS used by the first device when sending information to the second device and the signal strength at the location of the second device correspond to multiple gears, and the multiple gears correspond to multiple power adjustment values; The first device determines the power adjustment value according to a difference between a minimum sensitivity corresponding to an MCS used when the first device sends information to the second device and a signal strength at a location of the second device, including: The first device determines, as the target gear position, a gear position corresponding to a value range of a difference between a minimum sensitivity corresponding to an MCS used by the first device to send information to the second device and a signal strength at a location of the second device; The first device determines the power adjustment value corresponding to the target gear position as the target power adjustment value; The first device adjusting the transmit power according to the power adjustment value includes: The first device adjusts transmit power according to the target power adjustment value.
8. The method according to any one of claims 1 to 4, characterized in that After the first device adjusts the transmit power according to the first information, the method further includes: The first device adjusts the transmission power according to the modulation and coding strategy MCS used when the first device sends information to the second device.
9. The method according to claim 8, characterized in that The first device adjusts the transmission power according to the MCS used when the first device sends information to the second device, including one or more of the following: If the MCS used by the first device to send information to the second device becomes smaller, the first device increases the transmission power; If the MCS used by the first device to send information to the second device becomes larger, the first device ends the transmission power adjustment; If the MCS used by the first device to send information to the second device does not change, and the first device has not increased the transmission power, the first device reduces the transmission power; If the MCS used by the first device to send information to the second device does not change, and the first device has increased the transmission power at least once, the first device ends the transmission power adjustment.
10. The method according to claim 9, characterized in that The adjustment range of the transmission power adjusted by the first device according to the MCS used when the first device sends information to the second device is less than or equal to the adjustment range of the transmission power adjusted by the first device according to the first information.
11. The method according to claim 1, characterized in that: The first device is a network device, and the second device is a terminal device.
12. A device for adjusting transmission power, applied to a first device, the first device being communicatively connected with a second device, characterized in that: The device comprises: a receiving unit, configured to receive first information sent by the second device, where the first information is used to indicate a signal strength at a location of the second device; and An adjustment unit is used to adjust the transmission power according to the first information.
13. A network device, characterized in that: It comprises a processor and a memory storing a program, wherein the processor is used to call the program from the memory so that the network device executes the method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: A program is stored thereon, the program causing a computer to execute the method according to any one of claims 1 to 11.
