Disclosure of Invention
In view of the above, the main objective of the present invention is to provide an ONU, in which all user terminals connected to the ONU supply power to the ONU together without taking power from a corridor, so as to reduce the power supply difficulty of the ONU and save the cost.
Another objective of the present invention is to provide a method for controlling access of a power supply user terminal by an ONU, which enables all user terminals connected to the ONU to supply power to the ONU together without taking power from a corridor, thereby reducing power supply difficulty of the ONU and saving cost.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention discloses an Optical Network Unit (ONU), which comprises a voltage detection module, a plurality of first interfaces, a power module, an Ethernet transformer and diodes corresponding to different user terminals one to one, wherein:
the voltage detection module is used for detecting whether a power supply provided by a user terminal exists or not, if so, the user terminal data received by the first interface is controlled to be received by an exchange chip in the ONU, otherwise, the user terminal data received by the first interface is controlled not to be received by the exchange chip in the ONU;
the first interface is connected with the user terminal through an Ethernet cable, receives a power supply provided by the user terminal, transmits the received power supply to the voltage detection module and the power supply module, and receives data input by the user terminal;
the power supply module receives the power supply transmitted by the first interface and converts the power supply into the working voltage required by the ONU;
the anode of each diode of the diodes which correspond to different user terminals one by one is connected with a power supply provided by the corresponding user terminal through an Ethernet cable, the cathode of each diode is connected with the anode of the power supply module, and the anodes of all the diodes are connected to the cathode of the power supply module in parallel;
the voltage detection module detects that a user terminal power supply exists, and controls the voltage of a center tap of the Ethernet transformer to be a first voltage value; the voltage detection module detects that the user terminal power supply does not exist, and then the center tap of the Ethernet transformer is controlled to be a second voltage value;
and the Ethernet transformer receives the data of the user terminal input by the first interface, converts the data of the user terminal into a level signal which can be identified by the switching chip when the center tap voltage is a first voltage value, and converts the data of the user terminal into a level signal which cannot be identified by the switching chip when the center tap voltage is a second voltage value.
The voltage detection module includes:
the diode D, the resistors R1, R2, R3 and R4, the optical coupler and the voltage conversion unit;
the diode D is connected with the resistor R1 in series and is used for connecting the anode of a power supply input from the first interface and the anode of a light emitting diode of the optical coupler;
the resistor R2 is used for connecting the negative electrode of the power supply input from the first interface and the negative electrode of the light emitting diode of the optical coupler;
the resistor R3 is used for connecting the collector of the triode and the voltage of the collector;
the resistor R4 is connected with the collector of the triode and the input end of the voltage conversion unit;
the input end of the voltage conversion unit is connected with an emitter of the optocoupler triode and a resistor R4, and the output end of the voltage conversion unit is connected with a center tap of the Ethernet transformer;
when a first interface inputs a power supply, the optical coupling loop is switched on, and the voltage conversion unit receives the voltage of the optical coupling loop and outputs a first voltage value; when the first interface does not input a power supply, the optical coupling loop is not connected, the voltage conversion unit does not receive the voltage of the optical coupling loop, and the second voltage value is output.
An optical network unit ONU comprises a voltage detection module, a plurality of first interfaces, a power supply module, diodes corresponding to different user terminals one by one and a main control unit,
the voltage detection module is used for detecting whether a power supply provided by a user terminal exists or not, if so, the user terminal data received by the first interface is controlled to be received by an exchange chip in the ONU, otherwise, the user terminal data received by the first interface is controlled not to be received by the exchange chip in the ONU;
the first interface is connected with the user terminal through an Ethernet cable, receives a power supply provided by the user terminal, transmits the received power supply to the voltage detection module and the power supply module, and receives data input by the user terminal;
the power supply module receives the power supply transmitted by the first interface and converts the power supply into the working voltage required by the ONU;
the anode of each diode of the diodes which correspond to different user terminals one by one is connected with a power supply provided by the corresponding user terminal through an Ethernet cable, the cathode of each diode is connected with the anode of the power supply module, and the anodes of all the diodes are connected to the cathode of the power supply module in parallel;
the voltage detection module detects that a user terminal power supply exists, and reports the power supply information of the user terminal to the main control unit; the voltage detection module detects that the power supply of the user terminal does not exist, and reports the information that the user terminal does not supply power to the main control unit;
and the main control unit controls the opening of a port corresponding to the powered user terminal on the exchange chip and controls the closing of a port corresponding to the unpowered user terminal on the exchange chip according to the information reported by the voltage detection module.
The voltage detection module includes:
the diode D, the resistors R1, R2, R3 and R4, the optical coupler and the voltage conversion unit;
the diode D is connected with the resistor R1 in series and is used for connecting the anode of a power supply provided by a user terminal input from the first interface and the anode of a light emitting diode of the optical coupler;
the resistor R2 is used for connecting the negative electrode of the power supply input from the first interface and the negative electrode of the light emitting diode of the optical coupler;
the resistor R3 is used for connecting the collector of the triode and the voltage of the collector;
the resistor R4 is connected with the collector of the triode and the input end of the voltage conversion unit; the input end of the voltage conversion unit is connected with an emitter of the optocoupler triode and a resistor R4, and the output end of the voltage conversion unit is connected with the main control unit;
when a first interface inputs a power supply, the optical coupling loop is switched on, the voltage conversion unit receives the voltage of the optical coupling loop, and the power supply information of the user terminal is reported to the main control unit; when the first interface does not input a power supply, the optical coupling loop is not connected, the voltage conversion unit does not receive the voltage of the optical coupling loop, and the information that the user terminal does not supply power is reported to the main control unit.
The ONU comprises a plurality of Ethernet transformers, and different external user terminals are respectively and correspondingly connected with different first interfaces and the Ethernet transformers.
Each diode is positioned in the power supply module and the first interface connected with the user terminal corresponding to the diode or independently arranged between the power supply module and the first interface.
The invention also discloses a method for controlling the access of the power supply user terminal by the ONU of the optical network unit, wherein the ONU comprises diodes which are in one-to-one correspondence with different user terminals, the anode of each diode is connected with the power supply provided by the corresponding user terminal through an Ethernet cable, the cathode of each diode is connected with the anode of a power supply module in the ONU, and the anodes of all the diodes are connected in parallel to the cathode of the power supply module, the method comprises the following steps:
A. detecting whether a power supply provided by the user terminal exists, if so, executing the step B, otherwise, executing the step C;
B. controlling the data of the user terminal to be received by an exchange chip in the ONU, and ending the current process;
C. controlling the data of the user terminal not to be received by a switching chip inside the ONU;
the step B comprises the following steps: controlling the voltage of a center tap of an Ethernet transformer inside the ONU to be a first voltage value, and converting received data of the user terminal into a level signal which can be identified by an exchange chip inside the ONU when the Ethernet transformer detects that the voltage of the center tap is the first voltage value; said step C comprises: controlling the voltage of a center tap of an Ethernet transformer inside the ONU to be a second voltage value, and converting the received data of the user terminal into a level signal which cannot be identified by an exchange chip inside the ONU when the Ethernet transformer detects that the voltage of the center tap is the second voltage value;
or, the step B includes: reporting the power supply information of the user terminal to a main control unit in the ONU, wherein the main control unit controls the opening of a port corresponding to the power supply user terminal on a switching chip; said step C comprises: and reporting the information that the user terminal does not supply power to a main control unit in the ONU, wherein the main control unit controls a port corresponding to the user terminal which supplies power on a switching chip to be closed.
According to the technical scheme, the power supply is obtained from the user terminal by utilizing the original Ethernet cable, the voltage detection module is added into the ONU and used for detecting whether the power supply exists in the user terminal, the access port of the user terminal is further controlled by the Ethernet transformer or the main control unit, so that the user terminal which does not supply power to the ONU can not be accessed, and the diodes are added into the ONU to realize the load sharing of multiple power supplies, so that all the user terminals connected with the ONU supply power together without getting power from the power supply in a corridor, the power supply difficulty of the ONU equipment is reduced, and the power supply construction cost of an operator is saved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and examples.
The ONU is connected with a plurality of user terminals, each user terminal comprises a Power Over Ethernet (POE) power supply, and the ONU obtains direct current from all accessed POE power supplies of the user terminals through the original Ethernet cable, so that the ONU equipment is powered from the user terminals without taking power from a power supply in a corridor.
Fig. 2 is a schematic diagram of an application of an ONU according to the present invention in an EPON access system. The ONU of the invention adopts a mode of supplying power from the user terminal, and the corridor equipment box only comprises the ONU202 without introducing a corridor power supply. As shown in fig. 2, each OLT101 is connected to a plurality of ONUs 202 through optical fibers and optical splitters, each ONU202 is connected to a plurality of user terminals 103 through ethernet cables, a POE power source 204 is added to each user terminal 103, and power is supplied to the ONUs through the POE power source of the user terminal by using the original ethernet cable without supplying power to the corridor power source. In the application mode of the existing IEEE802.3af standard, one corridor power supply device is adopted to supply power to a plurality of ONUs in a centralized manner, the ONU technical standard of the invention is compatible with the IEEE802.3af standard, but in the application mode, one ONU is connected with a plurality of user terminals, and POE power supplies of all accessed user terminals supply power to the ONU equipment together.
According to the invention, a voltage detection module is added in the ONU to detect the power supply of the user terminal, and the data access of the user terminal is controlled according to the detection result. Furthermore, the load sharing is realized by adding a diode in the ONU, so that all the user terminals connected with the ONU supply power to the ONU together.
Fig. 3 is an internal structure diagram of the ONU and the POE power supply of the user terminal of the present invention. As shown in fig. 3, the internal structure of the ONU202 includes: a first interface 311, an ethernet transformer 312, a switch chip 313, a passive optical network media access control (PON MAC) chip 314, a Passive Optical Network (PON) optical interface 315, a power module 316, a voltage detection module 317, and a master control unit 318. The ONU may include a plurality of first interfaces 311 and a plurality of ethernet transformers 312, and different external user terminals are correspondingly connected to the different first interfaces 311 and ethernet transformers 312, respectively.
The switch chip 313, the PON MAC chip 314 and the PON optical interface 315 are the same as the prior art ONU. The switching chip 313 connects the ethernet transformer 312 and the PON MAC chip 314, and is controlled by the main control unit 318 to switch and process the data signal from the ethernet transformer 312. The PON MAC chip 314 is connected to the switch chip 313 and the PON optical interface 315, and is controlled by the main control unit 318 to complete the interconversion between the EPON protocol and the ethernet protocol. The PON optical interface 315 receives the electrical signal of the PON MAC chip 314, and under the control of sending the electrical signal, converts the electrical signal into an optical signal and sends the optical signal out of the ONU.
The first interface 311 is an ethernet interface, and is externally connected to a POE power source of the user terminal through an ethernet cable, and is internally connected to the ethernet transformer 312, the power module 316, and the voltage detection module 317, the ethernet cable transmits the power current and the data signal from the user terminal to the first interface 311, and the first interface 311 transmits the power current to the power module 316 and the voltage detection module 317, and transmits the data signal to the ethernet transformer 312. The ethernet transformer 312 is connected to the first interface 311 and the switch chip 313, and is controlled by the voltage detection module 317 to convert the data of the user terminal into a level signal, and send the level signal to the switch chip 313, and simultaneously isolate the interference level. The power module 316 is connected to the first interface 311, the power supplied from the POE module is input to the power module 316 through the first interface 311, and the power module 316 converts the power into the operating voltage required by the ONU, for example, 5V, 3.3V, 2.5V, 1.8V, or 1.2V according to different models of the ONU. The voltage detection module 317 is connected to the first interface 311, the ethernet transformer 312 and the main control unit 318, and is configured to detect whether a user terminal power supply exists, and control a center tap voltage of the ethernet transformer 312 according to a detection result, or report the detection result to the main control unit 318. The main control unit 318 manages and configures each module in the system by adopting a programmable high-level processor, and manages the system according to the state of the network interface and a management message received by a serial port or the network interface; meanwhile, the main control unit 318 receives the detection result of the voltage detection module 317 and controls the relevant interface of the switch chip 313 according to the detection result 317. The main control unit 318 may employ a 32-bit embedded processor, such as an ARM or MIPS, or a C51 single chip.
As shown in fig. 3, the POE power source 204 of the user terminal includes: a power conversion unit 322, a second interface 324, a third interface 323, and a fourth interface 321. The fourth interface 321 is a power interface, which receives the power input of the standard commercial power AC220V and transmits it to the power conversion unit 322. The power conversion unit 322 receives the AC220V power input from the fourth interface 321, converts it into 48V dc power, and transmits it to the second interface 324. The third interface 323 is an ethernet interface, and is connected to the computer of the user terminal through an ethernet cable to the outside, and is connected to the second interface 324 to the inside, for transmitting interactive data information between the user terminal and the second interface 324. The second interface 324 belongs to an ethernet interface, and is configured to transmit interactive data information between the third interface 323 and the first interface 311 of the ONU, and receive the 48V dc power transmitted by the power conversion unit 322, and the second interface 324 is connected to the first interface 311 of the ONU202 through an ethernet line, and adds the 48V dc power to the idle 4 th, 5 th, 7 th, and 8 th twisted pairs in the ethernet line, and supplies the dc power to the ONU202 through the original ethernet line.
When a new user terminal accesses the network, the ONU of the invention has two control modes which can realize the power supply from the user terminal and ensure that the newly accessed user terminal must provide power supply. The first control mode adopts a method of controlling the first interface by using an ethernet transformer, and the control device thereof is composed of a voltage detection module 317, the ethernet transformer 312 and the first interface 311. The second control mode adopts a method that the main control unit controls the switch chip, and the control device of the method is composed of a voltage detection module 317, a main control unit 316 and a switch chip 313. The two control modes are respectively explained in detail by two specific embodiments.
Referring to fig. 4, a control device of a first preferred embodiment of an ONU according to the present invention is shown in fig. 4. The control device is composed of a voltage detection module 317, an ethernet transformer 312 and a first interface 311. The voltage detection module 317 comprises an optical coupler, a diode D, resistors R1, R2, R3, R4 and a voltage conversion unit 510. The direct current power supply is input into the voltage detection module through the first interface, the anode of the direct current power supply is input into the anode of the diode D, and the cathode of the direct current power supply is input into the resistor R2. The diode D is connected with the resistor R1 in series and is used for connecting the anode of the direct current power supply and the anode of the light emitting diode of the optical coupler. The resistor R2 is used for connecting the negative pole of the DC power supply and the negative pole of the light emitting diode of the optical coupler. The resistor R3 is used for connecting the triode collector of the optocoupler with the collector voltage. The resistor R4 is connected with the collector of the optocoupler triode and the input end of the voltage conversion unit. The input end of the voltage conversion unit 410 is connected with the emitter of the optocoupler triode and the resistor R4, and the output end is connected with the center tap of the Ethernet transformer. The diode D, the resistors R1, R2, R3, R4 and the optocoupler form an optocoupler circuit, the voltage conversion unit 410 receives the voltage transmitted by the optocoupler circuit, detects whether a user terminal power supply exists according to the voltage value of the voltage, and sends out different control signals respectively according to the existence or nonexistence of the user terminal power supply, so as to control a center tap of the ethernet transformer. The ethernet transformer 312 is connected to the first interface 311 and the switch chip 313, and performs voltage conversion on the signal level of the bidirectional interactive data information, and the voltage conversion value of the ethernet transformer 312 is determined by the center tap voltage and is controlled by the control signal of the voltage conversion unit 410. When user terminal POE switch on, the voltage difference that the power produced will lead to producing the electric current in the opto-coupler circuit, the voltage that leads to opto-coupler return circuit input voltage transform unit 410 produces the change, voltage detection module 317 can detect that user terminal POE power exists, voltage transform unit 410 control ethernet transformer 312's center tap voltage is first voltage value, ethernet transformer 312 converts user terminal's data into the level signal that exchange chip 313 can discern this moment, then user terminal data that first interface 311 received can be received by exchange chip 313, the first interface 311 that this user terminal corresponds is in the on-state. On the contrary, when the optical coupling detection shows that the user terminal is not powered on, the voltage detection module 317 detects that the POE power of the user terminal does not exist, the voltage conversion unit 410 controls the center tap voltage of the ethernet transformer 312 to be the second voltage value, at this time, the ethernet transformer 312 converts the data of the user terminal into a level signal which cannot be identified by the switch chip 313, then the user terminal data received by the first interface 311 cannot be received by the switch chip 313, and the first interface 311 corresponding to the user terminal is in a closed state.
Referring to fig. 5, an application flow of the control method of the first preferred embodiment of the ONU of the present invention is shown in fig. 5.
Step 501: the new user terminal requests access to the network.
Step 502: the voltage detection module detects whether the user terminal has a POE power source, and if so, step 503 is executed; if not, step 506 is performed.
Step 503: the center tap voltage of the Ethernet transformer is controlled to be a first voltage value.
Step 504: the Ethernet transformer converts the received user terminal data into a level signal which can be recognized by the switching chip.
Step 505: the exchange chip receives the data of the new user terminal, the user terminal is successfully accessed to the network, and the current process is ended.
Step 506: and controlling the center tap voltage of the Ethernet transformer to be a second voltage value.
Step 507: the Ethernet transformer converts the received user terminal data into a level signal which can not be identified by the exchange chip.
Step 508: the switching chip cannot receive the data of the new user terminal, and the user terminal fails to access the network.
Referring to fig. 6, a control device of a second preferred embodiment of an ONU according to the present invention is shown in fig. 6. The control device is composed of a voltage detection module 317, a main control unit 318 and a switching chip 313. The internal structure of the voltage detection module 317 is the same as that in the first embodiment, and the voltage conversion unit 410 receives the voltage transmitted by the optocoupler circuit, detects whether the user terminal power supply exists according to the voltage value of the voltage, and reports the detection result to the main control unit 318 through the I/O interface of the main control unit 318. The main control unit 318 is connected to the voltage detection module 317 through an I/O interface, monitors the POE power of the user terminal, generates a control signal according to a detection result of the voltage detection module 317 on the POE power of the user terminal, and configures the switch chip 313. When a POE power supply of the user terminal is switched on, the voltage of the optocoupler loop input voltage conversion unit 410 changes, the voltage detection module 317 detects that the POE power supply exists in the user terminal, the voltage conversion unit 410 reports the power supply information of the user terminal to the main control unit 318, the main control unit 318 sends a control signal to the switching chip 313, a port corresponding to the user terminal on the switching chip 313 is opened through software configuration, and the user terminal can perform data interaction with the ONU. On the contrary, when the user terminal is not powered on, and the voltage detection module 317 detects that the user terminal is not powered on, the voltage conversion unit 410 reports the information that the user terminal is not powered on to the main control unit 318, the main control unit 318 sends a control signal to the switching chip 313, and the port corresponding to the user terminal on the switching chip 313 is closed through software configuration, so that the user terminal cannot perform data interaction with the ONU.
Referring to fig. 7, an application flow of the control method of the second preferred embodiment of the ONU of the present invention is shown in fig. 7.
Step 701: the new user terminal requests access to the network.
Step 702: the voltage detection module detects whether the user terminal has a POE power source, and if so, executes step 703; if not, step 706 is performed.
Step 703: and reporting the power supply information of the user terminal to a main control unit.
Step 704: the main control unit sends a control signal to the exchange chip and opens the port corresponding to the user terminal on the exchange chip.
Step 705: the exchange chip receives the data of the new user terminal, the user terminal is successfully accessed to the network, and the current process is ended.
Step 706: and reporting the information that the user terminal does not supply power to the main control unit.
Step 707: the main control unit sends a control signal to the exchange chip and closes the port corresponding to the user terminal on the exchange chip.
Step 708: the switching chip cannot receive the data of the new user terminal, and the user terminal fails to access the network.
It can be seen from the above two preferred embodiments that, when a new user terminal accesses the network, any control mode is adopted, the present invention can realize that the user terminal supplies power to the ONU, and it is ensured that the newly accessed user terminal must also supply power when the ONU device is already supplied with power by other user terminals.
When a plurality of user terminals simultaneously supply power to the ONU, the invention can automatically realize the load sharing of a plurality of power supplies and avoid that a single user terminal independently supplies power to the ONU. The multi-power load sharing is accomplished by adding a diode in the ONU, which can be placed inside each first interface 311, inside the power module 316, or separately placed between the first interface 311 and the power module 316. The following describes an application of multi-power load sharing by taking an example in which a diode is disposed inside the first interface 311.
Referring to fig. 8, the principle of power load sharing of the ONU according to the present invention for multiple user terminals is shown in fig. 8. The ONU202 includes a plurality of first interfaces 311, and each of the first interfaces 311 is externally connected to a different user terminal 103 through an ethernet cable. A diode is added to each first interface 311, and the dc power of the user terminal is inputted to the diode through the ethernet cable and then inputted to the power supply module 317. As shown in fig. 8, for example, one ONU202 includes n first interfaces, where different first interfaces are connected to different user terminals, and a diode is added in each first interface, so that the diodes correspond to the user terminals one to one, the n diodes D1 to Dn are connected in parallel, the anode of the diode is connected to the power supply of the corresponding user terminal through an ethernet line, and the anodes of all the diodes are connected in parallel to the cathode of the power supply module, and the cathodes of all the diodes are connected to the anode of the power supply module. The POE power source 204 of the user terminal is transmitted to the first interface of the ONU after being transmitted through the network cable, and the diode can automatically select the POE power source 204 with higher power supply voltage for supplying power when the POE power source 204 is transmitted to the first interface. If a certain user terminal power supply is supplying power to the ONU, the current generated by the power supply will generate a large voltage drop on the network cable, so that the voltage of the power supply reaching the first interface of the ONU is reduced, and after the POE power supply which is not supplying power is switched on, the voltage of the power supply which is transmitted to the first interface exceeds the POE power supply which is supplying power, so that the power supply is also added to the row and column of the power supply.
Therefore, when a plurality of user terminals are accessed to the network together, the power load is shared by all the user terminals accessed to the network together, so that the condition that a single user terminal supplies power to the ONU equipment is avoided, and when a certain user terminal is powered off or the POE power supply fails, the power supply of the ONU equipment and the access of other user terminals cannot be influenced. If no user terminal accesses the network currently, the user terminal has no POE power supply to supply power to the ONU, and the ONU stops working in a power-off state, so that unnecessary electric energy consumption is saved. In addition, a diode is added in the first interface, and the characteristic that the diode is cut off in the reverse direction is utilized, so that the power supply of the ONU can be prevented from flowing backwards to the user terminal. Here, only the diode is disposed inside the first interface, according to the same design concept and principle, the diode may be disposed inside the power module or independently disposed between the first interface and the power module, the application manner, the composition structure and the connection relationship are the same as those of the principle embodied in this example, and the effect of sharing multiple power loads may also be achieved.
It can be seen from the above embodiments that, in the present invention, the voltage detection module is added in the ONU, the voltage detection module detects the POE power of the user terminal, and the data access of the user terminal is controlled by the ethernet transformer or the main control unit according to the detection result, so as to ensure that the newly accessed user terminal must provide power when the ONU device is already powered by other user terminals. Furthermore, the diode is added in the ONU, and the characteristic that the branch with higher power supply voltage is selected by the diode to be connected is utilized, so that the load sharing of multiple power supplies when a plurality of user terminals are connected is realized, and the condition that a single user terminal independently supplies power to the ONU is avoided. The invention utilizes the original Ethernet cable for transmission, obtains the power supply from the user terminal, realizes the power supply mode that all the user terminals connected with the ONU equipment supply power to the ONU at the same degree, and does not need to get power from the power supply in the corridor, thereby saving the power supply construction cost and the power supply difficulty of the ONU equipment. And when no user terminal uses network access, the ONU is in a power-off state, so that the energy consumption is reduced.
In short, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.