The content of the invention
In view of the above the shortcomings that prior art, it is an object of the invention to provide a kind of ONU power-saving methods and system,
For solving the problems, such as that ONU waste of energy in the prior art and economize on electricity are not intelligent enough, while PON equipment can also be protected, subtracted
Few potential safety hazard.
In order to achieve the above objects and other related objects, the present invention provides a kind of ONU power-saving methods, ONU by interruption at
Reason switches between normal mode of operation and park mode, and methods described includes:Whether monitoring ONU has optical signal input, if nothing
Optical signal inputs, and ONU enters dormancy energy-saving mode;If there is optical signal input, data transfer is monitored whether, if there is data biography
Defeated, ONU enters normal mode of operation;If no data transmits, ONU enters semi-dormant mode.
Preferably, under the semi-dormant mode, ONU partial functions are out of service, can receive data, and can wake up ONU,
Also it can interrupt and wake up ONU.
Preferably, under the park mode, only receive and interrupt wake-up ONU.
The present invention also provides a kind of ONU power saving apparatus, and the system includes:Light detection module, for having monitored whether light
Signal inputs;Data monitoring module, for having monitored whether data signal transmission;Control module, for according to light detection module
The switching of ONU mode of operations is realized by interrupt processing with the result of data monitoring modular.
Preferably, the light detection module exports high level when there is light input, exports low level during unglazed input, described
Data monitoring module exports high level when there is data transfer, and no data exports low level when transmitting.
Preferably, when the light detection module exports low level, ONU switching park modes;In the light detection module
When exporting high level and the data monitoring module without output low level, ONU switching semi-dormant modes;In the light detection module
When exporting high level and data monitoring module output high level, ONU switching normal mode of operation.
Preferably, under the semi-dormant mode, ONU partial functions are out of service, can receive data, and can wake up ONU,
Also it can interrupt and wake up ONU.
Preferably, under the park mode, only receive and interrupt wake-up ONU.
As described above, the ONU power-saving methods and system of the present invention, have the advantages that:ONU is unglazed in network failure
When and night no data enter park mode so as to realizing electricity-saving function when transmitting.
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the case where not conflicting, following examples and implementation
Feature in example can be mutually combined.
It should be noted that the diagram provided in following examples only illustrates the basic structure of the present invention in a schematic way
Think, only show the component relevant with the present invention in schema then rather than according to component count, shape and the size during actual implement
Draw, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel
It is likely more complexity.
The present invention provides a kind of ONU power-saving methods and system, for solving ONU waste of energy in the prior art and economize on electricity side
The problem of formula not enough facilitates.The principle and embodiment of a kind of ONU power-saving methods of the invention described in detail below, make ability
It is a kind of ONU power-saving methods for being appreciated that the present invention that field technique personnel, which do not need creative work,.In specific embodiment, institute
ONU is stated to generally comprise:Optical module, MAC chip modules, Switching Module, control module and interface module etc..
With reference to embodiment and accompanying drawing, the present invention is described in detail.
Referring to Fig. 1, being shown as a kind of flow chart of embodiment of ONU power-saving methods of the present invention, the present embodiment provides
A kind of ONU power-saving methods, ONU are switched by interrupt processing between normal mode of operation and park mode, as shown in figure 1, institute
State comprising the following steps for ONU power-saving methods:
S1:When ONU is in electrifying startup state, optical signal input has been monitored whether.
S2:If detecting no optical signal input, ONU enters dormancy energy-saving mode;Under the park mode, only receive
Interrupt and wake up ONU.When ONU is in electrifying startup state, whether there is optical signal input to detect to ONU, no optical signal is defeated
It is fashionable, ONU is switched into park mode and economized on electricity with realizing, under park mode, ONU, which only successfully completes registration, can just enter normally
Pattern.ONU in park mode feeds back to control system when receiving light input signal, by the change of optical signal, so as to
So that ONU completes to register and realize wake-up by interrupt processing.
S3:When having monitored optical signal input, continue to have monitored whether data transfer,
S4:If there is data transfer, ONU enters normal mode of operation.When having detected optical signal input, further detection
Whether there is data transfer, in the case where thering is optical signal to input and having data transfer, keep ONU to be in normal mode of operation, just
Under normal mode of operation, ONU modules are required to power.
S5:If no data transmits, ONU enters semi-dormant mode, and under the semi-dormant mode, ONU partial functions stop
Operation, can receive data, and can wake up ONU, can also interrupt and wake up ONU.Optical signal input is being monitored, but is not having data
In the case of transmission, ONU is switched into semi-dormant mode, under semi-dormant mode, ONU only needs to receive data transfer, prevents
To the discarding of itself ONU data during dormancy, in addition to light detection module, data monitoring module and control module, other modules are closed.
ONU can receive data under semi-dormant mode, and can wake up ONU, can also interrupt and wake up ONU.
The present invention also provides a kind of ONU power saving apparatus, and in the present embodiment, the ONU is generally comprised:Optical module, MAC cores
Piece module, Switching Module, control module and interface module etc..
Referring to Fig. 2, the structure chart of the ONU power saving apparatus of the present invention is shown as, as illustrated, the power saving apparatus 2 wraps
Include:Light detection module 21, data monitoring module 22 and control module 23.
The light detection module 21 is used to monitor whether optical signal input;The light detection module 21 is when there is light input
High level is exported, exports low level during unglazed input, in the particular embodiment, the 8ping of light detection module 21 outputs RXSD
Signal gives control module 23 to interrupt pin, has light to input time monitoring modular 21RXSD signal output high level, during unglazed input
RXSD exports low level, and change is transferred into control module when RXSD signals change.
The data monitoring module 22 is used to monitor whether data signal transmission;The data monitoring module 22 is having number
High level is exported during according to transmission, no data exports low level when transmitting.In the particular embodiment, control module 23 detects data
The data buf of monitoring modular 22 has no data, and high level is exported when there is data transfer, and no data exports low level when transmitting.
The control module 23 is used to pass through interrupt processing according to the result of light detection module 21 and data monitoring modular 22
Realize the switching of ONU mode of operations.When the light detection module 21 exports low level, ONU is switched into park mode;Institute
When stating light detection module 21 and exporting high level and the data monitoring module 22 without output low level, ONU is switched into semidormancy
Pattern;When the light detection module 21 exports high level and the data monitoring module 22 output high level, ONU is switched to
Normal mode of operation.In the particular embodiment, control module 23 can be CPU, and CPU supervises according to light detection module 21 and data
The output result for surveying module 22 calls interrupt handling routine switching ONU mode of operation, is exported in the light detection module 21 low
During level, ONU is switched into park mode;High level and the nothing of data monitoring module 22 are exported in the light detection module 21
When exporting low level, ONU is switched into semi-dormant mode;High level and the data monitoring are exported in the light detection module 21
When module 22 exports high level, ONU is switched into normal mode of operation.
Wherein, under park mode, ONU, which only successfully completes registration, can just enter normal mode.ONU in park mode
When receiving light input signal, the change of optical signal is fed back into control system, so that ONU is completed by interrupt processing
Register and realize wake-up.Under normal mode of operation, ONU modules are required to power.Under semi-dormant mode, ONU is only needed
Data transfer is received, discarding when preventing dormancy to itself ONU data, except light detection module, data monitoring module and control
Outside module, other modules are closed.ONU can receive data under semi-dormant mode, and can wake up ONU, can also interrupt and wake up ONU.
In summary, ONU power-saving methods of the invention and system, ONU economize on electricity is realized by the switching of mode of operation, solved
Certainly in the prior art ONU waste of energy and economize on electricity it is not intelligent enough the problem of.So the present invention effectively overcomes in the prior art
Various shortcoming and have high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.