CN104199752B - Failure recovery circuit and device - Google Patents

Failure recovery circuit and device Download PDF

Info

Publication number
CN104199752B
CN104199752B CN201410440265.3A CN201410440265A CN104199752B CN 104199752 B CN104199752 B CN 104199752B CN 201410440265 A CN201410440265 A CN 201410440265A CN 104199752 B CN104199752 B CN 104199752B
Authority
CN
China
Prior art keywords
unit
outfan
signal output
card
switch unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410440265.3A
Other languages
Chinese (zh)
Other versions
CN104199752A (en
Inventor
王隆峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201410440265.3A priority Critical patent/CN104199752B/en
Publication of CN104199752A publication Critical patent/CN104199752A/en
Application granted granted Critical
Publication of CN104199752B publication Critical patent/CN104199752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

The embodiment of the invention provides a failure recovery circuit and device and relates to the field of electronic equipment. The failure recovery circuit and device are used for achieving recovery of an SD card automatically through a main controller, so that the failure recovery time of the electronic equipment is shortened. According to the failure recovery circuit, the input end of a voltage dividing unit is connected with a direct-current power supply, the output end of the voltage dividing unit is connected with the input end of a signal output unit, the first output end of the signal output unit is connected with the main controller, and the second output end of the signal output unit is connected with the control end of a first switch unit; the output end of the first switch unit is connected with the SD card, the input end of the first switch unit is connected with the direct-current power supply, the control end of a second switch unit is connected with the first output end or the second output end of the signal output unit, the input end of the second switch unit is connected with the main controller, and the output end of the second switch unit is connected with the SD card; the signal output unit is used for controlling the first switch unit and the second switch unit to be switched off within a predetermined period of time and controlling the main controller to reset, and the signal output unit is also used for controlling the first switch unit and the second switch unit to be switched on at the predetermined time and controlling the main controller to be started.

Description

A kind of fault recovery circuit and device
Technical field
The present invention relates to electronic device field, more particularly to a kind of fault recovery circuit and device.
Background technology
SD card (Secure Digital Memory Card, safe digital card) is a kind of based on quasiconductor fast-flash memory device Memory device of new generation, be widely used in various electronic equipments.In the electronic device, master controller is connected with SD card, Master controller is initialized to SD card in start or restarting process, and loads the driver of SD card, so that main control Device the operation such as can be written and read, so as to complete the communication of master controller and SD card after starting shooting or restarting to SD card.In SD card In the case of there is exception, master controller generally sends reset instruction to SD card, so that the control module of SD card is being received During this reset instruction, the operation that resets is performed, and reset response message is sent to master controller, so as to complete master controller to SD card Recovery.But, cause voltage after falling to be less than when being supplied to the direct current power source voltage of SD card and master controller instantaneously to fall In SD card during voltage needed for control module normal work, this control module cannot work, so as to None- identified master controller is sent out The reset instruction sent, and then the operation that resets also is not carried out, so as to cause recovery of the master controller to SD card to fail.
In the prior art, if due to direct current power source voltage instantaneously fall cause control module in SD card abnormal when, Operator are needed to carry out power-off manually to electronic equipment, and when direct current power source voltage is stable, then electron equipment is supplied again Electricity, so that electronic equipment is reopened, as electronic equipment is during reopening, its built-in master controller and SD card Restarting is both needed to, and master controller is initialized to SD card in restarting procedure, i.e., reset command is sent to SD card, Now, as the control module in SD card is powered normally, then reset response message is sent to master controller, so that main control Device completes the initialization procedure to SD card, and after initialization is completed, the driver of loading SD card, so as to complete master controller Recovery to SD card.
But during above-mentioned realization, when direct current power source voltage instantaneously falls causes the control module in SD card abnormal, Need operator to reopen to electronic equipment manually and can just complete recovery of the master controller to SD card, so, when in SD When control module is abnormal, if operator do not find in time or not at the scene when, being required to take some time could be to electricity Sub- equipment is reopened, and completes recovery of the master controller to SD card so that the failure recovery time of electronic equipment compared with It is long.
The content of the invention
Embodiments of the invention provide a kind of fault recovery circuit and device, for being automatically performed master controller to SD card Recover, so as to reduce the failure recovery time of electronic equipment.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
The embodiment of the present invention provides a kind of fault recovery circuit, including:Master controller, SD card, partial pressure unit, signal output Unit, first switch unit and second switch unit;The input of the partial pressure unit is connected with DC source, outfan and institute State the input connection of signal output unit;First outfan of the signal output unit is connected with the master controller, the Two outfans are connected with the control end of the first switch unit;The outfan of the first switch unit is connected with the SD card Connect, input is connected with the DC source;The control end of the second switch unit and the first of the signal output unit Outfan or the connection of the second outfan, input are connected with the master controller, and outfan is connected with the SD card;The signal Output unit, the voltage for exporting in the partial pressure unit are less than the given voltage of the input of the signal output unit When, the first switch unit is controlled in Preset Time and the second switch unit disconnects, and control the master controller Reset;Wherein, the time that the Preset Time is discharged completely more than the SD card;The signal output unit, is additionally operable to true When reaching the Preset Time surely, the first switch unit and second switch unit conducting are controlled, and controls the master Controller is opened.
Optionally, the signal output unit includes:First reset unit;First outfan of first reset unit It is connected with the master controller, the second outfan is connected with the control end of the first switch unit;The second switch unit Control end be connected with first outfan or the second outfan of first reset unit.
Optionally, the signal output unit includes:Second reset unit and phase inverter;Second reset unit it is defeated Enter end to be connected with the outfan of the partial pressure unit, outfan is connected with the input of the phase inverter;The phase inverter it is defeated Go out first outfan of the end for the signal output unit, the outfan of second reset unit is the signal output unit The second outfan;Or;The outfan of the phase inverter is the second outfan of the signal output unit, and described second is multiple The outfan of position signal is the first outfan of the signal output unit.
Optionally, the fault recovery circuit also includes:First resistor unit;The first end of the first resistor unit with The DC source connection, the second end is connected with the control end of the first switch unit.
Optionally, the fault recovery circuit also includes:Second resistance unit;Second end of the first resistor unit leads to The control end that the second resistance unit is crossed with the first switch unit is connected.
Optionally, the partial pressure unit includes:3rd resistor unit and the 4th resistance unit;The 3rd resistor unit First end is connected with the DC source, the second end first end and the signal output list respectively with the 4th resistance unit The input connection of unit;The second end ground connection of the 4th resistance unit.
Optionally, the first switch unit includes:P-channel-metal oxide semiconductor field effect tube PMOS.
The embodiment of the present invention provides a kind of local fault recovery device, including the fault recovery circuit described in above-described embodiment.
A kind of fault recovery circuit provided in an embodiment of the present invention and device, wherein, fault recovery circuit includes:Main control Device, SD card, partial pressure unit, signal output unit, first switch unit and second switch unit, when the input with partial pressure unit The voltage sag of the DC source of connection, and cause the voltage of the outfan of partial pressure unit defeated less than signal output unit When entering the given voltage at end, signal output unit in Preset Time controls master controller and resets, i.e., master controller does not work;And Control first switch unit and second switch unit disconnect, so that SD card power-off, i.e. SD card are discharged, due to setting The time that Preset Time is discharged completely more than SD card, so can ensure that SD card can be discharged completely in Preset Time, and by Disconnect in second switch unit, so master controller is separated with SD card, i.e., does not exist Holding wire feed, it is possible to be further ensured that SD card is discharged completely;When Preset Time is reached, the voltage of DC source Normally, the first outfan control master controller of signal output unit is opened, meanwhile, the second outfan control of signal output unit First switch unit processed and the conducting of second switch unit, then the control module in SD card is powered normally, and master controller is being opened During, SD card is initialized, i.e., reset command is sent to SD card, now, as the control module in SD card is powered Normally, then control module in SD card is sent to reset to master controller and is rung when the reset command of master controller transmission is received Message is answered, so that master controller completes the initialization procedure to SD card, and the driving of SD card after initialization is completed, is loaded Program, can be with SD card proper communication so as to complete recovery of the master controller to SD card, i.e. master controller.In the process, when When the voltage sag of DC source causes the control module in SD card abnormal, the present invention is examined automatically by signal output unit The output voltage of partial pressure unit is surveyed, when the voltage of the outfan of partial pressure unit is less than the set electricity of the input of signal output unit During pressure, then automatically control first switch unit, the break-make of second switch unit, and the reset of master controller and open, so as to complete Into recovery of the master controller to SD card, without the intervention of operator, so as to reduce the failure recovery time of electronic equipment.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be in embodiment or description of the prior art The required accompanying drawing for using is briefly described, it should be apparent that, drawings in the following description are only some realities of the present invention Example is applied, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of schematic diagram of fault recovery circuit provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of another kind of fault recovery circuit provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of another kind of fault recovery circuit provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of another kind of fault recovery circuit provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of another kind of fault recovery circuit provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of another kind of fault recovery circuit provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of another kind of fault recovery circuit provided in an embodiment of the present invention;
Fig. 8 is the schematic diagram of another kind of fault recovery circuit provided in an embodiment of the present invention;
Schematic diagrams of the Fig. 9 for a kind of partial pressure unit circuit in the fault recovery circuit shown in Fig. 1;
Figure 10 is the schematic diagram of another kind of fault recovery circuit provided in an embodiment of the present invention;
Figure 11 is the schematic diagram of another kind of fault recovery circuit provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of fault recovery circuit, including:Master controller 101, SD card (Secure Digital Memory Card, safe digital card) 102, partial pressure unit 103, signal output unit 104, first switch unit 105 and second Switch element 106.
The input of the partial pressure unit 103 is connected with DC source, and outfan is defeated with the signal output unit 104 Enter end connection;First outfan of the signal output unit 104 is connected with the master controller 101, the second outfan and institute State the control end connection of first switch unit 105;The outfan of the first switch unit 105 is connected with the SD card 102, defeated Enter end to be connected with the DC source;The control end of the second switch unit 106 and the first of the signal output unit 104 Outfan or the connection of the second outfan, input are connected with the master controller 101, and outfan is connected with the SD card 102.
It should be noted that exporting with the first of the signal output unit 104 in the control end of second switch unit 106 During the connection of end, the fault recovery circuit is as shown in Figure 1;In the control end and the signal output list of second switch unit 106 When second outfan of unit 104 connects, the fault recovery circuit is as shown in Figure 2.
The signal output unit 104, the voltage for exporting in the partial pressure unit 103 are less than the signal output list During the given voltage of the input of unit 104, the first switch unit 105 and the second switch list are controlled in Preset Time Unit 106 disconnects, and controls the master controller 101 and reset.
Wherein, the time that the Preset Time is discharged completely more than the SD card.
The signal output unit 104, is additionally operable to, when it is determined that reaching the Preset Time, control the first switch list Unit 105 and the second switch unit 106 are turned on, and are controlled the master controller 101 and opened.
It should be noted that in Preset Time, the signal of the first outfan output of signal output unit 104 is high electricity Ordinary mail number, the signal of the second outfan output is low level signal.When Preset Time is reached, the of signal output unit 104 The signal of one outfan output is low level signal, and the signal of the second outfan output is high level signal.Second switch unit 106 switch elements disconnected when can be and receive high level signal, or opening of disconnecting when receiving low level signal Close unit.
In the case of the switch element disconnected when second switch unit 106 is to receive high level signal, second switch The control end of unit 106 is connected with the second outfan of signal output unit 104.
In the case of the switch element disconnected when second switch unit 106 is to receive low level signal, second switch The control end of unit 106 is connected with the first outfan of signal output unit 104.
Specifically, the feelings being connected with the first outfan of signal output unit 104 in the control end of second switch unit 106 Under condition, when the voltage sag of the DC source that the input with partial pressure unit 103 is connected, and cause partial pressure unit 103 During the given voltage of the input that the voltage of outfan output is less than signal output unit 104, the first of signal output unit 104 Outfan exports the low level signal of Preset Time, i.e., be always maintained at exporting low level signal, the second output in Preset Time High level signal in end output Preset Time, i.e., export high level signal, in Preset Time always due to signal output list Unit 104 the first outfan be connected with the control end and master controller 101 of second switch unit 106 respectively, the second outfan with The control end connection of first switch unit 105, then master controller 101 and second switch unit 106 can receive low level letter Number, and master controller 101 resetted when low level signal is received, second switch unit 106 is receiving low level letter Number when disconnect, as master controller 101 is connected with SD card 102 by second switch unit 106, and second switch unit 106 this When be off, so master controller 101 is not connected to SD card 102, i.e. letter between master controller 101 and SD card 102 Number line disconnects, so there is no feed in holding wire, and then also will not feed be input into into SD card 102.And first switch list The control end of unit 105 can receive high level signal, and disconnect when high level signal is received, and as SD card 102 is led to Cross first switch unit 105 to be connected with DC voltage, and now first switch unit 105 is off, so SD card 102 Without supply voltage, in off-position, that is, start electric discharge, and the Preset Time for setting more than the time that SD card is discharged completely, So in Preset Time, it is ensured that SD card can be discharged completely.
When signal output unit 104 determines reaches Preset Time, high level signal is exported in the first outfan, second Outfan exports low level signal, so that master controller 101 is opened, first switch unit 105 and second switch unit 106 Conducting, so, DC source is connected with SD card 102, so that the control module in SD card 102 is powered normally, master controller 101 initialize to SD card 102 in opening process, i.e., send reset command to SD card 102, now, due in SD card 102 Control module power normally, then the control module in SD card 102 can receive master controller 101 transmission reset command, And when this reset command is received, the operation that resets is performed, and after the operation that resets has been performed, send multiple to master controller 101 Position response message, so that main controller 101 is when it is determined that this reset response message is correct, it is determined that to the initial of SD card 102 Chemical conversion work(, and the driver of SD card 102 is further loaded, and as second switch unit 106 is turned on, so master controller 101 are connected with SD card 102 so that master controller 101 and SD card 102 can proper communication, complete master controller 101 pairs The recovery of SD card 102.
In the case where the control end of second switch unit 106 is connected with the second outfan of signal output unit 104, its Specific operation principle is connected with the first outfan of signal output unit 104 with the control end in second switch unit 106 In the case of operation principle be similar to, refer to above-mentioned operation principle, the present invention will not be described here.
It should be noted that signal output unit 104 is built-in with intervalometer, for carrying out timing to Preset Time, i.e., really The first outfan for protecting signal output unit 104 exports low level signal in Preset Time, and the second outfan is in Preset Time Interior output high level signal, when Preset Time is reached, it is ensured that the first outfan of signal output unit 104 is in Preset Time Output high level signal, the second outfan export low level signal in Preset Time.
Optionally, first switch unit 105 includes:PMOS(P-Metal-Oxide-Semicond-uctor-Field- EffectTransistor, p-type-Metal-oxide-semicondutor-field-effect transistor).
It should be noted that first switch unit 105 can also be other that disconnect when high level signal is received opening Unit is closed, the present invention is without limitation.
The embodiment of the present invention provides a kind of fault recovery circuit, including:Master controller, SD card, partial pressure unit, signal output Unit, first switch unit and second switch unit, when the voltage transient of the DC source that the input with partial pressure unit is connected Fall, and cause partial pressure unit outfan voltage less than signal output unit input given voltage when, signal is defeated Go out unit and master controller reset is controlled in Preset Time, i.e., master controller does not work;And control first switch unit and second Switch element disconnects, so that SD card power-off, i.e. SD card are discharged, as the Preset Time for setting is put completely more than SD card The time of electricity, so can ensure that SD card can be discharged completely in Preset Time, and as second switch unit disconnects, so Master controller is separated with SD card, i.e., the feed that there is no the holding wire connected between master controller and SD card, it is possible to It is further ensured that SD card is discharged completely;When Preset Time is reached, the voltage of DC source is normal, and the first of signal output unit Outfan control master controller is opened, meanwhile, the second outfan of signal output unit control first switch unit and second open Unit conducting is closed, then the control module in SD card is powered normally, and master controller is during unlatching, and SD card is carried out initially Change, i.e., reset command, now, as the control module in SD card is powered normally, the then control module in SD card are sent to SD card When the reset command of master controller transmission is received, reset response message is sent to master controller, so that master controller The initialization procedure to SD card is completed, and after initialization is completed, the driver of loading SD card, so as to complete master controller pair The recovery of SD card, i.e. master controller can be with SD card proper communications.In the process, when the voltage sag of DC source is led When causing the control module in SD card abnormal, output voltage of the present invention by signal output unit automatic detection partial pressure unit, when When the voltage of the outfan of partial pressure unit is less than the given voltage of the input of signal output unit, then first switch is automatically controlled Unit, the break-make of second switch unit, and the reset of master controller and unlatching, so as to complete recovery of the master controller to SD card, Without the intervention of operator, so as to reduce the failure recovery time of electronic equipment.
Further, the signal output unit 104 includes:First reset unit 1041.
First outfan of first reset unit 1041 is connected with the master controller 101, the second outfan and institute State the control end connection of first switch unit 105;The control end of the second switch unit 106 and first reset unit 1041 the first outfan or the connection of the second outfan.
It should be noted that in the control end and the of first reset unit 1041 of the second switch unit 106 When one outfan connects, the fault recovery circuit is as shown in Figure 3;The second switch unit 106 control end with it is described When second outfan of the first reset unit 1041 connects, the fault recovery circuit is as shown in Figure 4.
That is, the first outfan of the first reset unit 1041 is the first outfan of signal output unit 104; Second outfan of the first reset unit 1041 is the second outfan of signal output unit 104.
It should be noted that the first reset unit 1041 can be integrated reset chip;Can also be by electronics unit device The circuit of part composition, the present invention are without limitation.
Or, the signal output unit 104 includes:Second reset unit 1042 and phase inverter 1043.
The input of second reset unit 1042 is connected with the outfan of the partial pressure unit 103;Outfan and institute State the input connection of phase inverter 1043;The outfan of the phase inverter 1043 is the first defeated of the signal output unit 104 Go out end, the outfan of second reset unit 1042 is the second outfan of the signal output unit 104.
Or, the outfan of the phase inverter 1043 is the second outfan of the signal output unit 104, described second The outfan of reset signal 1042 is the first outfan of the signal output unit 104.
It should be noted that the second reset unit 1042 can be integrated reset chip;Can also be by electronics unit device The circuit of part composition.Phase inverter 1043 can be the circuit constituted using not gate logical device, it is also possible to by CPLD (Complex Programmable Logic Device, CPLD) realizing, the present invention is not limited to this System.
It should be noted that including the situation of the second reset unit 1042 and phase inverter 1043 in signal output unit 104 Under, the connected mode of fault recovery circuit includes four kinds, concrete such as Fig. 5, shown in Fig. 6, Fig. 7 and Fig. 8.
It should be noted that when the voltage sag of the DC source being connected with the input of partial pressure unit 103, and lead During the given voltage of the input that the voltage of the outfan output of cause partial pressure unit 103 is less than the second reset unit 1042, in Fig. 5 Under shown connected mode, the signal that the outfan of the second reset unit 1042 is exported in Preset Time is low level signal, Second switch unit 106 is the switch element disconnected when high level signal is received.Under the connected mode shown in Fig. 6, the The signal that the outfan of two reset units 1042 is exported in Preset Time is low level signal, second switch unit 106 be Receive the switch element disconnected during low level signal.Under the connected mode shown in Fig. 7, the output of the second reset unit 1042 The signal that end is exported in Preset Time is high level signal, and second switch unit 106 is to break when high level signal is received The switch element opened.Under the connected mode shown in Fig. 8, what the outfan of the second reset unit 1042 was exported in Preset Time Signal is high level signal, and second switch unit 106 is the switch element disconnected when low level signal is received.
It should be noted that the operation principle of the circuit shown in Fig. 5, Fig. 6, Fig. 7 and Fig. 8 is similar to, below only with shown in Fig. 5 Circuit as a example by illustrate its specific operation principle.
The concrete operating principle of the circuit shown in Fig. 5 is:The DC source being connected when the input with partial pressure unit 103 Voltage sag, and cause input of the voltage that the outfan of partial pressure unit 103 is exported less than the second reset unit 1042 Given voltage when, the second reset unit 1042 outfan output Preset Time in low level signal so that master controller 101 receive reset after this low level signal, and the low level signal of the outfan output of the second reset unit 1042 is inverted Device 1043 is converted to high level signal, due to phase inverter 1043 outfan respectively with the control end of first switch unit 105 and The control end connection of second switch unit 106, then can show that the control end of first switch unit 105 receives is high level Signal, so that first switch unit 105 disconnects, i.e. the input of first switch unit 105 and first switch unit 105 Outfan is not turned on, so 102 unpowered voltage of SD card, in off-position, now, SD card 102 starts electric discharge, and due to setting The time that fixed Preset Time is discharged completely more than SD card 102, so in Preset Time, it is ensured that SD card 102 can be complete It is complete to discharge.Further, it is off when receiving high level signal due to the control end of second switch unit 106, then Main controller 101 is made to be not connected to SD card 102, i.e., the holding wire between master controller 101 and SD card 102 disconnects, so letter There is no feed in number line, so also will not feed input into SD card 102, so as to be further ensured that SD card in Preset Time It is interior to discharge completely.
When the second reset unit 1042 determines reaches Preset Time, high level signal is exported in the first outfan, the Two outfans export low level signal, so that master controller 101 is opened, first switch unit 105 and second switch unit 106 conductings, so, DC source is connected with SD card 102, so that the control module in SD card 102 is powered normally, main control Device 101 is initialized to SD card 102 in opening process, i.e., send reset command to SD card 102, now, due to SD card 102 Interior control module is powered normally, then the control module in SD card 102 can receive the reset life of the transmission of master controller 101 Order, and when this reset command is received, perform the operation that resets, and after the operation that resets has been performed, send to master controller 101 Reset response message, so that main controller 101 is when it is determined that this reset response message is correct, it is determined that to the first of SD card 102 Begin chemical conversion work(, and further loads the driver of SD card 102, and as second switch unit 106 is turned on, so master controller 101 are connected with SD card 102 so that master controller 101 and SD card 102 can proper communication, complete master controller 101 pairs The recovery of SD card 102.
Further, as shown in figure 9, the partial pressure unit 103 includes:3rd resistor unit 1031 and the 4th resistance unit 1032。
The first end of the 3rd resistor unit 1031 is connected with the DC source, and the second end is electric with the described 4th respectively The input connection of the first end and the signal output unit 104 of resistance unit 1032;The of 4th resistance unit 1032 Two ends are grounded.
Specifically, as 3rd resistor unit 1031 is connected with the 4th resistance unit 1032, then flow through 3rd resistor unit 1031 and the 4th resistance unit 1032 electric current it is identical so that 3rd resistor unit 1031 and the 4th resistance unit 1032 will The voltage of DC source is divided into two parts, and as the second end of the 4th resistance unit 1032 is grounded, then by the 4th resistance unit The input of the voltage output at 1032 two ends to signal output unit 104.
Further, as shown in Figure 10, the fault recovery circuit also includes:First resistor unit 107.
The first end of the first resistor unit 107 is connected with the DC source, the second end and the first switch list The control end connection of unit 105.
Specifically, when the second outfan of signal output unit 104 does not export any signal, in order to ensure first switch Unit 105 is remained off, then in the control end connection pull-up resistor of first switch unit 105, that is, connect first resistor list Unit 107, as the first end of first resistor unit is connected with DC source, so second in signal output unit 104 exports When end does not export any signal, first resistor unit 107 ensure that the control end of first switch unit 105 receives high level Signal, it is possible to ensure that first switch unit 105 is off.
It should be noted that the connected mode in Figure 10 is with the outfan of phase inverter 1043 as signal output unit 104 The second outfan, and be attached as a example by the control end of second switch unit 106 is connected with the outfan of phase inverter 1043.
Further, as shown in figure 11, the fault recovery circuit also includes:Second resistance unit 108.
Second end of the first resistor unit 107 is by the second resistance unit 108 and the first switch unit 105 control end connection.
It should be noted that the connected mode in Figure 11 is with the outfan of phase inverter 1043 as signal output unit 104 The second outfan, and be attached as a example by the control end of second switch unit 106 is connected with the outfan of phase inverter 1043.
Wherein, 108 metering functions of second resistance unit, prevent the electric current for flowing into first switch unit 105 excessive and burn Bad first switch unit 105.
The embodiment of the present invention provides a kind of fault recovery circuit, including:Master controller, SD card, partial pressure unit, signal output Unit, first switch unit and second switch unit, when the voltage transient of the DC source that the input with partial pressure unit is connected Fall, and cause partial pressure unit outfan voltage less than signal output unit input given voltage when, signal is defeated Go out unit and master controller reset is controlled in Preset Time, i.e., master controller does not work;And control first switch unit and second Switch element disconnects, so that SD card power-off, i.e. SD card are discharged, as the Preset Time for setting is put completely more than SD card The time of electricity, so can ensure that SD card can be discharged completely in Preset Time, and as second switch unit disconnects, so Master controller is separated with SD card, i.e., the feed that there is no the holding wire connected between master controller and SD card, it is possible to It is further ensured that SD card is discharged completely;When Preset Time is reached, the voltage of DC source is normal, and the first of signal output unit Outfan control master controller is opened, meanwhile, the second outfan of signal output unit control first switch unit and second open Unit conducting is closed, then the control module in SD card is powered normally, and master controller is during unlatching, and SD card is carried out initially Change, i.e., reset command, now, as the control module in SD card is powered normally, the then control module in SD card are sent to SD card When the reset command of master controller transmission is received, reset response message is sent to master controller, so that master controller The initialization procedure to SD card is completed, and after initialization is completed, the driver of loading SD card, so as to complete master controller pair The recovery of SD card, i.e. master controller can be with SD card proper communications.In the process, when the voltage sag of DC source is led When causing the control module in SD card abnormal, output voltage of the present invention by signal output unit automatic detection partial pressure unit, when When the voltage of the outfan of partial pressure unit is less than the given voltage of the input of signal output unit, then first switch is automatically controlled Unit, the break-make of second switch unit, and the reset of master controller and unlatching, so as to complete recovery of the master controller to SD card, Without the intervention of operator, so as to reduce the failure recovery time of electronic equipment.
The embodiment of the present invention provides a kind of local fault recovery device, including the fault recovery circuit described in above-described embodiment.
The embodiment of the present invention provides a kind of local fault recovery device, including fault recovery circuit, and fault recovery circuit includes Master controller, SD card, partial pressure unit, signal output unit, first switch unit and second switch unit, when with partial pressure unit The voltage sag of the DC source of input connection, and cause the voltage of the outfan of partial pressure unit to be less than signal output list During the given voltage of the input of unit, signal output unit controls master controller reset, i.e. master controller not in Preset Time Work;And control first switch unit and second switch unit and disconnect, so that SD card power-off, i.e. SD card are discharged, by It is more than the time that SD card is discharged completely in the Preset Time of setting, so can ensure that in Preset Time SD card can be put completely Electricity, and as second switch unit disconnects, so master controller is separated with SD card, i.e., do not exist master controller and SD card it Between the feed of holding wire that connects, it is possible to be further ensured that SD card is discharged completely;When Preset Time is reached, DC source Voltage it is normal, the first outfan control master controller of signal output unit is opened, meanwhile, the second of signal output unit is defeated Go out end control first switch unit and the conducting of second switch unit, then the control module in SD card is powered normally, and master controller During unlatching, SD card is initialized, i.e., reset command is sent to SD card, now, due to the control mould in SD card Block is powered normally, then the control module in SD card is sent to master controller when the reset command of master controller transmission is received Reset response message, so that master controller completes the initialization procedure to SD card, and after initialization is completed, loads SD card Driver, can be with SD card proper communication so as to complete recovery of the master controller to SD card, i.e. master controller.In this process In, when the voltage sag of DC source causes the control module in SD card abnormal, the present invention passes through signal output unit The output voltage of automatic detection partial pressure unit, when the voltage of the outfan of partial pressure unit is less than the input of signal output unit During given voltage, then automatically control first switch unit, the break-make of second switch unit, and the reset of master controller and open, So as to complete recovery of the master controller to SD card, without the intervention of operator, so as to the failure for reducing electronic equipment is extensive The multiple time.
Should be noted be the above each resistance unit can be that the combination of one or more devices is realized, i.e., any of the above-described electricity Resistance unit can include at least one resistance, when at least two resistance is included in any of the above-described resistance unit, the resistance list Resistance in unit can be with parallel, or series connection, and the size of the resistance can be fixed, or change 's.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematic, for example, the unit Divide, only a kind of division of logic function can have other dividing mode, such as multiple units or component when actually realizing Can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can local to be located at one, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that the independent physics of unit includes, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, is used so that a computer including some instructions Equipment (can be personal computer, server, or network equipment etc.) performs the portion of each embodiment methods described of the invention Step by step.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc. are various can store The medium of program code.
Finally it should be noted that:Above example only to illustrate technical scheme, rather than a limitation;Although With reference to the foregoing embodiments the present invention has been described in detail, it will be understood by those within the art that:Which still may be used To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (12)

1. a kind of fault recovery circuit, including master controller and safe digital card SD card, it is characterised in that also include:Partial pressure list Unit, signal output unit, first switch unit and second switch unit;
The input of the partial pressure unit is connected with DC source, and outfan is connected with the input of the signal output unit; First outfan of the signal output unit is connected with the master controller, the second outfan and the first switch unit Control end connects;The outfan of the first switch unit is connected with the SD card, and input is connected with the DC source;Institute State the control end of second switch unit to be connected with the first outfan of the signal output unit or the second outfan, input with The master controller connection, outfan are connected with the SD card;
The signal output unit, the voltage for exporting in the partial pressure unit are less than the input of the signal output unit Given voltage when, the first switch unit and the second switch unit are controlled in Preset Time and are disconnected, and control institute State master controller reset;Wherein, the time that the Preset Time is discharged completely more than the SD card;
The signal output unit, is additionally operable to, when it is determined that reaching the Preset Time, control the first switch unit and institute The conducting of second switch unit is stated, and controls the master controller and opened.
2. fault recovery circuit according to claim 1, it is characterised in that the signal output unit includes:First is multiple Bit location;
First outfan of first reset unit is connected with the master controller, the second outfan and the first switch list The control end connection of unit;The control end of the second switch unit is defeated with the first outfan of first reset unit or second Go out end connection.
3. fault recovery circuit according to claim 1, it is characterised in that the signal output unit includes:Second is multiple Bit location and phase inverter;
The input of second reset unit is connected with the outfan of the partial pressure unit, and outfan is defeated with the phase inverter Enter end connection;The outfan of the phase inverter is the first outfan of the signal output unit, second reset unit Outfan is the second outfan of the signal output unit;Or;
The outfan of the phase inverter is the second outfan of the signal output unit, the outfan of second reset signal For the first outfan of the signal output unit.
4. the fault recovery circuit according to any one of claim 1-3, it is characterised in that the fault recovery circuit is also wrapped Include:First resistor unit;
The first end of the first resistor unit is connected with the DC source, the control of the second end and the first switch unit End connection.
5. fault recovery circuit according to claim 4, it is characterised in that the fault recovery circuit also includes:Second Resistance unit;
Control end of second end of the first resistor unit by the second resistance unit with the first switch unit connects Connect.
6. the fault recovery circuit according to claim 1-3,5 any one, it is characterised in that the partial pressure unit includes: 3rd resistor unit and the 4th resistance unit;
The first end of the 3rd resistor unit is connected with the DC source, the second end respectively with the 4th resistance unit The input connection of first end and the signal output unit;The second end ground connection of the 4th resistance unit.
7. the fault recovery circuit according to claim 1-3,5 any one, it is characterised in that the first switch unit bag Include:P-channel-metal oxide semiconductor field effect tube PMOS.
8. fault recovery circuit according to claim 4, it is characterised in that the partial pressure unit includes:3rd resistor list Unit and the 4th resistance unit;
The first end of the 3rd resistor unit is connected with the DC source, the second end respectively with the 4th resistance unit The input connection of first end and the signal output unit;The second end ground connection of the 4th resistance unit.
9. fault recovery circuit according to claim 4, it is characterised in that the first switch unit includes:P-channel- Metal oxide semiconductor field effect tube PMOS.
10. fault recovery circuit according to claim 6, it is characterised in that the first switch unit includes:P-channel- Metal oxide semiconductor field effect tube PMOS.
11. fault recovery circuits according to claim 8, it is characterised in that the first switch unit includes:P-channel- Metal oxide semiconductor field effect tube PMOS.
12. a kind of local fault recovery devices, it is characterised in that including the fault recovery circuit described in any one of claim 1-11.
CN201410440265.3A 2014-08-29 2014-08-29 Failure recovery circuit and device Active CN104199752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410440265.3A CN104199752B (en) 2014-08-29 2014-08-29 Failure recovery circuit and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410440265.3A CN104199752B (en) 2014-08-29 2014-08-29 Failure recovery circuit and device

Publications (2)

Publication Number Publication Date
CN104199752A CN104199752A (en) 2014-12-10
CN104199752B true CN104199752B (en) 2017-04-26

Family

ID=52085049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410440265.3A Active CN104199752B (en) 2014-08-29 2014-08-29 Failure recovery circuit and device

Country Status (1)

Country Link
CN (1) CN104199752B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109188980A (en) * 2018-09-29 2019-01-11 北京聚利科技股份有限公司 The power control method and card reader of card reader
CN110381196B (en) * 2019-06-17 2022-04-26 深圳盈达机器视觉技术有限公司 Control method for falling protection of mobile device and mobile device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1127444A (en) * 1994-07-12 1996-07-24 通用仪器公司 Power-out reset system
CN201332261Y (en) * 2008-12-30 2009-10-21 中国移动通信集团河南有限公司 Reset device
CN102447455A (en) * 2010-10-07 2012-05-09 鸿富锦精密工业(深圳)有限公司 Reset signal discharge circuit
CN202978866U (en) * 2012-11-27 2013-06-05 福建鑫诺通讯技术有限公司 A reuse switch circuit for starting a SD card and resetting equipment with the SD card

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100530039C (en) * 2006-06-02 2009-08-19 鸿富锦精密工业(深圳)有限公司 Computer system reset device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1127444A (en) * 1994-07-12 1996-07-24 通用仪器公司 Power-out reset system
CN201332261Y (en) * 2008-12-30 2009-10-21 中国移动通信集团河南有限公司 Reset device
CN102447455A (en) * 2010-10-07 2012-05-09 鸿富锦精密工业(深圳)有限公司 Reset signal discharge circuit
CN202978866U (en) * 2012-11-27 2013-06-05 福建鑫诺通讯技术有限公司 A reuse switch circuit for starting a SD card and resetting equipment with the SD card

Also Published As

Publication number Publication date
CN104199752A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN104317376B (en) Power distribution inside cable
CN103835972B (en) Fan rotary speed control system and the method in order to control rotation speed of the fan
CN102508755B (en) Device and method for simulating interface card hot-plugging
CN104407556B (en) Hot standby redundancy module switching device
CN104536321B (en) A kind of system and method for realizing detection of power loss and relay status control
CN101165354A (en) Fan rotation speed automatic control circuit
WO2014187073A1 (en) Control method and apparatus
CN105914810A (en) Method for charging electronic equipment, and electronic equipment
CN109067161B (en) Power supply safety starting system
CN104571414A (en) Hot-plug fan power-taking circuit and method in RACK cabinet
CN106528237A (en) Micro control unit (MCU) start mode selection circuit and MCU code upgrading method based on same
CN104199752B (en) Failure recovery circuit and device
CN107645310A (en) The data transmission device and data transmission method of breaker controller
CN202736030U (en) Solid state storage equipment with physical self-destruction function
CN108491052B (en) Self-recovery method for hot plug fan
CN104714618A (en) Reset circuit
CN201051664Y (en) Power supply device and equipment
CN106033240A (en) Interface power supply circuit
CN108711440B (en) Write protection circuit, write protection method, write protection device and electrical equipment
CN101763332B (en) Parallel communication bus interface
CN103403563A (en) Reverse power supply circuit test system and device
CN207021659U (en) A kind of DC protection circuit
CN105591438A (en) Micro-power battery pack and micro photovoltaic inverter device with safety control
CN105245840B (en) A kind of data forwarding method, device and video camera
US9438038B1 (en) Power supply fast turn-on and increased hold-up time within an electrical device

Legal Events

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