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 bypass control method, system
And the network equipment, for solving to be used for the design difficulty and complexity for solving the bypass of network equipment Single Point of Faliure in the prior art
The problem of high.
In order to achieve the above objects and other related objects, the present invention provides a kind of bypass control method, the Bypass Control
Method includes:Whether monitoring system state there is exception;When the system mode occur it is abnormal when, using drive circuit driving after
Electrical equipment control switching port is switched to bypass condition.
Alternatively, the system mode includes extremely:System operating temperatures are beyond default temperature range or/and crucial electricity
Road voltage exceeds default voltage range.
Alternatively, the drive circuit includes optocoupler.
Alternatively, the bypass control method also includes:When monitor system mode recover it is normal when, using drive circuit
Switching port described in the Control is driven to switch back into normal condition.
The present invention also provides a kind of Bypass Control System, and the Bypass Control System includes:System-monitoring module, including one
Individual or multiple monitoring unit, whether there is exception for monitoring system state, when any monitoring unit monitors system shape
During state exception, bypass control signal is exported;Bypass changeover module, it is connected with the system-monitoring module, institute is received for working as
When stating bypass control signal, bypass condition is switched to using drive circuit driving Control switching port.
Alternatively, the system-monitoring module be additionally operable to when monitor system mode from abnormal restoring to it is normal when, output
Normal control signal;The bypass changeover module is additionally operable to when receiving normal control signal, using drive circuit driving after
Electrical equipment control switching port is switched to normal condition.
Alternatively, the monitoring unit includes:Any of temperature monitoring unit and voltage monitoring unit, the temperature
Monitoring unit is used for monitoring system operating temperature, when system operating temperatures exceed default temperature range, shows that system mode is different
Often;The voltage monitoring unit is used to monitor Key Circuit voltage, when the Key Circuit voltage exceeds default voltage range
When, show system mode exception.
Alternatively, the temperature monitoring unit includes resistance R1, resistance R2, resistance R3, resistance R4, thermistor R5, with
And voltage comparator U1, voltage comparator U2;Wherein, the resistance R1 is connected with one end of the resistance R4 with VCC, the electricity
The resistance R1 other end is connected with the resistance R2 and the voltage comparator U1 positive input terminal, the other end of the resistance R2
It is connected with the resistance R3 and the voltage comparator U2 negative input end, the other end ground connection of the resistance R3, the electricity
Hinder the R4 other end and the thermistor R5 and voltage comparator U1 negative input end, the voltage comparator U2
Positive input terminal is connected;The other end ground connection of the thermistor R5.
Alternatively, the voltage monitoring unit includes resistance R6, resistance R7, resistance R8, and voltage comparator U3, voltage stabilizing
Pipe D1, wherein, one end of the resistance R6 is connected with VCC, the other end of the resistance R6 and voltage-stabiliser tube D1 negative electrode with
And the positive input terminal of the comparison voltage device U3 is connected;One end of the resistance R7 is connected with the Key Circuit voltage, described
The resistance R7 other end is connected with the resistance R8 and the comparison voltage device U3 negative input end;The resistance R8's is another
End ground connection;The plus earth of the voltage-stabiliser tube D1.
Alternatively, the drive circuit of the bypass changeover module includes optocoupler.
Alternatively, the switching port of the bypass changeover module connects including isolating transformer, relay and RJ45
Mouthful, the relay is connected with the isolating transformer and the RJ45 interfaces, and when the cut-off, control exchanges
Port is switched to bypass condition;When the relay is opened, control switching port is switched to normal condition.
Present invention additionally comprises a kind of network equipment, the network equipment includes above-mentioned Bypass Control System.
As described above, a kind of bypass control method, system and the network equipment of the present invention, have the advantages that:This
The scheme of invention is pure hardware design scheme, and hardware design technique difficulty is relatively low.Technical scheme greatly reduces
The design difficulty and complexity of bypass, preferably solve the problems, such as network equipment Single Point of Faliure.
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 the diagram provided in the present embodiment only illustrates the basic conception of the present invention in a schematic way,
Then the component relevant with the present invention is only shown in schema rather than is painted according to component count, shape and the size during actual implement
System, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel also may be used
Can be increasingly complex.
The present invention provides a kind of bypass control method.In one embodiment, as shown in figure 3, the bypass control method
Including:
Whether step S1, monitoring system state there is exception.Specifically, the system mode includes extremely:System works
Temperature exceeds default voltage range beyond default temperature range or/and Key Circuit voltage.
Step S2, when the system mode occurs abnormal, cut using drive circuit driving Control switching port
Change to bypass condition.In one embodiment, when Primary Component temperature too high (exceeding alarm temperature), Digital Logic control is driven
Dynamic circuit module opens BYPASS functions;When Key Circuit magnitude of voltage is less than setting threshold values, Digital Logic control drive circuit
Module opens BYPASS functions.In one embodiment, the drive circuit includes optocoupler.Relay is entered using optical coupled switch
Row drive control.The unlatching of PLD output signal control optical coupled switch driving relay and closure.
In one embodiment, the bypass control method also includes:When monitor system mode recover it is normal when, use
Drive circuit drives switching port described in the Control to switch back into normal condition.In one embodiment, the system
Recovery just refers to:System operating temperatures are in default temperature range, and Key Circuit voltage is also in default voltage range.
When detection temperature, magnitude of voltage recover normal, switching port returns to regular traffic swap status from BYPASS states.
The present invention also provides a kind of Bypass Control System.In one embodiment, as shown in figure 4, the Bypass Control system
System 1 includes system-monitoring module 11 and bypass changeover module 12.Wherein:
System-monitoring module 11 includes one or more monitoring unit, whether exception occurs for monitoring system state, when
When any monitoring unit monitors system mode exception, bypass control signal is exported.In one embodiment, the system
Monitoring module 11 be additionally operable to when monitor system mode from abnormal restoring to it is normal when, export normal control signal.In a reality
Apply in example, the monitoring unit includes:Any of temperature monitoring unit and voltage monitoring unit, the temperature monitoring unit
For monitoring system operating temperature, when system operating temperatures exceed default temperature range, show system mode exception;The electricity
Pressure monitoring unit be used for monitor Key Circuit voltage, when the Key Circuit voltage exceeds default voltage range, show be
System abnormal state.In one embodiment, as shown in figure 5, the system-monitoring module 11 includes temperature monitoring unit, voltage is supervised
Control unit and Digital Logic control unit.Wherein, mathematical logic control unit is supervised with the temperature monitoring unit and voltage
Control unit is connected, and receives the system status signal that temperature monitoring unit and the voltage monitoring unit is sent.
In one embodiment, as shown in fig. 6, the temperature monitoring unit includes resistance R1, resistance R2, resistance R3, electricity
Hinder R4, thermistor R5, and voltage comparator U1, voltage comparator U2;Wherein, the one of the resistance R1 and resistance R4
End is connected with VCC, and the other end of the resistance R1 is connected with the resistance R2 and the voltage comparator U1 positive input terminal,
The other end of the resistance R2 is connected with the resistance R3 and the voltage comparator U2 negative input end, the resistance R3's
The other end is grounded, the other end of the resistance R4 and the thermistor R5 and voltage comparator U1 negative input end,
The positive input terminal of the voltage comparator U2 is connected;The other end ground connection of the thermistor R5.
Wherein, R1, R2, R3, R4 are divider resistances, and it is big that the selection of its resistance depends on voltage comparator threshold voltage
It is small.R5 is the thermistor for having negative temperature coefficient, and its change in resistance and temperature change are in close relations, its lower resistance of temperature value
It is bigger.Assuming that detection temperature is t, temperature range is [T0, T1], then at t=[T0, T1], Standard resistance range corresponding to R5 is
[Rmin, Rmax], works as R5=Rmin, thereby determines that U2 threshold voltages VL;Work as R5=Rmax, thereby determine that U1 threshold voltages VH;
Window comparator input voltage Ui=[R5/ (R4+R5)] * VCC, it is assumed that known to R4 resistances, then according to R5 under different temperatures
The scope that resistance can obtain Ui is [VL, VH].It can be determined according to threshold voltage VL, VH, and R1 resistance, current value
R2, R3 resistance.As temperature t=[T0, T1], according to the characteristic of voltage comparator, output end level Vtemp=L (low electricity
It is flat);As temperature t>T1, or t<During T0, according to the characteristic of voltage comparator, output end level Vtemp=H (high level).Cause
This, the change of R5 temperature values has been converted into the change of output end low and high level after voltage comparator exports.Assuming that temperature is supervised
The scope of control is 20~100 degree, then when temperature is higher than 100 degree or less than 20 degree, output end Vtemp will export high electricity
It is flat.Thermistor is placed in mainboard core position in design, for example close to MAC/PHY chips etc., for monitoring temperature in real time
Change.
In one embodiment, as shown in fig. 7, the voltage monitoring unit includes resistance R6, resistance R7, resistance R8, with
And voltage comparator U3, voltage-stabiliser tube D1, wherein, one end of the resistance R6 is connected with VCC, the other end of the resistance R6 and institute
The positive input terminal of the negative electrode and the comparison voltage device U3 of stating voltage-stabiliser tube D1 is connected;One end of the resistance R7 and the key
Circuit voltage is connected, the negative input end phase of the other end of the resistance R7 and the resistance R8 and the comparison voltage device U3
Even;The other end ground connection of the resistance R8;The plus earth of the voltage-stabiliser tube D1.Wherein, R6, R7, R8 are divider resistance.Will be steady
Pressure pipe both end voltage UD1 is as threshold voltage, and when Vcore voltages are normal, voltage comparator output end will export low level, i.e.,
Vvolt=L, when exception occurs in system voltage Vcore and drops to below threshold voltage UD1, voltage comparator output end will be defeated
Go out high level, i.e. Vvolt=H.Therefore, Vcore voltage changes will cause output end voltage Vvolt to change, and be dropped in electric voltage exception
Vvolt=H when low.
In one embodiment, mathematical logic control unit is as shown in figure 8, temperature monitoring unit, voltage monitoring unit
Input signal of the output signal as the mathematical logic control unit, supply drive circuit swaps end after computing exports
Mouth BYPASS controls.But it is more in view of the number of follow-up drive circuit, here using PLD (CPLD) conduct
Control process core.To provide more input/output ports.Multiple-channel output is represented with Vctrl BUS.The Digital Logic control
Circuit processed is substantially OR gate structure.During only Vctrl=1, output end just opens BYPASS control functions.Remaining is all normal
State, close BYPASS functions.
Bypass changeover module 12 is connected with the system-monitoring module 11, and the bypass control signal is received for working as
When, bypass condition is switched to using drive circuit driving Control switching port.In one embodiment, the bypass is cut
Mold changing block 12 is additionally operable to when receiving normal control signal, and the switching of Control switching port is driven using drive circuit
To normal condition.
In one embodiment, the bypass changeover module 12 include drive circuit unit (i.e. drive circuit) and
BYPASS port units (i.e. switching port).In one embodiment, the switching port of the bypass changeover module includes
Isolating transformer, relay and RJ45 interfaces, the relay are connected with the isolating transformer and the RJ45 interfaces,
When the cut-off, control switching port is switched to bypass condition;When the relay is opened, switching port is controlled
It is switched to normal condition.
In one embodiment, as shown in figure 9, drive circuit unit is mainly made up of optocoupler, optocoupler output signal
OE is controlled to the relay of BYPASS port units.Optocoupler is operated on off state, when input is high level, two poles
Pipe turns on, and then output end output is low level, and when input is low level, diode cut-off, output end is high level.I.e.
The drive circuit of the bypass changeover module 12 includes optocoupler.
In one embodiment, as shown in Figure 10, BYPASS port units are mainly by isolating transformer, relay, RJ45
Power port is formed.Relay is concatenated i.e. between the isolating transformer of common switching port and RJ45 power ports.According to one after
2 contacts of electrical equipment calculate, and a gigabit Ethernet power port needs to concatenate 4 relays, that is, need to coordinate 4 optocouplers to be switched
Control, then a pair of BYPASS ports need 8 relays, 8 optocouplers to be controlled.It is illustrated below as a pair of BYPASS ports
A pair of TX, the Networking Design of a pair of RX signals, other TX, RX signals are also same to design method.In one embodiment, as schemed
Each pair TX of RJ45 power ports, RX situation are listed shown in 11, in figure respectively.When OE=1 (high level), relay is opened
Open, BYPASS functions are closed, and port is in conventional switch mode.The exchange end under the switch mode of routine is identified in Figure 11
Mouth data-signal flow direction.In one embodiment, as shown in figure 12, each pair TX of RJ45 power ports is listed in figure respectively,
RX situation.When OE=0 (low level), cut-off, BYPASS functions are opened, and port is in BYPASS patterns.In Figure 11
The switching port data-signal under BYPASS patterns is identified to flow to.
Present invention additionally comprises a kind of network equipment, the network equipment includes above-mentioned Bypass Control System 1.In an implementation
In example, the working method of the shown network equipment is as follows:(1) when temperature value t is in default [T0, T1], voltage comparator exports
Low level, digital logic controller output low level, optical coupled switch cut-off, therefore relay can not be driven to switch switching port
To BYPASS states, switching port business normal operation;As temperature value t>T1 (is defined as dangerous temperature value), or t<T0 is (fixed
Justice is extremely low temperature value, and extremely low temperature value means the system failure, for example chip unpowered, Module Fail etc.) when, voltage ratio compared with
High level is exported, Digital Logic control output low level, optical coupled switch conducting, drives relay to switch to switching port
BYPASS states, LAN<->WAN intercommunications, exchange business and maintain work.(2) when detecting that voltage Vcore is less than default UD1
When, it is judged as system operation irregularity, output end drives relay that switching port is switched into BYPASS states by optical coupled switch,
LAN<->WAN intercommunications, exchange business and maintain work.As long as (1), (2) are one of exception occurs, system just automatically switches to
BYPASS states.
In summary, a kind of bypass control method, system and the network equipment of the invention, have the advantages that:This
The scheme of invention is pure hardware design scheme, and hardware design technique difficulty is relatively low.Technical scheme greatly reduces
The design difficulty and complexity of bypass, preferably solve the problems, such as network equipment Single Point of Faliure.So the present invention effectively overcomes
Various shortcoming of the prior art 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.