APPARATUS AND METHOD FOR DISCOVERING POWER CONNECTIONS USING POWER PATTERNS
Some aspects of this disclosure relate to system and methods for discovering a power connection between a power supply device and a network device. An application server transmits a message to a first network device to cause the first network device to consume power according to pattern information and timing information of the message. The application server receives power usage data of network work devices from power supply devices and compares the power usage data with pattern data defined by the pattern information and the timing information, and identifies usage data that matches the pattern data. The application server further identifies a power supply device connecting to the first network device based on the usage data that matches the pattern data.
1 . A non-transitory computer-readable medium having instructions stored thereon that, when executed by at least one processor of a power supply device, cause the power supply device to perform operations comprising:
receiving a first message from an application server, wherein the first message comprises first timing information based on second timing information of a second message, wherein the second timing information of the second message is configured by the application server, and wherein the second message further comprises pattern information;
collecting usage data of a network device connected to the power supply device based on the first timing information, wherein the network device consumes power according to the pattern information and the second timing information of the second message; and
transmitting the usage data to the application server, wherein the usage data is used by the application server to identify that the power supply device is connected to the network device.
2 . The non-transitory computer-readable medium of claim 1 , wherein the first timing information comprises a first start time and a data duration, and wherein the second timing information comprises a second start time and a pattern duration.
3 . The non-transitory computer-readable medium of claim 2 , wherein the data duration is greater than the pattern duration.
4 . The non-transitory computer-readable medium of claim 1 , wherein the usage data comprises values of at least one of current, power, or load associated with a port of the power supply device.
5 . The non-transitory computer-readable medium of claim 4 , wherein the usage data comprises a port identification (ID) that identifies the port of the power supply device.
6 . The non-transitory computer-readable medium of claim 5 , wherein the usage data comprises a device ID that identifies the power supply device.
7 . The non-transitory computer-readable medium of claim 1 , wherein the pattern information comprises a pattern of fan speed values of a fan of the network device.
8 . A computer-implemented method of automatically identifying network device to power supply device connections, comprising:
receiving, by a power supply device, a first message from an application server, wherein the first message comprises first timing information based on second timing information of a second message, wherein the second timing information of the second message is configured by the application server, and wherein the second message further comprises pattern information;
collecting, by the power supply device, usage data of a network device connected to the power supply device based on the first timing information, wherein the network device consumes power according to the pattern information and the second timing information of the second message; and
transmitting, by the power supply device, the usage data to the application server, wherein the usage data is used by the application server to identify that the power supply device is connected to the network device.
9 . The method of claim 8 , wherein the first timing information comprises a first start time and a data duration, and wherein the second timing information comprises a second start time and a pattern duration.
10 . The method of claim 9 , wherein the data duration is greater than the pattern duration.
11 . The method of claim 8 , wherein the usage data comprises values of at least one of current, power, or load associated with a port of the power supply device.
12 . The method of claim 11 , wherein the usage data comprises a port identification (ID) that identifies the port of the power supply device.
13 . The method of claim 12 , wherein the usage data comprises a device ID that identifies the power supply device.
14 . The method of claim 1 , wherein the pattern information comprises a pattern of fan speed values of a fan of the network device.
15 . A power supply device comprising:
a memory; and
a processor coupled to the memory and configured to perform operations comprising:
receiving a first message from an application server, wherein the first message comprises first timing information based on second timing information of a second message, wherein the second timing information of the second message is configured by the application server, and wherein the second message further comprises pattern information;
collecting usage data of a network device connected to the power supply device based on the first timing information, wherein the network device consumes power according to the pattern information and the second timing information of the second message; and
transmitting the usage data to the application server, wherein the usage data is used by the application server to identify that the power supply device is connected to the network device.
16 . The power supply device of claim 15 , wherein the first timing information comprises a first start time and a data duration, and wherein the second timing information comprises a second start time and a pattern duration.
17 . The power supply device of claim 16 , wherein the data duration is greater than the pattern duration.
18 . The power supply device of claim 15 , wherein the usage data comprises values of at least one of current, power, or load associated with a port of the power supply device.
19 . The power supply device of claim 18 , wherein the usage data comprises a port identification (ID) that identifies the port of the power supply device.
20 . The power supply device of claim 19 , wherein the usage data comprises a device ID that identifies the power supply device.