CN111555937A - PSE port type detection system, method, device and control module - Google Patents

PSE port type detection system, method, device and control module Download PDF

Info

Publication number
CN111555937A
CN111555937A CN202010345633.1A CN202010345633A CN111555937A CN 111555937 A CN111555937 A CN 111555937A CN 202010345633 A CN202010345633 A CN 202010345633A CN 111555937 A CN111555937 A CN 111555937A
Authority
CN
China
Prior art keywords
module
pse port
classification
type
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010345633.1A
Other languages
Chinese (zh)
Other versions
CN111555937B (en
Inventor
李铮
张志鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN202010345633.1A priority Critical patent/CN111555937B/en
Publication of CN111555937A publication Critical patent/CN111555937A/en
Application granted granted Critical
Publication of CN111555937B publication Critical patent/CN111555937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements

Abstract

The method comprises the steps of obtaining a voltage sampling signal, counting the number of classification pulses in the voltage sampling signal, and determining the type of the PSE port to be detected according to the number of the classification pulses based on the preset corresponding relation between the number of the classification pulses and the type of the PSE port. It can be seen that this application example can detect four kinds at least of types PSE port, and need not detect PSE port type through the recognition function of PD module internal chip self-band, has avoided among the prior art because there is certain defect in the recognition function of PD internal chip self-band, can only detect the type of PSE port and whether be 802.3at standard, the not comprehensive problem of detection range inadequately that leads to, reaches the effect that improves detection range.

Description

PSE port type detection system, method, device and control module
Technical Field
The application belongs to the technical field of power over Ethernet, and particularly relates to a PSE port type detection system, method, device, control module and computer readable storage medium.
Background
A Power Over Ethernet (POE) is a technology for supplying power through an ethernet network. The PoE system includes a Power Sourcing Equipment (PSE) and a Powered Device (PD), and the PSE supplies Power to the PD through a port (i.e., a network Power port) according to different standards of PoE protocols, including an 802.3af standard protocol (also referred to as PoE), an 802.3at standard protocol (also referred to as PoE +), and an 802.3bt standard protocol (PoE + +), and there are also PSEs that cannot completely satisfy the above protocol requirements.
Since the 802.3af standard protocol requires that the maximum output power supported by the PSE port is not less than 15.4W, the 802.3at standard protocol requires that the maximum output power supported by the PSE port is not less than 30W, and the 802.3bt standard protocol requires that the maximum output power supported by the PSE port is not less than 90W, the types of the PSE port can be classified into an 802.3af standard, an 802.3at standard, an 802.3bt standard, or a non-standard according to the protocol supported by the PSE port. Therefore, if the type of the PSE port can be detected, the maximum power supply power of the PSE port can be judged according to the type of the PSE port, and whether the PSE port can provide enough power for the PD or not can be confirmed.
At present, most of the prior art directly measures the power supply voltage or the power supply wire core of the PSE port through handheld PSE port testing equipment, but the type of the PSE port cannot be directly detected. In addition, the type of the PSE port is directly detected by an identification function of a chip in the PD, for example, the chip is a TPS2378 chip, and when the PSE port supplies power to the PD, if a T2P pin of the chip in the PD is identified to output a high level, it is determined that the type of the PSE port is in the 802.3at standard, and if a T2P pin of the chip in the PD is identified to output a low level, it is determined that the type of the PSE port is not in the 802.3at standard. However, because the identification function of the PD internal chip itself has certain defects, in the process of supplying power to the PD through the PSE port, the identification function of the PD internal chip itself can only detect whether the type of the PSE port is in the 802.3at standard, but cannot detect the PSE port with the type of the 802.3af standard, the 802.3bt standard or the non-standard, and thus, the problem that the detection range is not comprehensive enough exists.
Disclosure of Invention
The embodiment of the application provides a PSE port type detection method and device, and can solve the problem that the detection range is not comprehensive enough in the prior art.
In a first aspect, an embodiment of the present application provides a PSE port type detection system, which includes a PD module, a sampling module connected to a power supply loop of a to-be-detected PSE port supplying power to the PD module, and a control module connected to the sampling module; the power level of the PD module is any one of power level 4, power level 5, power level 6, power level 7 and power level 8;
the sampling module is used for sampling the power supply voltage of the PSE port to be detected for supplying power to the PD module to obtain a voltage sampling signal; sending the voltage sampling signal to the control module;
the control module is used for acquiring the voltage sampling signal; counting the number of classification pulses of the voltage sampling signal; determining the type of the PSE port to be detected according to the number of classification pulses based on the preset corresponding relation between the number of classification pulses and the type of the PSE port
In a possible implementation manner of the first aspect, the detection system further includes a network port and a signal transformer connected to the network port;
the network port is used for connecting the PSE port, acquiring network data and a power supply from the PSE port and transmitting the network data and the power supply to the signal transformer
The signal transformer is used for receiving the network data and the power supply transmitted by the network port, separating the power supply and transmitting the power supply to the PD module.
In a second aspect, an embodiment of the present application provides a PSE port type detection method, which is applied to a control module, and the method includes acquiring a voltage sampling signal sent by a sampling module, where the voltage sampling signal is a signal obtained by sampling a power supply voltage, which is supplied to a PD module by a PSE port to be detected, by the sampling module;
counting the number of classification pulses in the voltage sampling signal;
and determining the type of the PSE port to be detected according to the number of classification pulses based on the corresponding relation between the number of the preset classification pulses and the type of the PSE port.
In one possible implementation manner of the second aspect, counting the number of classification pulses in the voltage sampling signal includes:
determining a classification pulse in the voltage sampling signal according to a preset voltage range and a preset pulse width range;
and counting the number of the grading pulses.
In one possible implementation of the second aspect, the voltage range is 14.5V-20.5V, and the pulse width range is 6ms-105 ms.
In a possible implementation manner of the second aspect, the power level of the PD module is any one of power level 4, power level 5, power level 6, power level 7, and power level 8.
In a possible implementation manner of the second aspect, determining the type of the PSE port to be detected according to the number of classification pulses based on a correspondence between the number of classification pulses and the type of the PSE port, which is preset, includes:
if the number of the classification pulses is 0, judging that the type of the PSE port is nonstandard;
if the number of classification pulses is 1, determining that the PSE port type is in an 802.3af standard;
if the number of the classification pulses is 2, determining that the PSE port type is in an 802.3at standard;
if the number of classification pulses is 3 or more than 3, determining that the PSE port type is in the 802.3bt standard.
In a possible implementation manner of the second aspect, determining the type of the PSE port to be detected according to the number of classification pulses based on a correspondence between the number of classification pulses and the type of the PSE port, which is preset, includes:
in a third aspect, an embodiment of the present application provides a PSE port type detection apparatus, including:
the acquisition module is used for acquiring a voltage sampling signal sent by the sampling module, wherein the voltage sampling signal is obtained by sampling a power supply voltage supplied to the PD module by the PSE port to be detected by the sampling module;
the counting module is used for counting the number of classification pulses in the voltage sampling signal;
and the determining module is used for determining the type of the PSE port to be detected according to the number of the classification pulses based on the preset corresponding relation between the number of the classification pulses and the type of the PSE port.
In a possible implementation manner of the third aspect, the statistical module includes:
the determining unit is used for determining the classification pulse in the voltage sampling signal according to a preset voltage range and a preset pulse width range;
and the counting unit is used for counting the number of the grading pulses.
In one possible implementation manner of the third aspect, the voltage range is 14.5V-20.5V, and the pulse width range is 6ms-105 ms.
In a possible implementation manner of the third aspect, the power level of the PD module is any one of power level 4, power level 5, power level 6, power level 7, and power level 8.
In a possible implementation manner of the third aspect, the determining module includes:
a first determination unit, configured to determine that the PSE port type is non-standard if the number of classification pulses is 0;
a second determining unit, configured to determine that the PSE port type is an 802.3af standard if the number of classification pulses is 1;
a third determining unit, configured to determine that the PSE port type is an 802.3at standard if the number of classification pulses is 2;
a fourth determining unit, configured to determine that the PSE port type is an 802.3bt standard if the number of classification pulses is 3 or more than 3.
In a fourth aspect, embodiments of the present application provide a control module, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method according to the second aspect is implemented
In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method according to the second aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, which, when run on a control module, causes the control module to perform the method of any one of the second aspects described above.
Compared with the prior art, the embodiment of the application has the advantages that:
according to the embodiment of the application, the PD module is arranged, so that the PSE port to be detected identifies the detection system as legal PD equipment, and the PSE port to be detected supplies power to the PD module; then, a sampling module is used for collecting a voltage signal of the PSE port to be detected for supplying power to the PD module, and the voltage signal is sent to a control module; and finally, the control module confirms the type of the PSE port to be detected according to the number of the voltage signal classification pulses, wherein the type of the PSE port to be detected comprises but is not limited to the 802.3af standard, the 802.3at standard, the 802.3bt standard protocol and the non-standard. Therefore, at least four types of PSE ports can be detected in the embodiment of the application, the problem that in the prior art, due to the fact that a certain defect exists in the self-contained identification function of a chip inside a PD, whether the type of the PSE port can be detected only is the 802.3af standard or not, the detection range is not comprehensive enough is solved, and the effect of improving the detection range is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a diagram of an example of a waveform of a power supply voltage for a PSE port to supply power to a PD module according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a PSE port type detection system provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart of a PSE port type detection method provided in an embodiment of the present application;
FIG. 4 is a schematic specific flowchart of step S302 in FIG. 3 of a PSE port type detection method provided in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a PSE port type detection apparatus provided in an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a control module provided in an embodiment of the present application;
FIG. 7 is a diagram of a first example of a waveform generated by a PSE port during a classification phase of a process of supplying power to a PD module by the PSE port according to an embodiment of the present application;
FIG. 8 is a diagram of a second example of a waveform generated by a PSE port during a classification phase of a process of supplying power to a PD module by the PSE port according to an embodiment of the present application;
fig. 9 is a diagram of a third waveform example of classification pulses generated by a PSE port in a classification phase of a process of supplying power to a PD module by the PSE port according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The technical solutions provided in the embodiments of the present application will be described below with specific embodiments.
The invention idea of the embodiment of the application is to detect the type of the PSE port according to the number of classification pulses generated in the process of supplying power to the PD module by the PSE port, so as to facilitate understanding of the technical scheme provided by the embodiment of the application, the power supply process of supplying power to the PD module by the PSE port is introduced below, and the power supply process of supplying power to the PD module by the PSE port is divided into a standard power supply process and a non-standard power supply process according to the different types of the PSE port, wherein the standard power supply process refers to the power supply process of which the type of the PSE port conforms to the 802.3af standard, the 802.3at standard or the 802.3bt standard; a non-standard power supply procedure refers to a power supply procedure in which the PSE port type does not comply with the three standards mentioned above.
The standard power supply process sequentially includes a detection stage, a classification stage, a power-on stage, a working stage, and a disconnection stage, referring to fig. 1, which is an exemplary diagram of a waveform of a power supply voltage for the PSE port to supply power to the PD module, where the power supply voltage is a dc voltage.
The detection stage is to identify whether the PD module is legal by the PSE port, that is, the PSE port identifies that the PD module is legal, and then performs subsequent classification stage and power-on stage on the PD module.
The classification stage means that a PSE port sends classification pulses to a PD module, and then the power grade of the PD module is identified according to the current fed back by the PD module in the classification stage, wherein the voltage range of the classification pulses is 14.5V-20.5V, and the pulse width range is 6ms-105 ms.
It should be noted that different types of PSE ports send different numbers of classification pulses to the PD module in the classification phase, and detect the power class of the PD module.
Referring to table 1 below, a PD module power class table is obtained by classifying a PD module by a corresponding number of classification pulses in a classification phase for a PSE port that is in 802.3af standard.
TABLE 1
PD module power class Number of pulses in stages PSE port minimum supply power PD module requesting power
0 1 15.4W 12.95W
1 1 4W 3.84W
2 1 6.7W 6.49W
3 1 15.4W 13W
4 1 15.4W 25.5W
5 1 15.4W 40W
6 1 15.4W 51W
7 1 15.4W 62W
8 1 15.4W 71.3W
Referring to table 2, a power class table of a PD module is obtained by classifying the PD module by a corresponding number of classification pulses in a classification stage for a PSE port of 802.3at standard.
TABLE 2
PD module power class Number of pulses in stages PSE port minimum supply power PD module requesting power
0 1 or 2 15.4W 12.95W
1 1 or 2 4W 3.84W
2 1 or 2 6.7W 6.49W
3 1 or 2 15.4W 13W
4 2 30W 25.5W
5 2 30W 40W
6 2 30W 51W
7 2 30W 62W
8 2 30W 71.3W
Referring to table 3, a power class table of the PD module is obtained by classifying the PD module by a corresponding number of classification pulses in the classification stage for the PSE port of the 802.3bt standard.
TABLE 3
PD module power class Number of pulses in stages PSE port minimum supply power PD module requesting power
0 1 15.4W 12.95W
1 1 4W 3.84W
2 1 6.7W 6.49W
3 1 14W 13W
4 3 30W 25.5W
5 4 45W 40W
6 4 60W 51W
7 5 75W 62W
8 5 90W 71.3W
As can be seen from tables 1, 2, and 3, when the power level of the PD module is power level 0, the corresponding requested power is 12.95W; when the power level of the PD module is power level 1, the corresponding request power is 3.84W; when the power level of the PD module is power level 2, the corresponding request power is 6.49W; when the power level of the PD module is 3, the corresponding request power is 12.95W; when the power level of the PD module is 4, the corresponding request power is 25.5W; when the power level of the PD module is 5, the corresponding request power is 40W; when the power level of the PD module is 6, the corresponding request power is 51W; when the power level of the PD module is 7, the corresponding request power is 62W; when the power level of the PD module is power level 8, the corresponding requested power is 90W.
Under the condition that the power grade of the PD module is any one of power grade 4, power grade 5, power grade 6, power grade 7 and power grade 8, the number of classification pulses generated by the PSE port of the 802.3af standard type in the classification process of the PD module is 1; the number of classification pulses generated by the PSE port of the 802.3at standard type in the classification process of the PD module is 2; the number of classification pulses generated by the 802.3bt standard type PSE port in the classification process of the PD module is 3 or more than 3.
The power-on phase means that the PSE port gradually increases the voltage from the low voltage to supply power to the PD module.
The working phase is that the PSE port provides stable voltage for the PD module.
The disconnection phase means that if the PD module is disconnected from the network, the PSE port stops supplying power to the PD module.
The non-standard power supply process does not have the five stages of the standard process, and the PSE port can directly supply power to the PD module, that is, the PSE port of the non-standard type does not have a classification stage in the process of supplying power to the PD module, and it can be understood that the number of classification pulses provided by the PSE port to the PD module is 0 when the PSE port type is non-standard.
Referring to fig. 2, for a structural schematic diagram of the PSE port type detection system provided in the embodiment of the present application, the PSE port to be detected 10 is connected, and the detection system 20 may include a PD module 21, a sampling module 22 connected to a power supply loop of the PSE port to be detected for supplying power to the PD module, and a control module 23 connected to the sampling module. Wherein the power level of the PD module is any one of power level 4, power level 5, power level 6, power level 7 and power level 8
It should be noted that the PSE port to be detected refers to a network power supply port of a power supply end device in the POE system. The PD module may refer to a power receiving end module in a POE system receiving power from a PSE port, and may be a PD module composed of a chip TPS2378 and peripheral circuits, for example. It can be understood that, by providing the PD module in the detection system, the PSE port to be detected can identify the detection system as a legitimate PD device.
It should be noted that, referring to table 1, table 2 and table 3, in the classification stage of the power supply process of the different types of PSE ports to the PD module whose power levels are the first power level to the third power level, the number of classification pulses sent to the PD module is all 1, the type of the PSE port cannot be detected according to the number of classification pulses, and in order to improve the accuracy of detecting the type of the PSE port, in the embodiment of the present application, when the PD module is designed in hardware, the requested power of the PD module is designed to be higher than the power level 4, that is, the power level of the PD module is any one of the power level 4, the power level 5, the power level 6, the power level 7 and the power level 8. Of course, in the actual hardware design process of the PD module, the requested power of the PD module is generally set to 25.5W for cost.
The sampling module is used for sampling the power supply voltage of the PSE port to be detected for supplying power to the PD module to obtain a voltage sampling signal; and sending the voltage sampling signal to the control module.
The sampling module may be an Analog-to-digital converter (ADC).
In specific application, the PSE port to be detected can supply power to the PD module through a Cat5 network cable, and the Cat5 network cable is composed of four sets of line pairs, namely a first line pair composed of a network cable 1 and a network cable 2, a second line pair composed of a network cable 4 and a network cable 5, a third line pair composed of a network cable 7 and a network cable 8, and a fourth line pair composed of a network cable 3 and a network cable 6. In the specifications of the 802.3af standard protocol and the 802.3af standard protocol, the PSE port can supply power to the PD module through a power supply loop formed by the first pair and the fourth pair, or the PSE port can supply power to the PD module through a power supply loop formed by the second pair and the third pair; in the protocol specification of the 802.3bt standard, a PSE port may supply power to a PD module through a power supply loop formed by a first pair of wires, a second pair of wires, a third pair of wires, and a fourth pair of wires in parallel.
Corresponding to a Cat5 network cable wiring infrastructure between a PSE port to be detected and a PD module, the sampling module in the embodiment of the present application may set four sampling channels, which are respectively connected to a first line pair, a second line pair, a third line pair, and a fourth line pair, and may sample a power supply voltage corresponding to a power supply loop formed by the first line pair and the fourth line pair, a power supply voltage corresponding to a power supply loop formed by the second line pair and the third line pair, or a power supply voltage corresponding to a power supply loop formed by parallel connection of the first line pair, the second line pair, the third line pair, and the fourth line pair.
The control module is used for acquiring a voltage sampling signal; counting the number of classification pulses of the voltage sampling signal; and determining the type of the PSE port to be detected according to the number of classification pulses based on the preset corresponding relation between the number of classification pulses and the type of the PSE port.
The control module refers to a module with arithmetic processing capability, such as a Microcontroller Unit (MCU); types of the PSE port to be detected include, but are not limited to, 802.3af standard, 802.3at standard, 802.3bt standard protocol, and non-standard, that is, the protocols supported by the PSE port include, but are not limited to, 802.3af standard protocol, 802.3at standard protocol, 802.3bt standard protocol, and non-standard; the number of classification pulses refers to the number of pulses generated in a classification stage by a power supply voltage supplied to the PD module by the PSE port, and it can be understood that, since the voltage sampling signal is a signal obtained by sampling the power supply voltage by the acquisition module, the number of classification pulses of the voltage sampling signal is the number of pulses generated in the classification stage by the power supply voltage supplied to the PD module by the PSE port.
In some embodiments, the detection system may further include a network port and a signal transformer connected to the network port.
The network port is used for connecting the PSE port, acquiring network data and a power supply from the PSE port, and transmitting the network data and the power supply to the signal transformer.
The signal transformer is used for receiving the network data and the power supply transmitted by the network port, separating the power supply and transmitting the power supply to the PD module.
It can be understood that the PSE port transmits network data and a power supply to the PD module, and the power supply needs to be separated by a signal transformer so that the PD module receives power from the PSE port.
In the embodiment of the application, the detection system firstly identifies the detection system as legal PD equipment by the PSE port to be detected through setting the PD module so that the PSE port to be detected supplies power to the PD module; then, a sampling module is used for collecting a voltage signal of the PSE port to be detected for supplying power to the PD module, and the voltage signal is sent to a control module; finally, the control module confirms the type of the PSE port to be detected according to the number of voltage signal classification pulses, and therefore, the number statistics of classification pulses is carried out on the voltage sampling signals obtained by sampling the power supply voltage of the PSE port to the PD module in the embodiment of the application, the type of the PSE port is determined according to the number of the classification pulses, the PSE port type does not need to be detected through the self-contained recognition function of the internal chip of the PD module, the problem that the detection range is not comprehensive enough due to the fact that the self-contained recognition function of the internal chip of the PD in the prior art is overcome, and the effect of improving the detection range is achieved.
Please refer to fig. 3, which is a schematic flow chart of a PSE port type detection method according to an embodiment of the present application, where the method may be specifically applied to the control module, and the method may include the following steps:
and S301, acquiring a voltage sampling signal sent by a sampling module.
The voltage sampling signal is obtained by sampling the power supply voltage of the PSE port to be detected for supplying power to the PD module by the sampling module.
It should be noted that the PSE port in the embodiment of the present application refers to a network power supply port of a power supply end device in a POE system; the PD module in the embodiment of the present application refers to a power receiving end module in a POE system that can receive power from a PSE port, and may be, for example, a PD module composed of a chip TPS2378 and a peripheral circuit. It can be understood that, by providing the PD module in the detection system, the PSE port to be detected can identify the detection system as a legitimate PD device.
And step S302, counting the number of classification pulses in the voltage sampling signal.
The number of classification pulses refers to the number of pulses in a classification stage in the process of supplying power to the PD module by the PSE port, and it can be understood that, since the voltage sampling signal is a signal obtained by sampling the supply voltage, the number of classification pulses of the voltage sampling signal is the number of pulses generated in the classification stage by the supply voltage supplied to the PD module by the PSE port.
Specifically, referring to the specific flowchart of step S302 in fig. 3 shown in fig. 4, the specific flow of counting the number of gradation pulses in the voltage sampling signal may be:
step S401 determines a classification pulse in the voltage sampling signal according to a preset voltage range and a preset pulse width range.
Wherein the preset voltage range is 14.5V-20.5V, and the pulse width range is 6ms-105 ms.
It will be appreciated that, referring to fig. 1, pulses conforming to a voltage range of 14.5V-20.5V and a pulse width range of 6ms-105ms are used as classification pulses generated by the PSE port in the classification phase.
And step S402, counting the number of grading pulses.
For example, the following steps are carried out: as shown in fig. 7, for a first waveform example diagram of classification pulses generated by a PSE port in a classification stage of a process of supplying power to a PD module by the PSE port, counting the number of classification pulses in fig. 4 to be 1, and obtaining the number of classification pulses to be 1; as shown in fig. 8, for a second example of waveforms of classification pulses generated by the PSE port in the classification stage of the process of supplying power to the PD module by the PSE port, the number of classification pulses in fig. 5 is counted as 2, and the number of classification pulses is obtained as 2; as shown in fig. 9, for an example of a third waveform of classification pulses generated by the PSE port in the classification stage of the process of supplying power to the PD module by the PSE port, the number of classification pulses in fig. 9 is counted as 5, and the number of classification pulses is counted as 5.
Step S303, determining the type of the PSE port to be detected according to the number of classification pulses based on the preset corresponding relation between the number of classification pulses and the type of the PSE port.
It should be noted that, through a lot of experimental tests, the inventor of the present application finds that, in the process of supplying power to the PD module by different types of PSE ports, different classification pulses are generated in the classification stage to classify the PD module.
It should be noted that, referring to table 1, table 2 and table 3, in the classification stage of the power supply process of the different types of PSE ports to the PD modules with power classes from power class 1 to power class 3, the number of classification pulses sent to the PD modules is all 1, and the type of the PSE port cannot be detected according to the number of classification pulses, and in order to improve the accuracy of detecting the type of the PSE port, in the embodiment of the present application, when the PD module is designed in hardware, the requested power of the PD module is designed to be higher than power class 4, that is, the power class of the PD module is any one of power class 4, power class 5, power class 6, power class 7 and power class 8. Of course, in the actual hardware design process of the PD module, the requested power of the PD module is generally set to 25.5W for cost.
As an example and not by way of limitation, when the power class of the PD module is any one of power class 4, power class 5, power class 6, power class 7, or power class 8, referring to table 1, table 2, and table 3, based on the preset corresponding relationship between the number of classification pulses and the type of the PSE port, the specific process of determining the type of the PSE port to be detected according to the number of classification pulses may be:
if the number of the classification pulses is 0, judging that the type of the PSE port is nonstandard;
if the number of classification pulses is 1, determining that the PSE port type is in an 802.3af standard;
if the number of the classification pulses is 2, determining that the PSE port type is in an 802.3at standard;
if the number of classification pulses is 3 or more than 3, determining that the PSE port type is in the 802.3bt standard.
In the embodiment of the application, the control module monitors and detects the classification stage of the power supply process of the PSE port to the PD module through the sampling module, the type of the PSE port is determined based on the number of classification pulses generated in the classification stage, the PSE port type does not need to be detected through the self-contained recognition function of the internal chip of the PD module, the problem that the detection accuracy is low due to the fact that the self-contained recognition function of the internal chip of the PD has certain defects in the prior art is avoided, and the effect of improving the detection accuracy is achieved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the PSE port type detection method described in the above embodiments, fig. 5 shows a block diagram of a PSE port type detection apparatus provided in the embodiments of the present application, and for convenience of explanation, only the relevant parts of the embodiments of the present application are shown.
Referring to fig. 5, the apparatus includes:
the acquiring module 51 is configured to acquire a voltage sampling signal sent by the sampling module, where the voltage sampling signal is a signal obtained by sampling a power supply voltage, which is supplied to the PD module by the PSE port to be detected, by the sampling module;
a counting module 52, configured to count the number of classification pulses in the voltage sampling signal;
the determining module 53 is configured to determine the type of the PSE port to be detected according to the number of classification pulses based on a correspondence between the number of classification pulses and the type of the PSE port, which is preset.
In one possible implementation, the statistical module includes:
the determining unit is used for determining the classification pulse in the voltage sampling signal according to a preset voltage range and a preset pulse width range;
and the counting unit is used for counting the number of the grading pulses to obtain the number of the grading pulses.
In one possible implementation, the voltage range is 14.5V-20.5V, and the pulse width range is 6ms-105 ms.
In a possible implementation manner, the power level of the PD module is any one of power level 4, power level 5, power level 6, power level 7 and power level 8
In one possible implementation, the determining module includes:
a first determination unit, configured to determine that the PSE port type is non-standard if the number of classification pulses is 0;
a second determining unit, configured to determine that the PSE port type is an 802.3af standard if the number of classification pulses is 1;
a third determining unit, configured to determine that the PSE port type is an 802.3at standard if the number of classification pulses is 2;
a fourth determining unit, configured to determine that the PSE port type is an 802.3bt standard if the number of classification pulses is 3 or more than 3.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 6 is a schematic structural diagram of a control module according to an embodiment of the present application. As shown in fig. 6, the control module 6 of this embodiment includes: at least one processor 60, a memory 61 and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, the processor 60 implementing the individual method steps in the above-described method embodiments when executing the computer program 62.
The control module 6 may refer to a module with arithmetic processing capability, such as a Microcontroller Unit (MCU). The control module may include, but is not limited to, a processor 60, a memory 61.
Processor 60 may be referred to as a Central Processing Unit (CPU).
The memory 61 may in some embodiments be an internal storage unit of the control module 6, such as a hard disk or a memory of the control module 6.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program can implement the steps in the second embodiment of the foregoing method.
The embodiment of the present application provides a computer program product, which when running on a control module, enables the control module to implement the steps in the second method embodiment.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. The PSE port type detection system is characterized by comprising a PD module, a sampling module and a control module, wherein the sampling module is connected with a power supply loop of a to-be-detected PSE port for supplying power to the PD module; the power level of the PD module is any one of power level 4, power level 5, power level 6, power level 7 and power level 8;
the sampling module is used for sampling the power supply voltage of the PSE port to be detected for supplying power to the PD module to obtain a voltage sampling signal; sending the voltage sampling signal to the control module;
the control module is used for acquiring the voltage sampling signal; counting the number of classification pulses of the voltage sampling signal; and determining the type of the PSE port to be detected according to the number of classification pulses based on the corresponding relation between the number of the preset classification pulses and the type of the PSE port.
2. The PSE port type detection system of claim 1, the detection system further comprising a network port and a signal transformer connected to the network port;
the network port is used for connecting the PSE port, acquiring network data and a power supply from the PSE port and transmitting the network data and the power supply to the signal transformer
The signal transformer is used for receiving the network data and the power supply transmitted by the network port, separating the power supply and transmitting the power supply to the PD module.
3. A PSE port type detection method is applied to a control module, and comprises the following steps:
acquiring a voltage sampling signal sent by a sampling module, wherein the voltage sampling signal is a signal obtained by sampling a power supply voltage supplied to a PD module by a PSE port to be detected by the sampling module;
counting the number of classification pulses in the voltage sampling signal;
and determining the type of the PSE port to be detected according to the number of classification pulses based on the corresponding relation between the number of the preset classification pulses and the type of the PSE port.
4. The PSE port type detection method of claim 2, wherein counting the number of classification pulses in the voltage sample signal comprises:
determining a classification pulse in the voltage sampling signal according to a preset voltage range and a preset pulse width range;
and counting the number of the grading pulses.
5. The PSE port type detection method of claim 4, wherein the voltage range is 14.5V-20.5V and the pulse width range is 6ms-105 ms.
6. The PSE port type detection method of any of claims 3 to 5, wherein the power class of the PD module is any one of power class 4, power class 5, power class 6, power class 7 and power class 8.
7. The PSE port type detection method of claim 6, wherein determining the type of the PSE port to be detected according to the number of classification pulses based on the corresponding relationship between the number of classification pulses and the type of the PSE port, which is preset, comprises:
if the number of the classification pulses is 0, judging that the type of the PSE port is nonstandard;
if the number of classification pulses is 1, determining that the PSE port type is in an 802.3af standard;
if the number of the classification pulses is 2, determining that the PSE port type is in an 802.3at standard;
if the number of classification pulses is 3 or more than 3, determining that the PSE port type is in the 802.3bt standard.
8. A PSE port type detection apparatus applied to a control module, the apparatus comprising:
the acquisition module is used for acquiring a voltage sampling signal sent by the sampling module, wherein the voltage sampling signal is obtained by sampling a power supply voltage supplied to the PD module by the PSE port to be detected by the sampling module;
the counting module is used for counting the number of classification pulses in the voltage sampling signal;
and the determining module is used for determining the type of the PSE port to be detected according to the number of the classification pulses based on the preset corresponding relation between the number of the classification pulses and the type of the PSE port.
9. A control module comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 3 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 3 to 7.
CN202010345633.1A 2020-04-27 2020-04-27 PSE port type detection system, method, device and control module Active CN111555937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010345633.1A CN111555937B (en) 2020-04-27 2020-04-27 PSE port type detection system, method, device and control module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010345633.1A CN111555937B (en) 2020-04-27 2020-04-27 PSE port type detection system, method, device and control module

Publications (2)

Publication Number Publication Date
CN111555937A true CN111555937A (en) 2020-08-18
CN111555937B CN111555937B (en) 2022-02-25

Family

ID=72007809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010345633.1A Active CN111555937B (en) 2020-04-27 2020-04-27 PSE port type detection system, method, device and control module

Country Status (1)

Country Link
CN (1) CN111555937B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113125877A (en) * 2021-03-02 2021-07-16 华为技术有限公司 PD detection equipment for powered device
CN113890845A (en) * 2021-09-14 2022-01-04 博为科技有限公司 PSE (Power supply Enable) test method and device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140129854A1 (en) * 2012-11-07 2014-05-08 Broadcom Corporation Auto-Negotiation and Advanced Classification for Power Over Ethernet (POE) Systems
CN107864693A (en) * 2015-05-15 2018-03-30 飞利浦照明控股有限公司 Electric power system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140129854A1 (en) * 2012-11-07 2014-05-08 Broadcom Corporation Auto-Negotiation and Advanced Classification for Power Over Ethernet (POE) Systems
CN107864693A (en) * 2015-05-15 2018-03-30 飞利浦照明控股有限公司 Electric power system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113125877A (en) * 2021-03-02 2021-07-16 华为技术有限公司 PD detection equipment for powered device
EP4054122A1 (en) * 2021-03-02 2022-09-07 Huawei Technologies Co., Ltd. Powered device pd detection device
US11722326B2 (en) 2021-03-02 2023-08-08 Huawei Technologies Co., Ltd. Powered device (PD) detection device
CN113890845A (en) * 2021-09-14 2022-01-04 博为科技有限公司 PSE (Power supply Enable) test method and device, storage medium and electronic equipment
CN113890845B (en) * 2021-09-14 2023-06-20 博为科技有限公司 PSE test method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111555937B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN106998253B (en) Power supply equipment and power supply method of Ethernet power supply system
CN101112042B (en) Distinguishing network interface card from short circuit condition in power over Ethernet system
US8831211B2 (en) Common-mode data transmission for power over ethernet system
CN111555937B (en) PSE port type detection system, method, device and control module
US9128691B2 (en) Method and terminal for selecting internal circuit according to USB interface status
US5991885A (en) Method and apparatus for detecting the presence of a remote device and providing power thereto
US8234086B2 (en) Detection of multiple powered devices connected to an inline power delivery channel
US20040260794A1 (en) Pre-detection of powered devices
EP1842323B1 (en) Dual-mode detection of powered device in power over ethernet system
US20060164062A1 (en) Distinguishing network interface card from short circuit condition in power over ethernet system
EP2688248A1 (en) Method and system for ordered identifying slave address from master-slave scene bus
JP6925281B2 (en) Power supply system
EP1842327A2 (en) Utilization of power delivered to powered device during detection and classification mode
JP2002510185A (en) System and method for effective detection of connection to a network
US10887115B2 (en) Power control method for power over data line system
CN112684383A (en) Load connection detection method in Ethernet power supply system and power supply device
US9760144B2 (en) Devices and methods for transmitting power over an ethernet line
CN107040386B (en) Power supply equipment and power supply method of Ethernet power supply system
KR20070072582A (en) Analog power management within power over ethernet system
CN105049216A (en) Ethernet power supply method and power supply system
US20140211832A1 (en) Base-T Common Mode Testing in an Ethernet Subsystem
CN106330467A (en) Ethernet power supply method, power supply device and power supply equipment
US9442544B2 (en) Fast restart sleep signature in power over ethernet
TW201729563A (en) Inspection device and method for multiple powered devices in a power over Ethernet system
CN116742432B (en) Interface universality adapting method and system for realizing cable assembly based on negative feedback

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant