This application relates to the computer field, and in particular, to a master node, a slave node, a power supply method, and a related device.
With rapid development of internet of things technologies, unified bus access is to become a development trend. Without changing a cabling architecture, transmitting data and a direct current through a bus can be not restricted by the environment, and reduce costs of construction, cabling, and operations and maintenance. Such a manner of providing online power supply for a device is gradually promoted and applied.
In a conventional online power supply method, regardless of a power over Ethernet (PoE) technology or a power over data line (PoDL) technology, although data and a direct current can be simultaneously transmitted, the method can work in only a point-to-point topology, and online power supply in a point-to-multipoint scenario cannot be implemented.
This application provides a master node, a slave node, a power supply method, and a related device. The master node and the slave node are included in a point-to-multipoint topology. The master node connects only a path to one slave node in a same time period, to be specific, the point-to-multipoint topology is converted into a time-division point-to-point topology, to obtain a power of each slave node one by one, and powers on the slave node based on powers of slave nodes and an output power of the master node. This implements online power supply in the point-to-multipoint topology.
A first aspect of this application provides a master node, where the master node and N first slave nodes are included in a point-to-multipoint topology, N≥2, and N is an integer. The master node can implement the following functions:
It may be learnt from the foregoing technical solution that, this application has the following advantages: The master node and the slave node are included in the point-to-multipoint topology. The master node connects only a path to one slave node in a same time period, to be specific, the point-to-multipoint topology is converted into a time-division point-to-point topology, to obtain a power of each slave node one by one, and powers on the slave node based on powers of slave nodes and the output power of the master node. This implements online power supply in the point-to-multipoint topology.
In a possible implementation of the first aspect, the master node includes a control unit, and the control unit connects the links between the master node and all of the N first slave nodes in the time-division manner. It should be noted that, the control unit in this application may be a microcontroller unit (MCU), or may be another device that can control link connection, for example, a central processing unit (CPU) or an application-specific integrated circuit (ASIC). The control unit may be selected based on a requirement of an actual application. This is not specifically limited herein.
In a possible implementation of the first aspect, the master node includes a power sourcing equipment (PSE) chip. The master node may obtain the respective powers of the N first slave nodes one by one via the PSE chip. Specifically, when the master node is connected to each first slave node, the PSE chip performs power detection on each first slave node, which includes sending a detection voltage to each first slave node, to determine that the slave node includes a standard powered device (PD). Then, the PSE chip sends a classification voltage to each first slave node, and receives a feedback current from each first slave node, where the feedback current is determined by each first slave node based on the classification voltage sent by the PSE chip. The PSE chip determines a power level of each first slave node based on the feedback current of each first slave node, and the power level actually reflects the power of the first slave node.
In this application, power detection is performed on the first slave node via the PSE chip, and the first slave node is powered on only when it is determined that a powered device included in the first slave node is the standard powered device. This avoids a case in which a power supply system may be damaged when a non-standard powered device is powered on. Therefore, security and reliability of the technical solution are improved.
In a possible implementation of the first aspect, the master node includes the control unit, and the control unit may also be configured to obtain the respective powers of the N first slave nodes one by one. Specifically, when the master node is connected to each first slave node, the control unit performs power negotiation with each first slave node, and determines the power of each first slave node based on a result of the power negotiation. The power negotiation may be implemented based on interaction of an upper-layer protocol packet, for example, a link layer discovery protocol (LLDP) packet. In addition, the power negotiation may alternatively be implemented based on interaction of another upper-layer protocol packet, for example, a serial communication classification protocol (SCCP) packet, or a protocol packet that is defined by a vendor and that is configured to perform power negotiation. A specific type of the upper-layer protocol packet is selected based on an actual requirement. This is not specifically limited herein.
In addition, in this application, the master node obtains the power of each first slave node in a plurality of possible manners, and the manners are applicable to a plurality of scenarios. This improves flexibility of the technical solution of this application.
In a possible implementation of the first aspect, when the master node includes the control unit and the PSE chip, the master node may alternatively obtain the respective powers of the N first slave nodes in another manner. The master node may perform power detection on first slave nodes in a first part of the N first slave nodes via the PSE chip, to obtain respective powers of the first slave nodes in the first part. The master node performs power negotiation with a second part of the N first slave nodes via the control unit, to obtain respective powers of the first slave nodes in the second part. In other words, the master node integrates functions of the control unit and the PSE chip, to obtain the respective powers of the N first slave nodes. In this case, the first slave nodes in the first part and the first slave nodes in the second part form the N first slave nodes.
In a possible implementation of the first aspect, when the master node includes the control unit and the PSE chip, the master node may alternatively obtain the respective powers of the N first slave nodes in another manner. Specifically, the master node may perform power detection on first slave nodes in a first part of the N first slave nodes via the PSE chip, or perform power negotiation with first slave nodes in a first part via the control unit, to obtain respective powers of the first slave nodes in the first part. In addition, the master node directly obtains, via the control unit, respective powers reported by first slave nodes in a second part of the N first slave nodes. In this case, the first slave nodes in the first part and the first slave nodes in the second part form the N first slave nodes.
In a possible implementation of the first aspect, when the master node includes the control unit and the PSE chip, the master node may alternatively obtain the respective powers of the N first slave nodes in another manner. Specifically, the master node may perform power detection on first slave nodes in a first part of the N first slave nodes via the PSE chip, to obtain respective powers of the first slave nodes in the first part. The master node performs power negotiation with a second part of the N first slave nodes via the control unit, to obtain respective powers of the first slave nodes in the second part. The master node directly obtains, via the control unit, respective powers reported by first slave nodes in a third part of the N first slave nodes. In this case, the first slave nodes in the first part, the first slave nodes in the second part, and the first slave nodes in the third part form the N first slave nodes.
In this application, the master node obtains the respective powers of the N first slave nodes in a plurality of manners. The master node may obtain the respective powers of the N first slave nodes based on a single module (the control unit or the PSE chip) in the master node, or may obtain the respective powers of the N first slave nodes based on a plurality of modules in the master node. The manners are applicable to a plurality of scenarios, and flexibility and practicability of the technical solution of this application are improved.
In a possible implementation of the first aspect, the control unit in the master node may further implement power receiving of the target slave node. When a sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, it means that the N first slave nodes can be powered on. The control unit determines that the target slave node includes the N first slave nodes, and then, connects the links between the master node and the N first slave nodes, to supply power to the N first slave nodes. Because the first slave node includes a slave control device and the powered device, the power of the first slave node includes a power of the slave control device and a power of the powered device. In this application, the slave control device is always powered on. When the sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, it means that a power obtained by subtracting powers of N slave control devices from a maximum output power of the master node is greater than or equal to a sum of powers of N powered devices. It may be understood that, because of a cable loss, the power of the first slave node further includes a power corresponding to the cable loss, and such a part of power may be included in the power of the powered device.
In a possible implementation of the first aspect, the control unit in the master node may further implement power receiving of the target slave node. When the sum of the powers of the N first slave nodes is greater than the output power of the master node, it means that the sum of the powers of the N first slave nodes exceeds a power budget of the master node. In this case, the control unit determines to supply power to some of the N first slave nodes, to be specific, determines that the target slave node includes M first slave nodes, where 1≤M<N. In addition, the control unit connects links between the master node and the M first slave nodes, to supply power to the M first slave nodes. Because the first slave node includes a slave control device and the powered device, the power of the first slave node includes a power of the slave control device and a power of the powered device. In this application, the slave control device is always powered on, and the power budget of the master node is actually a power reserved by the master node for the N powered devices, namely, a power obtained by subtracting the powers of the N slave control devices from a maximum output power of the master node. It may be understood that, because of a cable loss, the power of the first slave node further includes a power corresponding to the cable loss, and such a part of power may be included in the power of the powered device. In addition, when determining the M first slave nodes, the control unit may select some first slave nodes from the N first slave nodes as the M first slave nodes according to a power supply policy.
In this application, it is determined, based on a relationship between the sum of the powers of the N first slave nodes and the output power of the master node, to supply power to some or all of the N first slave nodes, so that the technical solution of this application is applicable to different scenarios. This further improves practicability of the technical solution.
In a possible implementation of the first aspect, the master node may be further connected to a second slave node, and the second slave node is a slave node that newly accesses the power supply system when there is a first slave node that is already powered in the power supply system. The control unit included in the master node determines a remaining power of the master node, and obtains a power of the second slave node. If the power of the second slave node is less than or equal to the remaining power, the control unit controls a link between the master node and the second slave node to be connected, to supply power to the second slave node.
In this application, in addition to initially powering on the target slave node, the master node may further supply power to the second slave node that newly accesses the power supply system. This enriches application scenarios of the technical solution of this application.
In a possible implementation of the first aspect, a manner in which the master node obtains the power of the second slave node may be performing power negotiation with the second slave node via the control unit, or may be obtaining the power of the second slave node reported by the second slave node. This is not specifically limited herein.
In this application, the master node obtains the power of the second slave node in a plurality of manners, and the manners may be selected based on a requirement of an actual application. This further improves flexibility of the technical solution of this application.
In a possible implementation of the first aspect, the control unit may further send a target packet to each first slave node, where the target packet indicates a time period in which the master node is connected to each first slave node, to enable the master node to be connected to one first slave node in a same time period. The target packet includes packets of different types, and may be an LLDP packet. In addition, the target packet may alternatively be a packet of another type, for example, an SCCP packet, or another protocol packet that is defined by a vendor and that is configured to control the master node to be connected to the slave node. This is not specifically limited herein.
In a possible implementation of the first aspect, the master node may have different forms, and a master control device and a power sourcing equipment that are included in the master node may be coupled to each other, or decoupled from each other (in other words, both the master control device and the power sourcing equipment are independent devices). This is not specifically limited herein.
In this application, the master node may have a plurality of product forms, and is applicable to different scenarios. This further improves flexibility of the technical solution of this application.
A second aspect of this application provides a power supply method. The method is applied to a master node, the master node and N first slave nodes are included in a point-to-multipoint topology, N≥2, and N is an integer; and the method includes:
In a possible implementation of the second aspect, the master node may obtain the respective powers of the N first slave nodes in a manner of power detection. Specifically, the master node receives a feedback current from each first slave node, where the feedback current is determined by each first slave node based on a classification voltage sent by the master node. Then, the master node determines a power of each first slave node based on the feedback current of each first slave node. The power detection actually includes: The master node sends a detection voltage and the classification voltage to the first slave node, where the detection voltage is used to determine whether the first slave node includes a standard powered device, and sends the classification voltage to the first slave node only when determining that the first slave node includes the standard powered device, to determine the power of the first slave node.
In a possible implementation of the second aspect, the master node may alternatively obtain the respective powers of the N first slave nodes in a manner of power negotiation. Specifically, the master node performs power negotiation with each first slave node based on an upper-layer protocol, and determines a power of each first slave node based on a negotiation result of the power negotiation. The power negotiation may be implemented based on interaction of an upper-layer protocol packet, for example, an LLDP packet. In addition, the power negotiation may alternatively be implemented based on interaction of another upper-layer protocol packet, for example, an SCCP packet, or a protocol packet that is defined by a vendor and that is configured to perform power negotiation. A specific type of the upper-layer protocol packet is selected based on an actual requirement. This is not specifically limited herein.
In a possible implementation of the second aspect, the master node may alternatively obtain the respective powers of the N first slave nodes in manners of power detection and power negotiation. For example, the master node may perform power detection on first slave nodes in a first part of the N first slave nodes via a PSE chip, to obtain respective powers of the first slave nodes in the first part. The master node performs power negotiation with a second part of the N first slave nodes via a control unit, to obtain respective powers of the first slave nodes in the second part. In this case, the first slave nodes in the first part and the first slave nodes in the second part form the N first slave nodes.
In a possible implementation of the second aspect, the master node may alternatively obtain the respective powers of the N first slave nodes in another manner. Specifically, the master node may perform power detection on the first slave nodes in a first part of the N first slave nodes, or perform power negotiation with first slave nodes in the first part, to obtain respective powers of the first slave nodes in the first part. In addition, the master node directly obtains respective powers reported by first slave nodes in a second part of the N first slave nodes. In this case, the first slave nodes in the first part and the first slave nodes in the second part form the N first slave nodes.
In a possible implementation of the second aspect, the master node may alternatively obtain the respective powers of the N first slave nodes in another manner. Specifically, the master node may perform power detection on first slave nodes in a first part of the N first slave nodes, to obtain respective powers of the first slave nodes in the first part. The master node performs power negotiation with a second part of the N first slave nodes, to obtain respective powers of the first slave nodes in the second part. The master node may further directly obtain respective powers reported by first slave nodes in a third part of the N first slave nodes. In this case, the first slave nodes in the first part, the first slave nodes in the second part, and the first slave nodes in the third part form the N first slave nodes.
In a possible implementation of the second aspect, the master node supplies power to the target slave node in the N first slave nodes based on a relationship between the powers of the N first slave nodes and the output power of the master node. Specifically, if a sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, the master node determines that the target slave node includes the N first slave nodes. In addition, the master node connects the links between the master node and the N first slave nodes, to supply power to the N first slave nodes. Because the first slave node includes a slave control device and a powered device, the power of the first slave node includes a power of the slave control device and a power of the powered device. In this application, the slave control device is always powered on. When the sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, it means that a power obtained by subtracting powers of N slave control devices from a maximum output power of the master node is greater than or equal to a sum of powers of N powered devices. It may be understood that, because of a cable loss, the power of the first slave node further includes a power corresponding to the cable loss, and such a part of power may be included in the power of the powered device.
In a possible implementation of the second aspect, the master node supplies power to the target slave node in the N first slave nodes based on a relationship between the powers of the N first slave nodes and the output power of the master node. Specifically, if the sum of the powers of the N first slave nodes is greater than the output power of the master node, it means that the sum of the powers of the N first slave nodes exceeds a power budget of the master node. In this case, the master node determines that the target slave node includes M first slave nodes, where 1≤M<N. In addition, the master node connects links between the master node and the M first slave nodes, to supply power to the M first slave nodes. Because the first slave node includes a slave control device and a powered device, the power of the first slave node includes a power of the slave control device and a power of the powered device. In this application, the slave control device is always powered on, and the power budget of the master node is actually a power reserved by the master node for the N powered devices, namely, a power obtained by subtracting the powers of the N slave control devices from a maximum output power of the master node. It may be understood that, because of a cable loss, the power of the first slave node further includes a power corresponding to the cable loss, and such a part of power may be included in the power of the powered device.
In a possible implementation of the second aspect, the master node is further connected to a second slave node, and the second slave node is a slave node newly added to a power supply system in which there is a first slave node that is already powered. After supplying power to the target slave node in the N first slave nodes, the master node determines a remaining power of the master node, and obtains a power of the second slave node. The master node supplies power to the second slave node when the power of the second slave node is less than or equal to the remaining power.
In a possible implementation of the second aspect, a manner in which the master node obtains the power of the second slave node may be performing power negotiation with the second slave node via the control unit, or may be obtaining the power of the second slave node reported by the second slave node. This is not specifically limited herein.
In a possible implementation of the second aspect, the master node connects the links between the master node and all of the N first slave nodes in a time-division manner by sending a target packet to each first slave node. The target packet indicates a time period in which the master node is connected to each first slave node, and a time period in which the link between each first slave node and the master node is connected is different from a time period in which a link between another first slave node and the master node is connected. The target packet includes packets of different types, and may be an LLDP packet. In addition, the target packet may alternatively be a packet of another type, for example, an SCCP packet, or another protocol packet that is defined by a vendor and that is configured to control the master node to be connected to the slave node. This is not specifically limited herein.
In a possible implementation of the second aspect, the master node may have different forms, and a master control device and a power sourcing equipment that are included in the master node may be coupled to each other, or decoupled from each other (in other words, both the master control device and the power sourcing equipment are independent devices). This is not specifically limited herein.
The master node in the second aspect of this application may further implement a function of the master node in any one of the first aspect and the possible implementations of the first aspect, and beneficial effects shown in the second aspect are similar to beneficial effects in the first aspect. Details are not described herein again.
A third aspect of this application provides a slave node, where the slave node and a master node are included in a point-to-multipoint topology. The point-to-multipoint topology further includes the master node, and the master node may supply power to a plurality of slave nodes in the point-to-multipoint topology. The slave node is configured to send a power of the slave node to the master node, and receive a power-on instruction from the master node. A link between the master node and the slave node is connected according to the power-on instruction, to power on the slave node. Because the slave node includes a slave control device and a powered device, the power of the slave node includes a power of the slave control device and a power of the powered device. It may be understood that, because of a cable loss, the power of the slave node further includes a power corresponding to the cable loss, and such a part of power may be included in the power of the powered device.
In this application, the slave node may actively send the power of the slave node to the master node, so that the master node obtains the power of each slave node in the point-to-multipoint topology, and supplies power to each slave node online, thereby implementing online power supply in the point-to-multipoint topology.
In a possible implementation of the third aspect, the slave node includes a control unit, and the control unit may obtain the power of the slave node, and send the power of the slave node to the master node. The control unit further receives the power-on instruction from the master node, and controls, according to the power-on instruction, the link between the master node and the slave node to be connected, to power on the slave node. It should be noted that, the control unit in this application may be a microcontroller unit, or may be another device that can control link connection, for example, a central processing unit or an application-specific integrated circuit. The control unit may be selected based on a requirement of an actual application. This is not specifically limited herein.
In a possible implementation of the third aspect, in addition to including the control unit, the slave node further includes a switch. The control unit may control, according to the power-on instruction, the switch to connect the link between the master node and the slave node. The switch is configured to connect the link between the master node and the slave node according to a control instruction of the control unit.
In a possible implementation of the third aspect, when the slave node includes the control unit and the switch, if the slave control device included in the slave node is coupled to the powered device included in the slave node, the powered device may be understood as load of the slave node, and the control unit may directly obtain the power of the powered device. If the slave control device included in the slave node is decoupled from the powered device included in the slave node, the control unit may determine the power of the powered device in a manner of power negotiation. The control unit and the switch are included in the slave control device.
In this application, regardless of whether the slave control device included in the slave node is coupled to or decoupled from the powered device included in the slave node, the power of the slave node may be determined via the control unit, so that the technical solution of this application may adapt to different requirements. This improves practicability of the technical solution of this application.
In a possible implementation of the third aspect, the slave node includes the slave control device and the powered device, and the slave control device is decoupled from the powered device. In this case, the slave control device includes a PSE chip and the control unit. The PSE chip may determine the power of the powered device in a manner of power detection. Specifically, the PSE chip sends a detection voltage to the powered device, where the detection voltage is used to determine whether the powered device is a standard powered device. When the powered device is the standard powered device, the PSE chip sends a classification voltage to the powered device, to determine the power of the powered device. The PSE chip receives a feedback current from the powered device, and determines the power of the powered device based on the feedback current. The feedback current is determined by the powered device based on the classification voltage of the PSE chip. The PSE chip further sends the power of the powered device to the control unit. Therefore, the control unit receives the power of the powered device from the PSE chip, and determines the power of the slave node based on the power of the powered device. The PSE chip is further configured to connect the link between the master node and the slave node according to the control instruction of the control unit.
In this application, when the slave control device included in the slave node is decoupled from the powered device included in the slave node, in addition to including the control unit and the switch, the slave node may further include the control unit and the PSE chip, so that the slave node has different product forms, and the power of the slave node may also be determined in different manners. This enriches implementations of the technical solution of this application.
A fourth aspect of this application provides a power supply method, where the power supply method is applied to a slave node, and the slave node and a master node are included in a point-to-multipoint topology. The power supply method includes:
In a possible implementation of the fourth aspect, before sending the power of the slave node to the master node, the slave node may further obtain the power of the slave node in a manner of power detection or power negotiation. This is not specifically limited herein.
In a possible implementation of the fourth aspect, when a slave control device included in the slave node is coupled to a powered device included in the slave node, the powered device may be understood as load of the slave node, and the slave node may directly obtain a power of the powered device.
The slave node in the fourth aspect of this application may further implement a function of the slave node in any one of the third aspect and the possible implementations of the third aspect, and beneficial effects shown in the fourth aspect are similar to beneficial effects in the third aspect. Details are not described herein again.
A fifth aspect of this application provides a power supply system, where a topology of the power supply system is a point-to-multipoint topology, the power supply system includes a master node and N first slave nodes, N≥2, and N is an integer. The master node is configured to: connect links between the master node and all of the N first slave nodes in a time-division manner, and obtain respective powers of the N first slave nodes. The master node supplies power to a target slave node in the N first slave nodes based on the powers of the N first slave nodes and an output power of the master node.
In a possible implementation of the fifth aspect, the master node may determine a power of each first slave node in a manner of power detection. Specifically, the master node may receive a feedback current from each first slave node, where the feedback current is determined by each first slave node based on a classification voltage sent by the master node. In addition, the master node determines the power of each first slave node based on the feedback current of each first slave node.
In a possible implementation of the fifth aspect, the master node may further determine the power of each first slave node in a manner of power negotiation. Specifically, the master node performs power negotiation with each first slave node, and determines a power of each first slave node based on a negotiation result of the power negotiation.
In a possible implementation of the fifth aspect, the N first slave nodes in the power supply system include a first set and a second set. The master node may obtain, in the manner of power negotiation and/or power detection, respective powers of first slave nodes included in the first set. In addition, the master node receives respective powers of first slave nodes included in the second set from the second set. In other words, the master node may obtain the respective powers of the N first slave nodes in the power supply system in different manners.
In a possible implementation of the fifth aspect, each first slave node in the second set may also determine the power of each first slave node in the manner of power negotiation and/or power detection.
In a possible implementation of the fifth aspect, when a sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, it means that the master node may power on the N first slave nodes, to be specific, the master node determines that the target slave node includes the N first slave nodes. The master node connects the links between the master node and the N first slave nodes, to supply power to the N first slave nodes.
In a possible implementation of the fifth aspect, when the sum of the powers of the N first slave nodes is greater than the output power of the master node, it means that the sum of the powers of the N first slave nodes exceeds a power budget of the master node. To be specific, it is determined that the target slave node includes M first slave nodes of the N first slave nodes, where 1≤M<N. The master node connects links between the master node and the M first slave nodes, to supply power to the M first slave nodes.
In a possible implementation of the fifth aspect, the power supply system further includes a second slave node, and the second slave node is a slave node newly added to a power supply system in which there is a first slave node that is already powered. In this case, the master node may determine a remaining power of the master node and a power of the second slave node. If the power of the second slave node is less than or equal to the remaining power, the master node supplies power to the second slave node.
In a possible implementation of the fifth aspect, the master node may obtain the power of the second slave node in a plurality of manners. The master node may perform power negotiation with the second slave node, to determine the power of the second slave node, or may obtain the power of the second slave node that is actively reported by the second slave node. This is not specifically limited herein.
The master node in the fifth aspect of this application may further implement a function of the master node in any one the first aspect and the possible implementations of the first aspect, and beneficial effects shown in the fifth aspect are similar to beneficial effects shown in the first aspect. Details are not described herein again.
A sixth aspect of this application provides a power supply system, where a topology of the power supply system is a point-to-multipoint topology, the power supply system includes a master node and N first slave nodes, N≥2, and N is an integer. Each of the N first slave nodes may send a power of each first slave node to the master node. In this way, the master node obtains respective powers of the N first slave nodes. The master node supplies power to a target slave node in the N first slave nodes based on the powers of the N first slave nodes and an output power of the master node. Therefore, the target slave node may receive a power-on instruction from the master node, and connect a link between the master node and the target slave node according to the power-on instruction, to power on the target slave node.
In a possible implementation of the sixth aspect, each first slave node may obtain the power of each first slave node in a manner of power detection or power negotiation.
In a possible implementation of the sixth aspect, the power supply system further includes a second slave node, and the second slave node is a slave node newly added to a power supply system in which there is a first slave node that is already powered. In this case, the master node further determines a remaining power of the master node, and obtains a power of the second slave node. If the power of the second slave node is less than or equal to the remaining power, the master node supplies power to the second slave node.
The slave node in the sixth aspect of this application may further implement a function of the slave node in any one of the third aspect and the possible implementations of the third aspect, and beneficial effects shown in the sixth aspect are similar to beneficial effects shown in the third aspect. Details are not described herein again.
A seventh aspect of this application provides a master node, including a processor and a memory, where
An eighth aspect of this application provides a slave node, including a processor and a memory, where
A ninth aspect of this application provides a chip, including a processor and a memory. The memory is configured to store instructions, and the processor runs the instructions, to perform the power supply method described in any one of the second aspect and the possible implementations of the second aspect, or perform the power supply method described in any one of the fourth aspect and the possible implementations of the fourth aspect.
A tenth aspect of this application provides a chip system, including a master chip and a slave chip, where the master chip includes a first processor and a first memory, and the slave chip includes a second processor and a second memory.
The first memory is configured to store first instructions, and the first processor runs the first instructions, to perform the power supply method described in any one of the second aspect and the possible implementations of the second aspect. The second memory is configured to store second instructions, and the second processor runs the second instructions, to perform the power supply method described in any one of the fourth aspect and the possible implementations of the fourth aspect.
An eleventh aspect of this application provides a computer-readable storage medium, where the computer-readable storage medium stores a program; and when a computer executes the program, a function of the master node in any one of the first aspect and the possible implementations of the first aspect is implemented, and/or the power supply method described in any one of the second aspect and the possible implementations of the second aspect is performed; or the power supply method described in any one of the second aspect and the possible implementations of the second aspect is performed, and/or a function of the slave node in any one of the third aspect and the possible implementations of the third aspect is implemented.
A twelfth aspect of this application provides a computer program product. When the computer program product is executed on a computer, the computer implements a function of the master node in any one of the first aspect and the possible implementations of the first aspect, and/or performs the power supply method described in any one of the second aspect and the possible implementations of the second aspect; or performs the power supply method described in any one of the second aspect and the possible implementations of the second aspect, and/or implements a function of the slave node in any one of the third aspect and the possible implementations of the third aspect.
Beneficial effects shown in the ninth aspect to the twelfth aspect in this application are similar to beneficial effects shown in the first aspect or the third aspect. Details are not described herein again.
This application provides a master node, a slave node, a power supply method, and a related device. A master node and a slave node are included in a point-to-multipoint topology. The master node connects only a path to one slave node in a same time period, to be specific, the point-to-multipoint topology is converted into a time-division point-to-point topology, to obtain a power of each slave node one by one, and powers on the slave node based on powers of slave nodes and an output power of the master node. This implements online power supply in the point-to-multipoint topology.
The following describes embodiments of this application with reference to accompanying drawings. A person of ordinary skill in the art may learn that, with development of technologies and emergence of a new scenario, the technical solutions provided in embodiments of this application are also applicable to a similar technical problem.
In the specification, claims, and accompanying drawings of this application, the terms “first”, “second”, and so on are intended to distinguish between similar objects but do not necessarily indicate a specific order or sequence. It should be understood that the terms used in such a way are interchangeable in proper circumstances, which is merely a discrimination manner that is used when objects having a same attribute are described in embodiments of this application. In addition, the terms “include”, “contain” and any other variants mean to cover the non-exclusive inclusion, so that a process, method, system, product, or device that includes a series of units is not necessarily limited to those units, but may include other units not expressly listed or inherent to such a process, method, product, or device. In addition, “at least one” means one or more, and “a plurality of” means two or more. “And/or” describes an association relationship between associated objects, and represents that three relationships may exist. For example, A and/or B may represent the following cases: A exists alone, both A and B exist, and B exists alone, where A and B may be singular or plural. The character “/” generally indicates an “or” relationship between the associated objects. “At least one of the following items (pieces)” or a similar expression thereof refers to any combination of these items, including any combination of singular items (pieces) or plural items (pieces). For example, at least one item (piece) of a, b, or c may indicate: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c may be singular or plural.
First, the point-to-multipoint topology applied to the master node and the slave node in this application is described.
As shown in
As shown in
The following describes the master node provided in this application.
In this application, the master node and N first slave nodes are included in a power supply system of the point-to-multipoint topology, where N≥2, and N is an integer. The master node connects links between the master node and all of the N first slave nodes in a time-division manner, so that only one slave node in the power supply system is connected to the master node in a same time period. In this way, the power supply system of the point-to-multipoint topology is converted into a time period-based point-to-point topology. The point-to-point topology includes the master node and one slave node, so that the master node may obtain a power of the first slave node. After connecting the link between the master node and each slave node in the time-division manner, the master node may obtain respective powers of the N first slave nodes. The connection in the time-division manner refers to time period-based connection, and a time period refers to a period of time. After obtaining the respective powers of the N first slave nodes, the master node powers on a target slave node in the N first slave nodes based on a relationship between the respective powers of the N first slave nodes and an output power of the master node, where the target slave node includes all or some of the N first slave nodes.
In some optional implementations, the master node sends a target packet to each first slave node, where the target packet indicates a time period in which the master node is connected to each first slave node, to enable the master node to be connected to one first slave node in a same time period. The target packet includes packets of different types, and may be an LLDP packet. In addition, the target packet may alternatively be a packet of another type, for example, an SCCP packet, or another protocol packet that is defined by a vendor and that is configured to control the master node to be connected to the slave node. This is not specifically limited herein.
In some optional implementations, the master node may implement, in a manner of packet broadcasting, interaction required for powering on the target slave node. A packet broadcast by the master node may be of packets of a plurality of types, for example, the LLDP packet. In addition, the packet may alternatively be a packet of another type, for example, the SCCP packet, or a protocol packet that is defined by the vendor and that is configured to control power-on. This is not specifically limited herein.
In this application, the master node and the slave node are included in the point-to-multipoint topology. The master node connects only a path to one slave node in a same time period, to be specific, the point-to-multipoint topology is converted into the time-division point-to-point topology, to obtain a power of each slave node one by one, and powers on the slave node based on powers of slave nodes and the output power of the master node. This implements online power supply in the point-to-multipoint topology.
In the following, a structure of the master node is described in detail.
As shown in
As shown in
The PSE chip 202 may periodically send the classification voltage to the first slave node in a closed time period between the master node and each first slave node, where the classification voltage is a pulse voltage, and the classification voltage is lower than a normal power supply voltage of the powered device included in the first slave node.
It should be noted that, because the first slave node includes a slave control device and the powered device, a power of the first slave node includes a power of the slave control device and the power of the powered device. The PSE chip 202 further obtains the power of the slave control device, and obtains a power of each first slave node based on the power of the slave control device and the power of the powered device included in the first slave node.
In some optional implementations, a point-to-multipoint topology may further include some slave nodes connected to non-standard powered devices. Because these powered devices are not standard powered devices, the master node does not power on these powered devices.
In this application, power detection is performed on the first slave node via the PSE chip, and the first slave node is powered on only when it is determined that the powered device included in the first slave node is the standard powered device. This avoids a case in which a power supply system may be damaged when the non-standard powered device is powered on. Therefore, security and reliability of the technical solution are improved.
In some optional implementations, the master node 200 may further perform power negotiation with each of the N first slave nodes via the control unit 201, to determine a power of each first slave node based on a negotiation result of the power negotiation. The power negotiation may be implemented based on interaction of an upper-layer protocol packet, for example, an LLDP packet. In addition, the power negotiation may alternatively be implemented based on interaction of another upper-layer protocol packet, for example, an SCCP packet, or a protocol packet that is defined by a vendor and that is configured to perform power negotiation. A specific type of the upper-layer protocol packet is selected based on an actual requirement. This is not specifically limited herein.
It should be noted that, during power negotiation, a power sourcing equipment included in the master node 200 outputs a low voltage, so that the powered device included in the first slave node works in a low power consumption mode. Therefore, all powered devices perform power negotiation with the master node 200 in turn at low power consumption.
In addition, in this application, the master node obtains the power of each first slave node in a plurality of possible manners, and the manners are applicable to a plurality of scenarios. This improves flexibility of the technical solution of this application.
In some optional implementations, when the master node 200 includes the control unit 201 and the PSE chip 202, the master node 200 may obtain the respective powers of the N first slave nodes with reference to functions of the control unit 201 and the PSE chip 202. For example, the master node 200 performs power detection on first slave nodes in a first part of the N first slave nodes via the PSE chip 202, to obtain respective powers of the first slave nodes in the first part. The master node 200 performs power negotiation with a second part of the N first slave nodes via the control unit 201, to obtain respective powers of the first slave nodes in the second part. In this case, the first slave nodes in the first part and the first slave nodes in the second part form the N first slave nodes.
In some optional implementations, when the master node 200 includes the control unit 201 and the PSE chip 202, the master node 200 may alternatively obtain the respective powers of the N first slave nodes in another manner. Specifically, the master node 200 may perform power detection on the first slave nodes in the first part of the N first slave nodes via the PSE chip 202, or perform power negotiation with the first slave nodes in the first part via the control unit 201, to obtain the respective powers of the first slave nodes in the first part. In addition, the master node 200 directly obtains, via the control unit 201, the respective powers reported by the first slave nodes in the second part of the N first slave nodes. In this case, the first slave nodes in the first part and the first slave nodes in the second part form the N first slave nodes.
In some optional implementations, when the master node 200 includes the control unit 201 and the PSE chip 202, the master node 200 may alternatively obtain the respective powers of the N first slave nodes in another manner. Specifically, the master node may perform power detection on first slave nodes in the first part of the N first slave nodes via the PSE chip 202, to obtain the respective powers of the first slave nodes in the first part. The master node 200 performs power negotiation with the second part of the N first slave nodes via the control unit 201, to obtain the respective powers of the first slave nodes in the second part. The master node 200 directly obtains, via the control unit 201, respective powers reported by first slave nodes in a third part of the N first slave nodes. In this case, the first slave nodes in the first part, the first slave nodes in the second part, and the first slave nodes in the third part form the N first slave nodes.
In this application, the master node obtains the respective powers of the N first slave nodes in a plurality of manners. The master node may obtain the respective powers of the N first slave nodes based on a single module (the control unit or the PSE chip) in the master node, or may obtain the respective powers of the N first slave nodes based on a plurality of modules in the master node. The manners are applicable to a plurality of scenarios, and flexibility and practicability of the technical solution of this application are improved.
In some optional implementations, the control unit 201 included in the master node 200 may further implement power receiving of a target slave node in the N first slave nodes. When a sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, it means that the master node may power on the N first slave nodes, and the control unit 201 determines that the target slave node includes the N first slave nodes. Then, the control unit 201 connects links between the master node and the N first slave nodes, to supply power to the N first slave nodes. Because the first slave node includes the slave control device and the powered device, the power of the first slave node includes the power of the slave control device and the power of the powered device. In this application, the slave control device is always powered on. When the sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, it means that a power obtained by subtracting powers of N slave control devices from a maximum output power of the master node is greater than or equal to a sum of powers of N powered devices. It may be understood that, because of a cable loss, the power of the first slave node further includes a power corresponding to the cable loss, and such a part of power may be included in the power of the powered device.
In some optional implementations, when the sum of the powers of the N first slave nodes is greater than the output power of the master node, it means that the sum of the powers of the N first slave nodes exceeds a power budget of the master node. In this case, the control unit 201 determines to supply power to some of the N first slave nodes, to be specific, determines that the target slave node includes M first slave nodes of the N first slave nodes, where 1≤M<N. In addition, the control unit 201 connects links between the master node and the M first slave nodes, to supply power to the M first slave nodes. Because the first slave node includes the slave control device and the powered device, the power of the first slave node includes the power of the slave control device and the power of the powered device. In this application, the slave control device is always powered on, and the power budget of the master node is actually a power reserved by the master node for the N powered devices, namely, a power obtained by subtracting the powers of the N slave control devices from the maximum output power of the master node. It may be understood that, because of the cable loss, the power of the first slave node further includes the power corresponding to the cable loss, and such a part of power may be included in the power of the powered device.
The control unit 201 may determine the M first slave nodes from the N first slave nodes according to a power supply policy. There are a plurality of possible power supply policies. The following describes some possible power supply policies by using examples.
For example, the master node 200 may supply, in ascending order of powers, power to powered devices corresponding to the first slave nodes, until total powers of powered devices exceed the power budget of the master node after a next powered device is added. According to the power supply policy, power can be supplied to a maximum quantity of powered devices.
For example, the master node 200 may supply, in descending order of powers, power to the powered devices corresponding to the first slave nodes, until total powers of powered devices exceed the power budget of the master node after a next powered device is added. According to the power supply policy, power supply to a high-power powered device can be preferentially ensured.
For example, the master node 200 may alternatively obtain power receiving priorities of the powered devices in the first slave nodes, and supply, in an order of the power receiving priorities, power to the powered devices corresponding to the first slave nodes, until total powers of powered devices exceed the power budget of the master node after a next powered device is added. The master node 200 obtains the power receiving priority in a plurality of manners. The powered device may directly report the power receiving priority to the power sourcing equipment included in the master node. In addition, the master node 200 may alternatively obtain the power receiving priority in another manner. For example, the powered device reports the power receiving priority to the slave control device. When the master node obtains the power of the slave node in a manner of the power negotiation, the master node may also obtain the power receiving priority of the powered device fed back by the slave control device. In this application, the master node obtains the power receiving priority of the powered device in a plurality of manners. This is not specifically limited herein.
In this application, it is determined, based on the relationship between the sum of the powers of the N first slave nodes and the output power of the master node, to supply power to some or all of the N first slave nodes, so that the technical solution of this application is applicable to different scenarios. This further improves practicability of the technical solution.
In some optional implementations, after supplying power to the first slave node, the master node 200 may further obtain power supply parameters such as a power and a current of a powered device included in each first slave node that are periodically reported by each first slave node to the master node 200, and node backhaul data. A manner used by the first slave node to backhaul data to the master node depends on a communication mechanism between the master node 200 and each first slave node. For example, a communication mechanism in a time division manner may be used, and fixed slot allocation or contention transmission is used. This is not specifically limited herein.
In some optional implementations, the master node 200 is further connected to a second slave node, and the second slave node is a slave node newly added to a system in which there is a first slave node that is already powered. The control unit 201 of the master node 200 determines a remaining power of the master node, and obtains a power of the second slave node. The control unit 201 determines, based on a relationship between the power of the second slave node and the remaining power, whether to supply power to the second slave node. If the power of the second slave node is less than or equal to the remaining power, the control unit 201 supplies power to the second slave node. If the power of the second slave node is greater than the remaining power, the control unit 201 does not supply power to the second slave node. The remaining power of the master node 200 may be determined in the following manner:
Remaining power=Output power of the master node−Total power consumption of slave nodes that are already powered on in the power supply system.
In some optional implementations, a manner in which the master node 200 obtains the power of the second slave node may be performing power negotiation with the second slave node via the control unit 201, or may be obtaining the power of the second slave node reported by the second slave node. This is not specifically limited herein.
In this application, in addition to initially powering on the target slave node, the master node may further supply power to the second slave node that newly accesses the power supply system. This enriches application scenarios of the technical solution of this application. In addition, the master node obtains the power of the second slave node in a plurality of manners, and the manners may be selected based on a requirement of an actual application. This further improves flexibility of the technical solution of this application.
In some optional implementations, a master node 200 has a plurality of product forms.
As shown in
In this application, the master node may have a plurality of product forms, and is applicable to different scenarios. This further improves flexibility of the technical solution of this application.
Based on the master node described above, this application further provides a power supply method. The power supply method is performed by the master node. In the following,
In this application, the master node and the N first slave nodes are included in a point-to-multipoint topology. The links between the master node and all of the N first slave nodes is connected in the time-division manner, and the point-to-multipoint topology is converted into a time period-based point-to-point topology.
In some optional implementations, the master node sends a target packet to each first slave node, where the target packet indicates a time period in which the master node is connected to each first slave node, to enable the master node to be connected to one first slave node in a same time period. The target packet includes packets of different types, and may be an LLDP packet. In addition, the target packet may alternatively be a packet of another type, for example, an SCCP packet, or another protocol packet that is defined by a vendor and that is configured to control the master node to be connected to the slave node. This is not specifically limited herein.
When the master node is connected to one slave node, the master node obtains a power of the slave node. After successively connecting the link between the master node and each first slave node, the master node may obtain the respective powers of the N first slave nodes. The master node obtains the power of the first slave node in a plurality of manners, and may obtain the power of the first slave node in a manner of power detection or in a manner of power negotiation. In addition, the master node may alternatively directly obtain the power reported by the first slave node. This is not specifically limited herein. The following separately describes possible cases.
In some optional implementations, the master node may obtain the respective powers of the N first slave nodes in the manner of power detection. Specifically, the master node receives a feedback current from each first slave node, where the feedback current is determined by each first slave node based on a classification voltage sent by the master node. Then, the master node determines the power of each first slave node based on the feedback current of each first slave node. The master node determines a power of each first slave node based on the feedback current of each first slave node. The power detection actually includes: The master node sends a detection voltage and the classification voltage to the first slave node, where the detection voltage is used to determine whether the first slave node includes a standard powered device, and sends the classification voltage to the first slave node only when determining that the first slave node includes the standard powered device, to determine the power of the first slave node.
In this application, power detection is performed on the first slave node, and the first slave node is powered on only when it is determined that the powered device included in the first slave node is the standard powered device. This avoids a case in which a power supply system may be damaged when a non-standard powered device is powered on. Therefore, security and reliability of the technical solution are improved.
In some optional implementations, the master node may alternatively obtain the respective powers of the N first slave nodes in the manner of power negotiation. Specifically, the master node performs power negotiation with each first slave node based on an upper-layer protocol, and determines a power of each first slave node based on a negotiation result of the power negotiation. The power negotiation may be implemented based on interaction of an upper-layer protocol packet, for example, an LLDP packet. In addition, the power negotiation may alternatively be implemented based on interaction of another upper-layer protocol packet, for example, an SCCP packet, or a protocol packet that is defined by a vendor and that is configured to perform power negotiation. A specific type of the upper-layer protocol packet is selected based on an actual requirement. This is not specifically limited herein.
In some optional implementations, the master node may alternatively obtain the respective powers of the N first slave nodes in another manner. Specifically, the master node may perform power detection on first slave nodes in a first part of the N first slave nodes, or perform power negotiation with the first slave nodes in the first part, to obtain respective powers of the first slave nodes in the first part. In addition, the master node directly obtains respective powers reported by first slave nodes in a second part of the N first slave nodes. In this case, the first slave nodes in the first part and the first slave nodes in the second part form the N first slave nodes.
In some optional implementations, the master node may alternatively obtain the respective powers of the N first slave nodes in another manner. Specifically, the master node may perform power detection on the first slave nodes in the first part of the N first slave nodes, to obtain the respective powers of the first slave nodes in the first part. The master node performs power negotiation with the second part of the N first slave nodes, to obtain the respective powers of the first slave nodes in the second part. The master node may further directly obtain respective powers reported by first slave nodes in a third part of the N first slave nodes. In this case, the first slave nodes in the first part, the first slave nodes in the second part, and the first slave nodes in the third part form the N first slave nodes.
In addition, in this application, the master node obtains the power of each first slave node in a plurality of possible manners, and the manners are applicable to a plurality of scenarios. This improves flexibility of the technical solution of this application.
After obtaining the respective powers of the N first slave nodes, the master node compares a relationship between the sum of the powers of the N first slave nodes and the output power of the master node, and determines to supply power to a target slave node in the N first slave nodes. The target slave node is all or some of the N first slave nodes.
If the sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, the master node determines that the target slave node includes the N first slave nodes. If the sum of the powers of the N first slave nodes is greater than the output power of the master node, it means that the sum of the powers of the N first slave nodes exceeds a power budget of the master node. In this case, the master node determines that the target slave node includes M first slave nodes, where 1≤M<N. The master node may select the M first slave nodes from the N first slave nodes according to different power supply policies. Related content of the power supply policy is described above when the master node is described. Details are not described herein again.
Because the first slave node includes a slave control device and the powered device, the power of the first slave node includes a power of the slave control device and a power of the powered device. In this application, the slave control device is always powered on, and the power budget of the master node is actually a power reserved by the master node for N powered devices, namely, a power obtained by subtracting powers of N slave control devices from a maximum output power of the master node. It may be understood that, because of a cable loss, the power of the first slave node further includes a power corresponding to the cable loss, and such a part of power may be included in the power of the powered device.
In some optional implementations, the master node may implement, in a manner of packet broadcasting, interaction required for powering on the target slave node. A packet broadcast by the master node may be of packets of a plurality of types, for example, the LLDP packet. In addition, the packet may alternatively be a packet of another type, for example, the SCCP packet, or a protocol packet that is defined by the vendor and that is configured to control power-on. This is not specifically limited herein.
When the sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, the master node determines that the target slave node includes the N first slave nodes, and connects the links between the master node and the N first slave nodes, to supply power to the N first slave nodes.
When the sum of the powers of the N first slave nodes is greater than the output power of the master node, the master node determines that the target slave node includes the M first slave nodes, and connects links between the master node and the M first slave nodes, to supply power to the M first slave nodes.
It may be learnt from the foregoing technical solution that, this application has the following advantages: The master node and the slave node are included in the point-to-multipoint topology. The master node connects only a path to one slave node in a same time period, to be specific, the point-to-multipoint topology is converted into the time-division point-to-point topology, to obtain a power of each slave node one by one, and powers on the slave node based on powers of slave nodes and the output power of the master node. This implements online power supply in the point-to-multipoint topology. In addition, it is determined, based on the relationship between the sum of the powers of the N first slave nodes and the output power of the master node, to supply power to some or all of the N first slave nodes, so that the technical solution of this application is applicable to different scenarios. This further improves practicability of the technical solution.
In some optional embodiments, after step 404 or step 405, the master node may further perform the following steps.
The master node may further obtain power supply parameters such as a power and a current of a powered device included in each first slave node that are periodically reported by each first slave node to the master node, and node backhaul data. A manner used by the first slave node to backhaul data to the master node depends on a communication mechanism between the master node and each first slave node. For example, a communication mechanism in a time division manner may be used, and fixed slot allocation or contention transmission is used. This is not specifically limited herein.
The master node may determine the remaining power based on the data backhauled by each first slave node. Remaining power-Output power of the master node-Total power consumption of slave nodes that are already powered on in the power supply system.
The master node may be further connected to the second slave node, and the second slave node is a slave node newly added to a power supply system in which there is a first slave node that is already powered. In other words, before the second slave node accesses the power supply system, the power supply system includes the first slave node that is already powered.
The master node may obtain the power of the second slave node in different manners. For example, the master node performs power negotiation with the second slave node, to determine the power of the second slave node. Alternatively, the master node may obtain the power of the second slave node that is directly reported by the second slave node. This is not limited in this application.
In this application, the master node obtains the power of the second slave node in a plurality of manners, and the manners may be selected based on a requirement of an actual application. This further improves flexibility of the technical solution of this application.
The master node compares the power of the second slave node with the remaining power of the master node, to determine whether to supply power to the second slave node.
When the power of the second slave node is less than or equal to the remaining power, it means that the master node still has an abundant power, and the master node can supply power to the second slave node.
When the power of the second slave node is greater than the remaining power, the master node cannot supply power to the second slave node.
In some optional embodiments, the master node may have different forms, and a master control device and a power sourcing equipment that are included in the master node may be coupled to each other, or decoupled from each other (in other words, both the master control device and the power sourcing equipment are independent devices). This is not specifically limited herein.
In this application, in addition to initially powering on the target slave node, the master node may further supply power to the second slave node that newly accesses the power supply system. This enriches application scenarios of the technical solution of this application.
The following describes the slave node provided in this application.
In this application, the slave node and the master node are included in the power supply system of the point-to-multipoint topology, and the master node may supply power to a plurality of slave nodes online in the point-to-multipoint topology. The slave node sends a power of the slave node to the master node, and receives a power-on instruction from the master node. The link between the master node and the slave node is connected according to the power-on instruction, to power on the slave node. Because the slave node includes the slave control device and the powered device, the power of the slave node includes the power of the slave control device and the power of the powered device. It may be understood that, because of the cable loss, the power of the slave node further includes the power corresponding to the cable loss, and such a part of power may be included in the power of the powered device.
In this application, the slave node may actively send the power of the slave node to the master node, so that the master node obtains the power of each slave node in the point-to-multipoint topology, and supplies power to each slave node online, thereby implementing online power supply in the point-to-multipoint topology.
The following further describes a structure of a slave node.
As shown in
It should be noted that, the control unit 501 in this application may be a microcontroller unit, or may be another device that can control link connection, for example, a central processing unit or an application-specific integrated circuit. The control unit may be selected based on a requirement of an actual application. This is not specifically limited herein.
In this application, the control unit 501 may obtain the power of the slave node in different manners. The following describes possible cases.
In some optional implementations, as shown in
In this case, if a slave control device included in the slave node 500 is coupled to a powered device included in the slave node 500, the powered device may be understood as load of the slave node 500, and the control unit 501 may directly obtain a power of the powered device. If the slave control device included in the slave node 500 is decoupled from the powered device included in the slave node 500, the control unit 501 may determine the power of the powered device in a manner of power negotiation. A specific manner of the power negotiation is described above. Details are not described herein again.
In this application, regardless of whether the slave control device included in the slave node is coupled to or decoupled from the powered device included in the slave node, the power of the slave node may be determined via the control unit, so that the technical solution of this application may adapt to different requirements. This improves practicability of the technical solution of this application.
In some optional implementations, a slave node may alternatively have different structures.
Assuming that in the embodiment shown in
The PSE chip 503 may determine a power of the powered device 520 in a manner of power detection. Specifically, the PSE chip 503 sends a detection voltage to the powered device 520, where the detection voltage is used to determine whether the powered device 520 is a standard powered device. When the powered device 520 is the standard powered device, the PSE chip 503 sends a classification voltage to the powered device 520, to determine the power of the powered device 520. The powered device 520 obtains a feedback current based on the classification voltage of the PSE chip, and transmits the feedback current to the PSE chip 503. The PSE chip 503 determines the power of the powered device 520 based on the feedback current.
The PSE chip 503 sends the power of the powered device 520 to the control unit 501. Therefore, the control unit 501 receives the power of the powered device 520 from the PSE chip 503, determines a power of the slave node 500 based on the power of the powered device 520, and reports the power of the slave node 500 to a master node. After receiving a power-on instruction from the master node, the control unit 501 sends a control instruction to the PSE chip 503, so that the PSE chip connects a link between the master node and the slave node according to the control instruction.
In some optional implementations, in the embodiment shown in
In this application, when the slave control device included in the slave node is decoupled from the powered device included in the slave node, in addition to including the control unit and the switch, the slave node may further include the control unit and the PSE chip, so that the slave node has different product forms, and the power of the slave node may also be determined in different manners. This enriches implementations of the technical solution of this application.
Based on the slave node described above, embodiments of this application further provide a power supply method. The power supply method is performed by the slave node, and the slave node and the master node are included in a point-to-multipoint topology.
Before the slave node is powered on, the slave node needs to report a power of the slave node to the master node, so that the master node comprehensively considers a power of each slave node and determines a slave node that can perform online power supply.
When determining to supply power to the slave node online, the master node sends the power-on instruction to the slave node, so that the slave node receives the power-on instruction.
As a structure of the slave node changes, there are a plurality of possible manners in which the slave node connects, according to the power-on instruction, the link between the master node and the slave node. The manner may be controlling a switch to connect the link between the master node and the slave node, or may be controlling the link between the master node and the slave node to be connected via a PSE chip. For specific content, refer to related descriptions in embodiments shown in
In some optional implementations, before step 701, the slave node may further perform step 700: Obtain the power of the slave node.
As described in embodiments shown in
In this application, the power of the slave node may be obtained in a plurality of manners. This further improves flexibility of the technical solution of this application.
This application further provides a power supply system. The power supply system includes a master node and N first slave nodes, where N≥2, and N is an integer. The master node is configured to: connect links between the master node and all of the N first slave nodes in a time-division manner, and obtain respective powers of the N first slave nodes. The master node supplies power to a target slave node in the N first slave nodes based on the powers of the N first slave nodes and an output power of the master node. The target slave node includes all or some of the N first slave nodes.
When a sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, it means that the master node may power on the N first slave nodes, to be specific, the master node determines that the target slave node includes the N first slave nodes. A control unit 0 in the master node connects the links between the master node and the N first slave nodes, to supply power to the N first slave nodes.
When the sum of the powers of the N first slave nodes is greater than the output power of the master node, it means that the sum of the powers of the N first slave nodes exceeds a power budget of the master node. To be specific, it is determined that the target slave node includes M first slave nodes of the N first slave nodes, where 1≤M<N. The control unit 0 in the master node connects links between the master node and the M first slave nodes, to supply power to the M first slave nodes.
In this application, the master node may obtain the respective powers of the N first slave nodes in a plurality of manners. The following separately describes possible cases.
In some optional implementations, the master node may determine the power of each slave node in the manner of power detection. Specifically, the master node may receive a feedback current from each first slave node, where the feedback current is determined by each first slave node based on a classification voltage sent by the master node. In addition, the master node determines the power of each first slave node based on the feedback current of each first slave node. Specific content of the power detection is described in detail in embodiments shown in
In some optional implementations, the master node may further determine the power of each first slave node in the manner of power negotiation. Specifically, the master node performs power negotiation with each first slave node, and determines a power of each first slave node based on a negotiation result of the power negotiation. Specific content of the power negotiation is described in detail in embodiments shown in
In some optional implementations, the N first slave nodes in the power supply system include a first set and a second set. The master node may obtain, in the manner of power negotiation and/or power detection, respective powers of first slave nodes included in the first set. In addition, the master node receives respective powers of first slave nodes included in the second set from the second set. In other words, the master node may obtain the respective powers of the N first slave nodes in the power supply system in different manners.
In some optional implementations, each first slave node in the second set may also determine the power of each first slave node in the manner of power negotiation and/or power detection. In addition, each first slave node in the second set reports the power of the first slave node to the master node.
Descriptions about the power supply system are provided below by using N=3 as an example.
In the embodiment shown in
For example, the master node may obtain the powers of the three first slave nodes in a manner of power negotiation or power detection; or may obtain powers of some first slave nodes (for example, a first slave node 1 and a second slave node 2) in a manner of power detection, and obtain a power of a remaining first slave node (for example, a first slave node 3) in a manner of power negotiation.
For example, if a control unit 3 of the first slave node 3 can obtain a power of a powered device 3 in the manner of power negotiation, a manner in which the master node obtains a power of the first slave node 3 may be directly receiving the power reported by the first slave node 3. For the remaining two first slave nodes, the master node may obtain the powers of the two first slave nodes in the manner of power detection and/or power negotiation.
In some optional implementations, the power supply system further includes a second slave node. The second slave node is a slave node newly added to a power supply system in which there is a first slave node that is already powered. In this case, the master node may determine a remaining power of the master node and a power of the second slave node. If the power of the second slave node is less than or equal to the remaining power, the master node supplies power to the second slave node.
In some optional implementations, a manner in which the master node obtains the power of the second slave node may be performing power negotiation with the second slave node via a control unit 0, or may be obtaining the power of the second slave node reported by the second slave node. This is not specifically limited herein.
The second slave node includes a slave control device and a powered device. The slave control device may be decoupled from or coupled to the powered device. This is not specifically limited herein.
For example,
As shown in
A master control device may receive node backhaul data and power supply parameters such as a power and a current of a powered device included in each first slave node that are periodically reported by each first slave node. The master control device calculates a remaining power of the master node based on the information, and then compares the remaining power with a power of the second slave node. If the power of the second slave node is less than or equal to the remaining power, the master node supplies power to the second slave node.
The remaining power of the master node includes a power used to maintain access of the slave control device 4 and another power, and the power of the second slave node includes a power of the slave control device 4 and a power of the powered device 4. It may also be considered that the remaining power of the master node includes a power obtained by subtracting powers of all powered devices on the bus from a maximum output power of the master node. The powers of all the powered devices include a power of each first slave node and a power of a slave control device that accesses the bus but is not mounted onto the powered device.
In some optional implementations, a structure of a slave node may alternatively be shown in
As shown in
When the slave node 1000 is a first slave node, if a master node supplies power to the first slave node, the control unit 1001 may set a current value of the adjustable current limiting module 1002 to a maximum output current of the master node, to connect a link between the master node and the first slave node, and supply power to the powered device 1020. If the master node does not supply power to the first slave node, the control unit 1001 may set the current value of the adjustable current limiting module 1002 to 0, to disconnect the link between the master node and the first slave node, and does not supply power to the powered device 1020.
If the slave node 1000 is a second slave node, and if the master node supplies power to the second slave node, the control unit 1001 may set the current value of the adjustable current limiting module 1002 to a remaining current (also referred to as a baseline current) of the master node, to connect the link between the master node and the second slave node, and power on the powered device 1020. If the master node does not supply power to the second slave node, the control unit 1001 may set the current value of the adjustable current limiting module 1002 to 0, to disconnect the link between the master node and the second slave node, and does not supply power to the powered device 1020. Baseline current=Maximum output power of the master node/Power supply voltage−Total working current of a node that is powered on.
In some optional embodiments, the slave control device may further include the control unit, a powered switch, and the adjustable current limiting module. In this case, if the master node needs to supply power to the powered device, it needs to be ensured that the switch is turned off, and the current value of the adjustable current limiting module is a value of a current that can be connected.
This application further provides a power supply system, where a topology type of the power supply system is a point-to-multipoint topology, and the power supply system includes a master node and N first slave nodes, where N≥2, and N is an integer.
A power supply system is described by using an example in which N=3.
Different from embodiments shown in
The target slave node includes all or some of the N first slave nodes.
When a sum of the powers of the N first slave nodes is less than or equal to the output power of the master node, it means that the master node may power on the N first slave nodes, to be specific, the master node determines that the target slave node includes the N first slave nodes. A control unit 0 in the master node connects links between the master node and the N first slave nodes, to supply power to the N first slave nodes.
When the sum of the powers of the N first slave nodes is greater than the output power of the master node, it means that the sum of the powers of the N first slave nodes exceeds a power budget of the master node. To be specific, it is determined that the target slave node includes M first slave nodes of the N first slave nodes, where 1≤M<N. The control unit 0 in the master node connects links between the master node and the M first slave nodes, to supply power to the M first slave nodes.
In the embodiment shown in
In some optional embodiments, each first slave node may obtain the power of each first slave node in a manner of power detection or power negotiation.
For example, in the embodiment shown in
For example, in the embodiment shown in
In some optional implementations, a power supply system further includes a second slave node. The second slave node is a slave node newly added to a power supply system in which there is a first slave node that is already powered. In this case, the master node may determine a remaining power of the master node and a power of the second slave node. If the power of the second slave node is less than or equal to the remaining power, the master node supplies power to the second slave node.
The second slave node includes a slave control device and a powered device. The slave control device may be decoupled from or coupled to the powered device. This is not specifically limited herein.
For example,
As shown in
A master control device may receive node backhaul data and power supply parameters such as a power and a current of a powered device included in each first slave node that are periodically reported by each first slave node. The master control device calculates a remaining power of the master node based on the information, and then compares the remaining power with a power of the second slave node. If the power of the second slave node is less than or equal to the remaining power, the master node supplies power to the second slave node.
The remaining power of the master node includes a power used to maintain access of the slave control device 3 and another power, and the power of the second slave node includes a power of the slave control device 3 and the power of the powered device 3. It may also be considered that the remaining power of the master node includes a power obtained by subtracting powers of all powered devices on the bus from a maximum output power of the master node. The powers of all the powered devices include a power of each first slave node and a power of a slave control device that accesses the bus but is not mounted onto the powered device.
In the following,
As shown in
The processor 1302 may communicate with the memory 1301, to enable the processor 1301 to invoke the computer instructions of the memory 1301, to perform a series of instruction operations in the operations performed by the master node in embodiments shown in
The memory 1301 may be volatile storage or persistent storage. The processor 1301 may be a central processing unit, or may be a single-core processor. In addition, the processor 1301 may alternatively be a processor of another type, for example, a dual-core processor. This is not specifically limited herein.
In the following,
As shown in
The processor 1402 may communicate with the memory 1401, to enable the processor 1401 to invoke the computer instructions of the memory 1401, to perform a series of instruction operations in the operations performed by the slave node in embodiments shown in
The memory 1401 may be volatile storage or persistent storage. The processor 1401 may be a central processing unit, or may be a single-core processor. In addition, the processor 1401 may alternatively be a processor of another type, for example, a dual-core processor. This is not specifically limited herein.
It should be noted that, the technical solution of this application is not limited by a transmission mechanism, a propagation medium, or a usage scenario, and is not limited to the Ethernet.
The transmission mechanism may be single-carrier pulse amplitude modulation (PAM), or may be another mechanism, for example, discrete multi-tone (DMT) modulation or orthogonal frequency division multiplexing (OFDM). This is not specifically limited herein.
A propagation medium used by the bus may be a twisted pair, or may be another medium, for example, a parallel cable, an electrical power cable, or the like. This is not specifically limited herein.
A usage scenario may be a park, or may be another scenario in which a power supply system of a point-to-multipoint topology type can be deployed, for example, an industrial scenario, a vehicle-mounted scenario, or the like. This is not specifically limited herein.
It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief descriptions, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiments, and details are not described herein again.
In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, division into the units is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in an electrical, a mechanical, or another form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of embodiments.
In addition, functional units in embodiments of this application may be integrated into one processing unit, each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.
When the integrated unit is implemented in the form of the software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this application essentially, or the part contributing to the conventional technology, or all or some of the technical solutions may be implemented in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in embodiments of this application. The foregoing storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
Number | Date | Country | Kind |
---|---|---|---|
202210644562.4 | Jun 2022 | CN | national |
202210759600.0 | Jun 2022 | CN | national |
This application is a continuation of International Application No. PCT/CN2023/098266, filed on Jun. 5, 2023, which claims priority to Chinese Patent Application No. 202210644562.4, filed on Jun. 8, 2022 and Chinese Patent Application No. 202210759600.0, filed on Jun. 30, 2022. All of the aforementioned patent applications are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2023/098266 | Jun 2023 | WO |
Child | 18970266 | US |