A power adjustment method, device, readable storage medium and network equipment
By dynamically adjusting the transmission power based on the number of network port connections of the network device, the problem of excessive power adapter output current when the network device is under full load at high temperature is solved, and performance loss is reduced without exceeding the limit.
Patent Information
- Application Number
- CN202310770786.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-27
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2043-06-27
AI Technical Summary
Existing technologies address the issue of excessive power adapter output current when network devices are under high temperature and full load with multiple network ports connected by directly reducing the transmission power, resulting in excessive performance loss of the network devices.
The transmit power of the network device is dynamically adjusted based on the number of network ports currently connected to ensure that the power adapter output current does not exceed the limit, while reducing performance loss.
By dynamically adjusting the transmission power of network devices, the power adapter output current is kept within limits, thus reducing the performance loss of network devices.
Smart Images

Figure CN116582916B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of wireless communication technology, and in particular relates to a power regulation method, apparatus, computer-readable storage medium, and network device. Background Technology
[0002] Network devices typically use low-power power adapters. Therefore, when network devices are under high temperature, full load, and multiple network ports connected, ensuring that the output current of the power adapter does not exceed the limit becomes an important issue. In existing technologies, common adjustment methods are to directly reduce the transmission power of the network device or switch the network device's operating mode, causing the network device to intermittently switch between working and sleep states. Although the adjustment methods in existing technologies can solve the problem of excessive output current of the power adapter under high temperature and full load, they will lead to excessive performance loss of the network device. Summary of the Invention
[0003] In view of this, embodiments of this application provide a power adjustment method, apparatus, computer-readable storage medium, and network device to solve the problem of excessive wireless performance loss in existing network devices when multiple network ports are connected.
[0004] A first aspect of this application provides a power regulation method, which may include:
[0005] Get the current number of network port connections on the network device;
[0006] Determine the target maximum transmit power of the network device; wherein, the target maximum transmit power is the maximum transmit power corresponding to the current number of network port connections;
[0007] The transmission power of the network device is adjusted according to the target's maximum transmission power.
[0008] In one specific implementation of the first aspect, determining the target maximum transmit power of the network device includes:
[0009] The maximum transmission power of the target is determined according to a preset power correspondence.
[0010] The power correspondence records the maximum transmit power corresponding to different numbers of network port connections.
[0011] In one specific implementation of the first aspect, the maximum transmit power recorded in the power correspondence corresponding to different numbers of network port connections is the transmit power under full load operation under different numbers of network port connections.
[0012] In one specific implementation of the first aspect, before determining the target maximum transmission power according to a preset power correspondence, the method further includes:
[0013] With a specified number of network port connections, the network device operates at full load with its rated transmission power; wherein, the specified number of network port connections can be any number of network port connections.
[0014] Obtain the output current of the power adapter of the network device;
[0015] If the output current of the power adapter is greater than the preset current threshold, the transmission power of the network device will be gradually reduced according to the preset adjustment step size until the output current of the power adapter is less than or equal to the current threshold.
[0016] If the output current of the power adapter is less than or equal to the current threshold, then the current transmit power of the network device is determined as the maximum transmit power corresponding to the specified number of network port connections.
[0017] In one specific implementation of the first aspect, adjusting the transmission power of the network device according to the target maximum transmission power includes:
[0018] Set the signal adjustment level of the network device to the level corresponding to the maximum transmission power of the target.
[0019] In one specific implementation of the first aspect, adjusting the transmission power of the network device according to the target maximum transmission power includes:
[0020] Set the power in the target power register of the network device to the target maximum transmit power.
[0021] In one specific implementation of the first aspect, the transmission power of the network device includes data frame transmission power, management frame transmission power, and / or control frame transmission power.
[0022] A second aspect of the embodiments of this application provides a power regulation device, which may include:
[0023] The quantity acquisition module is used to obtain the current number of network port connections of the network device;
[0024] A power determination module is used to determine the target maximum transmit power of the network device; wherein the target maximum transmit power is the maximum transmit power corresponding to the current number of network port connections;
[0025] A power adjustment module is used to adjust the transmission power of the network device according to the target maximum transmission power.
[0026] In one specific implementation of the second aspect, the power determination module includes:
[0027] The determination submodule is used to determine the maximum transmission power of the target according to a preset power correspondence.
[0028] The power correspondence records the maximum transmit power corresponding to different numbers of network port connections.
[0029] In one specific implementation of the second aspect, the maximum transmit power recorded in the power correspondence corresponding to different numbers of network port connections is the transmit power under full load operation under different numbers of network port connections.
[0030] In one specific implementation of the second aspect, the power determination module may further include:
[0031] The full-load operation submodule is used to operate the network device at full load with the rated transmission power under a specified number of network port connections; wherein, the specified number of network port connections can be any number of network port connections.
[0032] A current acquisition submodule is used to acquire the output current of the power adapter of the network device;
[0033] The power reduction submodule is used to gradually reduce the transmission power of the network device according to a preset adjustment step size if the output current of the power adapter is greater than a preset current threshold, until the output current of the power adapter is less than or equal to the current threshold.
[0034] The maximum power determination submodule is used to determine the current transmit power of the network device as the maximum transmit power corresponding to the specified number of network port connections if the output current of the power adapter is less than or equal to the current threshold.
[0035] In one specific implementation of the second aspect, the power regulation module includes:
[0036] The gear setting submodule is used to set the signal adjustment gear of the network device to the gear corresponding to the maximum transmission power of the target.
[0037] In one specific implementation of the second aspect, the power regulation module includes:
[0038] The power setting submodule is used to set the power in the target power register of the network device to the target maximum transmit power.
[0039] In one specific implementation of the second aspect, the transmission power of the network device includes data frame transmission power, management frame transmission power, and / or control frame transmission power.
[0040] A third aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the above-described power regulation methods.
[0041] A fourth aspect of this application provides a network device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above-described power regulation methods.
[0042] A fifth aspect of this application provides a computer program product that, when run on a network device, causes the network device to perform the steps of any of the above-described power regulation methods.
[0043] The beneficial effects of this application embodiment compared with the prior art are as follows: The method described in this application embodiment obtains the current number of network port connections of the network device; determines the target maximum transmit power of the network device; wherein, the target maximum transmit power is the maximum transmit power corresponding to the current number of network port connections; and adjusts the transmit power of the network device according to the target maximum transmit power. Through this application, the transmit power of the network device can be dynamically adjusted according to the current number of network port connections, thereby minimizing the performance loss of the network device while ensuring that the output current of the power adapter does not exceed the limit. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a flowchart of one embodiment of a power regulation method in this application.
[0046] Figure 2 This is a schematic diagram showing the power correspondence of the four network port devices in this embodiment of the application;
[0047] Figure 3 This is a schematic diagram illustrating the adjustment of data frames based on the number of network port connections in an embodiment of this application;
[0048] Figure 4This is a structural diagram of one embodiment of a power regulation device according to the present application.
[0049] Figure 5 This is a schematic block diagram of a network device according to an embodiment of this application. Detailed Implementation
[0050] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0051] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0052] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0053] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0054] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."
[0055] Furthermore, in the description of this application, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0056] In this embodiment, the network device can be a router or access point (AP), which typically has multiple network ports. As the number of network port connections increases, the power consumption of the network device also increases. When the power consumption of the network device reaches its rated power, it is considered to be under full load. At this time, the output current of the power adapter will continuously increase with the rise in temperature, and may even exceed the overcurrent point of the power adapter, thereby causing the network device to restart. Here, full load means that the chip temperature of the network device reaches a preset threshold and packets are transmitted at the maximum transmission power of the network device. At this time, multiple local area network (LAN) ports and wide area network (WAN) ports are running current.
[0057] To reduce the output current of the power adapter when the network device is under high temperature and full load, and to ensure that it does not exceed the overcurrent point of the power adapter, the existing technology adopts a "one-size-fits-all" approach when adjusting the transmission power of the network device. That is, it does not consider the number of network port connections, but directly sets the transmission power of the network device to a fixed value. Although this method can ensure that the output current of the power adapter does not exceed the overcurrent point of the power adapter when the network device is under high temperature and full load, it does not take into account that when the number of network port connections decreases, the transmission power of the network device does not increase accordingly, resulting in excessive loss of wireless performance of the network device.
[0058] Based on this, this application provides a power adjustment method that dynamically adjusts the transmission power of the network device according to the number of network port connections, thereby ensuring that the output current of the power adapter of the network device does not exceed the overcurrent point of the power adapter, while minimizing the loss of wireless performance.
[0059] This application can be applied to network devices with at least two network ports, such as network devices with two network ports, network devices with three network ports, network devices with four network ports, or network devices with more than one network port. This application does not specifically limit the number of network ports of a network device. The embodiments of this application take a network device with four network ports as an example.
[0060] Please see Figure 1 One embodiment of a power regulation method in this application may include:
[0061] Step S101: Obtain the current number of network port connections of the network device.
[0062] In one specific implementation of this application embodiment, the network port of the network device can be determined to be in a connected state based on whether the network port is occupied. If the network port of the network device is occupied, it is considered to be in a connected state. If the network port of the network device is not occupied, it is considered to be in a disconnected state. The number of occupied network ports is the current number of network port connections of the network device in this application embodiment.
[0063] Step S102: Determine the target maximum transmit power of the network device.
[0064] The target maximum transmit power is the maximum transmit power corresponding to the current number of network port connections.
[0065] Before determining the target maximum transmit power of the network device, a power mapping relationship needs to be pre-set. This relationship records the maximum transmit power corresponding to different numbers of network port connections. The maximum transmit power is the maximum transmit power achievable by the network device when the output current of the power adapter does not exceed the power adapter's overcurrent limit. Since the maximum transmit power under these conditions varies depending on the number of network port connections, it is necessary to record the maximum transmit power corresponding to different numbers of network port connections.
[0066] In one specific implementation of this application, the maximum transmit power recorded in the power correspondence relationship corresponding to different numbers of network port connections is the transmit power of the network device operating at full load under different numbers of network port connections. The process of setting the power correspondence relationship is as follows: First, the network device is operated at full load under different numbers of network port connections. Based on the test results, the maximum transmit power corresponding to different numbers of network port connections is determined. Then, the number of network port connections and their corresponding maximum transmit power are recorded in the power correspondence relationship.
[0067] For ease of description, this section uses any number of network port connections (denoted as the specified number of network port connections) as an example to explain in detail the process of setting the power correspondence. The network device is operated at full load with its rated transmit power. The output current of the network device's power adapter is obtained at this time. The output current of the power adapter is compared with a preset current threshold. The current threshold can be set according to the overcurrent point of the power adapter, for example, set to the overcurrent point, 0.9 times the overcurrent point, or 0.8 times the overcurrent point, etc. This embodiment does not specifically limit this, but the overcurrent point is preferred. If the output current of the power adapter is greater than the current threshold, the transmit power of the network device is gradually reduced according to a preset adjustment step size until the output current of the power adapter is less than or equal to the current threshold. If the output current of the power adapter is less than or equal to the current threshold, the current transmit power of the network device is determined as the maximum transmit power corresponding to the specified number of network port connections. By iterating through each number of network port connections in the above manner, the number of network port connections and their corresponding maximum transmit power can be obtained, and each correspondence is recorded in the power correspondence. The adjustment step size can be set according to actual conditions, and this embodiment does not specifically limit this.
[0068] Taking a network device with two network ports as an example, the network device first operates at full load with its rated transmission power. The output current of the network device's power adapter is then obtained. If the output current of the network device's power adapter is greater than the current threshold of the network device's power adapter, the transmission power of the network device is reduced by one adjustment step, and the output current of the network device's power adapter is obtained again after this reduction in transmission power. If the output current of the network device's power adapter is still greater than the current threshold, the transmission power of the network device is further reduced by the first adjustment step until the output current of the network device's power adapter is less than or equal to the current threshold. Suppose that when the transmission power of the network device is reduced to a certain value, the output current of the network device's power adapter is less than or equal to the current threshold. At this point, this value is taken as the maximum transmission power corresponding to the number of network ports connected to the network device being two, and the correspondence between the number of network ports connected to two and this value is recorded in the power correspondence relationship.
[0069] After obtaining the current number of network port connections of the network device, the maximum transmission power corresponding to the number of network port connections that is the same as the current number of network port connections can be found in the preset power correspondence, and this maximum transmission power is determined as the target maximum transmission power of the network device.
[0070] Taking the first, second, third, and fourth transmit powers as the maximum transmit powers corresponding to different numbers of network port connections, the power correspondence is as follows: Figure 2As shown, the maximum transmission power corresponding to four network ports is the first transmission power, the maximum transmission power corresponding to three network ports is the second transmission power, the maximum transmission power corresponding to two network ports is the third transmission power, and the maximum transmission power corresponding to one network port is the fourth transmission power. When the network device has four network ports, the maximum transmission power corresponding to it in the power mapping is the first transmission power, and the target maximum transmission power of the network device is the first transmission power. When the network device has three network ports, the maximum transmission power corresponding to it in the power mapping is the second transmission power, and the target maximum transmission power of the network device is the second transmission power. When the network device has two network ports, the maximum transmission power corresponding to it in the power mapping is the third transmission power, and the target maximum transmission power of the network device is the third transmission power. When the network device has one network port, the maximum transmission power corresponding to it in the power mapping is the fourth transmission power, and the target maximum transmission power of the network device is the fourth transmission power. The first, second, third, and fourth transmission powers increase sequentially. It should be noted that the above content is only an example in the embodiment of this application. The maximum transmission power corresponding to the number of network ports of the network device should be set according to the actual situation, and this embodiment of the application does not make specific limitations in this regard.
[0071] Step S103: Adjust the transmission power of the network device according to the target's maximum transmission power.
[0072] The transmission power of a network device includes the transmission power of data frames, the transmission power of management frames, and / or the transmission power of control frames. Therefore, adjusting the transmission power of a network device means adjusting the transmission power of data frames, management frames, and / or control frames.
[0073] When adjusting the transmission power of a network device, the target maximum transmission power is compared with the transmission power of the network device. If the target maximum transmission power is less than the transmission power of the network device, the transmission power of the network device is adjusted to the target maximum transmission power; if the target maximum transmission power is greater than the transmission power of the network device, the transmission power of the network device is adjusted back.
[0074] Taking a data frame with its transmission power adjusted to the fifth transmission power as an example, where the fifth transmission power is greater than the third transmission power but less than the fourth transmission power, let's assume the network device's transmission power is the fifth transmission power when it has only one network port connection. When the number of network port connections increases from one to three, the network device's target maximum transmission power becomes the second transmission power. Since this target maximum transmission power is less than the data frame transmission power, the data frame transmission power needs to be reduced to the second transmission power. When the number of network port connections decreases from three to two, the network device's target maximum transmission power increases to the third transmission power. Since this target maximum transmission power is still less than the data frame transmission power, the data frame transmission power is set to the third transmission power. When the number of network port connections decreases from two to one, the network device's target maximum transmission power increases to the fourth transmission power. Since this target maximum transmission power is greater than the data frame transmission power, the data frame transmission power is reverted back to the fifth transmission power. The adjustment methods for management frame transmission power and control frame transmission power are the same as those for data frame transmission power and will not be repeated here.
[0075] In one specific implementation of this application, a method for adjusting the transmission power of a network device is also provided. The first adjustment method is to adjust the transmission power of the network device according to the signal adjustment level of the network device, and the second adjustment method is to adjust the transmission power of the network device according to the target power register of the network device.
[0076] When adjusting the transmission power of a network device based on its signal adjustment level, multiple signal adjustment levels can be preset. These levels progressively decrease the transmission power in descending order, with a preset difference between each adjacent adjustment level. This preset difference can be set according to actual conditions, and this embodiment does not impose a specific limitation. When the network device detects a change in the number of network port connections, it can adjust the signal adjustment level to change the transmission power accordingly. For example, when the number of network port connections decreases, the signal adjustment level can be increased to increase the transmission power; conversely, when the number of network port connections increases, the signal adjustment level can be decreased to reduce the transmission power. This method allows for finer-grained transmission power adjustment, effectively improving the accuracy of transmission power adjustment.
[0077] When the network device's transmit power is adjusted based on its target power register, if the number of network port connections exceeds a set threshold, the network device can read the target maximum transmit power from the power correspondence upon power-up, set it in the power register, and then adjust the transmit power through the power register. For example, taking a threshold of one network port connection as an example, when the number of network port connections is one, the network device will not adjust the power register. When the number of network port connections increases from one to two, the network device can read the target maximum transmit power corresponding to the number of network port connections being two, use this target maximum transmit power to modify the power set in the power register, and then adjust the transmit power through the power register.
[0078] It should be noted that the above adjustment method is only a preferred embodiment in the embodiments of this application. In practical applications, other methods can also be used to adjust the transmission power of network devices, and the embodiments of this application do not specifically limit this.
[0079] In summary, the method described in this application obtains the current number of network port connections of a network device; determines the target maximum transmit power of the network device; wherein the target maximum transmit power is the maximum transmit power corresponding to the current number of network port connections; and adjusts the transmit power of the network device according to the target maximum transmit power. Through this application, the transmit power of the network device can be dynamically adjusted according to the current number of network port connections, thereby minimizing the performance loss of the network device while ensuring that the output current of the power adapter does not exceed the limit.
[0080] It should be understood that the sequence number of each step in the above embodiments does not imply 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 this application.
[0081] Corresponding to the power regulation method described in the above embodiments, Figure 4 This illustration shows a structural diagram of one embodiment of a power regulation device provided in this application.
[0082] In this embodiment, a power regulation device may include:
[0083] The quantity acquisition module 401 is used to acquire the current number of network port connections of the network device.
[0084] The power determination module 402 is used to determine the target maximum transmit power of the network device; wherein the target maximum transmit power is the maximum transmit power corresponding to the current number of network port connections;
[0085] The power adjustment module 403 is used to adjust the transmission power of the network device according to the target maximum transmission power.
[0086] In one specific implementation of this application embodiment, the power determination module includes:
[0087] The determination submodule is used to determine the maximum transmission power of the target according to a preset power correspondence.
[0088] The power correspondence records the maximum transmit power corresponding to different numbers of network port connections.
[0089] In one specific implementation of this application, the maximum transmit power recorded in the power correspondence corresponding to different numbers of network port connections is the transmit power under full load operation under different numbers of network port connections.
[0090] In one specific implementation of this application embodiment, the power determination module may further include:
[0091] The full-load operation submodule is used to operate the network device at full load with the rated transmission power under a specified number of network port connections; wherein, the specified number of network port connections can be any number of network port connections.
[0092] A current acquisition submodule is used to acquire the output current of the power adapter of the network device;
[0093] The power reduction submodule is used to gradually reduce the transmission power of the network device according to a preset adjustment step size if the output current of the power adapter is greater than a preset current threshold, until the output current of the power adapter is less than or equal to the current threshold.
[0094] The maximum power determination submodule is used to determine the current transmit power of the network device as the maximum transmit power corresponding to the specified number of network port connections if the output current of the power adapter is less than or equal to the current threshold.
[0095] In one specific implementation of this application embodiment, the power regulation module includes:
[0096] The gear setting submodule is used to set the signal adjustment gear of the network device to the gear corresponding to the maximum transmission power of the target.
[0097] In one specific implementation of this application embodiment, the power regulation module includes:
[0098] The power setting submodule is used to set the power in the target power register of the network device to the target maximum transmit power.
[0099] In one specific implementation of this application, the transmission power of the network device includes data frame transmission power, management frame transmission power, and / or control frame transmission power.
[0100] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0101] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0102] Figure 5 A schematic block diagram of a network device provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown.
[0103] like Figure 5 As shown, the network device 5 in this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, it implements the steps in the various power regulation method embodiments described above, for example... Figure 1 Steps S101 to S103 are shown. Alternatively, when the processor 50 executes the computer program 52, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 4 The functions of modules 401 to 403 are shown.
[0104] For example, the computer program 52 may be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to complete this application. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program 52 in the network device 5.
[0105] Those skilled in the art will understand that Figure 5 This is merely an example of network device 5 and does not constitute a limitation on network device 5. It may include more or fewer components than shown, or combine certain components, or different components. For example, network device 5 may also include input / output devices, network access devices, buses, etc.
[0106] The processor 50 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0107] The memory 51 can be an internal storage unit of the network device 5, such as a hard drive or memory of the network device 5. The memory 51 can also be an external storage device of the network device 5, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the network device 5. Furthermore, the memory 51 can include both internal and external storage units of the network device 5. The memory 51 is used to store the computer program and other programs and data required by the network device 5. The memory 51 can also be used to temporarily store data that has been output or will be output.
[0108] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0109] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0110] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0111] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0112] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0113] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0114] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable storage medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.
[0115] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A power regulation method, characterized in that, include: Get the current number of network port connections on the network device; Determine the target maximum transmit power of the network device; wherein, the target maximum transmit power is the maximum transmit power corresponding to the current number of network port connections; The transmission power of the network device is adjusted according to the target's maximum transmission power.
2. The power regulation method according to claim 1, characterized in that, Determining the target maximum transmit power of the network device includes: The maximum transmission power of the target is determined according to a preset power correspondence. The power correspondence records the maximum transmit power corresponding to different numbers of network port connections.
3. The power regulation method according to claim 2, characterized in that, The maximum transmit power recorded in the power correspondence, corresponding to different numbers of network port connections, is the transmit power under full load operation under different numbers of network port connections.
4. The power regulation method according to claim 3, characterized in that, Before determining the target maximum transmission power according to a preset power correspondence, the process also includes: With a specified number of network port connections, the network device operates at full load with its rated transmission power; wherein, the specified number of network port connections can be any number of network port connections. Obtain the output current of the power adapter of the network device; If the output current of the power adapter is greater than the preset current threshold, the transmission power of the network device will be gradually reduced according to the preset adjustment step size until the output current of the power adapter is less than or equal to the current threshold. If the output current of the power adapter is less than or equal to the current threshold, then the current transmit power of the network device is determined as the maximum transmit power corresponding to the specified number of network port connections.
5. The power regulation method according to claim 1, characterized in that, The step of adjusting the transmission power of the network device according to the target maximum transmission power includes: Set the signal adjustment level of the network device to the level corresponding to the maximum transmission power of the target.
6. The power regulation method according to claim 1, characterized in that, The step of adjusting the transmission power of the network device according to the target maximum transmission power includes: Set the power in the target power register of the network device to the target maximum transmit power.
7. The power regulation method according to any one of claims 1 to 6, characterized in that, The transmission power of the network device includes data frame transmission power, management frame transmission power, and / or control frame transmission power.
8. A power regulation device, characterized in that, include: The quantity acquisition module is used to obtain the current number of network port connections of the network device; A power determination module is used to determine the target maximum transmit power of the network device; wherein the target maximum transmit power is the maximum transmit power corresponding to the current number of network port connections; A power adjustment module is used to adjust the transmission power of the network device according to the target maximum transmission power.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the power regulation method as described in any one of claims 1 to 7.
10. A network device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the power regulation method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
5G intelligent router and power adjusting method thereof
CN116095804A