Performance test method and device for multi-POE (Power Over Ethernet) network port equipment and readable storage medium
By separating the power supply and communication functions into a test method, and combining upper computer control commands and parameter queries, the problems of complex testing environment, high cost, and low efficiency of multi-POE network port routing devices are solved, realizing simple and efficient batch testing and ensuring product performance consistency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- YISHENG (WUHAN) TECH CO LTD
- Filing Date
- 2026-02-10
- Publication Date
- 2026-05-12
AI Technical Summary
Existing testing solutions for multi-PoE routers are complex, costly, and inefficient, making it difficult to meet the high-efficiency testing needs of mass production.
The power supply and communication functions of the PoE network port are separated by a functional separation module. Power supply and network communication are triggered by control commands issued by the host computer. Combined with power supply and communication parameter queries, simple and efficient performance testing can be achieved.
It enables simple, low-cost, and efficient batch testing, ensuring consistency in PoE port power supply and communication performance, shortening testing time, and improving testing efficiency.
Smart Images

Figure CN122027520A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of testing technology, and in particular to a performance testing method, apparatus, and readable storage medium for multi-PoE network port devices. Background Technology
[0002] With the development of network communication technology, multi-PoE (Power over Ethernet) routers are widely used in various network scenarios. The power supply stability and network communication capabilities of their PoE ports directly affect product performance and user experience. Therefore, during the production testing phase of multi-PoE routers, it is necessary to comprehensively cover the power supply function and network communication capability testing of each PoE port to ensure the consistency of PoE port performance in batch shipments and prevent defective products from entering the market.
[0003] Currently, testing solutions for multi-PoE routers generally require the configuration of flow meters, power controllers, and complex tooling fixtures. In actual mass production testing, these solutions have several drawbacks: Firstly, setting up the test environment is complex, involving the selection, connection, and debugging of various devices, requiring high operational skills from testers. Secondly, the procurement costs of flow meters, power controllers, and other equipment are high, and these devices occupy significant production line space, leading to a substantial increase in testing costs. Furthermore, because the testing process involves the coordinated control of multiple devices such as the product under test, flow meters, and power receivers, the testing steps are cumbersome and inefficient, failing to meet the high-efficiency testing requirements of mass production.
[0004] Therefore, developing a simple, low-cost, and efficient test solution for the power supply and speed of multi-POE routers to solve the problems of complex testing environments, high costs, and low efficiency in existing testing solutions has become an urgent technical challenge in this field. Summary of the Invention
[0005] To address the issues of existing testing solutions relying on dedicated equipment, complex environments, high costs, and low efficiency, this application provides a performance testing method and apparatus for multi-PoE network port devices, enabling simplified, low-cost, and highly efficient batch testing, and effectively ensuring the consistency of PoE network port power supply and communication performance.
[0006] Specifically, this application provides a performance testing method for multi-PoE network port devices, the method comprising: S1. Set up a test environment and connect each PoE port of the PoE device under test to the function separation module. The function separation module is used to separate the power supply function and communication function of the PoE port. The power supply output terminal of the function separation module is connected to the load module, and the communication terminal is used to build a communication link. S2. Establish a communication connection between the host computer and the PoE device under test. The host computer issues control commands to trigger the PoE device under test to start the PoE power supply and network communication functions. S3. By sending a communication parameter query command from the host computer, obtain the communication negotiation parameters of each PoE port of the PoE device under test, and judge whether the communication function of each PoE port is normal by comparing it with the preset communication standard. S4. By sending a power supply parameter query command to the host computer, obtain the power supply parameters of each PoE port of the PoE device under test, calculate the output power based on the power supply parameters, and judge whether the power supply function of each PoE port is normal by comparing with the preset power threshold. S5. Based on the judgment results of S3 and S4 above, output the performance test results of each PoE port of the PoE device under test. If any PoE port function is abnormal in either the power supply function or the communication function, execute the exception handling process.
[0007] In step S1, the functional separation module is a PoE splitter, the load module is a standard resistor with a preset resistance value, the resistance value of the standard resistor is adapted to the power supply requirements of the PoE protocol, and the communication link is a loopback link composed of the network interface card of the host computer and / or the network ports of multiple PoE network ports.
[0008] The standard resistor is a 20Ω gold resistor, and the PoE protocol includes at least one of IEEE 802.3af, IEEE 802.3at, and IEEE 802.3bt.
[0009] In step S2, the host computer and the PoE device under test establish a communication connection via the Telnet protocol, and the control command is used to trigger the PoE power supply circuit of the PoE device under test to be turned on and the network port communication negotiation to be started.
[0010] In step S4, the power supply parameters include the output voltage and output current values. The output power is calculated using the formula P=U×I. The preset power threshold is based on batch POE equipment test data and the POE standard power supply protocol and is used to intercept devices with abnormal power supply.
[0011] In step S4, if the output power of all PoE ports is within the preset power threshold, it is determined that the power supply function of each PoE port is normal, and the subsequent test items are continued; if the output power of any PoE port exceeds the preset power threshold, the PoE port is retested multiple times; if the output power still exceeds the preset power threshold after multiple retests, it is determined that the power supply function of the corresponding PoE port is abnormal, and the test program is terminated.
[0012] This application provides a performance testing device for a multi-POE network port device. The device includes a test environment component forming a test loop, a host computer control module, a data processing module, and a result output module. The test environment components include a function separation module, a load module, and a communication link component. The function separation module is connected to the PoE port of the PoE device under test and is used to separate the power supply function and communication function of the PoE port. The load module is connected to the power supply output terminal of the function separation module, and the communication link component is connected to the communication terminal of the function separation module. The host computer control module is used to establish a communication connection with the PoE device under test, issue control commands, power supply parameter query commands and communication parameter query commands, and receive parameter data fed back by the PoE device under test; The data processing module is used to calculate the output power based on the power supply parameters received by the host computer, determine whether the power supply function is normal by comparing with the preset power threshold, and determine whether the communication function is normal by comparing with the preset communication standard based on the communication negotiation parameters. The result output module is used to output the performance test results of each PoE port and trigger the exception handling process when a functional abnormality is detected.
[0013] The test environment components also include a positioning fixture, which is used to fix the PoE device under test, the functional separation module and the load module, so as to realize the rapid docking of the components and adapt to the batch testing requirements.
[0014] The host computer control module further includes an instruction encapsulation unit, which encapsulates the register query interface into standardized instructions. The standardized instructions include power supply parameter query instructions and communication parameter query instructions, and the instructions include a PoE network port identifier.
[0015] The data processing module also includes a log generation unit, which records the power supply parameters, output power, communication negotiation parameters and test results of each PoE port to form a traceable test log.
[0016] The present invention also proposes a readable storage medium storing a performance test program for a multi-PoE network port device, wherein when the performance test program is executed by a processor, it implements the steps of the performance test method for the multi-PoE network port device as described in any of the preceding claims.
[0017] The performance testing method, system, and readable storage medium for multi-PoE network port devices of this application adopt a hardware-software co-design approach. By incorporating network port rate negotiation query commands and power supply parameter query commands into the product-side software, data query and result determination can be completed simply by issuing commands through the host computer test program during the testing process, without the need for manual intervention in the coordinated control of multiple devices. At the same time, it supports parallel testing of multiple PoE network ports, and the testing process can be terminated immediately in case of test abnormalities, which significantly shortens the testing time of a single product and improves the testing efficiency of mass production.
[0018] This invention uses a PoE splitter to separate the testing of PoE network port power supply and communication functions, avoiding mutual interference between the two functions. At the same time, based on the product's built-in current detection circuit and register storage function, it ensures the accurate acquisition of voltage and current data. Combined with preset power thresholds and retesting procedures, it effectively improves the accuracy of test results, reliably intercepts defective products, and ensures the performance consistency of batch products. Attached Figure Description
[0019] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 This is a flowchart of the first embodiment of the performance testing method for multi-PoE network port devices of the present invention; Figure 2 This is a flowchart of the second embodiment of the performance testing method for multi-POE network port devices of the present invention; Figure 3 This is a schematic diagram of the performance testing device for the multi-POE network port device of the present invention; Figure 4 This is a schematic diagram of another embodiment of the performance testing device for multi-POE network port equipment of the present invention. Detailed Implementation
[0020] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0021] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0022] Example 1: This invention provides a performance testing method for multi-PoE network port devices. Please refer to [link / reference]. Figure 1 The method specifically includes the following implementation steps: S1. Set up a test environment and connect each PoE port of the PoE device under test to the function separation module. The function separation module is used to separate the power supply function and communication function of the PoE port. The power supply output terminal of the function separation module is connected to the load module, and the communication terminal is used to build a communication link. Specifically, the functional separation module is a PoE splitter, the load module is a standard resistor with a preset resistance value, the resistance value of the standard resistor is adapted to the power supply requirements of the PoE protocol, and the communication link is a loopback link composed of the network interface card of the host computer and / or the network ports of multiple PoE network ports.
[0023] In this embodiment, the test environment includes a multi-PoE network port routing device under test, a simple positioning fixture, a test computer, at least one PoE splitter, and at least one gold resistor. The multi-PoE network port routing device under test is placed in the positioning fixture, and each PoE port of the multi-PoE network port routing device under test is connected to the corresponding PoE splitter via a network cable. The DC output terminal of the PoE splitter is connected to the gold resistor, and the communication terminal of the PoE splitter is connected to the network card of the test computer (host computer) via a network cable or a loopback connection is made between the communication terminals of two PoE splitters.
[0024] In one embodiment, the resistance of the gold resistor is 20Ω, the network cable is a Cat6 specification network cable, the PoE splitter supports the PoE standard protocol and has a gigabit network port; the product-side software of the multi-PoE network port routing device under test predefines each PoE network port as LAN1, LAN2, LAN3, etc., and the defined network port identifiers correspond one-to-one with the silkscreen printing on the product's physical casing.
[0025] S2. Establish a communication connection between the host computer and the PoE device under test. The host computer issues control commands to trigger the PoE device under test to start the PoE power supply and network communication functions. Specifically, when the multi-PoE router under test is powered on, the host computer is a test computer. A communication connection is established between the test computer and the multi-PoE router under test, and the test program on the test computer is started.
[0026] S3. By sending a communication parameter query command from the host computer, obtain the communication negotiation parameters of each PoE port of the multi-PoE network port device under test, and judge whether the communication function of each PoE port is normal by comparing it with the preset communication standard. Specifically, the communication parameter query command includes a network port rate negotiation query command, used to query the maximum negotiated rate of each PoE network port; the test program sends the network port rate negotiation query command to the multi-PoE network port routing device under test to query the maximum negotiated rate of each PoE network port; if the maximum negotiated rate of all PoE network ports is the target rate, it is determined that the communication function of each PoE network port is normal; if the maximum negotiated rate of any PoE network port is not the target rate, it is determined that the communication function of the corresponding PoE network port is abnormal, and the test program terminates.
[0027] In one embodiment, the target rate is 1000M-FULL; the network port rate negotiation query instruction is obtained by encapsulating the register query interface provided by the product operating system. The register includes 0x0, 0x4, 0x5, 0x9, and 0xa, which are used to record the network port negotiation results. The negotiation results include 10M / 100M / 1000M rates and full-duplex / half-duplex modes.
[0028] S4. By sending a power supply parameter query command from the host computer, obtain the power supply parameters of each PoE port of the multi-PoE port routing device under test, calculate the output power based on the power supply parameters, and judge whether the power supply function of each PoE port is normal by comparing with the preset power threshold. Specifically, the power supply parameters include output voltage and output current values. The output power is calculated using the formula P=U×I. The preset power threshold is based on batch PoE device test data and the PoE standard power supply protocol, and is used to intercept devices with abnormal power supply. A PoE voltage and current detection command is sent to the multi-PoE network port routing device under test through a test program to query the output voltage and output current values of each PoE network port.
[0029] If the output power of all PoE ports is within the preset power threshold, the power supply function of each PoE port is determined to be normal, and subsequent test items are executed. If the output power of any PoE port exceeds the preset power threshold, the PoE port is retested multiple times. If the output power still exceeds the preset power threshold after multiple retests, the power supply function of the corresponding PoE port is determined to be abnormal, and the test program terminates. In this embodiment, the multiple retests are no less than 3 times.
[0030] The PoE voltage and current detection commands are encapsulated low-level commands, including the command "mfc eth show Intensity lanX" to query the current of a specified PoE port and the command "mfc eth showvolt lanX" to query the voltage of a specified PoE port, where X is the serial number corresponding to the port identifier; the multi-PoE port routing device under test is a PSE power supply device, and its multi-PoE port device has a built-in current sensing resistor and a current sensing amplifier, which form a circuit after being connected to an external gold resistor. The multi-PoE port device also has a main control chip, which converts the signal from the current sensing circuit into a value and stores it in an internal register for querying by the PoE voltage and current detection commands.
[0031] The preset power threshold is formulated based on the statistical summary of the power value distribution of each PoE port according to batch product test data, combined with the PoE standard power supply protocol DC 44-57V (typical 48V) for fault simulation, and is used to intercept products with abnormal PoE power supply.
[0032] S5. Based on the judgment results of S3 and S4 above, output the performance test results of each PoE port of the PoE device under test. If any PoE port is malfunctioning, proceed to step S6.
[0033] S6. Exception handling process: The test program terminates.
[0034] This invention achieves separate testing of the PoE network port power supply function and communication function through a PoE splitter, avoiding mutual interference between the two functions. At the same time, based on the product's built-in current detection circuit and register storage function, it ensures the accurate acquisition of voltage and current data. Combined with preset power thresholds and retesting procedures, it effectively improves the accuracy of test results, reliably intercepts defective products, and ensures the performance consistency of batch products.
[0035] This invention adopts a hardware-software co-design approach. By integrating network port rate negotiation query commands and PoE voltage and current detection commands into the product-side software, data query and result determination can be completed simply by issuing communication parameter query commands and power supply parameter query commands through the host computer test program during the testing process. No manual intervention is required for the coordinated control of multiple devices. At the same time, it supports parallel testing of multiple PoE network ports, and the test process can be terminated immediately in case of test abnormalities, which greatly shortens the testing time of a single product and improves the testing efficiency of mass production.
[0036] The performance testing method for multi-POE network port devices described in this invention can flexibly adjust parameters such as network port identifier definition and preset power threshold according to different models of multi-POE network port routing devices, without requiring significant modifications to the test environment and test procedures. It is adaptable to the testing needs of various multi-POE network port products and has strong versatility and scalability.
[0037] Example 2: The following example illustrates how the performance testing method described in Example 1 can be used to test the performance of routing devices with PoE ports.
[0038] For a router device with 5 PoE ports (model: XXX-5POE), specific testing methods are provided. Please refer to [link to relevant documentation]. Figure 2 This includes the following steps: Step 201: Set up the test environment Test environment components: 1 multi-POE router device under test (XXX-5POE), 1 simple test positioning fixture, 1 test computer (configured with multi-port card), 5 POE splitters (supporting IEEE802.3af protocol, gigabit ports), 5 20Ω gold resistors, and several short Cat6 network cables.
[0039] Device connection method: Place and fix the XXX-5POE router under test in a simple test positioning fixture; connect each of the device's five PoE ports (labeled LAN1~LAN5) to the PoE power supply ports of the five PoE splitters one by one using Cat6 network cables; connect the DC output terminal of each PoE splitter to a 20Ω gold resistor through a wire to form a power supply circuit; connect the communication terminals of the five PoE splitters to the multi-port card of the test computer through Cat6 network cables to establish a communication link between the test computer and each PoE port; the product software of the device under test has predefined the LAN1~LAN5 port labels, which correspond one-to-one with the LAN1~LAN5 printed on the device casing.
[0040] Step 202: Establish communication connection Power on the XXX-5POE router under test using the power adapter to ensure normal startup. Open the pre-installed test program on the test computer and establish a communication connection with the device under test via the telnet protocol (enter the device IP address, username, and password to log in). After successful login, start the automatic test process of the test program.
[0041] Step 203: Network Port Speed Test The test program automatically sends the network port speed negotiation query command "mfc eth show" to the device under test. This command is a wrapper command of the product's operating system register query interface, which can read the values of registers such as 0x0, 0x4, 0x5, 0x9, and 0xa inside the device and parse them to obtain the negotiation speed and duplex mode of each PoE network port.
[0042] The test program filters the parsing results. If the maximum negotiation rate of all PoE ports (LAN1~LAN5) is 1000M-FULL (Gigabit Full-Duplex), the communication function of each PoE port is determined to be normal, and the test proceeds to the next step of power supply function testing. If the negotiation rate of any port is 100M, 10M, or there is no negotiation result, the communication function of that port is determined to be abnormal, the test program terminates immediately, and the abnormal port identifier and the cause of the abnormality are recorded in the test log, prompting the operator to inspect the product.
[0043] Step 204: Power Supply Parameter Inquiry After the network port communication function test is passed, the test program sends PoE voltage and current detection commands to the device under test in sequence to query the output voltage and current of LAN1 to LAN5 network ports in turn: the command to query LAN1 network port is "mfc eth showIntensity lan1" (current query) and "mfc eth show volt lan1" (voltage query), and the command to query LAN2 to LAN5 network ports only needs to replace "lan1" with "lan2" to "lan5".
[0044] The PoE-related circuits of the device under test (DUT) have built-in current sensing resistors and current sensing amplifiers. When each PoE port is connected to an external 20Ω gold resistor to form a detection circuit path, the PoE main control chip continuously monitors the signal from the current sensing circuit, converts it into current and voltage values, and stores them in an internal register. Upon receiving a test command, the device feeds back the current and voltage values of the corresponding port to the test computer. The test program displays and stores the received data in real time. For example, the feedback result for the LAN1 port is "lan1 currents 171 success" (current 171mA) and "lan1 volt 51 success" (voltage 51V).
[0045] Step 205: Power Calculation The test program automatically calculates the output power of each PoE port according to the formula P=U*I, where U is the received voltage value (unit: V) and I is the received current value (unit: A). For example, the power of LAN1 port is P=51V*0.171A≈8.72W. The test program stores the power calculation results of LAN1~LAN5 ports in sequence and prints them to the test log, forming a correspondence table of "port identifier-voltage-current-power".
[0046] Step 206: Power supply function determination The test program calls the preset power threshold parameters (in this embodiment, the power threshold is 5.0W~13.0W based on batch test data and the POE standard protocol DC 44-57V) and compares the calculated power of each network port with the threshold; If the power of LAN1 to LAN5 is within the range of 5.0W to 13.0W, then the power supply function of each PoE port is determined to be normal, the test program records "Power supply function test passed", and continues to execute other whole-machine test items of the device (such as wireless function test, interface compatibility test, etc.). If the power of any network port is below 5.0W or above 13.0W, the test program will perform at least 3 retests on that network port (repeating the query and calculation power process in steps 204 and 205). In this embodiment, 3 retests will be performed. If the power still exceeds the threshold after 3 retests, the power supply function of the network port is determined to be abnormal, the test program will terminate, and the abnormal network port identifier, power value and retest results will be recorded in the test log, prompting the operator to inspect the product's PoE power supply circuit. If the power is within the threshold in 1 out of 3 retests, the power supply function of the network port is determined to be normal, and subsequent tests will continue.
[0047] Step S207: Based on the judgment results of the above-mentioned POE port power supply function and POE port communication function, output the performance test results of each POE port of the POE device under test. If any POE port function is abnormal in the POE port power supply function and POE port communication function, execute step S208.
[0048] S208, Exception handling process, terminate the test program.
[0049] This invention adopts a hardware-software co-design approach. By integrating network port rate negotiation query commands and PoE voltage and current detection commands into the product-side software, data query and result determination can be completed simply by issuing commands through the host computer test program during the testing process, without the need for manual intervention in the coordinated control of multiple devices. At the same time, it supports parallel testing of multiple PoE network ports, and the test process can be terminated immediately in case of test abnormalities, which greatly shortens the testing time of a single product and improves the testing efficiency of mass production.
[0050] Example 3: This application further provides a performance testing apparatus for multi-POE network port devices, configured to execute the performance testing method for multi-POE network port devices described in Embodiment 1; please refer to... Figures 3 to 4 The performance testing device for the multi-POE network port device includes a test environment component 30 forming a test loop, a host computer control module 40, a data processing module 50, and a result output module 60.
[0051] The test environment component 30 includes a function separation module 301, a load module 302, and a communication link component 303. The function separation module 301 is connected to the PoE port of the PoE device under test and is used to separate the power supply function and communication function of the PoE port. The load module 302 is connected to the power supply output terminal of the function separation module 301, and the communication link component 303 is connected to the communication terminal of the function separation module 301. In this embodiment, the load module 302 is a gold resistor, and the test environment components include a multi-PoE network port routing device under test, a simple positioning fixture, a test computer (host computer), at least one PoE splitter, and at least one gold resistor. The multi-PoE network port routing device under test is placed in the positioning fixture, and each PoE port of the multi-PoE network port routing device under test is connected to the corresponding PoE splitter via a network cable. The DC output terminal of the PoE splitter is connected to the gold resistor, and the communication terminal of the PoE splitter is connected to the network card of the test computer via a network cable or a loopback connection is made between the communication terminals of two PoE splitters.
[0052] The host computer control module 40 is used to establish a communication connection with the PoE device under test, send control commands, power supply parameter query commands and communication parameter query commands, and receive parameter data fed back by the PoE device under test; Specifically, the power supply parameters include output voltage and output current values. The output power is calculated using the formula P=U×I. The preset power threshold is based on batch PoE device test data and the PoE standard power supply protocol, and is used to intercept devices with abnormal power supply. A PoE voltage and current detection command is sent to the multi-PoE network port routing device under test through a test program to query the output voltage and output current values of each PoE network port.
[0053] Specifically, the communication parameter query command includes a network port rate negotiation query command, used to query the maximum negotiated rate of each PoE network port; the test program sends the network port rate negotiation query command to the multi-PoE network port routing device under test to query the maximum negotiated rate of each PoE network port; if the maximum negotiated rate of all PoE network ports is the target rate, then the communication function of each PoE network port is determined to be normal; if the maximum negotiated rate of any PoE network port is not the target rate, then the communication function of the corresponding PoE network port is determined to be abnormal, and the test program terminates.
[0054] The data processing module 50 is used to calculate the output power based on the power supply parameters received by the host computer, determine whether the power supply function is normal by comparing it with a preset power threshold, and determine whether the communication function is normal by comparing it with a preset communication standard based on the communication negotiation parameters. The result output module 60 is used to output the performance test results of each PoE network port and trigger the exception handling process when a functional abnormality is detected.
[0055] In one embodiment, the test environment component 30 further includes a positioning fixture 304, which is used to fix the PoE device under test, the functional separation module 301 and the load module 302, so as to realize the rapid docking of the components and adapt to the batch testing requirements.
[0056] The host computer control module 40 further includes an instruction encapsulation unit 401, which is used to encapsulate the register query interface into standardized instructions. The standardized instructions include power supply parameter query instructions and communication parameter query instructions, and the instructions include a POE network port identifier.
[0057] The data processing module 50 also includes a log generation unit 501, which records the power supply parameters, output power, communication negotiation parameters and test results of each PoE port to form a traceable test log.
[0058] The performance testing device for multi-POE network port devices described in this invention achieves separate testing of the POE network port power supply function and communication function through a POE splitter, avoiding mutual interference between the two functions. At the same time, based on the product's built-in current detection circuit and register storage function, it ensures the accurate acquisition of voltage and current data. Combined with preset power thresholds and retesting procedures, it effectively improves the accuracy of test results, reliably intercepts defective products, and ensures the performance consistency of batch products.
[0059] This invention adopts a hardware-software co-design approach. By integrating network port rate negotiation query commands and PoE voltage and current detection commands into the product-side software, data query and result determination can be completed simply by issuing commands through the host computer test program during the testing process, without the need for manual intervention in the coordinated control of multiple devices. At the same time, it supports parallel testing of multiple PoE network ports, and the test process can be terminated immediately in case of test abnormalities, which greatly shortens the testing time of a single product and improves the testing efficiency of mass production.
[0060] It should be noted that the above system embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments. Furthermore, the technical features in the method embodiments are also applicable to the system embodiments, and will not be repeated here.
[0061] Based on the above embodiments, the present invention also proposes a readable storage medium storing a power dynamic adjustment program, which, when executed by a processor, implements the steps of the performance testing method for multi-POE network port devices as described in any of the above embodiments.
[0062] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.
[0063] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0064] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0065] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0066] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A performance testing method for a multi-PoE network port device, characterized in that, The method includes: S1. Set up a test environment and connect each PoE port of the PoE device under test to the function separation module. The function separation module is used to separate the power supply function and communication function of the PoE port. The power supply output terminal of the function separation module is connected to the load module, and the communication terminal is used to build a communication link. S2. Establish a communication connection between the host computer and the PoE device under test. The host computer issues control commands to trigger the PoE device under test to start the PoE power supply and network communication functions. S3. By sending a communication parameter query command from the host computer, obtain the communication negotiation parameters of each PoE port of the PoE device under test, and judge whether the communication function of each PoE port is normal by comparing it with the preset communication standard. S4. By sending a power supply parameter query command to the host computer, obtain the power supply parameters of each PoE port of the PoE device under test, calculate the output power based on the power supply parameters, and judge whether the power supply function of each PoE port is normal by comparing with the preset power threshold. S5. Based on the judgment results of S3 and S4 above, output the performance test results of each PoE port of the PoE device under test. If any PoE port function is abnormal in either the power supply function or the communication function, execute the exception handling process.
2. The performance testing method for multi-PoE network port devices according to claim 1, characterized in that, In step S1, the functional separation module is a PoE splitter, the load module is a standard resistor with a preset resistance value, the resistance value of the standard resistor is adapted to the power supply requirements of the PoE protocol, and the communication link is a loopback link composed of the network interface card of the host computer and / or the network ports of multiple PoE network ports.
3. The performance testing method for multi-PoE network port devices according to claim 2, characterized in that, The standard resistor is a 20Ω gold resistor, and the PoE protocol includes at least one of IEEE 802.3af, IEEE 802.3at, and IEEE 802.3bt.
4. The performance testing method for multi-PoE network port devices according to claim 1, characterized in that, In step S2, the host computer and the PoE device under test establish a communication connection through the Telnet protocol. The control command is used to trigger the PoE power supply circuit of the PoE device under test to be turned on and the network port communication negotiation to be started.
5. The performance testing method for multi-PoE network port devices according to claim 1, characterized in that, In step S4, the power supply parameters include the output voltage value and the output current value. The output power is calculated using the formula P=U×I. The preset power threshold is based on batch POE equipment test data and the POE standard power supply protocol and is used to intercept devices with abnormal power supply.
6. The performance testing method for multi-PoE network port devices according to claim 1, characterized in that, In step S4, if the output power of all PoE ports is within the preset power threshold, it is determined that the power supply function of each PoE port is normal, and the subsequent test items are executed. If the output power of any PoE port exceeds the preset power threshold, the PoE port is retested multiple times. If the output power still exceeds the preset power threshold after multiple retests, it is determined that the power supply function of the corresponding PoE port is abnormal, and the test program is terminated.
7. A performance testing device for multi-PoE network port devices, characterized in that, It includes test environment components that form the test loop, host computer control module, data processing module, and result output module; The test environment components include a function separation module, a load module, and a communication link component. The function separation module is connected to the PoE port of the PoE device under test and is used to separate the power supply function and communication function of the PoE port. The load module is connected to the power supply output terminal of the function separation module, and the communication link component is connected to the communication terminal of the function separation module. The host computer control module is used to establish a communication connection with the PoE device under test, issue control commands, power supply parameter query commands and communication parameter query commands, and receive parameter data fed back by the PoE device under test; The data processing module is used to calculate the output power based on the power supply parameters received by the host computer, determine whether the power supply function is normal by comparing with the preset power threshold, and determine whether the communication function is normal by comparing with the preset communication standard based on the communication negotiation parameters. The result output module is used to output the performance test results of each PoE port and trigger the exception handling process when a functional abnormality is detected.
8. The distributed router power dynamic adjustment system according to claim 7, characterized in that, The test environment components also include a positioning fixture, which is used to fix the PoE device under test, the functional separation module and the load module, so as to realize the rapid docking of the components and adapt to the batch testing requirements.
9. The distributed router power dynamic adjustment system according to claim 7, characterized in that, The host computer control module also includes an instruction encapsulation unit, which encapsulates the register query interface into standardized instructions. The standardized instructions include power supply parameter query instructions and communication parameter query instructions, and the instructions include a POE network port identifier.
10. The distributed router power dynamic adjustment system according to claim 7, characterized in that, The data processing module also includes a log generation unit, which records the power supply parameters, output power, communication negotiation parameters and test results of each PoE port to form a traceable test log.