Power detection system and Ethernet detection device
The power detection system, composed of an optocoupler and a processor, solves the problem of high power detection cost for Power over Ethernet (PoE) devices, and simplifies the detection process and reduces costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-08
- Publication Date
- 2026-04-03
AI Technical Summary
In existing technologies, the power detection cost of Power over Ethernet (PoE) devices is too high, and the detection process is complex, resulting in an increase in device size.
A power detection system consisting of an optocoupler and a processor acquires the input current through the detection unit and converts it into an optocoupler signal. The processor then determines whether the device is overloaded, simplifying the detection process.
It reduces the hardware and labor costs of Power over Ethernet (PoE) equipment, improves the efficiency and accuracy of power detection, and simplifies the detection process.
Smart Images

Figure CN114755488B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Ethernet detection, and in particular to a power detection system and an Ethernet detection device. Background Technology
[0002] With the continuous development of information technology, the transmission requirements of Ethernet are also constantly increasing. In order to reduce the power supply cost in the network, electrical signals and data signals are generally transmitted simultaneously through twisted-pair cables in Ethernet, so that network terminals can be used without additional power adapters.
[0003] However, due to the introduction of power supply functionality in Ethernet, it is necessary to test Ethernet power supply devices. In existing technologies, a testing device is typically installed within the Ethernet power supply device to acquire its internal voltage and current, thereby calculating the device's real-time power and comparing it with the rated power to determine if overcurrent has occurred, thus achieving Ethernet power supply device testing. However, in existing technologies, it is difficult to obtain the internal voltage and current of the Ethernet power supply device. Adding corresponding voltage and current detection devices would result in an excessively large Ethernet power supply device, and the power calculation and comparison process would be cumbersome, leading to excessively high power testing costs for Ethernet power supply devices.
[0004] There is currently no effective solution to the technical problem of excessively high power detection costs for Power over Ethernet (PoE) devices in related technologies. Summary of the Invention
[0005] This embodiment provides a power detection system and an Ethernet detection device to solve the problem of excessively high power detection costs for Ethernet power supply equipment in related technologies.
[0006] In a first aspect, this embodiment provides a power detection system applied to a Power over Ethernet (PoE) device. The power detection system includes a detection unit, an optocoupler, and a processor. The optocoupler includes a light-emitting unit and a light-receiving unit. The detection unit is connected to the PoE device and the powered device. The light-emitting unit is connected to the detection unit, and the light-receiving unit is connected to the processor. Wherein:
[0007] The detection unit is used to acquire the input current of the Ethernet power supply device, and to turn the device on or off according to the input current. When the device is on, the detection unit sends a first signal to the light-emitting unit; when the device is overloaded, the detection unit is in the off state.
[0008] The light-emitting unit is used to send an optocoupler signal to the light-receiving unit based on the first signal; the light-receiving unit is used to turn on or off based on the optocoupler signal.
[0009] The processor is used to determine whether the Ethernet power supply device is overloaded based on the conduction status of the light receiving unit.
[0010] In some embodiments, the light-emitting unit is further configured to send an optocoupler signal to the light-receiving unit when the detection unit is turned on;
[0011] The light-receiving unit is also configured to cut off when it receives the optocoupler signal;
[0012] The processor is also configured to determine that the detection unit is in a normal power state when the light receiving unit is turned off.
[0013] In some embodiments, the light-emitting unit is further configured to stop sending photocoupled signals to the light-receiving unit when the detection unit is turned off;
[0014] The light-receiving unit is also configured to turn on when the light-emitting unit stops sending the photoelectric coupling signal;
[0015] The processor is also configured to determine that the detection unit is in an overload state when the light-receiving unit is turned on.
[0016] In some embodiments, the power detection system further includes a Zener diode connected to the detection unit, wherein:
[0017] The Zener diode is used to filter the input voltage of the detection unit.
[0018] In some embodiments, the power detection system further includes a rectifier bridge circuit connected to the detection unit, wherein:
[0019] The rectifier bridge circuit is used to filter the input current of the detection unit.
[0020] Secondly, this embodiment provides an Ethernet detection device applied to a Power over Ethernet (PoE) device. The Ethernet detection device includes the power detection system described in any one of the first aspects, a first interface, a second interface, and a signal separation unit, wherein:
[0021] The first interface is connected to a Power over Ethernet (PoE) device and is used to receive a first interactive signal sent by the PoE device and forward it to the signal separation unit; the first interactive signal is a composite signal of electrical signal and data signal;
[0022] The second interface is connected to the host computer and is used to receive the second interactive signal sent by the host computer and forward it to the power detection system; the second interactive signal is a data signal.
[0023] The signal separation unit is used to receive the first interactive signal and process it to separate the input current and interactive data.
[0024] The power detection system is also used to detect the power of the Ethernet power supply device based on the electrical signal in the first interaction signal, or to detect the communication function between the host computer and the Ethernet power supply device based on the data signal in the first interaction signal and / or the second interaction signal.
[0025] In some embodiments, the power detection system is further configured to receive a second interactive signal sent by the host computer and send the second interactive signal to the Ethernet power supply device; receive a third interactive signal sent by the Ethernet power supply device and compare the second interactive signal with the third interactive signal. If they are the same, it is determined that the communication function between the Ethernet power supply device and the host computer is normal. The third interactive signal is a signal that the Ethernet power supply device directly forwards to the power detection system after receiving the second interactive signal.
[0026] In some embodiments, the second interaction signal includes multiple interaction data streams of different bitstreams, and the Ethernet detection device includes multiple first interfaces and multiple second interfaces, wherein:
[0027] The power detection system is also used to store the judgment results of the communication function of each of the interactive data under each interface combination.
[0028] In some embodiments, the Ethernet detection device further includes a first input circuit and a second input circuit, which are respectively connected to the power detection system, wherein:
[0029] The first input circuit and the second input circuit are used to transmit the input current of the Ethernet power supply device to the detection unit;
[0030] The power detection system is used to send control commands to the first input circuit and the second input circuit to control the first input circuit and the second input circuit to be turned on or off.
[0031] In some embodiments, the Ethernet detection device further includes a first variable resistor connected to the detection unit, wherein:
[0032] The power detection system is also used to adjust the resistance value of the first variable resistor in order to control the power of the detection unit.
[0033] Compared with related technologies, the power detection system and Ethernet detection device provided in this embodiment include a detection unit, an optocoupler, and a processor. The optocoupler includes a light-emitting unit and a light-receiving unit. The detection unit is connected to the Ethernet power supply device and the power receiving device, respectively. The light-emitting unit is connected to the detection unit, and the light-receiving unit is connected to the processor. Specifically: the detection unit is used to acquire the input current of the Ethernet power supply device, and to turn it on or off based on the input current, sending a first signal to the light-emitting unit when it is on; the detection unit is in a cut-off state when overloaded; the light-emitting unit is used to send an optocoupler signal to the light-receiving unit based on the first signal; the light-receiving unit is used to turn it on or off based on the optocoupler signal; the processor is used to determine whether the Ethernet power supply device is overloaded based on the on state of the light-receiving unit. The load state of the detection unit is converted into the on / off state of the light receiving unit by the light-emitting unit of the optocoupler. The on / off state of the light receiving unit is used to determine whether the Ethernet power supply equipment is overloaded. No additional detection device is required, which solves the technical problem of high power detection cost of Ethernet power supply equipment in related technologies. The structure is simple, the detection process is simple and fast, the hardware cost of Ethernet power detection is reduced, and the efficiency of power detection is improved.
[0034] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description
[0035] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0036] Figure 1 This is a structural block diagram of a power detection system according to an embodiment of the present invention;
[0037] Figure 2 This is a schematic diagram of the structure of a power detection system according to an embodiment of the present invention;
[0038] Figure 3 This is a schematic diagram of the power detection system according to another embodiment of the present invention;
[0039] Figure 4 This is a schematic diagram of the rectifier bridge circuit according to an embodiment of the present invention;
[0040] Figure 5This is a structural block diagram of an Ethernet detection device according to an embodiment of the present invention;
[0041] Figure 6 This is a schematic diagram of the structure of an Ethernet detection device according to an embodiment of the present invention;
[0042] Figure 7 This is a schematic diagram of an Ethernet port according to an embodiment of the present invention;
[0043] Figure 8 This is a schematic diagram of a signal separation unit according to an embodiment of the present invention;
[0044] Figure 9 This is a schematic diagram of an Ethernet system according to an embodiment of the present invention;
[0045] Figure 10 This is a schematic flowchart of a communication function detection embodiment of the present invention;
[0046] Figure 11 This is a schematic diagram of the input circuit according to an embodiment of the present invention. Detailed Implementation
[0047] To better understand the purpose, technical solution, and advantages of this application, the application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0048] Unless otherwise defined, the technical or scientific terms used in this application shall have the general meaning as understood by one of ordinary skill in the art to which this application pertains. Words such as “a,” “an,” “an,” “the,” “the,” and “these,” used in this application, do not indicate quantitative limitation and may be singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that comprises a series of steps or modules (units) is not limited to the listed steps or modules (units) but may include steps or modules (units) not listed, or may include other steps or modules (units) inherent to such processes, methods, products, or devices. The terms “connected,” “linked,” and “coupled,” used in this application, are not limited to physical or mechanical connections but may include electrical connections, whether direct or indirect. The term “multiple” used in this application refers to two or more. The "and / or" operator describes the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: A alone, A and B simultaneously, and B alone. Typically, the character " / " indicates that the objects before and after it are in an "or" relationship. The terms "first," "second," and "third," etc., used in this application are merely for distinguishing similar objects and do not represent a specific ordering of the objects.
[0049] Power over Ethernet (PoE) devices integrate Power over Ethernet (PoE) and Ethernet data transmission capabilities. Using PoE devices and twisted-pair cables, they can directly power network terminal devices such as VoIP phones, wireless base stations, cameras, hubs, and computers, eliminating the need for external power adapters. In practical applications, PoE devices need to be tested using testing equipment to ensure that their power supply and data transmission functions are working correctly.
[0050] This invention provides a power detection system and an Ethernet detection device, which are used to implement the following embodiments and preferred embodiments, and will not be repeated for details already described. The terms "module," "unit," "subunit," etc., used below refer to combinations of software and / or hardware that perform a predetermined function. Although the device described in the following embodiments is preferably implemented in hardware, software implementation, or a combination of software and hardware, is also possible and contemplated.
[0051] Please see Figure 1 , Figure 1 This is a structural block diagram of a power detection system according to an embodiment of the present invention.
[0052] In one embodiment, the power detection system includes a detection unit 100, an optocoupler 200, and a processor 300. The optocoupler 200 includes a light-emitting unit 210 and a light-receiving unit 220. The detection unit 100 is connected to the Power over Ethernet (PoE) device and the powered device. The light-emitting unit 210 is connected to the detection unit 100, and the light-receiving unit 220 is connected to the processor 300. Specifically: the detection unit 100 is used to acquire the input current of the PoE device; based on whether the input current is turned on or off, the detection unit 100 sends a first signal to the light-emitting unit 210 when it is on; the detection unit 100 is in a cut-off state when overloaded. The light-emitting unit 210 is used to send an optocoupler signal to the light-receiving unit 220 based on the first signal; the light-receiving unit 220 is used to turn on or off based on the optocoupler signal. The processor 300 is used to determine whether the PoE device is overloaded based on the on state of the light-receiving unit 220.
[0053] For example, a power detection system is used to detect the output power of a Power over Ethernet (PoE) device to ensure that the powered device operates within an appropriate power range. The power detection system can be a stand-alone power detection device or a power detection component within an Ethernet detection device. Specifically, the power detection system can be installed anywhere within the Ethernet network, eliminating the need to install it at the PoE device itself, thereby reducing labor costs.
[0054] For example, a detection unit 100 is provided in the power detection system to simulate a powered device. Based on the load condition of the detection unit 100, the load condition of the powered device can be determined. If the output power of the Power over Ethernet device exceeds the input power of the powered device, causing the powered device to be in an overload state, the detection unit 100 in the Ethernet will also be in an overload state. Therefore, by detecting the power of the detection unit 100, it can be determined whether the Power over Ethernet device is in an overload state.
[0055] Specifically, the powered device is equipped with a PD protocol chip for negotiation between the Power over Ethernet (PoE) device and the powered device, and supplies power to the powered device according to the input power corresponding to the negotiation result. When the output power of the PoE device is too high, the PD protocol chip will be overloaded, thereby damaging the powered device. Therefore, a power detection system with a detection unit 100 is set in the Ethernet, and the detection unit 100 is set with the same PD protocol chip as the powered device. When the detection unit 100 is overloaded, the PD protocol chip in the powered device will also be overloaded.
[0056] Specifically, the power detection system is positioned between the Ethernet power supply device and the powered device. The detection unit 100 in the power detection system first acquires the input current of the Ethernet power supply device and then turns the device on or off based on the power level of the input current. When the power of the input current is within the power range of the detection unit 100, the detection unit 100 is normally turned on and sends a first signal to the light receiving unit 220; when the power of the input current exceeds the power range of the detection unit 100, the detection unit 100 is overloaded and is in the off state.
[0057] For example, the optocoupler 200 is a photoelectric conversion element that transmits electrical signals using light as a medium, and consists of a light-emitting unit 210 and a light-receiving unit 220. The light-emitting unit 210 and the light-receiving unit 220 are assembled in the same sealed housing and isolated from each other by a transparent insulator. The pins of the light-emitting unit 210 are the input terminals of the optocoupler 200, and the pins of the light-receiving unit 220 are the output terminals of the optocoupler 200. When the light-emitting unit 210 is off, the light-receiving unit 220 is in a conducting state; when the light-emitting unit 210 is conducting, it sends an optocoupler signal to the light-receiving unit 220, and the light-receiving unit 220 is turned off based on the optocoupler signal. The optocoupler signal is the light signal emitted by the light-emitting unit 210 inside the optocoupler 200, and the light-receiving unit 220 can be turned on or off based on this light signal. Specifically, the light-emitting unit 210 includes a light-emitting diode, and the light-receiving unit 220 includes a photodiode, a phototransistor, etc.
[0058] Specifically, the light-emitting unit 210 acquires the first signal sent by the detection unit 100 and sends an optocoupler signal to the light-receiving unit 220 based on the first signal. The light-receiving unit 220 receives the optocoupler signal and turns it on or off based on the optocoupler signal.
[0059] For example, the power detection system also includes a processor 300 for performing calculations, analysis, and processing on the signal. Specifically, the processor 300 refers to a computing unit with computational functions, including but not limited to a microcontroller, an FPGA programmable logic controller, etc.
[0060] Specifically, the processor 300 is connected to the light receiving unit 220 and can further determine whether the Power over Ethernet device is overloaded based on the conduction status of the light receiving unit 220. More specifically, the processor 300 determines the load status of the detection unit 100 based on the conduction status of the light receiving unit 220, and further determines whether the Power over Ethernet device is overloaded based on the load status of the detection unit.
[0061] In this embodiment, the power detection system includes a detection unit 100, an optocoupler 200, and a processor 300. The optocoupler 200 includes a light-emitting unit 210 and a light-receiving unit 220. The detection unit 100 is connected to the Ethernet power supply device and the powered device. The light-emitting unit 210 is connected to the detection unit 100, and the light-receiving unit 220 is connected to the processor 300. Specifically: the detection unit 100 is used to acquire the input current of the Ethernet power supply device. Based on whether the input current is turned on or off, the detection unit 100 sends a first signal to the light-emitting unit 210 when it is turned on; the detection unit 100 is in a cut-off state when overloaded. The light-emitting unit 210 is used to send an optocoupler signal to the light-receiving unit 220 based on the first signal. The light-receiving unit 220 is used to turn on or off based on the optocoupler signal. The processor 300 is used to determine whether the Ethernet power supply device is overloaded based on the on state of the light-receiving unit 220. The load state of the detection unit 100 is converted into the on / off state of the light receiving unit 220 by the light-emitting unit 210 of the optocoupler 200. The on / off state of the light receiving unit 220 is used to determine whether the Ethernet power supply device is overloaded. No additional detection device is required, which solves the technical problem of high power detection cost of Ethernet power supply devices in related technologies. The structure is simple, the detection process is simple and fast, the hardware cost of Ethernet power detection is reduced, and the efficiency of power detection is improved.
[0062] In another embodiment, the light-emitting unit is further configured to send an optocoupler signal to the light-receiving unit when the detection unit is turned on; the light-receiving unit is further configured to turn off when it receives the optocoupler signal; and the processor is further configured to determine that the detection unit is in a normal power state when the light-receiving unit is turned off.
[0063] For example, when the input power of the detection unit is within the normal range, the detection unit is turned on. At this time, the circuit containing the detection unit is turned on, and the input current flows through the light-emitting unit connected to the detection unit. This input current is the first signal. After acquiring the input current, the light-emitting unit turns on and sends an optocoupler signal to the light-receiving unit. This optocoupler signal is the light signal emitted by the light-emitting unit.
[0064] For example, when the light-receiving unit receives the photoelectric coupling signal sent by the light-emitting unit, that is, after the light-receiving unit senses the light signal emitted by the light-emitting unit, it enters a cutoff state. At this time, the circuit containing the light-receiving unit is in an open-circuit state.
[0065] For example, when the circuit containing the light-receiving unit is in an open-circuit state, the processor receives no current. In this case, the processor determines that the input power of the detection unit is within the normal range.
[0066] In another embodiment, the light-emitting unit is further configured to stop sending photocoupled signals to the light-receiving unit when the detection unit is turned off; the light-receiving unit is further configured to turn on when the light-emitting unit stops sending photocoupled signals; and the processor is further configured to determine that the detection unit is in an overload state when the light-receiving unit is turned on.
[0067] For example, when the input power of the detection unit exceeds the normal power range, i.e., when the detection unit is overloaded, the detection unit is cut off. At this time, the circuit containing the detection unit is disconnected, and the input current no longer flows through the light-emitting unit connected to the detection unit. Since the light-emitting unit has no current input, it no longer emits light signals; that is, the light-emitting unit stops sending optocoupled signals to the light-receiving unit.
[0068] For example, when the light-receiving unit no longer receives the photoelectric coupling signal sent by the light-emitting unit, it returns to the conducting state. At this time, the circuit containing the light-receiving unit is in the conducting state.
[0069] For example, when the circuit containing the light-receiving unit is in the ON state, there is a current input to the processor. When the processor detects the current input, it determines that the detection unit is in an overload state.
[0070] Please see Figure 2 , Figure 2 This is a schematic diagram of the power detection system according to an embodiment of the present invention.
[0071] Based on the two embodiments above, the present invention provides a specific embodiment. Specifically, the power detection system includes an optocoupler U1, a first resistor R1, a second resistor R2, and a +3.3V power supply V1. The A-end of the power detection system is connected to the input current of the Ethernet power supply device, and the B-end is connected to the processor. The optocoupler U1 includes a light-emitting diode (LED) and a phototransistor. The first resistor R1 and the second resistor R2 are the voltage divider resistors for the LED circuit and the phototransistor circuit, respectively. The detection unit can be separately located in the LED circuit or integrated with the optocoupler U1 in the same integrated circuit.
[0072] Specifically, when the input current of the Ethernet power supply device is input to terminal A, if the power of the detection unit is within the normal range, the detection unit is turned on. After the input current passes through the detection unit, it flows into the light-emitting diode of the optocoupler U1. The light-emitting diode emits an optocoupler signal to the phototransistor. After the phototransistor obtains the optocoupler signal, the collector and emitter are in a cutoff state. At this time, the circuit where the phototransistor is located is disconnected. The processor at terminal B determines that the power of the detection unit is normal when there is no current input.
[0073] Specifically, when the input current of the Ethernet power supply device is input to terminal A, if the detection unit is in an overload state, the detection unit will be cut off, and the input current cannot flow through the LED of the optocoupler U1. The LED will no longer send optocoupler signals to the phototransistor. After the phototransistor has no optocoupler signal input, it will enter the conduction state. At this time, the circuit where the phototransistor is located will be turned on, and the output current of the +3.3V power supply V1 will be output to the processor through the emitter and collector of the phototransistor. After the processor receives the current input, it determines that the detection unit is in an overload state.
[0074] In both embodiments above, the conduction state of the detection unit circuit is obtained through the light-emitting unit of the optocoupler, and the conduction state of the detection unit is converted into the conduction state of the light-receiving unit through the light-receiving unit of the optocoupler. Then, the processor determines the conduction state of the detection unit based on the conduction state of the light-receiving unit, thereby determining whether the detection unit is overloaded. In other words, the conduction state of the detection unit is converted into the conduction state of the light-receiving unit through the optocoupler, allowing direct determination of overload status based on the conduction state of the light-receiving unit, without directly detecting the current in the detection unit circuit. Since the detection unit circuit is often a closed structure, the power detection scheme using the light-receiving unit circuit is simpler and easier to implement, thus reducing hardware and labor costs.
[0075] In another embodiment, the power detection system further includes a Zener diode connected to the detection unit, wherein the Zener diode is used to filter the input voltage of the detection unit.
[0076] For example, a Zener diode is a surface-contact crystal diode made of silicon. Before breakdown, a Zener diode has a very high resistance and is in a cutoff state in the circuit; when the input voltage exceeds the breakdown voltage, the Zener diode conducts. Furthermore, because the terminal voltage of a Zener diode is stable within a certain input current range, it is widely used in regulated power supplies and limiting circuits.
[0077] Specifically, the Zener diode is connected to the input terminal of the detection unit. If the input voltage of the detection unit is lower than the breakdown voltage of the Zener diode, the Zener diode is in the cutoff state, and the input voltage cannot be input to the detection unit, thereby filtering out low-voltage noise signals and low-voltage input voltage to prevent the detection unit from being in an underload state.
[0078] Specifically, if the input voltage of the detection unit is higher than the breakdown voltage of the Zener diode, the Zener diode is reverse-broken down and enters the conducting state. At this time, the input voltage is input to the detection unit through the Zener diode. Since the terminal voltage of the Zener diode is relatively stable within a certain current range, the input voltage of the detection unit is also relatively stable, thus ensuring that the detection unit operates under a stable voltage.
[0079] Please see Figure 3 , Figure 3 This is a schematic diagram of the power detection system according to another embodiment of the present invention.
[0080] In one specific embodiment, the power detection system is provided with a Zener diode VD1. The cathode of the Zener diode VD1 is connected to the input voltage, and the anode is connected to the first resistor R1 to filter the input circuit of the detection unit.
[0081] This embodiment uses a Zener diode to filter the input voltage of the detection unit to remove low-voltage noise interference and low-voltage input voltage to prevent the detection unit from being in an underload state. At the same time, it stabilizes the input voltage of the detection unit when it is turned on, thereby ensuring the accuracy and stability of the input voltage of the detection unit and thus improving the accuracy of power detection.
[0082] In another embodiment, the power detection system further includes a rectifier bridge circuit connected to the detection unit, wherein the rectifier bridge circuit is used to filter the input current of the detection unit.
[0083] For example, the power detection system also includes a rectifier bridge circuit for filtering the input current of the detection unit. The rectifier bridge circuit consists of four diodes, encapsulated in a sealed housing in the form of a bridge full-wave rectifier circuit. Based on the unidirectional conduction characteristic of diodes, the rectifier bridge circuit can be used to rectify and filter AC power.
[0084] Please see Figure 4 , Figure 4 This is a schematic diagram of the rectifier bridge circuit according to an embodiment of the present invention.
[0085] Specifically, the M and N terminals of the rectifier bridge circuit are connected to the input current of the Ethernet power supply equipment, and the H terminal is connected to the power detection system. The input current flows into the detection unit through the rectifier bridge circuit.
[0086] Specifically, based on the unidirectional conduction characteristic of diodes, the rectifier bridge circuit can be used to filter the input current of the Ethernet power supply equipment to filter out the negative input current and ensure that the input current of the detection unit is a stable positive input current.
[0087] Specifically, based on the reverse cutoff characteristic of diodes, rectifier bridges can also be used to isolate the current of the power detection system to prevent the current of the power detection system from flowing back into the Ethernet power supply equipment and thus damaging the power supply equipment.
[0088] In this embodiment, the power detection system also includes a rectifier bridge circuit, which filters the input current of the detection unit to ensure that the detection unit operates under a stable input current and isolates the current of the power detection system to protect the Power over Ethernet (PoE) equipment. The rectifier bridge circuit improves the stability and security of both the power detection system and the PoE equipment.
[0089] Please see Figure 5 , Figure 5 This is a structural block diagram of an Ethernet detection device according to an embodiment of the present invention.
[0090] In another embodiment, the present invention also discloses an Ethernet detection device applied to a Power over Ethernet (PoE) device. The Ethernet detection device includes the power detection system 30 of any of the above embodiments, a first interface 10, a second interface 40, and a signal separation unit 20. The first interface 10 is connected to the PoE device and is used to receive a first interactive signal sent by the PoE device and forward it to the signal separation unit 20; the first interactive signal is a composite signal of an electrical signal and a data signal. The second interface 40 is connected to a host computer and is used to receive a second interactive signal sent by the host computer and forward it to the power detection system 30; the second interactive signal is a data signal. The signal separation unit 20 is used to receive the first interactive signal and process it to separate the input current and the interactive data. The power detection system 30 is also used to perform power detection on the PoE device based on the electrical signal in the first interactive signal, or to detect the communication function between the host computer and the PoE device based on the data signal in the first interactive signal and / or the second interactive signal.
[0091] For example, the first interface 10, the signal separation unit 20, the power detection system 30, and the second interface 40 are connected in sequence. The other end of the first interface 10 is connected to the Ethernet power supply device via Ethernet, and the other end of the second interface 40 is connected to the host computer via Ethernet. Here, the host computer refers to a computer device that can directly send control commands and display various status information.
[0092] For example, the first interface 10 receives a first interactive signal sent by the Power over Ethernet (PoE) device and forwards the first interactive signal to the signal separation unit 20. The first interactive signal includes both an electrical signal and a data signal. Upon receiving the first interactive signal, the signal separation unit 20 separates the first interactive signal to obtain the electrical signal and the data signal. The signal separation unit 20 inputs the separated input current and interactive data to the power detection system 30. The power detection system 30 receives the electrical signal and detects the output power of the PoE device based on the electrical signal, and also receives the data signal and determines whether the PoE device and the host computer can communicate normally based on the data signal.
[0093] For example, the second interface 40 receives the second interaction signal sent by the host computer and forwards the second interaction signal to the power detection system 30. The second interaction signal includes only data signals. After acquiring the second interaction signal, the power detection system 30 analyzes the second interaction signal to determine whether the host computer and the Ethernet power supply device can communicate normally.
[0094] In one specific embodiment, the first interface 10 and the second interface 40 are Ethernet ports, and the host computer includes, but is not limited to, a computer, a main control computer, etc.
[0095] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of an Ethernet detection device according to an embodiment of the present invention.
[0096] Specifically, the Ethernet detection device includes network port 1, network port 2, signal separation unit 20, and power detection system 30. Power detection system 30 includes a PD chip and an FPGA programmable logic controller, with an optocoupler integrated into the PD chip. Network port 1 is connected to signal separation unit 20 and Ethernet power supply equipment. Signal separation unit 20 is also connected to the PD chip and the FPGA programmable logic controller, and the FPGA programmable logic controller is also connected to network port 2.
[0097] Specifically, network port 1 acquires the first interactive signal from the Ethernet power supply device and outputs it to the signal separation unit 20; the signal separation unit 20 separates the first interactive signal to obtain an electrical signal and a data signal, and outputs the electrical signal to the PD chip and the data signal to the FPGA programmable logic controller; after acquiring the electrical signal, the PD chip detects the load status of the PD chip through its internal optocoupler to determine whether the PD chip is overloaded; after acquiring the data signal, the FPGA programmable logic controller analyzes the data signal to determine whether the data communication function in the Ethernet is normal.
[0098] Specifically, Ethernet port 2 is used to forward information sent by the FPGA programmable logic controller to the host computer, and to send information sent by the host computer to the FPGA programmable logic controller, and to determine whether the data communication function in the Ethernet is normal through the information exchanged.
[0099] Specifically, an FPGA (Programmable Logic Controller) is a processor with storage, computation, and control functions. Its storage function is primarily implemented through program Flash and data Flash. The program Flash mainly stores the software code used when the FPGA starts up, while the data Flash mainly stores the interaction information between the Power over Ethernet (PoE) device and the host computer. The FPGA also has DDR2 memory for temporarily storing computational and interaction data. Furthermore, the FPGA can control the power, level, and input circuit sequence of the PD chip.
[0100] Please see Figure 7 , Figure 7 This is a schematic diagram of an Ethernet port according to an embodiment of the present invention.
[0101] Specifically, the first interface 10 includes, but is not limited to, an RJ45 network interface. The RJ45 network interface includes eight sub-interfaces for transmitting the first interactive signal sent by the Power over Ethernet (PoE) device.
[0102] Please see Figure 8 , Figure 8 This is a schematic diagram of a signal separation unit 20 according to an embodiment of the present invention.
[0103] Specifically, the signal separation unit 20 acquires the first interactive signal sent by the first interface 10 and performs separation processing. More specifically, the signal separation unit 20 acquires the first interactive signal forwarded by the first interface 10 and separates eight data signals: PHYO_MDI0P, PHYO_MDI0N, PHYO_MDI1P, PHYO_MDI1N, PHYO_MDI2P, PHYO_MDI2N, PHYO_MDI3P, and PHYO_MDI3N, as well as four electrical signals: GND1_POE, GND2_POE, +48V_IN1, and +48V_IN2.
[0104] This embodiment uses an Ethernet testing device to simultaneously test the power supply function and data transmission function of Power over Ethernet (PoE) devices. This eliminates the need to set up separate testing devices for the power supply function and data transmission function, thereby improving the integration of PoE device testing. It is feature-rich, easy to test, reduces hardware costs, and improves the efficiency of test development.
[0105] In another embodiment, the power detection system is further configured to receive a second interactive signal sent by a host computer and send the second interactive signal to the Power over Ethernet (PoE) device; receive a third interactive signal sent by the PoE device and compare the second interactive signal with the third interactive signal. If they are the same, it is determined that the communication function between the PoE device and the host computer is normal. The third interactive signal is a signal that the PoE device directly forwards to the power detection system after receiving the second interactive signal.
[0106] For example, the communication function detection steps of the Ethernet detection device include:
[0107] Step 1: The host computer sends a second interaction signal to the processor of the power detection system, wherein the second interaction signal is a data signal;
[0108] Step 2: The power detection system receives the second interactive signal sent by the host computer and forwards it directly to the Ethernet power supply device;
[0109] Step 3: The Ethernet power supply device receives the second interaction signal and directly sends it to the power detection system via the third interaction signal. The third interaction signal is the signal that the Ethernet device forwards directly after receiving the second interaction signal.
[0110] Step 4: The power detection system receives the third interactive signal sent by the Power over Ethernet (PoE) device and compares the second interactive signal with the third interactive signal. If the second and third interactive signals are the same, it indicates that the communication function between the PoE device and the host computer is normal; if the second and third interactive signals are different, it indicates that there is packet loss or missing packets during the interaction process, and the communication function between the PoE device and the host computer is abnormal.
[0111] This embodiment acquires and compares specific interactive signals, and determines whether the communication function of the Ethernet system is normal based on the comparison results. The detection process is simple and fast and does not require additional equipment, which reduces the cost of Ethernet communication function detection and improves the efficiency of Ethernet communication function detection.
[0112] In another embodiment, the second interaction signal includes multiple interaction data with different bitstreams, and the Ethernet detection device includes multiple first interfaces and multiple second interfaces, wherein: the power detection system is also used to store the judgment result of the communication function of each interaction data under each interface combination.
[0113] For example, the second interaction signal can be multiple interaction data with different bitstreams, and the first interface and the second interface in the Ethernet detection device can also be multiple. Here, bitstream refers to the rate at which the high and low voltage levels change during data transmission on the communication interface. The higher the bitstream, the more data is transmitted per unit time, and the greater the amount of information contained.
[0114] For example, multiple communication scenarios are set up based on the interactive data of different bitstreams and different interface combinations. For instance, if the second interactive signal has M interactive data combination forms and the interface has N combination forms, then there are M*N communication scenarios. Communication function detection is performed for each communication scenario to obtain the detection result for each communication scenario, and the result is saved to the database.
[0115] Please see Figure 9 , Figure 9 This is a schematic diagram of an Ethernet system according to an embodiment of the present invention.
[0116] This embodiment also discloses a specific application scenario. In one specific embodiment, the Power over Ethernet (PoE) device has network ports 31-35, and the system is equipped with five detection devices. The PoE device typically connects multiple IPC cameras to network ports 31-35, where the average bitrate of the IPC cameras includes 4Mb, 8Mb, etc. The bitrate of the IPC cameras consists of I-frame sequences, P-frame sequences, etc. Due to the presence of burst frames in the I-frame sequence, congestion may occur during the forwarding of data packets by the PoE device, preventing network port 35 from forwarding all data packets. Therefore, it is necessary to assess the number and type of IPC cameras that the PoE device can connect to, thereby avoiding congestion in the Ethernet system. Based on the testing device in this embodiment, the data communication function of the PoE device under each condition can be tested to determine the normal communication conditions between the PoE device and the IPC cameras.
[0117] Please see Figure 10 , Figure 10This is a schematic diagram of the communication function detection process according to an embodiment of the present invention.
[0118] For the above application scenarios, in one specific embodiment, Ethernet communication function detection includes:
[0119] Step 1: Establish the connection between Ethernet ports 21-24 of the Power over Ethernet (PoE) test device and the host computer, thereby enabling communication between the host computer and the FPGA programmable logic controller of the PoE test device. The host computer includes computer equipment.
[0120] Step 2: Simulate different IPC camera bitstream data through the software program on the host computer; send the simulated bitstream data to the FPGA programmable logic controller, which converts the bitstream data and saves it to the data Flash.
[0121] Step 3: The host computer specifies a fixed frequency bitstream. The FPGA programmable logic controller of the Ethernet power supply equipment detection device obtains data from the data Flash and sends it to Ethernet ports 31-34 of the Ethernet power supply equipment through Ethernet ports 11-14.
[0122] Step 4: The Power over Ethernet (PoE) device acquires the data forwarded by ports 31-34 and sends it to port 15 of the PoE detection device via port 35.
[0123] Step 5: The Ethernet power supply equipment detection device acquires the data forwarded by network port 15, performs data conversion based on the transmission protocol, and compares the obtained data with the data stored in the data Flash. If they are the same, the forwarding is successful and the Ethernet system communication function is normal; if they are different, packet loss or missing packets occurred during the forwarding process, and the Ethernet system communication function is abnormal.
[0124] This embodiment tests the communication functionality of each interactive data under each interface combination and saves the corresponding test results. Based on these test results, the communication configuration supported by the Power over Ethernet (PoE) device can be directly determined without needing to test before each data transmission, thereby improving the communication efficiency of the PoE device.
[0125] In another embodiment, the Ethernet detection device further includes a first input circuit and a second input circuit, which are respectively connected to a power detection system. The first input circuit and the second input circuit are used to transmit the input current of the Ethernet power supply device to the detection unit. The power detection system is used to send control commands to the first input circuit and the second input circuit to control the first input circuit and the second input circuit to be turned on or off.
[0126] For example, the Ethernet device is provided with a first input circuit and a second input circuit. One end of the first input circuit and the second input circuit are respectively connected to a Power over Ethernet (PoE) device, and the other end is respectively connected to a power detection system to supply power to the detection unit. The processor in the power detection system sends control commands to the first input circuit and the second input circuit to control the on / off state of the first input circuit and the second input circuit, so that the PoE device supplies power to the detection unit through the first input circuit and / or the second input circuit.
[0127] In one specific embodiment, the first input circuit and the second input circuit are provided with transistors, which acquire control instructions from the FPGA programmable logic controller and turn on or off based on the control instructions.
[0128] Please see Figure 11 , Figure 11 This is a schematic diagram of the input circuit according to an embodiment of the present invention.
[0129] In another specific embodiment, rectifier bridge circuits are further provided in the first and second input circuits to filter the input current respectively. The inputs of both the first and second input circuits are 48V DC current, and the outputs are PowerA and PowerB respectively. The FPGA programmable logic controller controls the on / off state of the first and second input circuits through Power_GPIO1 and Power_GPIO2 instructions respectively, to control whether the input of the detection unit is PowerA and / or PowerB. Specifically, when the Power_GPIO1 instruction is high and the Power_GPIO2 instruction is low, the detection unit is powered only by PowerA; when the Power_GPIO1 instruction is low and the Power_GPIO2 instruction is high, the detection unit is powered only by PowerB; when both the Power_GPIO1 and Power_GPIO2 instructions are low, the detection unit is powered by both PowerA and PowerB simultaneously.
[0130] In another specific embodiment, for the input circuit wiring sequence in this embodiment, the present invention also discloses an input circuit wiring sequence detection method. Specifically, the input circuit wiring sequence has three states: PowerA power supply, PowerB power supply, and PowerA and PowerB power supply simultaneously. The FPGA programmable logic controller sets three corresponding state input pins for the above three states: FB1, FB2, and FB3. When FB1 goes low, the detection unit is powered by PowerA; when FB2 goes low, the detection unit is powered by PowerB; when FB3 goes low, the detection unit is powered by both PowerA and PowerB simultaneously.
[0131] In this embodiment, a first input circuit and a second input circuit are set in the Ethernet testing device, and the power detection system controls the on / off state of the first input circuit and the second input circuit, thereby controlling and adjusting the input current of the detection unit to ensure the stability and accuracy of the current input of the detection unit, and thus improving the accuracy of power detection.
[0132] In another embodiment, the Ethernet detection device further includes a first variable resistor connected to the detection unit, wherein the power detection system is also used to adjust the resistance value of the first variable resistor to control the power of the detection unit.
[0133] For example, the Ethernet detection device also includes a first variable resistor, which is connected to the detection unit and acts as a load. The power of the power detection unit is associated with the first variable resistor, and the processor in the power detection system adjusts the power of the detection unit by adjusting the resistance value of the first variable resistor.
[0134] In one specific embodiment, the detection unit includes a PD chip. The PD chip has different power levels, which are determined by the resistance value of a first variable resistor. Specifically, the relationship between the PD chip power and the resistance value of the first variable resistor is as follows:
[0135]
[0136] Where P is the power of the PD chip, U is the input voltage, and R is the resistance of the first variable resistor.
[0137] For example, the power rating of the TP2378 PD chip and the resistance value of the first variable resistor are shown in the table below:
[0138]
[0139]
[0140] Specifically, the processor includes an FPGA programmable logic controller, which controls the resistance value of the first variable resistor through five instructions: Class_GPIO1, Class_GPIO2, Class_GPIO3, Class_GPIO4, and Class_GPIO5, thereby controlling the power of the PD chip.
[0141] Specifically, once the FPGA programmable logic controller selects the appropriate power level, the Power over Ethernet (PoE) device will reserve the maximum power value according to that power level. For example, when the PD chip's power is set to power level 5, the PD chip's maximum power can reach 25.5W, meaning the maximum input power of the powered device is 25.5W. In this case, the maximum output power of the PoE device can exceed 25.5W. This is because there is power loss in Ethernet cables; the longer the cable, the greater the power loss. The maximum output power of the PoE device can be set based on the cable length.
[0142] In this embodiment, a first variable resistor is also provided in the Ethernet detection device. By adjusting the resistance value of the first variable resistor, the power of the detection unit can be adjusted. When the input power of the powered devices is different, it is not necessary to set up multiple detection units with corresponding power. Only the resistance value of the first variable resistor needs to be adjusted to simulate the load conditions of powered devices with different input power, thereby reducing the hardware cost of the Ethernet detection device and improving the detection efficiency.
[0143] It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. All other embodiments derived by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.
[0144] Obviously, the accompanying drawings are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar situations based on these drawings without any creative effort. Furthermore, it is understood that although the work done in this development process may be complex and lengthy, for those skilled in the art, certain design, manufacturing, or production modifications made based on the technical content disclosed in this application are merely conventional technical means and should not be considered as insufficient disclosure of this application.
[0145] The term "embodiment" in this application refers to a specific feature, structure, or characteristic described in connection with an embodiment that may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily imply the same embodiment, nor does it imply that it is mutually exclusive with or independent of other embodiments. It will be clearly or implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0146] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of patent protection. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the appended claims.
Claims
1. A power detection system applied to Power over Ethernet (PoE) equipment, characterized in that, The power detection system includes an FPGA programmable logic controller, a detection unit, an optocoupler, and a processor. The optocoupler includes a light-emitting unit and a light-receiving unit. The detection unit is connected to the Ethernet power supply device and the powered device. The light-emitting unit is connected to the detection unit, and the light-receiving unit is connected to the processor. The detection unit includes a PD chip identical to that of the powered device. The PD chip is used to receive the electrical signal obtained by the signal separation unit separating the first interactive signal sent by the Ethernet power supply device. The FPGA programmable logic controller is used to receive the data signal obtained by the signal separation unit separating the first interactive signal, and uses the data signal as a communication signal between the host computer and the Ethernet power supply device to detect whether the communication function between the host computer and the Ethernet power supply device is normal. The detection unit is used to simulate the powered device, wherein: The detection unit is used to acquire the input current of the Ethernet power supply device, and to turn the device on or off according to the input current. When the device is on, the detection unit sends a first signal to the light-emitting unit; when the device is overloaded, the detection unit is in the off state. The light-emitting unit is used to send an optocoupler signal to the light-receiving unit based on the first signal; the light-receiving unit is used to turn on or off based on the optocoupler signal. The processor is used to determine whether the output power of the Ethernet power supply device is overloaded based on the conduction status of the light receiving unit.
2. The power detection system according to claim 1, characterized in that: The light-emitting unit is also used to send an optocoupler signal to the light-receiving unit when the detection unit is turned on; The light-receiving unit is also configured to cut off when it receives the optocoupler signal; The processor is also configured to determine that the detection unit is in a normal power state when the light receiving unit is turned off.
3. The power detection system according to claim 1 or 2, characterized in that: The light-emitting unit is also used to stop sending photoelectric coupling signals to the light-receiving unit when the detection unit is turned off; The light-receiving unit is also configured to turn on when the light-emitting unit stops sending the photoelectric coupling signal; The processor is also configured to determine that the detection unit is in an overload state when the light-receiving unit is turned on.
4. The power detection system according to claim 1, characterized in that, The power detection system also includes a Zener diode, which is connected to the detection unit, wherein: The Zener diode is used to filter the input voltage of the detection unit.
5. The power detection system according to claim 1, characterized in that, The power detection system further includes a rectifier bridge circuit, which is connected to the detection unit, wherein: The rectifier bridge circuit is used to filter the input current of the detection unit.
6. An Ethernet detection device, applied to a Power over Ethernet (PoE) device, characterized in that, The Ethernet detection device includes the power detection system according to any one of claims 1-5, a first interface, a second interface, and a signal separation unit, wherein: The first interface is connected to a Power over Ethernet (PoE) device and is used to receive a first interactive signal sent by the PoE device and forward it to the signal separation unit; the first interactive signal is a composite signal of electrical signal and data signal; The second interface is connected to the host computer and is used to receive the second interactive signal sent by the host computer and forward it to the power detection system; the second interactive signal is a data signal. The signal separation unit is used to receive the first interactive signal and process it to separate the input current and interactive data. The power detection system is also used to perform power detection on the Ethernet power supply device based on the electrical signal in the first interaction signal, or to use the data signal in the first interaction signal and / or the second interaction signal as the communication signal between the host computer and the Ethernet power supply device to detect whether the communication function between the host computer and the Ethernet power supply device is normal.
7. The Ethernet detection device according to claim 6, characterized in that: The power detection system is also used to receive the second interactive signal sent by the host computer and send the second interactive signal to the Ethernet power supply device; The system receives a third interactive signal sent by the Ethernet power supply device and compares the second interactive signal with the third interactive signal. If they are the same, it determines that the communication function between the Ethernet power supply device and the host computer is normal. The third interactive signal is a signal that the Ethernet power supply device forwards directly to the power detection system after receiving the second interactive signal.
8. The Ethernet detection device according to claim 7, characterized in that, The second interaction signal includes multiple interaction data streams of different bitstreams. The Ethernet detection device includes multiple first interfaces and multiple second interfaces, wherein: The power detection system is also used to store the judgment results of the communication function of each of the interactive data under each interface combination.
9. The Ethernet detection device according to claim 6, characterized in that, The Ethernet detection device further includes a first input circuit and a second input circuit, which are respectively connected to the power detection system, wherein: The first input circuit and the second input circuit are used to transmit the input current of the Ethernet power supply device to the detection unit; The power detection system is used to send control commands to the first input circuit and the second input circuit to control the first input circuit and the second input circuit to be turned on or off.
10. The Ethernet detection device according to claim 6, characterized in that, The Ethernet detection device further includes a first variable resistor, which is connected to the detection unit, wherein: The power detection system is also used to adjust the resistance value of the first variable resistor in order to control the power of the detection unit.
Citation Information
Patent Citations
Method and device for testing switch with Ethernet power supply function
CN101232384A
Terminal access equipment and reverse power over Ethernet (PoE) state detection method
CN102571502A
Testing treatment tool
CN201319606Y
Active serial ports design circuit with ethernet equipment and active with ethernet equipment
CN208424392U