A power supply power control method and routing device
By dynamically adjusting the power supply of the parent router, the problem of power waste in the parent-child router system is solved, achieving more efficient power management and cost optimization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-11-28
- Publication Date
- 2026-05-29
AI Technical Summary
In a parent-child routing system, the power supply of the parent router is usually designed to be greater than or equal to the sum of the maximum operating power of all devices. This results in excessive power consumption even when the devices are not operating at their maximum power simultaneously, increasing product costs.
By monitoring system power consumption in real time through routing devices, the rated power of ports can be dynamically adjusted to prioritize the power supply needs of sub-routers, and the power supply of non-sub-router devices can be reduced or the network speed of sub-routers can be limited when necessary to match the actual power consumption.
This effectively reduces unnecessary power consumption, lowers system costs, and ensures the normal operation of sub-routers and network performance.
Smart Images

Figure CN122120898A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, and in particular to a power supply control method and routing device. Background Technology
[0002] With the development of whole-house smart technology, the types of smart devices are gradually increasing, and the number of smart devices included in the same scenario is also growing. To improve network coverage and signal strength, a parent-child routing system can be used to provide network services. A parent-child routing system typically includes a parent router and one or more child routers. The parent router is responsible for connecting the network and can also be used to provide wireless fidelity (Wi-Fi) signal coverage in most areas, while the child routers are used to extend the network coverage area and solve the problem of weak signal areas or Wi-Fi dead zones.
[0003] In a parent-child routing system, the parent router is powered by an external power adapter, which in turn powers the child routers via Power Over Ethernet (PoE) technology. PoE technology, based on an Ethernet cabling infrastructure, allows the parent router to transmit data signals to the child routers while simultaneously providing DC power via network cables. To ensure the proper functioning of all child routers, the rated maximum power of the parent router's external power adapter typically needs to be greater than or equal to the sum of the maximum operating power of all devices in the parent-child routing system. However, in a typical parent-child routing system, not all devices operate at maximum power simultaneously, leading to unnecessary power demands and consequently increased product costs. Summary of the Invention
[0004] This application provides a power supply control method and a routing device, which provides a scheme for dynamically adjusting the power supply according to the actual power consumption of the routing system.
[0005] In a first aspect, this application provides a power supply control method, which can be executed by a first routing device, the first routing device being a control device in a routing system, the first routing device being connected to multiple devices and supplying power to the multiple devices, the multiple devices including a first device and at least one sub-router, the method comprising: the first routing device acquiring a first actual power consumption value of the routing system to which the first routing device belongs; when the first actual power consumption value is greater than or equal to a first preset threshold, the first routing device reducing the rated power supply of a first port, and maintaining the rated power supply of at least one port corresponding to the at least one sub-router; wherein, the first port is a port connected to the first device.
[0006] In the above method, when the remaining available power of the routing system is insufficient, the first routing device can prioritize reducing the power supply of the ports corresponding to non-sub-router devices to ensure the power supply of the sub-routers in the routing system. This provides a solution that flexibly adjusts the rated power of the ports according to the actual power consumption of the routing system, and prioritizes meeting the power supply needs of each sub-router in the routing system.
[0007] In one possible design, reducing the rated power of the first port includes: reducing the rated power of the first port until the actual power consumption is less than or equal to the first preset threshold, or until power supply to the first port is stopped. With this design, when adjusting the rated power of the first port, the first routing device can obtain the actual power consumption of the routing system in real time, and stop reducing the rated power of the first port when the actual power consumption is less than or equal to the first preset threshold. This provides the first device with the maximum power supply currently available from the parent router. Alternatively, if the actual power consumption of the routing system remains greater than or equal to the first preset threshold while the first router is reducing the rated power of the first port, the first routing system can stop power supply to the first port, thus prioritizing the power supply needs of at least one sub-router in the routing system.
[0008] In one possible design, reducing the rated power supply of the first port includes: reducing the rated power supply of the first port by a preset step size. With this design, the first routing device can adjust the rated power supply of the first port multiple times by a preset step size, thereby providing the first device with the maximum power supply that the current routing system can provide, thus reducing system power consumption while meeting the power supply needs of the first device as much as possible.
[0009] In one possible design, the method further includes: sending a rate-limiting command to a second device, the rate-limiting command instructing the second device to reduce the network speed; wherein the second device is one of the at least one sub-routers. With this design, if the first routing device in the routing system has insufficient remaining available power, the first routing device can also instruct the sub-routers to perform network rate limiting to reduce power consumption and ensure that all devices in the routing system can operate normally.
[0010] In one possible design, the second device is a sub-router among the at least one sub-router that meets preset conditions, which are related to at least one of the following: device location, number of network device connections, or service scenario; or the second device is a sub-router selected by the user among the at least one sub-router. With this design, when the routing system includes multiple sub-routers, the first routing device can sequentially send rate-limiting commands to multiple sub-routers, thereby gradually controlling the rate of the sub-routers to reduce power consumption and minimizing the impact of the power reduction process on device services.
[0011] In one possible design, the method further includes: obtaining a second actual power consumption value of the routing system; if the second actual power consumption value is less than or equal to the first preset threshold, sending a stop rate limiting command to the second device, the stop rate limiting command being used to instruct the second device to restore the network speed. With this design, when the actual power consumption value of the routing system is less than or equal to the first preset threshold, the first routing device can instruct the sub-router to stop rate limiting, thereby promptly restoring the normal operation of the sub-router and ensuring the normal operation of the sub-router's services.
[0012] In one possible design, the method further includes: obtaining a second actual power consumption value of the routing system; if the second actual power consumption value is less than or equal to the first preset threshold, increasing the rated power supply of the first port. With this design, when the actual power consumption value of the routing system is less than or equal to the first preset threshold, the first routing device can promptly restore normal power supply to the first port.
[0013] In one possible design, before obtaining the first actual power consumption value of the routing system to which the first routing device belongs, the method further includes: powering on the first routing device, configuring the rated power supply of multiple ports of the first routing device to a preset standby power, and enabling the power supply capability of the multiple ports. With this design, when the first routing device is initially powered on, the rated power supply of multiple ports can be set to the preset standby power to ensure that multiple devices connected to the multiple ports can be powered on normally.
[0014] In one possible design, after enabling the power supply capability of the plurality of ports, the method includes: obtaining the identifier of a second device connected to the second port among the plurality of ports; determining that the second device belongs to the at least one sub-router based on the identifier of the second device; and configuring the rated power supply of the second port to a preset power supply corresponding to the identifier of the second device. With this design, after the multiple devices are powered on, the first routing device can configure the rated power supply of the port corresponding to the sub-router to a preset power supply corresponding to the device identifier of the sub-router, thereby ensuring that the sub-router can obtain sufficient power support.
[0015] In one possible design, the identifier of the second device is the device type identifier of the second device. With this design, the first routing device can store the preset power supply corresponding to the device type identifier. Therefore, when the first routing device determines that a device is a sub-router based on the device type identifier, it can promptly configure the rated power supply of the ports connected to that sub-router to the preset power supply corresponding to the device type identifier.
[0016] In one possible design, after configuring the rated power of multiple ports of the first routing device to a preset standby power, the method includes: obtaining the identifier of a first device connected to the first port; determining, based on the identifier of the first device, that the first device does not belong to the at least one sub-router; obtaining a third actual power consumption value of the routing system; and if the third actual power consumption value is less than or equal to the first preset threshold, increasing the rated power of the first port. With this design, for a first device that does not belong to a sub-router, the first routing device can flexibly configure the rated power of the first port corresponding to that first device according to the actual power consumption value, thereby ensuring the power supply needs of the first device as much as possible without affecting the power supply power of at least one sub-router.
[0017] In one possible design, after reducing the rated power supply of the first port based on the obtained first actual power consumption value, the method further includes: receiving a new device access request, reducing the rated power supply of the first port, and / or sending a rate limiting command to a second device; wherein the new device access request is sent by a third device after connecting to the third port of the first routing device, and the second device is one of the at least one sub-routers.
[0018] Optionally, the first routing device reducing the rated power of the first port can be an operation of reducing the rated power again on the basis of the first routing device having already reduced the rated power of the first port, or it can be an operation of reducing the rated power again performed by the first routing device after reducing the rated power of the first port and restoring the rated power of the first port.
[0019] With this design, when a new device is connected to the routing system, the first routing device can reduce the rated power of the first port corresponding to the first device that is not a sub-router, and / or instruct at least one sub-router to limit the speed, thereby reserving power for the new device's access and ensuring that the new device can be successfully connected to the routing system.
[0020] In one possible design, after reducing the rated power supply of the first port and / or sending a speed limit command to the second device, the method further includes: enabling the power supply capability of the third port.
[0021] In one possible design, before reducing the rated power of the first port and / or sending a rate-limiting command to the second device, the method further includes: estimating the expected power consumption of the routing system after the third device is connected; and determining that the expected power consumption is greater than or equal to the first preset threshold. With this design, when a new device is connected to the routing system, the parent router can first estimate whether the current routing system's power consumption is sufficient to receive the new device. If the new device cannot be connected, the rated power of the first port corresponding to the first device (not a sub-router) can be adjusted, or network rate limiting can be applied to at least one sub-router to ensure that the new device can successfully connect to the routing system without causing power supply anomalies due to a sudden increase in power consumption.
[0022] In one possible design, after enabling the power supply capability of the third port, the method further includes: when the third device is a sub-router, setting the rated power supply of the third port to a preset power supply corresponding to the third device.
[0023] Optionally, the preset power supply power corresponding to the third device can be the preset power supply power corresponding to the device type identifier of the third device.
[0024] In one possible design, after enabling the power supply capability of the third port, the method further includes: when the third device is not a sub-router and cannot simultaneously power the first device and the third device at a preset standby power, sending a first request message, the first request message being used to request the user to confirm retaining either the first device or the third device in the routing system; and, based on user operation, retaining the power supply capability of the third port, or disabling the power supply capability of the third port and enabling the power supply capability of the first port. This design addresses scenarios where adding a new device to the routing system results in the first device's power being disabled to accommodate the third device. If the third device is not a sub-router, a request can be sent to the user's electronic device to remind the user to choose whether to retain the first device or the third device in the routing system. This provides a PoE power management method that better meets user needs and improves the user experience.
[0025] In one possible design, the rate limiting command includes a rate limiting parameter indicating the degree to which the network rate is reduced. The rate limiting parameter is determined based on the actual power consumption value exceeding the first preset threshold and the power consumption increase per unit time.
[0026] Secondly, this application provides a routing device comprising multiple functional modules; the multiple functional modules interact to implement the method executed by the first routing device in any of the above aspects and their respective embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.
[0027] Thirdly, this application provides a routing device, including at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the routing device is running, the at least one processor executes any of the above aspects and the method executed by the first routing device in its various embodiments.
[0028] Fourthly, this application also provides a computer program product containing instructions that, when the computer program product is run on a computer, cause the computer to perform the method executed by the first routing device in any of the above aspects and embodiments.
[0029] Fifthly, this application also provides a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to perform the method executed by the first routing device in any of the above aspects and embodiments.
[0030] Sixthly, this application also provides a chip for reading a computer program stored in a memory and executing the method executed by the first routing device in any of the above aspects and embodiments.
[0031] Seventhly, this application also provides a chip system including a processor for supporting a computer device in implementing the methods executed by the first routing device in any of the above aspects and their embodiments. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be composed of chips or may include chips and other discrete devices. Attached Figure Description
[0032] Figure 1 This application provides a schematic diagram of the architecture of a routing system.
[0033] Figure 2 A schematic diagram of a power supply control method provided in an embodiment of this application;
[0034] Figure 3 A schematic diagram of a power supply control method provided in an embodiment of this application;
[0035] Figure 4A schematic diagram of a power supply control method provided in an embodiment of this application;
[0036] Figure 5 This application provides a schematic diagram of the structure of a parent router according to an embodiment of the present application.
[0037] Figure 6 A flowchart of a power supply control method provided in an embodiment of this application;
[0038] Figure 7 A flowchart of a power supply control method provided in an embodiment of this application;
[0039] Figure 8 This is a possible structural example diagram of a routing device provided in an embodiment of this application. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings. In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" and "second" may explicitly or implicitly include one or more of that feature.
[0041] It should be understood that in the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple.
[0042] A parent-child routing system typically includes a parent router and one or more child routers. The parent router is responsible for connecting the network and can also be used to provide Wi-Fi signal coverage for most areas, while the child routers are used to extend the network coverage and solve the problem of weak signal areas or Wi-Fi dead zones.
[0043] In a parent-child routing system, the parent router is powered by an external power adapter, which in turn powers the child routers via PoE technology. PoE, based on an Ethernet cabling infrastructure, allows the parent router to transmit data signals to the child routers while simultaneously providing DC power via Ethernet cables. To ensure the proper functioning of all child routers, the rated maximum power of the parent router's external power adapter typically needs to be greater than or equal to the sum of the maximum operating power of all devices in the system. For example, the sum of the maximum operating power of all devices in a parent-child routing system is the sum of the maximum operating power of the parent router and the maximum operating power of all child routers. However, in a typical parent-child routing system, all devices do not operate at maximum power simultaneously. Setting the parent router's power adapter to the sum of the maximum operating power of all devices in the system would increase unnecessary power demands, thereby increasing product costs.
[0044] To address the aforementioned problems, this application provides a power supply control method, which can be applied to routing systems, such as... Figure 1 This is a schematic diagram of the architecture of a routing system provided in an embodiment of this application, with reference to... Figure 1 In this embodiment of the application, the routing system may include a parent router and at least one child router, such as... Figure 1 The routing system, exemplified by a parent router, child router 1, and child router 2, is described below. The parent router acts as the access point controller (AC) within the routing system, centrally managing the access points (APs) within the system. Figure 1 Each sub-router is an access point (AP). Optionally, the parent router and at least one sub-router in the routing system can form a preset device set. This preset device set can be a package determined by the device manufacturer, device type, etc., and the device manufacturer can sell the combination of parent and sub-routers to users in package form. Alternatively, this preset device set can be a user-defined combination of devices, such as a user setting their own parent router and at least one sub-router into a preset device set. Figure 1 In the default configuration, the set of devices includes a main router, sub-router 1, and sub-router 2. Additionally, refer to... Figure 1 In this embodiment of the application, the routing system may also include other devices powered by the parent router via PoE, such as... Figure 1 Device 3 in the example does not belong to the aforementioned preset device set. In this embodiment, such devices are referred to as "devices outside the set". For example, devices outside the set can be routers, cameras, video intercoms, etc.
[0045] refer to Figure 1The external power adapter of the main router is used for... Figure 1 The diagram illustrates a power supply for a main router, at least one sub-router, and external devices. The main router includes multiple ports, and sub-routers or external devices can connect to these ports to access the main router. For example, a sub-router or external device can connect to a port on the main router via a network cable to access the main router. The main router can provide network access and power to the sub-routers or external devices simultaneously via the network cable connection. The main router can adjust the rated power of each port, where the rated power is the maximum power the main router can provide through that port. For example, if the main router sets the rated power of port 1 to X, then the maximum power that a device connected to port 1 can request is X. It can be understood that the main router supplies power to the device connected to port 1 based on the requested power. During the operation of the routing system, the actual power supplied to port 1 is less than or equal to the power value X.
[0046] In this embodiment, the parent router can obtain the actual power consumption value of the routing system according to a preset period. When the parent router determines that the actual power consumption value is greater than or equal to a first preset threshold, if the routing system includes a first device that does not belong to the preset device set, the parent router can reduce the rated power supply of the port corresponding to the first device until the actual power consumption value is lower than the first preset threshold, or until the power supply to the first port corresponding to the first device is stopped. If the actual power consumption value is still greater than or equal to the first threshold device after the parent router stops supplying power to the first port corresponding to the first device, the parent router sends a rate limiting command to at least one child router in the preset device set. After receiving the rate limiting command, the child router can control the network speed to reduce power consumption. Through this design, this embodiment provides a scheme for dynamically adjusting the power supply according to the actual power consumption of the routing system. When the parent router in the routing system has insufficient remaining available power, it can prioritize reducing the power supply of devices outside the preset device set to ensure the power supply of devices within the preset device set. Furthermore, if the parent router in the routing system still has insufficient remaining available power, the parent router can also instruct the child routers to perform network rate limiting to reduce power consumption and ensure that each device can operate normally.
[0047] The power supply control method provided in this application embodiment can be applied to routing system startup scenarios, routing system operation scenarios, and scenarios where new devices are added to the routing system. The power supply control methods in various scenarios provided in this application embodiment are further described below.
[0048] In this embodiment, the preset device set may include a parent router and at least one child router. The at least one child router may correspond to at least one device type. The parent router may store device identifiers of the child routers in the preset device set, preset power supplies, and preset standby power supplies corresponding to each device identifier. The device identifier may be a device type identifier, and the preset standby power supply may be an empirical value determined by a technician or based on the standby power supply of the child routers of at least one device type in the preset device set. Optionally, the preset device set may be a combination of parent and child router sets from the same equipment manufacturer, or it may be a user-defined combination of devices. Users can manage the device types of the child routers included in the preset device set through the parent router's settings interface, such as adding / deleting device type identifiers for child routers.
[0049] When the main router is powered on by connecting the power adapter, if multiple devices requiring power are connected to multiple ports of the main router, the main router can configure the rated power of each of the multiple ports to the preset standby power. When the main router powers on, it can set the rated power of the multiple ports according to the stored preset standby power. After setting the rated power of the multiple ports to the preset standby power, the main router enables the power supply capability of the multiple ports.
[0050] When the main router is powered on, multiple devices connected to multiple ports are powered on. At this time, the main router can obtain device identifiers from multiple devices. Optionally, the device identifier can be a device type identifier. For example, the main router can send a request message to each device connected to a port. This request message is used to obtain the device identifier. After receiving the request message, the device connected to the main router can send its device identifier to the main router. In the following description, the device identifier is described as a device type identifier. In practice, the device identifier can also be other identifiers that can distinguish electronic devices. The comparison of the embodiments in this application is not limited.
[0051] The following explanation uses a first device connected to the first port and a second device connected to the second port of the parent router as examples. As described in the previous embodiments, the parent router can store at least one device type identifier for each sub-router in a preset device set. For example, if the parent router obtains a first device type identifier for the first device, it can compare this identifier with the stored device type identifiers of the sub-routers in the preset device set. If the stored device type identifiers do not include the first device type identifier, the parent router can determine that the first device does not belong to the preset device set. Similarly, if the parent router obtains a second device type identifier for the second device, it can compare this identifier with the stored device type identifiers of the sub-routers in the preset device set. If the stored device type identifiers include the first device type identifier, the parent router can determine that the second device is a sub-router in the preset device set.
[0052] In some examples, if the parent router determines that the second device is a sub-router in a preset device set, the parent router can determine the preset power supply corresponding to the second device type identifier stored in the parent router based on the second device type identifier. The preset power supply can be the maximum operating power of the second device determined according to the attributes of the second device. The parent router can adjust the rated power supply of the second port to the preset power supply corresponding to the second device type identifier to ensure the normal operation of the second device connected to the second port.
[0053] In other examples, if the parent router determines that the first device does not belong to the preset device set, the parent router can determine the actual power consumption of the current routing system. If the actual power consumption is less than or equal to a first preset threshold, it indicates that the remaining available power supply of the current routing system is sufficient, and the parent router can increase the rated power supply of the first port. Optionally, if the parent router has stored the preset power supply corresponding to the device type identifier of the first device, the parent router can adjust the rated power supply of the first port to the preset power supply corresponding to the device type identifier of the first device; if the parent router has not stored the maximum operating power corresponding to the device type identifier of the first device, the parent router can adjust the rated power supply of the first port to the preset power supply corresponding to the device type identifier of any sub-router in the preset device set stored by the parent router. If the actual power consumption obtained by the parent router is greater than or equal to the first preset threshold, it indicates that the remaining available power supply of the current routing system is insufficient, and the parent router can no longer adjust the rated power supply of the first port, that is, maintain the rated power supply of the first port at the preset standby power. After a preset time, the parent router can obtain the actual power consumption of the routing system again. If the actual power consumption is still greater than or equal to the first preset threshold at this time, the parent router can reduce the rated power supply of the first port. Optionally, the mother router can adjust the rated power of the first port downwards in preset steps until the power supply to the first port is stopped.
[0054] For example, Figure 2 This is a schematic diagram of a power supply control method provided in an embodiment of this application. (Reference) Figure 2 The routing system includes a parent router, child router 1, child router 2, and device 3 (not part of a preset device set). The parent router, child router 1, and child router 2 belong to the preset device set. Child router 1 is connected to port 1 of the parent router, child router 2 is connected to port 2 of the parent router, and device 3 is connected to port 3 of the parent router. (Reference) Figure 2 In step (a), when the external power adapter of the main router is powered on, the main router configures the rated power supply of ports 1-3 to the preset standby power and enables the power supply capability of ports 1-3. The main router obtains the device type identifiers of sub-router 1, sub-router 2, and device 3 respectively, and determines that sub-router 1 and sub-router 2 belong to the preset device set, while device 3 does not belong to the preset device set, based on the device type identifiers of sub-router 1, sub-router 2, and device 3. (See reference) Figure 2 In (b), the rated power of the mother router's port 1 is set to the preset power corresponding to the device type identifier of the child router 1, and the rated power of the mother router's port 2 is set to the preset power corresponding to the device type identifier of the child router 2.
[0055] refer to Figure 2In step (c), the parent router determines the actual power consumption of the current routing system. If the actual power consumption is less than or equal to the first preset threshold, the parent router can set the rated power of port 3 to the preset power corresponding to the device type identifier of device 3. If the parent router does not store the preset power corresponding to the device type identifier of device 3, the parent router can set the rated power of port 3 to the preset power corresponding to the device type identifier of sub-router 1 or the preset power corresponding to the device type identifier of sub-router 2.
[0056] refer to Figure 2 In step (d), the parent router determines the actual power consumption of the current routing system. If the actual power consumption is greater than or equal to the first preset threshold, the parent router can maintain the rated power of port 3 at the preset standby power. Furthermore, if the parent router obtains the actual power consumption of the routing system again after a preset time, and the actual power consumption is still greater than or equal to the first preset threshold, the parent router can reduce the rated power of port 3.
[0057] It should be noted that after the parent router obtains the actual power consumption value of the current routing system, it can also determine the remaining available power supply based on the actual power consumption value. Therefore, in the above embodiment, the parent router's determination of whether the actual power consumption value is less than the first preset threshold can also be the parent router's determination of whether the remaining available power supply is greater than the second preset threshold. In practice, the above two conditions can be substituted for each other, or the electronic device can also determine whether the remaining available power supply is insufficient by setting other thresholds related to the actual power consumption value. This application embodiment does not limit this. In the following embodiments, the step of the parent router determining whether the actual power consumption value is less than the first preset threshold can also be replaced by the parent router determining whether the remaining available power supply is greater than the second preset threshold. Repeated parts will not be described again.
[0058] Using the above method, when the main router initially powers on, it can set the rated power of multiple ports to the preset standby power to ensure that all devices connected to these ports can power on normally. After the devices are powered on, the main router can configure the rated power of the corresponding ports of the sub-routers to the preset power of the sub-routers to ensure that the sub-routers receive sufficient power. For devices outside the preset device set, the main router can flexibly control the rated power of the ports corresponding to those devices to ensure the power needs of those devices are met as much as possible without affecting the power supply of the sub-routers within the preset device set.
[0059] 2. Routing system operation scenarios
[0060] During the operation of the routing system, the actual power consumption of the routing system changes with the working status of each device in the routing system. For example, when a user's electronic device connects to a sub-router to connect to Wi-Fi, the power consumption of the sub-router increases, and the actual power consumption of the entire routing system also changes. The main router can monitor the actual power consumption of the routing system. For example, the main router can obtain the actual power consumption of the routing system at a preset period. When the actual power consumption is greater than or equal to a first preset threshold, if the routing system includes a first device that does not belong to a preset device set, the main router can determine the first port corresponding to the first device, and the main router can reduce the rated power of the first port. Furthermore, the main router can maintain the rated power of at least one port corresponding to at least one sub-router. After a preset time, the main router can obtain the actual power consumption of the routing system again. If the actual power consumption is still greater than or equal to the first preset threshold, the main router can continue to reduce the rated power of the first port. Optionally, the main router can adjust the rated power of the first port downwards by a preset step size until the actual power consumption is less than or equal to the first preset threshold, or until the power supply to the first port is stopped.
[0061] It should be noted that in actual application scenarios, due to network cable consumption, the measured value of the rated power supply of the main router may be slightly lower than the configured rated power supply. Therefore, when maintaining the rated power supply of the port unchanged, the actual measured value of the rated power supply may also have a certain difference. However, for the scheme of adjusting the rated power supply of the main router port, the measured value of the rated power supply of the port after adjustment is significantly different from the measured value of the rated power supply of the port before adjustment. The error caused by the measurement method, measuring instrument or network cable consumption does not constitute a scheme different from the power supply control method provided in the embodiments of this application.
[0062] In some embodiments, when the actual power consumption of the routing system is large, or the first device has critical services, or the mother router can adjust the rated power of the port corresponding to at least one sub-router according to the user's instructions to reduce the power consumption of the routing system. The scheme for the mother router to adjust the rated power of the port corresponding to at least one sub-router can refer to the above-described scheme for the mother router to adjust the rated power of the first port, and the repeated parts will not be described again.
[0063] In this embodiment, if the parent router stops supplying power to the first port corresponding to the first device, and then obtains the actual power consumption value of the routing system again, if the actual power consumption value is still greater than or equal to a first preset threshold, the parent router can send a rate-limiting command to at least one sub-router belonging to a preset device set in the routing system. This rate-limiting command instructs the sub-router to control the network speed. For example, the rate-limiting command may include a rate-limiting parameter, which indicates the degree to which the network speed is reduced. For instance, the rate-limiting command could instruct the network speed to be limited to 80% of the maximum speed. Optionally, the parent router can calculate the rate-limiting parameter based on the actual power consumption value exceeding the first preset threshold and the power consumption increase per unit time. After receiving the rate-limiting command from the parent router, the sub-router can control the network speed according to the command. For example, if the network speed is a Wi-Fi speed, the sub-router can adjust the Wi-Fi duty cycle after receiving the rate-limiting command to control the Wi-Fi speed.
[0064] In one optional implementation, when the routing system includes multiple sub-routers belonging to a preset device set, the parent router can send rate-limiting commands to all sub-routers in the routing system. Alternatively, the parent router can send rate-limiting commands to the multiple sub-routers sequentially in ascending order of priority. The priority of the multiple sub-routers can be determined based on parameters such as their location, the number of network device connections, and the service scenario. For example, in a smart home scenario, a sub-router placed in the living room has a higher priority than one placed in a secondary bedroom; similarly, a sub-router with a higher priority is one with a larger number of Wi-Fi devices connected via Wi-Fi; and a sub-router performing critical services has a higher priority. In some embodiments, the priorities of the multiple sub-routers can also be user-defined.
[0065] After a preset time has elapsed since the parent router sent the rate-limiting command, the parent router can again obtain the actual power consumption value of the routing system. If the actual power consumption value is less than or equal to a first preset threshold, the parent router will no longer instruct the child routers to limit the rate. If the actual power consumption value is greater than or equal to the first preset threshold, the parent router can send a rate-limiting command to at least one child router. The rate-limiting parameters in this command are determined by the parent router based on the actual power consumption value obtained again. For example, the parent router may instruct at least one child router to further limit the network speed to 60% of the maximum speed. If the actual power consumption value continues to be greater than or equal to the first preset threshold, the parent router can repeatedly instruct at least one child router to limit the rate until the difference between the actual power supply of the child router and the preset standby power is less than a third preset threshold. This indicates that the child router's working state is close to standby mode, and if the rate limiting continues, the child router will not be able to work normally. At this point, the parent router will no longer instruct the child router to limit the rate.
[0066] In some embodiments of this application, the parent router continuously monitors the actual power consumption of the routing system. If the actual power consumption obtained by the parent router is less than or equal to a first preset threshold, the parent router can sequentially instruct the sub-routers to restore the speed and increase the rated power of the first port to restore the routing system to a normal power supply state. Optionally, the parent router can sequentially instruct multiple sub-routers to stop speed limiting in descending order of priority. If the actual power consumption of the routing system is still less than the first preset threshold, the parent router can adjust the rated power of the first port to restore the normal power supply to the first device connected to the first port.
[0067] For example, Figure 3 This is a schematic diagram of a power supply control method provided in an embodiment of this application. (Reference) Figure 3 The routing system includes a parent router, child router 1, child router 2, and device 3 (not part of a preset device set). The parent router, child router 1, and child router 2 belong to the preset device set. Child router 1 is connected to port 1 of the parent router, child router 2 is connected to port 2 of the parent router, and device 3 is connected to port 3 of the parent router. (Reference) Figure 3 In (a) of the routing system, it is assumed that during operation, the rated power of port 1 is the preset power corresponding to the device type identifier of sub-router 1, the rated power of port 2 is the preset power corresponding to the device type identifier of sub-router 2, and the rated power of port 3 is the preset power corresponding to the device type identifier of device 3. (See reference...) Figure 3 In (b), the mother router determines the actual power consumption of the current routing system. If the actual power consumption is greater than or equal to the first preset threshold, the mother router reduces the rated power of port 3 until port 3 stops supplying power.
[0068] refer to Figure 3 In step (c), if port 3 stops receiving power, the parent router determines the actual power consumption of the current routing system. If the actual power consumption is still greater than or equal to the first preset threshold, the parent router sends a rate limiting command to child router 1 and child router 2. Child router 1 and child router 2 reduce the network speed according to the rate limiting command.
[0069] In this way, when the remaining available power of the mother router in the routing system is insufficient, it can prioritize reducing the power supply of devices outside the preset device set to ensure the power supply of devices within the preset device set. Furthermore, if the remaining available power of the mother router in the routing system is still insufficient, the mother router can also instruct the sub-routers to perform network speed limiting to reduce power consumption and ensure that each device can operate normally.
[0070] 3. New device addition scenario in the routing system
[0071] In some embodiments of this application, during the operation of the routing system, users may need to connect new devices, such as connecting a third device to the third port of the main router. This third port can be any idle port of the main router, and the third device also requires power from the main router via PoE technology. Upon receiving a new device connection request, the main router can estimate the expected power consumption of the routing system after the third device is connected. For example, the main router can obtain the current actual power consumption of the routing system and use the preset standby power as the power of the third device to calculate the expected power consumption. If the expected power consumption is less than or equal to a first preset threshold, the main router can configure the rated power of the third port to the preset standby power and start the third port to power the third device. If the expected power consumption is greater than or equal to the first preset threshold, and the routing system includes a first device that does not belong to the preset device set, the main router can determine the first port corresponding to the first device and reduce the rated power of that first port. After a preset time, the main router can re-determine the expected power consumption of the routing system. If the expected power consumption is still greater than or equal to the first preset threshold, the main router can continue to reduce the rated power of the first port. Optionally, the mother router can adjust the rated power of the first port downwards in preset steps until the power supply to the first port is stopped.
[0072] If the parent router stops supplying power to the first port corresponding to the first device, and then re-determines the expected power consumption of the routing system, and if this expected power consumption is still greater than or equal to a first preset threshold, the parent router can send a rate-limiting command to at least one child router belonging to a preset set of devices in the routing system. This rate-limiting command instructs the child router to control the network speed. For example, the rate-limiting command may include a rate-limiting parameter indicating the degree to which the network speed is reduced; for instance, the rate-limiting command could instruct the network speed to be limited to 80% of the maximum speed. Optionally, the parent router can calculate the rate-limiting parameter based on the expected power consumption exceeding the first preset threshold and the power increase per unit time. After receiving the rate-limiting command from the parent router, the child router can control the network speed according to the command. For example, if the network speed is a Wi-Fi speed, the child router can adjust the Wi-Fi duty cycle after receiving the rate-limiting command to control the Wi-Fi speed. Optionally, when the routing system includes multiple sub-routers belonging to a preset device set, the parent router can simultaneously instruct multiple sub-routers to perform rate limiting, or the parent router can send rate limiting instructions to multiple sub-routers in order of priority from low to high. For specific implementation, please refer to the aforementioned embodiments, and repeated details will not be described again.
[0073] The parent router can instruct multiple child routers belonging to a preset set of devices in the routing system to limit their speed until the expected power consumption value determined by the parent router is less than or equal to a first preset threshold. Once the parent router determines that the expected power consumption value is less than or equal to the first preset threshold, it can configure the rated power of the third port to the preset standby power and start the third port to supply power to the third device.
[0074] In some embodiments, if the third device has not powered on after a preset time since the parent router received the new device access request, the parent router can shut down the power supply to the third port and instruct multiple sub-routers to restore network speed and restore normal power supply to the first port. Optionally, if the third device has not powered on after a preset time since the parent router received the new device access request, it means that no matter how the parent router adjusts the rated power of the first port or the network speed of the sub-routers, it cannot provide the preset standby power to the third port, or the parent router has set the rated power of the third port to the preset standby power, but the preset standby power cannot meet the power supply needs of the third device. In this case, the parent router can stop the power supply to the third port and refuse the third device from joining the current routing system.
[0075] In some embodiments of this application, after the third device is powered on, the parent router can obtain the device type identifier of the third device. The parent router can determine whether the third device is a sub-router belonging to a preset device set based on the device type identifier. If the third device is a sub-router belonging to the preset device set, the parent router can set the rated power of the third port to the preset power corresponding to the device type identifier of the third device. If the third device does not belong to the preset device set, and the parent router has stopped powering the second port, the parent router can send a first request message. This first request message is used to request the user to confirm that the first device or the third device is retained in the routing system. For example, the parent router can send the first request message to the server. After receiving the first request message, the server can send the first request message to the user's electronic device. Alternatively, when a Wi-Fi connection is established between the parent router and the user's electronic device, the parent router can send the first request message to the user's electronic device through the Wi-Fi connection. Upon receiving the first request message, the management application on the user's electronic device can push a reminder message. This reminder message informs the user that the current main router can only support power supply to one of the first and third devices. The user can choose to retain the first or third device in the management application. The management application can instruct the main router through the server to retain the power supply capability of the first or third port. Alternatively, the user can select the device to retain based on the reminder message. For example, if the user disconnects the network cable connection between the first device and the main router, the main router can continue to supply power to the third device through the third port. Or, if the user disconnects the network cable connection between the third device and the main router, the main router can turn off the power supply capability of the third port and turn on the power supply capability of the first port, thereby restoring power supply to the first device through the first port.
[0076] Optionally, if the parent router retains the power supply capability of the first or third port according to the user's operation, and the parent router detects that the actual power consumption of the routing system is less than or equal to a first preset threshold, and the remaining available power supply of the parent router is greater than or equal to a preset standby power, the parent router can send a second request message. This second request message can be used to indicate that the parent router currently supports continued device access. Optionally, the parent router can send the second request message through a server or directly to the user's electronic device. After the user's electronic device receives the second request message, the management application on the user's electronic device can push a reminder message, which is used to remind the user that the parent router can currently support the access of another device. Taking the parent router retaining the power supply capability of the third port and disabling the power supply capability of the first port as an example, the reminder message pushed by the user's management application can be used to remind the user that the parent router currently supports the access of the first device. The user can manually choose to enable the power supply capability of the first port, or if the user has manually disconnected the network cable connection between the first device and the parent router, the user can reconnect the first device to the parent router via the network cable after viewing the reminder message. In this way, when adding a new device to the routing system, if the new device fails to join or the power supply to the old device is turned off to accommodate the new device, the main router can continuously monitor the actual power consumption of the routing system. When the main router supports re-adding the device, it can notify the user through the management application in the user's electronic device, providing a PoE power management method that better meets the user's needs and improves the user experience.
[0077] For example, Figure 4 This is a schematic diagram of a power supply control method provided in an embodiment of this application. (Reference) Figure 4 The routing system includes a parent router, child router 1, child router 2, and device 3 (not part of a preset device set). The parent router, child router 1, and child router 2 belong to the preset device set. Child router 1 is connected to port 1 of the parent router, child router 2 is connected to port 2 of the parent router, and device 3 is connected to port 3 of the parent router. (Reference) Figure 4 In (a) of the diagram, during the operation of the routing system, device 4 connects to port 4 of the parent router. The parent router receives a new device access request. Assume that at this time, the rated power of port 1 is the preset power corresponding to the device type identifier of sub-router 1, the rated power of port 2 is the preset power corresponding to the device type identifier of sub-router 2, and the rated power of port 3 is the preset power corresponding to the device type identifier of device 3. The parent router calculates the expected power consumption after device 4 is connected to the routing system, using the rated power of port 3 as the preset standby power. (Reference) Figure 4In (b) of the above, if the expected power consumption is less than the first preset threshold, the main router can configure the rated power of port 4 to the preset standby power and start port 4 to supply power to device 4. (See reference) Figure 4 In step (c), if the expected power consumption is greater than or equal to the first preset threshold, the mother router reduces the rated power of port 3 until port 3 stops supplying power.
[0078] refer to Figure 4 In step (d), if port 3 stops receiving power, the main router determines the expected power consumption of the routing system. If the expected power consumption is still greater than or equal to the first preset threshold, the main router sends a rate limiting command to sub-router 1 and sub-router 2. Sub-router 1 and sub-router 2 reduce the network speed according to the rate limiting command.
[0079] refer to Figure 4 In (e), after sub-router 1 and sub-router 2 reduce the network speed, the mother router determines the expected power consumption value of the routing system. If the expected power consumption value is less than or equal to the first preset threshold, the mother router configures the rated power of port 4 to the preset standby power and enables the power supply capability of port 4. At this time, device 4 is connected to the mother router through port 4.
[0080] refer to Figure 4 In step (f), the mother router obtains the device type identifier of device 4 and determines that device 4 belongs to the preset device set based on the device type identifier of device 4. The mother router sets the rated power of port 4 to the preset power corresponding to the device type identifier of device 4.
[0081] It should be noted that after the power supply control method for adding a new device in the routing system provided in this embodiment, if the routing system can connect to the new device, the power supply control method for the routing system after connecting the new device can refer to the power supply control method for the routing system operation scenario in the foregoing embodiments of this application, and the repeated parts will not be described again.
[0082] In this way, when a new device is connected to the routing system, the parent router can first estimate whether the current power consumption of the routing system can accept the new device. If the new device cannot be connected, the power supply of the devices outside the set in the routing system can be adjusted, or the network speed of the sub-routers belonging to the preset device set in the routing system can be further limited to ensure that the new device can be connected to the routing system smoothly and will not cause power supply abnormalities in the routing system due to a sudden increase in power consumption.
[0083] Based on the power supply control method provided in the embodiments of this application, Figure 5 This is a schematic diagram of the structure of a parent router provided in an embodiment of this application, with reference to... Figure 5The parent router may include a power consumption monitoring module 501, a PoE management module 502, and a speed limiting module 503. The power consumption monitoring module 501 monitors the power consumption of the routing system to which the parent router belongs, and determines whether the actual power consumption value is greater than or equal to a first preset threshold to determine if the remaining available power supply of the routing system is insufficient. The PoE control module 502 configures the rated power supply of multiple ports of the parent router. The speed limiting module 503 determines the speed limiting parameters for instructing the sub-routers in the routing system to perform Wi-Fi speed limiting, and sends speed limiting commands to the sub-routers.
[0084] based on Figure 5 The architecture of the parent router shown is as follows: Figure 6 A flowchart of a power supply control method provided in this application embodiment is shown. Figure 6 In the provided embodiments, the routing system includes a parent router and at least one child router, and also includes a first device. Both the at least one child router and the first device require power from the parent router via PoE (Power over Ethernet) technology. This method can be executed by the parent router and at least one child router. Figure 6 The example shown is a sub-router (second device). (Refer to...) Figure 6 The method includes the following steps:
[0085] S601: The power adapter connected to the main router starts to power on. The main router configures the rated power of multiple ports of the connected devices to the preset standby power and enables the power supply capability of multiple ports.
[0086] Optionally, S601 can be made by Figure 5 The PoE management module 502 in the parent router shown is executed.
[0087] S602: The mother router obtains the device type identifiers of multiple devices connected to multiple ports, and determines, based on the device type identifiers, that the first device connected to the first port does not belong to at least one sub-router, and that the second device connected to the second port belongs to at least one sub-router.
[0088] In this embodiment, the parent router and at least one child router belong to a preset device set. The parent router can maintain the device type identifiers of the child routers included in the preset device set. Thus, the parent router can determine whether a device belongs to at least one child router or whether a device belongs to the preset device set based on the obtained device type identifiers.
[0089] S603: The mother router adjusts the rated power of the second port to the preset power corresponding to the device type identifier of the second device.
[0090] The mother router stores the preset power supply corresponding to the device type identifier of the second device.
[0091] Alternatively, S603 can be manufactured by Figure 5 The PoE management module 502 in the parent router shown is executed.
[0092] S604: The mother router determines the actual power consumption of the routing system. If the actual power consumption is less than or equal to the first preset threshold, the rated power of the first port is increased.
[0093] S605: The mother router determines the actual power consumption of the routing system according to a preset cycle. If the actual power consumption is greater than or equal to the first preset threshold, the rated power of the first port is reduced until the first port stops supplying power.
[0094] Optionally, the steps in S605 of determining the actual power consumption value and judging whether the actual power consumption value is greater than the first preset threshold are provided by... Figure 5 The step of adjusting the rated power supply of the first port, executed by the power consumption monitoring module 501 in the mother router shown, is performed by... Figure 5 The PoE management module in the parent router shown is executed.
[0095] S606: The mother router determines the actual power consumption of the routing system according to a preset period. If the actual power consumption is greater than or equal to the first preset threshold, it sends a rate limiting command to the second device.
[0096] The rate limiting command is used to instruct the sub-router to control the network speed. The rate limiting command may include rate limiting parameters, which indicate the extent to which the sub-router reduces the network speed.
[0097] Optionally, the steps in S606 of determining the actual power consumption value and judging whether the actual power consumption value is greater than the first preset threshold are handled by... Figure 5 The step of sending a rate-limiting command to the child router, executed by the power consumption monitoring module 501 in the parent router shown, can be performed by... Figure 5 The rate limiting module 503 in the parent router shown is executed.
[0098] S607: The second device reduces the network speed according to the rate limiting command.
[0099] S608: The mother router determines the actual power consumption of the routing system according to a preset cycle. If the actual power consumption is less than or equal to the first preset threshold, it sends a stop speed limiting command to the second device and enables the power supply capability of the first port.
[0100] Optionally, the steps in S608 of determining the actual power consumption value and judging whether the actual power consumption value is greater than the first preset threshold are handled by... Figure 5The step of sending a rate-limiting command to the child router, executed by the power consumption monitoring module 501 in the parent router shown, can be performed by... Figure 5 The step of enabling power supply to the first port, executed by the speed limiting module 503 in the shown mother router, can be performed by... Figure 5 The PoE management module in the parent router shown is executed.
[0101] S609: The second device restores the network speed to the maximum speed.
[0102] S610: When the mother router receives a new device access request from a third device, it estimates the expected power consumption of the routing system after the third device is connected. If the expected power consumption is greater than or equal to the first preset threshold, it reduces the rated power of the first port until the first port stops supplying power.
[0103] Optionally, the steps in S610 of determining the expected power consumption value and judging whether the expected power consumption value is greater than the first preset threshold are performed by... Figure 5 The step of adjusting the rated power supply of the first port, executed by the power consumption monitoring module 501 in the mother router shown, is performed by... Figure 5 The PoE management module in the parent router shown is executed.
[0104] S611: The mother router re-estimates the expected power consumption of the routing system after the third device is connected. If the expected power consumption is greater than or equal to the first preset threshold, it sends a rate limiting command to the second device.
[0105] Optionally, the steps in S611 of determining the expected power consumption value and judging whether the expected power consumption value is greater than the first preset threshold are performed by... Figure 5 The step of sending a rate-limiting command to the child router, executed by the power consumption monitoring module 501 in the parent router shown, can be performed by... Figure 5 The rate limiting module 503 in the parent router shown is executed.
[0106] S612: The second device reduces the network speed according to the rate limiting command.
[0107] S613: The mother router re-estimates the expected power consumption of the routing system after the third device is connected, determines that the expected power consumption is less than or equal to the first preset threshold, configures the rated power supply of the third port to the preset standby power, and enables the power supply capability of the third port.
[0108] Optionally, the steps in S613 of determining the expected power consumption value and judging whether the expected power consumption value is greater than the first preset threshold are performed by... Figure 5 The power consumption monitoring module 501 in the mother router shown executes the steps of configuring the rated power of the third port and enabling the power supply capability of the third port. Figure 5 The PoE management module in the parent router shown is executed.
[0109] S614: The mother router obtains the device type identifier of the third device, determines that the third device belongs to at least one sub-router based on the device type identifier of the third device, and configures the rated power of the third port to the preset power corresponding to the device type identifier of the third device.
[0110] The mother router stores the preset power supply corresponding to the device type identifier of the third device.
[0111] Alternatively, S614 can be manufactured by Figure 5 The PoE management module 502 in the parent router shown is executed.
[0112] It should be noted that, Figure 6 The steps described are merely examples and not limitations. In practice, the mother router can execute the corresponding steps according to the business scenario. For specific implementation, please refer to the foregoing embodiments of this application, which will not be repeated here.
[0113] Based on the same concept, embodiments of this application also provide a power supply control method, which can be executed by a first routing device. The first routing device is a control device in a routing system, such as the mother router in the foregoing embodiments of this application. The first routing device is connected to multiple devices and supplies power to the multiple devices, including the first device and at least one sub-router. Figure 7 A flowchart of a power supply control method provided in an embodiment of this application is shown below. Figure 7 The method includes the following steps:
[0114] S701: The first routing device obtains the first actual power consumption value of the routing system to which the first routing device belongs.
[0115] S702: When the first actual power consumption value is greater than or equal to the first preset threshold, the first routing device reduces the rated power of the first port and maintains the rated power of at least one port corresponding to at least one sub-router.
[0116] The first port is the port connected to the first device.
[0117] It should be noted that this application Figure 7 The power supply control method shown can be referred to in the above embodiments of this application for specific implementation, and repeated parts will not be described again.
[0118] It is understood that, in order to achieve the functions of the mother router in the above embodiments, this application also provides a routing device, which includes hardware and / or software structures corresponding to the execution of various functions. Those skilled in the art should readily recognize that, based on the units and method steps described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.
[0119] Figure 8 This is a possible structural example diagram of a routing device provided in an embodiment of this application. This routing device can be used to implement the function of the mother router in the above embodiments, and thus can also achieve the beneficial effects of the above embodiments.
[0120] refer to Figure 8 The routing device 800 may include a processor 801, a memory 802, and a communication interface 803. The processor 801, memory 802, and communication interface 803 are coupled together. Optionally, the memory 802 may be used to store instructions executed by the processor 801, input data required for the processor 801 to execute instructions, or data generated after the processor 801 executes instructions. The communication interface 803 may be a transceiver or an input / output interface.
[0121] Optional, see Figure 8 The processor 801, the memory 802, and the communication interface 803 are interconnected via a bus 804. The bus 804 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0122] The processor 801 in the routing device 800 can be used to implement the processing functions of the parent router in the above embodiments. For example, the processor 801 can be used to perform the above... Figure 6 or Figure 7 The steps performed by the parent router in the illustrated embodiment, for example, are implemented as follows: Figure 5 The diagram illustrates the functions of the power consumption monitoring module 501, the PoE management module 502, and the rate limiting module 503 in the parent router. The communication interface 803 can be used to implement the transmit and receive functions of the parent router in the above embodiments.
[0123] It is understood that the processor 801 in the embodiments of this application may 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, transistor logic devices, hardware components, or any combination thereof. A general-purpose processor may be a microprocessor or any conventional processor.
[0124] This application Figure 8 The memory 802 can be volatile memory or non-volatile memory, or may include both. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. It should be noted that the memory in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0125] Based on the above embodiments, this application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the methods described in the embodiments of this application.
[0126] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a computer, causes the computer to perform the methods described in the embodiments of this application.
[0127] Based on the above embodiments, this application also provides a chip for reading computer programs stored in a memory to implement the methods described in the embodiments of this application.
[0128] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the methods described in the embodiments of this application. In one possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. This chip system may be composed of chips or may include chips and other discrete devices.
[0129] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0130] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0131] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0132] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0133] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A power supply control method, characterized in that, The method, applied to a first routing device, which is a control device in a routing system, is connected to and supplies power to multiple devices, including the first device and at least one sub-router, comprises: Obtain the first actual power consumption value of the routing system to which the first routing device belongs; When the first actual power consumption value is greater than or equal to the first preset threshold, the rated power of the first port is reduced, and the rated power of at least one port corresponding to the at least one sub-router is maintained; wherein, the first port is the port connected to the first device.
2. The method as described in claim 1, characterized in that, The reduction of the rated power supply of the first port includes: Reduce the rated power supply of the first port until the actual power consumption value is less than or equal to the first preset threshold, or until the power supply to the first port is stopped.
3. The method as described in claim 2, characterized in that, The reduction of the rated power supply of the first port includes: The rated power supply of the first port is reduced by a preset step size.
4. The method according to any one of claims 1-3, characterized in that, The method further includes: Send a rate-limiting command to the second device, the rate-limiting command being used to instruct the second device to reduce the network speed; The second device is one of the at least one sub-routers.
5. The method as described in claim 4, characterized in that, The second device is a sub-router among the at least one sub-router that meets preset conditions, the preset conditions being related to at least one of the following: device location, number of Wi-Fi device connections, or service scenario; or The second device is the sub-router selected by the user among the at least one sub-router.
6. The method as described in claim 4 or 5, characterized in that, The method further includes: Obtain the second actual power consumption value of the routing system. If the second actual power consumption value is less than or equal to the first preset threshold, send a stop rate limiting command to the second device. The stop rate limiting command is used to instruct the second device to restore the network speed.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: Obtain the second actual power consumption value of the routing system. If the second actual power consumption value is less than or equal to the first preset threshold, increase the rated power supply of the first port.
8. The method according to any one of claims 1-7, characterized in that, Before obtaining the first actual power consumption value of the routing system to which the first routing device belongs, the method further includes: When the first routing device is powered on, the rated power of multiple ports of the first routing device is configured to the preset standby power, and the power supply capability of the multiple ports is enabled.
9. The method as described in claim 8, characterized in that, After enabling power supply to the plurality of ports, the method includes: Obtain the identifier of the second device connected to the second port among the plurality of ports; Based on the identifier of the second device, it is determined that the second device belongs to the at least one sub-router, and the rated power of the second port is configured to the preset power corresponding to the identifier of the second device.
10. The method as described in claim 9, characterized in that, The identifier of the second device is the device type identifier of the second device.
11. The method as described in claim 9 or 10, characterized in that, After configuring the rated power supply of multiple ports of the first routing device to a preset standby power, the method includes: Obtain the identifier of the first device connected to the first port, and determine that the first device does not belong to the at least one sub-router based on the identifier of the first device; Obtain the third actual power consumption value of the routing system; If the third actual power consumption value is less than or equal to the first preset threshold, the rated power supply of the first port is increased.
12. The method according to any one of claims 1-11, characterized in that, After reducing the rated power supply of the first port based on the obtained first actual power consumption value, the method further includes: Upon receiving a new device access request, the rated power of the first port is reduced, and / or a speed limiting command is sent to the second device; wherein the new device access request is sent by the third device after it connects to the third port of the first routing device, and the second device is one of the at least one sub-routers.
13. The method as described in claim 12, characterized in that, After reducing the rated power supply of the first port and / or sending a speed limiting command to the second device, the method further includes: Enable the power supply capability of the third port.
14. The method as described in claim 12 or 13, characterized in that, Before reducing the rated power supply of the first port and / or sending a rate-limiting command to the second device, the method further includes: Estimate the expected power consumption of the routing system after it is connected to the third device; The expected power consumption value is determined to be greater than or equal to the first preset threshold.
15. The method as described in claim 13, characterized in that, After enabling the power supply capability of the third port, the method further includes: When the third device is a sub-router, the rated power of the third port is set to the preset power of the third device.
16. The method as described in claim 13, characterized in that, After enabling the power supply capability of the third port, the method further includes: When the third device is not a sub-router and cannot simultaneously power the first device and the third device at a preset standby power, a first request message is sent. The first request message is used to request the user to confirm that the first device or the third device is retained in the routing system. Depending on the user's operation, the power supply capability of the third port can be retained, or the power supply capability of the third port can be turned off and the power supply capability of the first port can be turned on.
17. The method as described in claim 3, characterized in that, The rate limiting instruction includes rate limiting parameters, which are used to indicate the degree to which the network rate is reduced. The rate limiting parameters are determined based on the value by which the first actual power consumption exceeds the first preset threshold and the power consumption increase value per unit time.
18. A routing device, characterized in that, It includes at least one processor coupled to at least one memory, the at least one processor being configured to read a computer program stored in the at least one memory to perform the method as described in any one of claims 1-17.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-17.