Control method and equipment, electronic device and storage medium

By switching between multiple power supply modes and negotiating handshakes, PSE devices can adapt to the power supply needs of different PD devices, solving the problems of user experience and supplier reputation, and improving flexibility and versatility.

CN121841867APending Publication Date: 2026-04-10TP-LINK INT SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-24
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing PSE equipment only supports one power supply mode, which causes users to be unable to power on the device when using incompatible PD devices, resulting in wasted user time and a negative experience with PSE equipment suppliers.

Method used

The PSE device switches between the first, second, and third power supply modes and negotiates with the PD device to select the successful power supply mode for power supply.

Benefits of technology

This has improved the flexibility and versatility of PSE equipment, enhanced the user experience, and improved the reputation of PSE equipment suppliers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121841867A_ABST
    Figure CN121841867A_ABST
Patent Text Reader

Abstract

The invention discloses a PSE equipment control method, PSE equipment, an electronic device and a computer readable storage medium, and relates to the technical field of Ethernet power supply. The method comprises the following steps: switching on a power supply and connecting PD equipment; and carrying out handshake negotiation with the PD equipment by adopting each of the plurality of power supply modes in sequence, and when the handshake negotiation of the current power supply mode fails, switching to the next power supply mode to carry out handshake negotiation with the PD equipment, and when the handshake negotiation of the current power supply mode succeeds, using the current power supply mode to supply power to the PD. According to the method and the device, the PSE can be ensured to supply power to various PD devices, and the flexibility and the universality of the PSE device are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power over Ethernet, and more particularly, to a control method of a PSE device, a PSE device, an electronic device and a computer readable storage medium. BACKGROUND

[0002] PoE (Power Over Ethernet) is a technology of transmitting data and direct current power to a powered device (PD) by a power sourcing equipment (PSE) through a standard Ethernet cable. The IEEE802.3at protocol specifies three standard power supply modes of the PSE device to the PD device. Currently, the mainstream PSE device manufacturers only design one fixed power supply mode, and the user needs to match the power supply mode of the PSE device to the power supply mode of the PD device to normally power on. However, in the case that the user uses a PD device with only one group of power supply lines to match the protocol of the double-standard PD device, and the power supply lines do not match the power supply mode of the PSE device, or in the case that the power supply lines of the PD device that match the power supply mode of the PSE device are damaged, the PD device cannot normally power on and work, and the user may suspect that the PSE device, the network cable or the PD device is damaged. At this time, there are problems of wasting user time in troubleshooting, seriously affecting the user's experience, and affecting the reputation of the PSE device supplier. SUMMARY

[0003] The embodiments of the present application provide a control method of a PSE device, a PSE device, an electronic device and a computer readable storage medium, which can switch between a first power supply mode, a second power supply mode and a third power supply mode, and respectively perform handshake negotiation with a connected PD device based on any one of the power supply modes. In the case that the negotiation result is successful, the corresponding power supply mode is used to supply power to the PD device, so as to ensure that the PSE device can supply power to multiple PD devices, thereby improving the flexibility and universality of the PSE device, and further improving the user's experience and the reputation of the PSE device supplier.

[0004] The control method of the PSE device of the embodiments of the present application includes turning on the power supply and connecting a PD device; and sequentially using each of a plurality of power supply modes to perform handshake negotiation with the PD device, switching to the next power supply mode to perform handshake negotiation with the PD device when the handshake negotiation in the current power supply mode fails; and using the current power supply mode to supply power to the PD device when the handshake negotiation in the current power supply mode succeeds.

[0005] In some embodiments, the sequentially adopting each of the plurality of power supply modes to handshake with the PD device, switching to the next power supply mode to handshake with the PD device when the handshake negotiation of the current power supply mode fails, and using the current power supply mode to supply power for the PD when the handshake negotiation of the current power supply mode succeeds, comprises: adopting the first power supply mode to handshake with the PD device and obtaining a first negotiation result; supplying power for the PD in the first power supply mode when the first negotiation result is successful; adopting the second power supply mode to handshake with the PD device and obtaining a second negotiation result when the first negotiation result is unsuccessful; supplying power for the PD in the second power supply mode when the second negotiation result is successful; adopting the third power supply mode to handshake with the PD device and obtaining a third negotiation result when the second negotiation result is unsuccessful; and supplying power for the PD in the third power supply mode when the third negotiation result is successful.

[0006] In some embodiments, the control method further comprises, when the third negotiation result is unsuccessful, returning to the step of adopting the first power supply mode to handshake with the PD device and obtaining a first negotiation result.

[0007] In some embodiments, the adopting the first power supply mode to handshake with the PD device and obtaining a first negotiation result comprises repeatedly performing the handshake negotiation based on the first power supply mode a preset number of times and sequentially obtaining intermediate negotiation results of each handshake negotiation; when a first intermediate negotiation result is successful, outputting the first intermediate negotiation result as the first negotiation result and terminating the handshake negotiation; or, when any one of the intermediate negotiation results is unsuccessful, determining that the first negotiation result is unsuccessful and outputting.

[0008] In some embodiments, the PSE device is provided with a plurality of output terminals, and the polarity and conduction state of the output terminals are adjustable. The PD device is provided with a plurality of input terminals, and the output terminals and the input terminals correspond one-to-one and can be used for at least current transmission. When the PSE device adopts the first power supply mode to supply power, the PSE device is in a first output state. When the PSE device adopts the second power supply mode to supply power, the PSE device is in a second output state. When the PSE device adopts the third power supply mode to supply power, the PSE device is in a third output state. In the first output state, the second output state and the third output state, the polarity and conduction state of the output terminals corresponding to any two of them are not completely the same.

[0009] In some embodiments, the PSE device includes a first electrode and a second electrode, the first electrode and the second electrode having opposite polarities. The PSE device also includes a first switching circuit and a second switching circuit, the first switching circuit being electrically connected to the first electrode, and the second switching circuit being electrically connected to the second electrode. The output terminals include a first output terminal, a second output terminal, a third output terminal, and a fourth output terminal. The first switching circuit is selectively connected to the first output terminal, the second output terminal, the third output terminal, and the fourth output terminal, and the second switching circuit is selectively connected to the first output terminal, the second output terminal, the third output terminal, and the fourth output terminal. When the PSE device is in the first output state, the first switching circuit connects the first electrode to the first output terminal, and the second switching circuit connects the second electrode to the second output terminal; when the PSE device is in the third output state, the first switching circuit connects the first electrode to the fourth output terminal, and the second switching circuit connects the second electrode to the third output terminal.

[0010] In some embodiments, the control method further includes, in the event that the PD device is not unplugged and an anomaly occurs during the process of powering the PD device using the first power supply mode, cyclically performing handshake negotiation with the PD device based on the second power supply mode, handshake negotiation with the PD device based on the third power supply mode, and handshake negotiation with the PD device based on the first power supply mode. If the second negotiation result is successful, the PD device is powered using the second power supply mode; or, if the third negotiation result is successful, the PD device is powered using the third power supply mode; or, if the first negotiation result is successful, the PD device is powered using the first power supply mode.

[0011] In some embodiments, the control method further includes, in the event that the PD device is not unplugged and an anomaly occurs during the process of powering the PD device using the second power supply mode, cyclically performing handshake negotiation with the PD device based on the third power supply mode, handshake negotiation with the PD device based on the first power supply mode, and handshake negotiation with the PD device based on the second power supply mode. If the third negotiation result is successful, the PD device is powered using the third power supply mode; or, if the first negotiation result is successful, the PD device is powered using the first power supply mode; or, if the second negotiation result is successful, the PD device is powered using the second power supply mode.

[0012] In some embodiments, the control method further includes, in the event that the PD device is not unplugged and an anomaly occurs during the process of powering the PD device using the third power supply mode, cyclically performing handshake negotiation with the PD device based on the first power supply mode, handshake negotiation with the PD device based on the second power supply mode, and handshake negotiation with the PD device based on the third power supply mode. If the first negotiation result is successful, the PD device is powered using the first power supply mode; or, if the second negotiation result is successful, the PD device is powered using the second power supply mode; or, if the third negotiation result is successful, the PD device is powered using the third power supply mode.

[0013] In some embodiments, the control method further includes setting the first power supply mode as the default power supply mode when the PD device is unplugged. When the PD device is reconnected, a handshake negotiation is first performed with the PD device using the default power supply mode, and then the handshake negotiation based on the first power supply mode, the handshake negotiation based on the second power supply mode, and the handshake negotiation based on the third power supply mode are performed cyclically.

[0014] This application also provides a PSE device. The PSE device includes a memory and a processor, the memory being used to store instructions, the instructions stored in the memory being executed by the processor to implement the control method described in any of the above embodiments.

[0015] This application also provides an electronic device, which includes the PSE device described in any of the above embodiments.

[0016] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the control method described in any of the above embodiments.

[0017] In the control method, PSE device, electronic device, and computer-readable storage medium provided in this application, by switching between different power supply modes, handshake negotiation is performed with the connected PD device based on any of the aforementioned power supply modes. If the negotiation result is successful, the PSE device is controlled to adopt the corresponding power supply mode to provide standard power to the PD device in accordance with the IEEE 802.3at protocol requirements. In this way, the PSE device can match PD devices with various power supply modes, such as dual-standard PD devices with only one set of power lines conforming to the protocol, or standard PD devices with partially damaged power lines. This improves the flexibility and versatility of the PSE device, enhancing the user experience and the reputation of the PSE device supplier.

[0018] Additional aspects and advantages of embodiments of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of this application. Attached Figure Description

[0019] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, wherein: Figure 1 This is a flowchart illustrating the control method of a PSE device according to some embodiments of this application; Figure 2 This is a flowchart illustrating the control method of a PSE device according to some embodiments of this application; Figure 3 This is a schematic diagram of the structure of a PSE device according to some embodiments of this application; Figure 4 This is a flowchart illustrating the control method of a PSE device according to some embodiments of this application; Figure 5 This is a flowchart illustrating the process of a control method for a PSE device in some embodiments of this application, in which a handshake negotiation is performed with a PD device based on a first power supply mode, and a first negotiation result is obtained. Figure 6 This is a schematic diagram illustrating the interaction between a PSE device and a PD device in the first output state according to some embodiments of this application; Figure 7 This is a schematic diagram illustrating the interaction between the PSE device and the PD device in the second output state according to some embodiments of this application; Figure 8 This is a schematic diagram illustrating the interaction between the PSE device and the PD device in the third output state according to some embodiments of this application; Figure 9 This is a flowchart illustrating the control method of a PSE device according to some embodiments of this application; Figure 10This is a flowchart illustrating the control method of a PSE device according to some embodiments of this application; Figure 11 This is a schematic diagram illustrating the connection state of a computer-readable storage medium and a processor according to some embodiments of this application.

[0020] Explanation of key component symbols: PSE device 100; memory 10; processor 30; first output terminal 51; second output terminal 53; third output terminal 55; fourth output terminal 57; first switching circuit 71; second switching circuit 73; Network cable 200; PD device 300; first input terminal 310; second input terminal 330; third input terminal 350; fourth input terminal 370. Detailed Implementation

[0021] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of this application, and should not be construed as limiting the embodiments of this application.

[0022] PoE (Power over Ethernet) is a technology that uses standard Ethernet lines to provide DC power to terminal devices while transmitting data signals. The power supply equipment (PSE) is responsible for injecting and managing power, typically a network switch or power module; the powered device (PD) is the terminal device that receives and uses this power, such as a network camera, wireless access point, or IP phone. The two are connected via conventional Ethernet cables, enabling power transmission while data communication is achieved, thus avoiding dependence on independent power lines, significantly simplifying cabling, and improving the flexibility and manageability of device deployment. In terms of technical specifications, the IEEE 802.3at protocol clearly defines three standard power supply modes for PSE devices to PD devices. However, due to design simplification, cost control, or specific application scenarios, mainstream PSE device manufacturers often only implement power supply functionality in one of these modes. Therefore, when connecting PD devices at the backend, users must ensure that the power supply mode supported by the PD device strictly matches the power supply mode set by the front-end PSE device; otherwise, a valid power connection cannot be established. However, in practical applications, several typical scenarios can prevent PD devices from powering on and operating normally. For example, if the PD device used by the user is a "dual-standard PD device" with only a single set of compatible protocol power supply pairs, and the power supply mode corresponding to this pair is inconsistent with the power supply mode provided by the PSE device, then although both the PD device and the PSE device have the protocol's power supply mode, they cannot work due to mode mismatch. Another example is physical damage to the PD device itself. Although it may have a pair of wires matching the power supply mode of the PSE device, manufacturing defects, connector failure, or long-term use may cause an open circuit or abnormal impedance in this pair, thus blocking the power transmission path. In any of these situations, the PD device cannot receive power and therefore cannot start operating. Since the user's immediate perception is simply that the device cannot power on, they are very likely to attribute the problem to superficial factors such as PSE device failure, network cable blockage, or PD device hardware damage. On the one hand, users may need to spend a lot of time troubleshooting each link, including replacing cables, sending the device for repair, or reconfiguring the network, resulting in a waste of time and effort and reducing user satisfaction. On the other hand, since the problem often manifests as the PSE device "failing to supply power," even if the actual responsibility lies in mode incompatibility or partial damage to the PD device itself, users may still attribute the negative experience to the PSE device manufacturer, thereby questioning the product's reliability and technical capabilities, ultimately damaging the company's brand reputation and market image. To address this issue, this application provides a control method for the PSE device (such as... Figure 1 , Figure 2 ,Figure 4 , Figure 5 , Figure 9 and Figure 10 As shown), PSE equipment 100 (such as Figure 3 (as shown), electronic devices and computer-readable storage media 500 (such as...) Figure 11 (As shown).

[0023] Please see Figure 1 and Figure 3 The control method for the PSE device according to the embodiments of this application includes: 01: Connect the power supply and connect the PD device 300; and 03: Sequentially use each of the multiple power supply modes to perform handshake negotiation with PD device 300. If the handshake negotiation of the current power supply mode fails, switch to the next power supply mode to perform handshake negotiation with PD device 300. If the handshake negotiation of the current power supply mode succeeds, use the current power supply mode to power PD device 300.

[0024] The control method for the PSE device described above can be applied to the PSE device 100. The PSE device 100 in this embodiment includes a memory 10 and a processor 30. The memory 10 is used to store instructions. The instructions stored in the memory 10 are processed by the processor 30. The processor 30 is used to: control the power supply to be turned on and connect to the PD device 300; and sequentially use each of a plurality of power supply modes to perform handshake negotiation with the PD device 300. If the handshake negotiation of the current power supply mode fails, switch to the next power supply mode to perform handshake negotiation with the PD device 300; and if the handshake negotiation of the current power supply mode succeeds, use the current power supply mode to power the PD device 300.

[0025] Specifically, in this application, the PSE device 100 is a device used for both data transmission and power supply in a PoE system. The PSE device 100 can detect, identify, and classify the PD device 300, i.e., perform handshake negotiation to ensure that power supply and communication are only performed with PD devices 300 that conform to Ethernet power supply protocols (such as IEEE 802.3at), ensuring intelligent, efficient, and secure power transmission over the network. Simultaneously, the PSE device 100 also has power management functions. It continuously monitors the actual power consumption of each output (described below) to ensure that it does not exceed the power level limit of the PD device 300, and can efficiently detect whether the PD device 300 has been physically disconnected through disconnection detection. As the core of the PoE system, the PSE device 100 can safely and stably supply power to the PD device 300 via the network cable 200, greatly simplifying the power supply and deployment of network terminal devices.

[0026] More specifically, the PSE device 100 includes a memory 10 and a processor 30. The memory 10 stores instructions corresponding to the control methods of the PSE device, and the processor 30 executes the instructions stored in the memory 10 to enable the PSE device 100 to implement the corresponding control methods. The memory 10 and the processor 30 are electrically connected and connected to various parts of the PSE device 100 through various interfaces and lines. The processor 30 executes methods 01, 03, 051, 053, 071, 073, and 051 by running or loading instructions stored in the memory 10 and calling data stored in the memory 10, thereby controlling the PSE device 100.

[0027] Furthermore, the PSE device 100 is powered on to enter the startup state. The PSE device 100 is connected to the PD device 300 via the network cable 200 and is able to perform handshake negotiation. For example, this application uses the IEEE 802.3at protocol as an example for illustration. In this case, the power supply mode that the PSE device 100 can adopt is Alternative A (MDI), Alternative A (MDI-X), and Alternative B. When PSE device 100 adopts the Alternative A (MDI) power supply mode, the 1 / 2 and 3 / 6 power supply pairs of PSE device 100 are used for power supply, with the polarity of the 1 / 2 power supply pair being positive and the polarity of the 3 / 6 power supply pair being negative. When PSE device 100 adopts the Alternative A (MDI-X) power supply mode, the 1 / 2 and 3 / 6 power supply pairs of PSE device 100 are used for power supply, with the polarity of the 1 / 2 power supply pair being negative and the polarity of the 3 / 6 power supply pair being positive. When PSE device 100 adopts the Alternative B power supply mode, the 4 / 5 and 7 / 8 power supply pairs of PSE device 100 are used for power supply, with the polarity of the 4 / 5 power supply pair being positive and the polarity of the 7 / 8 power supply pair being negative.

[0028] If the PD device 300 is a standard PD device compliant with the IEEE 802.3at protocol, then the PSE device 100 can supply power to the PD device 300 regardless of the power supply mode used by the PSE device 100. However, some manufacturers, for reasons such as cost reduction or increased competitiveness, produce PD devices 300 where only some power supply pairs comply with the IEEE 802.3at protocol. In this case, the PD device 300 is a "dual-standard PD device." For example, a PD device 300 might only have power supply pairs 1 / 2 and 3 / 6 compliant with the IEEE 802.3at protocol, or only power supply pairs 4 / 5 and 7 / 8 compliant. In this case, normal power supply is only possible when the PSE device 100 supplies power with the corresponding power supply pairs. For another example, if power supply pairs 4 / 5 and 7 / 8 of a standard PD device 300 malfunction, and the user-purchased PSE device 100 can only use the Alternative B power supply mode, then the PSE device 100 cannot supply power to the PD device 300.

[0029] It should be noted that this application does not impose any restrictions on the Power over Ethernet protocol that the PSE device 100 and PD device 300 comply with; the aforementioned IEEE 802.3at protocol is only used as an example.

[0030] The power supply mode is a preset, protocol-compliant power supply mode of the PSE device 100. The differences between various power supply modes lie in the different power supply pairs used or the different polarities of the power supply pairs. For example, a certain power supply mode may be one of Alternative A (MDI), Alternative A (MDI-X), and Alternative B. When the PSE device 100 is connected to the PD device 300, the processor 30 controls the PSE device 100 to perform a handshake negotiation with the PD device 300 based on this power supply mode. Specifically, this involves sending a probe signal to the PD device 300 and determining whether the connected PD device 300 can comply with this power supply mode based on the measured current value between the two. The negotiation result includes either "success" or "failure," where "success" corresponds to the PD device 300 being able to comply with this power supply mode, and "failure" corresponds to the PD device 300 being unable to comply with this power supply mode. The processor 30 can sequentially use each of multiple power supply modes to perform handshake negotiation with the PD device 300. If the handshake negotiation result of the current power supply mode is "failed", it switches to the next power supply mode to perform handshake negotiation with the PD device 300; if the handshake negotiation result of the current power supply mode is "successful", it uses the current power supply mode to power the PD device 300.

[0031] Therefore, compared to the PSE device 100 which only has one power supply mode, in the PSE device 100 of this application, the processor 30 can control the PSE device 100 to attempt to supply power to the PD device 300 in multiple different power supply modes, in order to address the problem that only some power supply pairs of the dual-standard PD device 300 conform to the protocol, or that at least part of the structure of the standard PD device 300 is damaged in some scenarios.

[0032] In the control method for the PSE device provided in this application, by switching between different power supply modes, handshake negotiation is performed with the connected PD device 300 based on any of the aforementioned power supply modes. If the negotiation result is "successful," the PSE device 100 is controlled to adopt the corresponding power supply mode to provide standard power to the PD device 300 in accordance with the IEEE 802.3at protocol requirements. At this time, the PSE device 100 can supply power to PD devices 300 that match various power supply modes, such as dual-standard PD devices 300 with only one set of power lines conforming to the protocol, or standard PD devices 300 with only a partial set of power lines that are damaged. This improves the flexibility and versatility of the PSE device 100, enhancing the user experience and the reputation of the PSE device 100 supplier.

[0033] Please see Figure 2 and Figure 3 In some implementations, 03: Handshake negotiation is performed sequentially with each of multiple power supply modes to the PD device; if the handshake negotiation fails in the current power supply mode, the process switches to the next power supply mode to perform handshake negotiation with the PD device; if the handshake negotiation succeeds in the current power supply mode, the current power supply mode is used to power the PD, including: 031: Based on the first power supply mode, a handshake negotiation is performed with the PD device 300, and the first negotiation result is obtained; 0331: If the first negotiation is successful, power the PD device 300 in the first power supply mode; 0333: If the first negotiation fails, a handshake negotiation is initiated with the PD device 300 based on the second power supply mode, and a second negotiation result is obtained; 0341: If the second negotiation is successful, power the PD device 300 with the second power supply mode; 0343: If the second negotiation fails, a handshake negotiation is initiated with the PD device 300 based on the third power supply mode, and a third negotiation result is obtained; and 0351: If the third negotiation is successful, power the PD device 300 with the third power supply mode.

[0034] The control method for the PSE device described above can be applied to the PSE device 100. The PSE device 100 in this embodiment includes a memory 10 and a processor 30. The memory 10 is used to store instructions, and the instructions stored in the memory 10 are controlled by the processor 30. The processor 30 is used to: control the power supply to be turned on and connect to the PD device 300; control the handshake negotiation with the PD device 300 based on a first power supply mode and obtain a first negotiation result; control the power supply to the PD device 300 in the first power supply mode if the first negotiation result is successful; control the handshake negotiation with the PD device 300 based on a second power supply mode and obtain a second negotiation result if the second negotiation result is successful; control the power supply to the PD device 300 in the second power supply mode if the second negotiation result is unsuccessful; control the handshake negotiation with the PD device 300 based on a third power supply mode and obtain a third negotiation result if the second negotiation result is unsuccessful; and control the power supply to the PD device 300 in the third power supply mode if the third negotiation result is successful.

[0035] Specifically, the first power supply mode is a preset, protocol-compliant power supply mode of the PSE device 100. The differences between various power supply modes lie in the different power supply pairs used or the different polarities of the power supply pairs. For example, the first power supply mode is one of Alternative A (MDI), Alternative A (MDI-X), and Alternative B. When the PSE device 100 is connected to the PD device 300, the processor 30 controls the PSE device 100 to perform a handshake negotiation with the PD device 300 based on the first power supply mode. Specifically, this involves sending a probe signal to the PD device 300 and determining whether the connected PD device 300 can comply with the first power supply mode based on the measured current value between the two. The first negotiation result includes either "success" or "failure," where "success" corresponds to the PD device 300 being able to comply with the first power supply mode, and "failure" corresponds to the PD device 300 being unable to comply with the first power supply mode. If the first negotiation result is "successful", the processor 30 controls the PSE device 100 to supply power to the PD device 300 in the first power supply mode. If the first negotiation result is "failure", the processor 30 determines that the power supply line pair corresponding to the first power supply mode of the PD device 300 cannot be supplied with power in accordance with the protocol.

[0036] Therefore, the processor 30 switches the power supply mode of the PSE device 100 to the second power supply mode. The second power supply mode differs from the first power supply mode, for example, by using different power supply pairs or having different polarities. For instance, the second power supply mode can be any of Alternative A (MDI), Alternative A (MDI-X), and Alternative B, excluding the first power supply mode. The processor 30 continues to control the PSE device 100 to perform a handshake negotiation with the PD device 300 based on the second power supply mode and obtain a second negotiation result. The second negotiation result also includes two options: "success" or "failure." "Success" indicates that the PD device 300 can comply with the second power supply mode, while "failure" indicates that the PD device 300 cannot comply with the second power supply mode. If the second negotiation result is "successful", the processor 30 controls the PSE device 100 to supply power to the PD device 300 in the second power supply mode. If the second negotiation result is "failure", the processor 30 determines that the power supply line pair corresponding to the second power supply mode of the PD device 300 cannot be supplied with power in accordance with the protocol.

[0037] Therefore, at this time, the processor 30 switches the power supply mode of the PSE device 100 to the third power supply mode. The third power supply mode is different from the first and second power supply modes. For example, the third power supply mode is another one of Alternative A (MDI), Alternative A (MDI-X), and Alternative B besides the first and second power supply modes. The processor 30 continues to control the PSE device 100 to perform handshake negotiation with the PD device 300 based on the third power supply mode and obtain the third negotiation result. The third negotiation result also includes two types: "success" and "failure". "Success" means that the PD device 300 can follow the third power supply mode, and "failure" means that the PD device 300 cannot follow the third power supply mode. If the third negotiation result is "success", the processor 30 controls the PSE device 100 to power the PD device 300 in the third power supply mode.

[0038] Therefore, compared to the PSE device 100 which only has one power supply mode, in the PSE device 100 of this application, the processor 30 can control the PSE device 100 to attempt to supply power to the PD device 300 in multiple different power supply modes, in order to address the problem that only some power supply pairs of the dual-standard PD device 300 conform to the protocol, or that at least part of the structure of the standard PD device 300 is damaged in some scenarios.

[0039] In the control method for the PSE device provided in this application, by switching between a first power supply mode, a second power supply mode, and a third power supply mode, a handshake negotiation is performed with the connected PD device 300 based on any of the aforementioned power supply modes. If the negotiation result is "successful," the PSE device 100 is controlled to adopt the corresponding power supply mode to provide standard power to the PD device 300 in accordance with the IEEE 802.3at protocol requirements. This improves the flexibility and versatility of the PSE device 100, enhancing the user experience and the reputation of the PSE device 100 supplier.

[0040] Please see Figure 2 to Figure 4 In some implementations, the control method further includes: 0353: If the third negotiation fails, return to the step of handshaking and negotiating with the PD device 300 based on the first power supply mode and obtaining the first negotiation result.

[0041] The control method of the PSE device described above can be applied to the PSE device 100. The processor 30 in this embodiment is used to: in the case that the third negotiation result fails, control to return to the step of handshaking negotiation with the PD device 300 based on the first power supply mode and obtaining the first negotiation result.

[0042] Specifically, during the handshake negotiation process between PSE device 100 and PD device 300, due to factors such as poor quality of network cable 200, long distance of network cable 200, aging of PSE device 100 and / or PD device 300, or electromagnetic interference, a "successful" negotiation result may be mistakenly judged as a "failed" negotiation result. Therefore, in the case of a "failed" third negotiation result, the processor 30 determines that the power supply line pair corresponding to the third power supply mode of this PD device 300 cannot provide power in accordance with the protocol, and returns to step 03 of the execution method to continue the subsequent steps.

[0043] At this time, the processor 30 can control the PSE device 100 to repeatedly perform handshake negotiations with the PD device 300 based on the first power supply mode, the second power supply mode, and the third power supply mode, to avoid "failure" in the negotiation result due to misjudgment. In this case, the control method has a high fault tolerance rate; the PSE device 100 can attempt to power the PD device 300 multiple times using different power supply modes. The PSE device 100 has high flexibility, and the success rate of the power supply process is improved, which is beneficial to enhancing the user experience and the reputation of the PSE device 100 supplier.

[0044] Please see Figure 2 , Figure 3 and Figure 5In some implementations, 031: Based on the first power supply mode, a handshake negotiation is performed with the PD device 300, and a first negotiation result is obtained, including: 0311: Repeat the handshake negotiation based on the first power supply mode a preset number of times, and obtain the intermediate negotiation results of each handshake negotiation in sequence; 0313: If the first intermediate negotiation result is successful, output this intermediate negotiation result as the first negotiation result and terminate the handshake negotiation; or 0315: If any intermediate negotiation result fails, determine that the first negotiation result has failed and output it.

[0045] The control method for the PSE device described above can be applied to the PSE device 100. The processor 30 in this embodiment is used to: control the repeated execution of handshake negotiation based on the first power supply mode a preset number of times, and sequentially obtain the intermediate negotiation results of each handshake negotiation; if the first intermediate negotiation result is successful, control the output of the intermediate negotiation result as the first negotiation result and stop the handshake negotiation; or, if any intermediate negotiation result is a failure, determine that the first negotiation result is a failure and output it.

[0046] Specifically, as mentioned above, during the handshake negotiation process between PSE device 100 and PD device 300, there is a possibility that a "successful" negotiation result may be mistakenly judged as a "failed" negotiation result. This application defines a handshake negotiation cycle as the process of negotiating with PD device 300 based on a first power supply mode, then a second power supply mode, then a third power supply mode, and finally back to negotiating with PD device 300 based on the first power supply mode. While this handshake negotiation cycle method can mitigate the misjudgment problem to some extent, the cycle length is relatively long, potentially leading to low efficiency in the handshake negotiation process.

[0047] To address this issue, the processor 30 executes the handshake negotiation process multiple times during the handshake negotiation between the PSE device 100 and the PD device 300 based on the first power supply mode, in order to avoid accidental misjudgments. The preset number of times is predetermined, representing the number of times the handshake negotiation operation will be performed in a single handshake negotiation based on the first power supply mode. The preset number of times can be a fixed value set at the factory for the PSE device 100, or a variable value that the user can adjust according to actual application needs during use.

[0048] At this time, the processor 30 controls the PSE device 100 to perform a preset number of handshake negotiations with the PD device 300 based on the first power supply mode. The result of each handshake negotiation is the intermediate negotiation result. It can be understood that the intermediate negotiation result also includes two types: "failure" and "success".

[0049] If the first intermediate negotiation result is "successful," the processor 30 determines that any previous "failures" in the handshake negotiation were misjudgments, and the PD device 300 can follow the first power supply mode. The processor 30 outputs the intermediate negotiation result "successful" as the first negotiation result and terminates the handshake negotiation. It can be understood that the number of handshake negotiations performed at this time is less than or equal to a preset number. For example, if the preset number is 5, and the result of the 4th handshake negotiation between the PSE device 100 and the PD device 300 is "successful," the 5th handshake negotiation will not be performed, and "successful" will be output as the first negotiation result.

[0050] If the processor 30 controls the PSE device 100 and PD device 300 to perform a preset number of handshake negotiations, and any intermediate negotiation result is "failure", the processor 30 determines that the PD device 300 cannot follow the first power supply mode within a certain confidence interval, and outputs "failure" as the first negotiation result. For example, if the preset number of times is 5, and the result of 5 handshake negotiations between the PSE device 100 and PD device 300 is "failure", then "failure" is output as the first negotiation result.

[0051] Therefore, in the control method for the PSE device provided in this application, the impact of misjudgment on the negotiation result is effectively eliminated by repeatedly executing the handshake negotiation based on the first power supply mode a preset number of times, thereby improving the accuracy of the handshake negotiation. At this point, the control method has a higher fault tolerance rate, the PSE device 100 has higher flexibility, and the success rate and efficiency of the power supply process are both improved, which is beneficial to enhancing the user experience and the reputation of the PSE device 100 supplier.

[0052] It should be noted that the handshake negotiation process with the PD device 300 based on the second power supply mode and the handshake negotiation process with the PD device 300 based on the third power supply mode can also adopt the above-mentioned multiple negotiation method to determine the final handshake negotiation result. The specific implementation method and beneficial effects are the same as above, and will not be repeated here.

[0053] Please see Figure 2 , Figure 3 , Figure 6 to Figure 8In some embodiments, the PSE device 100 has multiple output terminals, the polarity and conduction state of which are adjustable. The PD device 300 has multiple input terminals, with each output terminal corresponding to one of the input terminals, and is capable of transmitting at least current. When the PSE device 100 is powered by a first power supply mode, the PSE device 100 is in a first output state. When the PSE device 100 is powered by a second power supply mode, the PSE device 100 is in a second output state. When the PSE device 100 is powered by a third power supply mode, the PSE device 100 is in a third output state. In the first output state, the second output state, and the third output state, the polarity and conduction state of each output terminal are not completely the same in any two of them.

[0054] Specifically, the output terminal is at least one port in the PSE device 100 used for current input or output. Under the control of the processor 30, the output terminal can switch its electrical connection with electrodes of different polarities, such as positive or negative, or switch different conduction states, such as on or off, under the control of the processor 30. The input terminal is at least one port in the PD device 300 used for current input or output. The number of output terminals is the same as the number of input terminals, and they correspond one-to-one. That is, when the PSE device 100 and the PD device 300 are connected via a network cable 200, the corresponding output terminals and input terminals are connected to the same pin of the network cable 200. At this time, the PSE device 100 can establish a closed current loop between the network cable 200 and the PD device 300, so that the output terminal and input terminal are at least used for current transmission.

[0055] When the output terminal is connected to the input terminal and the PSE device 100 supplies power to the PD device 300 using the first power supply mode, the PSE device 100 supplies power to the PD device 300 in the first output state, and each output terminal is in the polarity and conduction state corresponding to the first output state. When the output terminal is connected to the input terminal and the PSE device 100 supplies power to the PD device 300 using the second power supply mode, the PSE device 100 supplies power to the PD device 300 in the second output state, and each output terminal is in the polarity and conduction state corresponding to the second output state. When the output terminal is connected to the input terminal and the PSE device 100 supplies power to the PD device 300 using the third power supply mode, the PSE device 100 supplies power to the PD device 300 in the third output state, and each output terminal is in the polarity and conduction state corresponding to the third output state.

[0056] It should be noted that the polarity and conduction state of each output terminal are not entirely the same for any two of the first, second, and third output states. For example, the first output state corresponds to Alternative A (MDI), where the polarity of the 1 / 2 power supply pair is positive and the polarity of the 3 / 6 power supply pair is negative; the second output state corresponds to Alternative A (MDI-X), where the polarity of the 1 / 2 power supply pair is negative and the polarity of the 3 / 6 power supply pair is positive; and the third output state corresponds to Alternative B, where the polarity of the 4 / 5 power supply pair is positive and the polarity of the 7 / 8 power supply pair is negative.

[0057] Therefore, in the control method of the PSE device provided in this application, by controlling the polarity and conduction state of the output terminal, the PSE device 100 can have different output states, thereby supplying power to the PD device 300 in different power supply modes. In this way, the PSE device 100 can supply power to PD devices 300 that are compatible with various power supply modes, improving the flexibility and versatility of the PSE device 100, enhancing the user experience, and improving the reputation of the PSE device 100 supplier.

[0058] Please see Figure 2 , Figure 3 , Figure 6 to Figure 8 In some embodiments, the PSE device 100 is provided with a first electrode and a second electrode, the polarities of which are opposite. The PSE device 100 also includes a first switching circuit 71 and a second switching circuit 73. The first switching circuit 71 is electrically connected to the first electrode, and the second switching circuit 73 is electrically connected to the second electrode. The output terminals include a first output terminal 51, a second output terminal 53, a third output terminal 55, and a fourth output terminal 57. The first switching circuit 71 is selectively connected to the first output terminal 51, the second output terminal 53, the third output terminal 55, and the fourth output terminal 57. The second switching circuit 73 is selectively connected to the first output terminal 51, the second output terminal 53, the third output terminal 55, and the fourth output terminal 57. When the PSE device 100 is in the first output state, the first switching circuit 71 connects the first electrode to the first output terminal 51, and the second switching circuit 73 connects the second electrode to the second output terminal 53. When the PSE device 100 is in the second output state, the first switching circuit 71 connects the first electrode to the second output terminal 53, and the second switching circuit 73 connects the second electrode to the first output terminal 51. When the PSE device 100 is in the third output state, the first switching circuit 71 connects the first electrode to the fourth output terminal 57, and the second switching circuit 73 connects the second electrode to the third output terminal 55.

[0059] Specifically, the first electrode and the second electrode are two electrodes used to supply power to the PSE device 100 after it is powered on (e.g., connected to mains power). The first electrode and the second electrode have opposite polarities; for example, the first electrode is the negative electrode and the second electrode is the positive electrode. The output terminals of the PSE device 100 include a first output terminal 51, a second output terminal 53, a third output terminal 55, and a fourth output terminal 57. For example, the first output terminal 51 corresponds to a 1 / 2 power supply line pair, the second output terminal 53 corresponds to a 3 / 6 power supply line pair, the third output terminal 55 corresponds to a 4 / 5 power supply line pair, and the fourth output terminal 57 corresponds to a 7 / 8 power supply line pair.

[0060] The PSE device 100 includes a first switching circuit 71 that cooperates with a first electrode and a second switching circuit 73 that cooperates with a second electrode. The first switching circuit 71 is electrically connected to the first electrode, and the second switching circuit 73 is electrically connected to the second electrode. In this case, the first switching circuit 71 and the second switching circuit 73 are structures in the PSE device 100 used to switch the conduction state between the first electrode and the second electrode and each output terminal, respectively. Under the control of the processor 30, the first switching circuit 71 and / or the second switching circuit 73 can achieve conduction or cutoff with each output terminal through MOSFETs or optocoupler switches, thereby coordinating to control a specific pair of output terminals to achieve conduction with the positive and negative terminals respectively, for powering the PD device 300.

[0061] Correspondingly, for clarity, please refer to Figure 6 to Figure 8 The PD device 300 includes a first input terminal 310 corresponding to the first output terminal 51, a second input terminal 330 corresponding to the second output terminal 53, a third input terminal 350 corresponding to the third output terminal 55, and a fourth input terminal 370 corresponding to the fourth output terminal 57. Solid lines between the first electrode, the second electrode, and the first output terminal 51, the second output terminal 53, the third output terminal 55, and the fourth output terminal 57 indicate electrical connections that are made continuous, while dashed lines indicate electrical connections that are not made continuous.

[0062] When the PSE device 100 is in the first output state, the power supply mode of the PSE device 100 is Alternative A (MDI-X). At this time, the processor 30 controls the first switching circuit 71 to conduct the first electrode and the first output terminal 51, and controls the second switching circuit 73 to conduct the second electrode and the second output terminal 53. At this time, DC power can flow out from the second output terminal 53, flow into the second input terminal 330 through the network cable 200, and then flow out from the first input terminal 310, and flow into the first output terminal 51 through the network cable 200 again to form a closed loop.

[0063] When the PSE device 100 is in the second output state, the power supply mode of the PSE device 100 is Alternative A (MDI). At this time, the processor 30 controls the first switching circuit 71 to conduct the first electrode and the second output terminal 53, and controls the second switching circuit 73 to conduct the second electrode and the first output terminal 51. At this time, DC power can flow out from the first output terminal 51, through the network cable 200, into the first input terminal 310, and then out from the second input terminal 330, and again through the network cable 200 into the second output terminal 53 to form a closed loop.

[0064] When the PSE device 100 is in the third output state, the power supply mode of the PSE device 100 is Alternative B. At this time, the processor 30 controls the first switching circuit 71 to conduct the first electrode and the fourth output terminal 57, and controls the second switching circuit 73 to conduct the second electrode and the third output terminal 55. At this time, DC power can flow out from the third output terminal 55, flow into the third input terminal 350 through the network cable 200, and then flow out from the fourth input terminal 370, and flow into the fourth output terminal 57 through the network cable 200 again to form a closed loop.

[0065] Therefore, in the control method of the PSE device provided in this application, different conduction states of the first output terminal 51, the second output terminal 53, the third output terminal 55, and the fourth output terminal 57 with the first electrode and the second electrode are achieved by controlling the first switching circuit 71 and the second switching circuit 73, so that the PSE device 100 has different output states, thereby supplying power to the PD device 300 in different power supply modes. At this time, the PSE device 100 can match PD devices 300 with various power supply modes, improving the flexibility and versatility of the PSE device 100, enhancing the user experience and the reputation of the PSE device 100 supplier.

[0066] Please see Figure 2 , Figure 3 and Figure 9 In some implementations, the control method further includes: 051: If the PD device 300 is not unplugged and an abnormality occurs during the process of powering the PD device 300 in the first power supply mode, the process of repeatedly performing handshake negotiation with the PD device 300 based on the second power supply mode, the third power supply mode, and the first power supply mode shall be executed. If the second negotiation result is successful, the PD device 300 shall be powered in the second power supply mode; if the third negotiation result is successful, the PD device 300 shall be powered in the third power supply mode; or if the first negotiation result is successful, the PD device 300 shall be powered in the first power supply mode.

[0067] The above-described control method for the PSE device can be applied to the PSE device 100. The processor 30 in this embodiment is configured to: when the PD device 300 is not unplugged and an abnormality occurs during the process of supplying power to the PD device 300 in the first power supply mode, control the PD device 300 to repeatedly perform handshake negotiation based on the second power supply mode, handshake negotiation based on the third power supply mode, and handshake negotiation based on the first power supply mode. If the second negotiation result is successful, control the PD device 300 to be supplied with power in the second power supply mode; or, if the third negotiation result is successful, control the PD device 300 to be supplied with power in the third power supply mode; or, if the first negotiation result is successful, control the PD device 300 to be supplied with power in the first power supply mode.

[0068] Specifically, as mentioned above, the PSE device 100 also has power management functions, which can continuously monitor the actual power consumption of each port to ensure that it does not exceed the power level limit of the PD device 300, and can efficiently detect whether the PD device 300 has been physically disconnected through disconnection detection and other methods. During the process of the PSE device 100 powering the PD in the first power supply mode, if the PD device 300 is not unplugged but the power supply process is abnormal, such as overload, underload, MPS loss or port overheating, the PSE device 100 will suspend the power supply process in the first power supply mode and attempt to switch to other power supply modes.

[0069] At this time, the processor 30 controls the PSE device 100 to perform a handshake negotiation loop starting from the second power supply mode, that is, to perform handshake negotiation based on the second power supply mode, the third power supply mode and the first power supply mode in a loop, and if the negotiation result of the handshake negotiation corresponding to any power supply mode is successful, the PD device 300 is powered again in that power supply mode.

[0070] Therefore, in the control method of the PSE device provided in this application, the processor 30 can promptly control the power supply interruption when an abnormality occurs during the process of the PSE device 100 supplying power in the first power supply mode, and control the PSE device 100 to perform a handshake negotiation cycle to quickly rebuild the power supply process. The PSE device 100 has the ability to self-repair abnormalities, has a high fault tolerance rate, and can maintain normal power supply with the PD device 300 for a long time, saving users the time of manual maintenance, improving the user experience and the reputation of the PSE device 100 supplier.

[0071] Please see Figure 2 , Figure 3 and Figure 9 In some implementations, the control method further includes: 053: If the PD device 300 is not unplugged and an abnormality occurs during the process of powering the PD device 300 in the second power supply mode, the process of repeatedly performing handshake negotiation with the PD device 300 based on the third power supply mode, the first power supply mode, and the second power supply mode shall be executed. If the third negotiation result is successful, the PD device 300 shall be powered in the third power supply mode; or, if the first negotiation result is successful, the PD device 300 shall be powered in the first power supply mode; or, if the second negotiation result is successful, the PD device 300 shall be powered in the second power supply mode.

[0072] The above-described control method for the PSE device can be applied to the PSE device 100. The processor 30 in this embodiment is configured to: when the PD device 300 is not unplugged and an abnormality occurs during the process of supplying power to the PD device 300 in the second power supply mode, control the PD device 300 to repeatedly perform handshake negotiation based on the third power supply mode, handshake negotiation based on the first power supply mode, and handshake negotiation based on the second power supply mode. If the third negotiation result is successful, control the PD device 300 to be supplied with power in the third power supply mode; or, if the first negotiation result is successful, control the PD device 300 to be supplied with power in the first power supply mode; or, if the second negotiation result is successful, control the PD device 300 to be supplied with power in the second power supply mode.

[0073] Specifically, during the process of PSE device 100 powering the PD in the second power supply mode, if the PD device 300 is not unplugged but the power supply process is abnormal, such as overload, underload, MPS loss or port overheating, PSE device 100 will suspend the power supply process in the second power supply mode and attempt to switch to other power supply modes.

[0074] At this time, the processor 30 controls the PSE device 100 to perform a handshake negotiation loop starting from the third power supply mode, that is, to perform handshake negotiation based on the third power supply mode, the first power supply mode and the second power supply mode in a loop, and if the negotiation result of the handshake negotiation corresponding to any power supply mode is successful, the PD device 300 is powered again in that power supply mode.

[0075] Therefore, in the control method of the PSE device provided in this application, the processor 30 can promptly control the power supply interruption when an abnormality occurs during the process of the PSE device 100 being powered in the second power supply mode, and control the PSE device 100 to perform a handshake negotiation cycle to quickly rebuild the power supply process. The PSE device 100 has the ability to self-repair abnormalities, has a high fault tolerance rate, and can maintain normal power supply with the PD device 300 for a long time, saving users the time of manual maintenance, improving the user experience and the reputation of the PSE device 100 supplier.

[0076] Please see Figure 2 , Figure 3 and Figure 9 In some implementations, the control method further includes: 055: If the PD device 300 is not unplugged and an abnormality occurs during the process of powering the PD device 300 in the third power supply mode, the process of repeatedly performing handshake negotiation with the PD device 300 based on the first power supply mode, the second power supply mode, and the third power supply mode shall be executed. If the first negotiation result is successful, the PD device 300 shall be powered in the first power supply mode; if the second negotiation result is successful, the PD device 300 shall be powered in the second power supply mode; or if the third negotiation result is successful, the PD device 300 shall be powered in the third power supply mode.

[0077] The above-described control method for the PSE device can be applied to the PSE device 100. The processor 30 in this embodiment is configured to: when the PD device 300 is not unplugged and an abnormality occurs during the process of supplying power to the PD device 300 in the third power supply mode, control the PD device 300 to repeatedly perform handshake negotiations based on the first power supply mode, the second power supply mode, and the third power supply mode. Furthermore, if the first negotiation result is successful, control the PD device 300 to be supplied with power in the first power supply mode; or, if the second negotiation result is successful, control the PD device 300 to be supplied with power in the second power supply mode; or, if the third negotiation result is successful, control the PD device 300 to be supplied with power in the third power supply mode.

[0078] Specifically, during the process of PSE device 100 powering the PD in the third power supply mode, if the PD device 300 is not unplugged but the power supply process is abnormal, such as overload, underload, MPS loss or port overheating, PSE device 100 will suspend the power supply process in the third power supply mode and try to switch to other power supply modes.

[0079] At this time, the processor 30 controls the PSE device 100 to perform a handshake negotiation loop starting from the first power supply mode, that is, to perform a handshake negotiation based on the first power supply mode, the second power supply mode and the third power supply mode in a loop, and if the negotiation result of the handshake negotiation corresponding to any power supply mode is successful, the PD device 300 is powered again in that power supply mode.

[0080] Therefore, in the control method of the PSE device provided in this application, the processor 30 can promptly control the power supply interruption when an abnormality occurs during the power supply process of the PSE device 100 in the third power supply mode, and control the PSE device 100 to perform a handshake negotiation cycle to quickly rebuild the power supply process. The PSE device 100 has the ability to self-repair abnormalities, has a high fault tolerance rate, and can maintain normal power supply with the PD device 300 for a long time, saving users the time of manual maintenance, improving the user experience and the reputation of the PSE device 100 supplier.

[0081] Please see Figure 2 , Figure 3 and Figure 9 In some implementations, the control method further includes: 07: When the PD device 300 is unplugged, set the first power supply mode to the default power supply mode. When the PD device 300 is reconnected, firstly, a handshake negotiation is performed with the PD device 300 in the default power supply mode, and then the handshake negotiation based on the first power supply mode, the second power supply mode, and the third power supply mode is repeatedly performed.

[0082] The control method for the PSE device described above can be applied to the PSE device 100. The processor 30 in this embodiment is used to: when the PD device 300 is unplugged, control the setting of the first power supply mode to the default power supply mode. When reconnecting the PD device 300, first control the handshake negotiation with the PD device 300 in the default power supply mode, and control the cyclic execution of handshake negotiation with the PD device 300 based on the first power supply mode, handshake negotiation with the PD device 300 based on the second power supply mode, and handshake negotiation with the PD device 300 based on the third power supply mode.

[0083] Specifically, when the PD device 300 is disconnected from the PSE device 100, the power supply process terminates. The PSE device 100 returns to its default state in preparation for the next power supply to the PD device 300. The default state is the state of the PSE device 100 when it has not started power supply, or when a single power supply has ended and it has been disconnected from the PD device 300. At this time, the processor 30 can restore the PSE device 100 to its default state, so that the PSE device 100 has a consistent and stable initial state in each subsequent connection with the PD device 300, resulting in good stability, security, and maintainability of the PSE device 100.

[0084] The default power supply mode is the power supply mode when the PSE device 100 is in its default state. After the processor 30 restores the PSE device 100 to its default state, and the PSE device 100 reconnects to the PD device 300, the processor 30 controls the PSE device 100 to perform a handshake negotiation loop starting from the default power supply mode (first power supply mode). That is, it performs handshake negotiations based on the first power supply mode, the second power supply mode, and the third power supply mode in a loop. If the negotiation result of the handshake negotiation corresponding to any power supply mode is successful, the PD device 300 is powered by that power supply mode.

[0085] Therefore, in the control method of the PSE device provided in this application, the PSE device 100 has a default state and a corresponding default power supply mode. The processor 30 can control the PSE device 100 to execute a handshake negotiation cycle starting from the default power supply mode in a new round of power supply. The PSE device 100 can perform handshake negotiation and power supply in a preset manner in any power supply. The PSE device 100 has good stability, security and maintainability, and can provide users with a consistent and good user experience in long-term use. The user experience and the reputation of the PSE device 100 supplier are effectively improved.

[0086] In summary, this application provides a control method for a PSE device. By switching between a first power supply mode, a second power supply mode, and a third power supply mode, a handshake negotiation is performed with the connected PD device 300 based on any of the aforementioned power supply modes. If the negotiation is successful, the PSE device 100 is controlled to adopt the corresponding power supply mode to provide standard power to the PD device 300 in accordance with the IEEE 802.3at protocol requirements. In this way, the PSE device 100 can supply power to PD devices 300 that are compatible with various power supply modes, such as dual-standard PD devices 300 with only one set of power lines conforming to the protocol, or standard PD devices 300 with only a few power lines that are damaged. This improves the flexibility and versatility of the PSE device 100, enhances the user experience, and improves the reputation of the PSE device 100 supplier.

[0087] In some embodiments, this application also provides an electronic device, which includes the PSE device 100 in any of the above embodiments.

[0088] Please see Figure 11 In some embodiments, this application also provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the methods in any of the above embodiments.

[0089] For example, when a computer program is executed by a processor, the following method is implemented: 01: Connect the power supply and connect the PD device 300; and 03: Sequentially use each of the multiple power supply modes to perform handshake negotiation with PD device 300. If the handshake negotiation of the current power supply mode fails, switch to the next power supply mode to perform handshake negotiation with PD device 300. If the handshake negotiation of the current power supply mode succeeds, use the current power supply mode to power PD device 300.

[0090] For example, when a computer program is executed by a processor, the following method is implemented: 031: Based on the first power supply mode, a handshake negotiation is performed with the PD device 300, and the first negotiation result is obtained; 0331: If the first negotiation is successful, power the PD device 300 in the first power supply mode; 0333: If the first negotiation fails, a handshake negotiation is initiated with the PD device 300 based on the second power supply mode, and a second negotiation result is obtained; 0341: If the second negotiation is successful, power the PD device 300 with the second power supply mode; 0343: If the second negotiation fails, a handshake negotiation is initiated with the PD device 300 based on the third power supply mode, and a third negotiation result is obtained; and 0351: If the third negotiation is successful, power the PD device 300 with the third power supply mode.

[0091] For example, when a computer program is executed by a processor, it can also implement the methods in 0353, 0311, 0313, 0315, 051, 053, 055 and 07.

[0092] In the computer-readable storage medium of this application, by switching between different power supply modes, a handshake negotiation is performed with the connected PD device 300 based on any of the aforementioned power supply modes. If the negotiation result is successful, the PSE device 100 is controlled to adopt the corresponding power supply mode to provide standard power to the PD device 300 in accordance with the IEEE 802.3at protocol requirements. At this time, the PSE device 100 can supply power to PD devices 300 that match various power supply modes, such as dual-standard PD devices 300 with only one power supply line pair conforming to the protocol, or standard PD devices 300 with only a partial power supply line pair that is damaged. This improves the flexibility and versatility of the PSE device 100, enhances the user experience, and improves the reputation of the PSE device 100 supplier.

[0093] In the description of this specification, the references to terms such as "some embodiments," "in one example," "exemplarily," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0094] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the function involved, as will be understood by those skilled in the art to which embodiments of this application pertain.

[0095] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A control method for a PSE device, characterized in that, include: Turn on the power and connect the PD device; and The device sequentially uses each of multiple power supply modes to perform handshake negotiation with the PD device. If the handshake negotiation fails in the current power supply mode, it switches to the next power supply mode to perform handshake negotiation with the PD device. When the handshake negotiation of the current power supply mode is successful, the current power supply mode is used to power the PD.

2. The control method according to claim 1, characterized in that, The process involves sequentially using each of multiple power supply modes to perform handshake negotiation with the PD device. If the handshake negotiation fails in the current power supply mode, the process switches to the next power supply mode to perform handshake negotiation with the PD device. When the handshake negotiation of the current power supply mode is successful, the PD is powered using the current power supply mode, including: Based on the first power supply mode, a handshake negotiation is performed with the PD device, and a first negotiation result is obtained; If the first negotiation result is successful, the PD device is powered in the first power supply mode. If the first negotiation fails, a handshake negotiation is initiated with the PD device based on the second power supply mode to obtain a second negotiation result; If the second negotiation result is successful, the PD device is powered in the second power supply mode; If the second negotiation fails, a handshake negotiation is initiated with the PD device based on the third power supply mode, and a third negotiation result is obtained; and If the third negotiation result is successful, the PD device is powered in the third power supply mode.

3. The control method according to claim 2, characterized in that, Also includes: If the third negotiation fails, the process returns to the step of handshaking and negotiating with the PD device based on the first power supply mode and obtaining the first negotiation result.

4. The control method according to claim 2 or 3, characterized in that, The step of handshaking and negotiating with the PD device based on the first power supply mode and obtaining the first negotiation result includes: The handshake negotiation based on the first power supply mode is repeated a preset number of times, and the intermediate negotiation results of each handshake negotiation are obtained in sequence. If the first intermediate negotiation result is successful, output the intermediate negotiation result as the first negotiation result and abort the handshake negotiation; or If any of the intermediate negotiation results fail, the first negotiation result is determined to be a failure and output.

5. The control method according to claim 2, characterized in that, The PSE device has multiple output terminals, the polarity and conduction state of which are adjustable; the PD device has multiple input terminals, the output terminals correspond one-to-one with the input terminals, and can be used to transmit at least current. When the PSE device is powered by the first power supply mode, the PSE device is in the first output state; When the PSE device is powered by the second power supply mode, the PSE device is in the second output state; When the PSE device is powered by the third power supply mode, the PSE device is in the third output state; in the first output state, the second output state and the third output state, the polarity and conduction state of each output terminal corresponding to any two are not completely the same.

6. The control method according to claim 5, characterized in that, The PSE device is provided with a first electrode and a second electrode, the first electrode and the second electrode having opposite polarities; the PSE device is also provided with a first switching circuit and a second switching circuit, the first switching circuit being electrically connected to the first electrode, the second switching circuit being electrically connected to the second electrode, the output terminal including a first output terminal, a second output terminal, a third output terminal and a fourth output terminal, the first switching circuit being selectively connected to the first output terminal, the second output terminal, the third output terminal and the fourth output terminal, and the second switching circuit being selectively connected to the first output terminal, the second output terminal, the third output terminal and the fourth output terminal; When the PSE device is in the first output state, the first switching circuit connects the first electrode to the first output terminal, and the second switching circuit connects the second electrode to the second output terminal. When the PSE device is in the second output state, the first switching circuit connects the first electrode to the second output terminal, and the second switching circuit connects the second electrode to the first output terminal. When the PSE device is in the third output state, the first switching circuit connects the first electrode to the fourth output terminal, and the second switching circuit connects the second electrode to the third output terminal.

7. The control method according to claim 2, characterized in that, Also includes: If the PD device is not unplugged and an abnormality occurs during the process of powering the PD device with the first power supply mode, the process of repeatedly performing handshake negotiation with the PD device based on the second power supply mode, handshake negotiation with the PD device based on the third power supply mode, and handshake negotiation with the PD device based on the first power supply mode is executed. If the second negotiation result is successful, the PD device is powered with the second power supply mode; or, if the third negotiation result is successful, the PD device is powered with the third power supply mode; or, if the first negotiation result is successful, the PD device is powered with the first power supply mode. or If the PD device is not unplugged and an abnormality occurs during the process of powering the PD device with the second power supply mode, the process of repeatedly performing handshake negotiation with the PD device based on the third power supply mode, handshake negotiation with the PD device based on the first power supply mode, and handshake negotiation with the PD device based on the second power supply mode is executed. If the third negotiation result is successful, the PD device is powered with the third power supply mode; or, if the first negotiation result is successful, the PD device is powered with the first power supply mode; or, if the second negotiation result is successful, the PD device is powered with the second power supply mode. or If the PD device is not unplugged and an abnormality occurs during the process of powering the PD device with the third power supply mode, the process of repeatedly performing handshake negotiation with the PD device based on the first power supply mode, the second power supply mode, and the third power supply mode is executed. If the first negotiation result is successful, the PD device is powered with the first power supply mode; if the second negotiation result is successful, the PD device is powered with the second power supply mode; or if the third negotiation result is successful, the PD device is powered with the third power supply mode.

8. The control method according to claim 2, characterized in that, Also includes: When the PD device is unplugged, the first power supply mode is set to the default power supply mode; When reconnecting the PD device, a handshake negotiation is first initiated with the PD device in the default power supply mode, and then the handshake negotiation with the PD device based on the first power supply mode, the handshake negotiation with the PD device based on the second power supply mode, and the handshake negotiation with the PD device based on the third power supply mode are repeatedly executed.

9. A PSE device, comprising a memory and a processor, the memory being used to store instructions, characterized in that, The instructions stored in the memory are executed by the processor to implement claim 1.

8. The control method described in any one of the following.

10. An electronic device, characterized in that, The electronic device includes the PSE device as described in claim 9.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the control method according to any one of claims 1-8.