CN104199752A - Failure recovery circuit and device - Google Patents

Failure recovery circuit and device Download PDF

Info

Publication number
CN104199752A
CN104199752A CN201410440265.3A CN201410440265A CN104199752A CN 104199752 A CN104199752 A CN 104199752A CN 201410440265 A CN201410440265 A CN 201410440265A CN 104199752 A CN104199752 A CN 104199752A
Authority
CN
China
Prior art keywords
unit
output terminal
card
signal output
master controller
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.)
Granted
Application number
CN201410440265.3A
Other languages
Chinese (zh)
Other versions
CN104199752B (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, relate in particular to a kind of fault recovery circuit and device.
Background technology
SD card (Secure Digital Memory Card, safe digital card) is a kind of memory device of new generation of based semiconductor fast-flash memory device, is widely used in various electronic equipments.In electronic equipment, master controller and SD link and connect, master controller is in start or restarting process, SD card is carried out to initialization, and load the driver of SD card, so that master controller, after start or restarting, can the operation such as read and write to SD card, thereby complete communicating by letter of master controller and SD card.At SD card, occur abnormal in the situation that, master controller sends reset instruction to SD card conventionally, so that the control module of SD card is when receiving this reset instruction, carries out reset operation, and send reset response message to master controller, thereby complete the recovery of master controller to SD card.But, when the voltage after offering the direct supply voltage sag of SD card and master controller and causing falling is less than the required voltage of the normal work of control module in SD card, this control module cannot be worked, thereby the reset instruction that None-identified master controller sends, and then also can not carry out reset operation, thereby cause the recovery failure of master controller to SD card.
In the prior art, if while causing control module in SD card abnormal due to direct supply voltage sag, need operating personnel manually electronic equipment to be carried out to power-off, and when direct supply voltage stabilization, again to electronic equipment, power again, so that electronic equipment reopens, because electronic equipment is in reopening process, the master controller that it is built-in and SD card all need to restart, and master controller carries out initialization to SD card in restart procedure, to SD card, send reset command, now, because the control module power supply in SD card is normal, to master controller, send reset response message, thereby make master controller complete the initialization procedure to SD card, and after completing initialization, load the driver of SD card, thereby complete the recovery of master controller to SD card.
But in above-mentioned implementation procedure, when control module within direct supply voltage sag causes SD card is abnormal, need operating personnel manually electronic equipment to be reopened and just can complete the recovery of master controller to SD card, like this, when control module in SD is abnormal, if operating personnel do not find in time or not at the scene time, all needing to spend the regular hour could reopen electronic equipment, complete the recovery of master controller to SD card, thereby make the failure recovery time of electronic equipment longer.
Summary of the invention
Embodiments of the invention provide a kind of fault recovery circuit and device, for automatically completing the recovery of master controller to SD card, thereby reduce the failure recovery time of electronic equipment.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The embodiment of the present invention provides a kind of fault recovery circuit, comprising: master controller, SD card, partial pressure unit, signal output unit, the first switch element and second switch unit; The input end of described partial pressure unit is connected with direct supply, and output terminal is connected with the input end of described signal output unit; The first output terminal of described signal output unit is connected with described master controller, and the second output terminal is connected with the control end of described the first switch element; The output terminal of described the first switch element and described SD link and connect, and input end is connected with described direct supply; The control end of described second switch unit is connected with the first output terminal of described signal output unit or the second output terminal, and input end is connected with described master controller, and output terminal and described SD link and connect; Described signal output unit, while being less than the set voltage of input end of described signal output unit for the voltage in the output of described partial pressure unit, in Preset Time, control described the first switch element and described second switch unit and disconnect, and control described master controller reset; Wherein, described Preset Time is greater than the time that described SD card discharges completely; Described signal output unit, also, for determining while reaching described Preset Time, controls described the first switch element and described second switch cell conduction, and controls described master controller and open.
Optionally, described signal output unit comprises: the first reset unit; The first output terminal of described the first reset unit is connected with described master controller, and the second output terminal is connected with the control end of described the first switch element; The control end of described second switch unit is connected with the first output terminal of described the first reset unit or the second output terminal.
Optionally, described signal output unit comprises: the second reset unit and phase inverter; The input end of described the second reset unit is connected with the output terminal of described partial pressure unit, and output terminal is connected with the input end of described phase inverter; The output terminal of described phase inverter is the first output terminal of described signal output unit, the second output terminal that the output terminal of described the second reset unit is described signal output unit; Or; The output terminal of described phase inverter is the second output terminal of described signal output unit, the first output terminal that the output terminal of described the second reset signal is described signal output unit.
Optionally, described fault recovery circuit also comprises: the first resistance unit; The first end of described the first resistance unit is connected with described direct supply, and the second end is connected with the control end of described the first switch element.
Optionally, described fault recovery circuit also comprises: the second resistance unit; The second end of described the first resistance unit is connected with the control end of described the first switch element by described the second resistance unit.
Optionally, described partial pressure unit comprises: the 3rd resistance unit and the 4th resistance unit; The first end of described the 3rd resistance unit is connected with described direct supply, and the second end is connected with described the 4th first end of resistance unit and the input end of described signal output unit respectively; The second end ground connection of described the 4th resistance unit.
Optionally, described the first switch element comprises: P raceway groove-metal oxide semiconductor field effect tube PMOS.
The embodiment of the present invention provides a kind of fault recovery device, comprises the fault recovery circuit described in above-described embodiment.
A kind of fault recovery circuit and device that the embodiment of the present invention provides, wherein, fault recovery circuit comprises: master controller, SD card, partial pressure unit, signal output unit, the first switch element and second switch unit, voltage sag when the direct supply being connected with the input end of partial pressure unit, and when the voltage that causes the output terminal of partial pressure unit is less than the set voltage of input end of signal output unit, signal output unit is controlled master controller and is resetted in Preset Time, and master controller is not worked, and control the first switch element and second switch unit and disconnect, thereby make the power-off of SD card, be that SD card discharges, because the Preset Time of setting is greater than the time that SD card discharges completely, so can guarantee that in Preset Time SD card can discharge completely, again because second switch unit disconnects, so disconnect between master controller and SD card, there is not the feed of the signal wire being connected between master controller and SD card, so can further guarantee that SD card discharges completely, when reaching Preset Time, the voltage of direct supply is normal, the first output terminal of signal output unit is controlled master controller and is opened, simultaneously, the second output terminal of signal output unit is controlled the first switch element and second switch cell conduction, the power supply of the control module in SD card is normal, and master controller is in the process of opening, SD card is carried out to initialization, to SD card, send reset command, now, because the control module power supply in SD card is normal, the control module in SD card is when receiving the reset command of master controller transmission, to master controller, send reset response message, thereby make master controller complete the initialization procedure to SD card, and after completing initialization, load the driver of SD card, thereby complete the recovery of master controller to SD card, be master controller can with the proper communication of SD card.In this process, when the voltage sag of direct supply causes control module in SD card abnormal, the present invention detects the output voltage of partial pressure unit automatically by signal output unit, when the voltage of the output terminal of partial pressure unit is less than the set voltage of input end of signal output unit, automatically control the first switch element, the break-make of second switch unit, and the reset of master controller and unlatching, thereby complete the recovery of master controller to SD card, and do not need operating personnel's intervention, thereby reduce the failure recovery time of electronic equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic diagram of a kind of fault recovery circuit that Fig. 1 provides for the embodiment of the present invention;
The schematic diagram of the another kind of fault recovery circuit that Fig. 2 provides for the embodiment of the present invention;
The schematic diagram of the another kind of fault recovery circuit that Fig. 3 provides for the embodiment of the present invention;
The schematic diagram of the another kind of fault recovery circuit that Fig. 4 provides for the embodiment of the present invention;
The schematic diagram of the another kind of fault recovery circuit that Fig. 5 provides for the embodiment of the present invention;
The schematic diagram of the another kind of fault recovery circuit that Fig. 6 provides for the embodiment of the present invention;
The schematic diagram of the another kind of fault recovery circuit that Fig. 7 provides for the embodiment of the present invention;
The schematic diagram of the another kind of fault recovery circuit that Fig. 8 provides for the embodiment of the present invention;
Fig. 9 is the schematic diagram of a kind of partial pressure unit circuit in the fault recovery circuit shown in Fig. 1;
The schematic diagram of the another kind of fault recovery circuit that Figure 10 provides for the embodiment of the present invention;
The schematic diagram of the another kind of fault recovery circuit that Figure 11 provides for the embodiment of the present invention.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of fault recovery circuit, comprising: master controller 101, SD card (Secure Digital Memory Card, safe digital card) 102, partial pressure unit 103, signal output unit 104, the first switch elements 105 and second switch unit 106.
The input end of described partial pressure unit 103 is connected with direct supply, and output terminal is connected with the input end of described signal output unit 104; The first output terminal of described signal output unit 104 is connected with described master controller 101, and the second output terminal is connected with the control end of described the first switch element 105; The output terminal of described the first switch element 105 is connected with described SD card 102, and input end is connected with described direct supply; The control end of described second switch unit 106 is connected with the first output terminal of described signal output unit 104 or the second output terminal, and input end is connected with described master controller 101, and output terminal is connected with described SD card 102.
It should be noted that, when the control end of second switch unit 106 and the first output terminal of described signal output unit 104 are connected, described fault recovery circuit as shown in Figure 1; When the control end of second switch unit 106 and the second output terminal of described signal output unit 104 are connected, described fault recovery circuit as shown in Figure 2.
Described signal output unit 104, while being less than the set voltage of input end of described signal output unit 104 for the voltage in 103 outputs of described partial pressure unit, in Preset Time, control described the first switch element 105 and 106 disconnections of described second switch unit, and control described master controller 101 resets.
Wherein, described Preset Time is greater than the time that described SD card discharges completely.
Described signal output unit 104, also, for determining while reaching described Preset Time, controls described the first switch element 105 and 106 conductings of described second switch unit, and controls described master controller 101 and open.
It should be noted that, in Preset Time, the signal of the first output terminal output of signal output unit 104 is high level signal, and the signal of the second output terminal output is low level signal.When reaching Preset Time, the signal of the first output terminal output of signal output unit 104 is low level signal, and the signal of the second output terminal output is high level signal.The switch element that second switch unit 106 can disconnect when receiving high level signal can be also the switch element disconnecting while receiving low level signal.
In the situation that second switch unit 106 is the switch element disconnecting while receiving high level signal, the control end of second switch unit 106 is connected with the second output terminal of signal output unit 104.
In the situation that second switch unit 106 is the switch element disconnecting while receiving low level signal, the control end of second switch unit 106 is connected with the first output terminal of signal output unit 104.
Concrete, in the situation that the control end of second switch unit 106 is connected with the first output terminal of signal output unit 104, the voltage sag of the direct supply being connected when the input end with partial pressure unit 103, and when the voltage that causes the output terminal output of partial pressure unit 103 is less than the set voltage of input end of signal output unit 104, the low level signal of the first output terminal output Preset Time of signal output unit 104, in Preset Time, keep output low level signal always, high level signal in the second output terminal output Preset Time, in Preset Time, export high level signal always, because the first output terminal of signal output unit 104 is connected with control end and the master controller 101 of second switch unit 106 respectively, the second output terminal is connected with the control end of the first switch element 105, master controller 101 and second switch unit 106 can receive low level signal, and master controller 101 resets when receiving low level signal, second switch unit 106 disconnects when receiving low level signal, because master controller 101 is connected with SD card 102 by second switch unit 106, and second switch unit 106 is now in off-state, so master controller 101 is not connected with SD card 102, it is the signal wire disconnection between master controller 101 and SD card 102, so there is not feed in signal wire, and then feed can not inputed in SD card 102 yet.And the control end of the first switch element 105 can receive high level signal, and disconnect when receiving high level signal, again because SD card 102 is connected with DC voltage by the first switch element 105, and now the first switch element 105 in off-state, so SD card 102 does not have supply voltage, in off-position, start electric discharge, and the Preset Time of setting is greater than the time that SD card discharges completely, so in Preset Time, can guarantee that SD card can discharge completely.
When signal output unit 104 is determined while reaching Preset Time, at the first output terminal output high level signal, at the second output terminal output low level signal, thereby master controller 101 is opened, the first switch element 105 and 106 conductings of second switch unit, like this, direct supply is connected with SD card 102, thereby make the control module power supply in SD card 102 normal, master controller 101 carries out initialization to SD card 102 in opening process, to SD card 102, send reset command, now, because the control module power supply in SD card 102 is normal, the control module in SD card 102 can receive the reset command that master controller 101 sends, and when receiving this reset command, carry out reset operation, and after executing reset operation, to master controller 101, send reset response message, so that master controller 101 is when definite this reset response message is correct, determine the initialization success to SD card 102, and further load the driver of SD card 102, and due to 106 conductings of second switch unit, so master controller 101 is connected with SD card 102, thereby make master controller 101 and the SD card 102 can proper communication, completed the recovery of 101 pairs of SD cards 102 of master controller.
In the situation that the control end of second switch unit 106 is connected with the second output terminal of signal output unit 104, its concrete principle of work with in the situation that the control end of second switch unit 106 is similar with the principle of work that the first output terminal of signal output unit 104 is connected, can be with reference to above-mentioned principle of work, the present invention does not repeat them here.
It should be noted that, signal output unit 104 is built-in with timer, for Preset Time is carried out to timing, guarantee the first output terminal output low level signal in Preset Time of signal output unit 104, the second output terminal is exported high level signal in Preset Time, when reaching Preset Time, guarantee that the first output terminal of signal output unit 104 is exported high level signal in Preset Time, the second output terminal is output low level signal in Preset Time.
Optionally, the first switch element 105 comprises: PMOS (P-Metal-Oxide-Semicond-uctor-Field-EffectTransistor, P type-Metal-oxide-semicondutor-field effect transistor).
It should be noted that, the first switch element 105 can also be other switch elements that disconnect when receiving high level signal, and the present invention does not limit this.
The embodiment of the present invention provides a kind of fault recovery circuit, comprise: master controller, SD card, partial pressure unit, signal output unit, the first switch element and second switch unit, voltage sag when the direct supply being connected with the input end of partial pressure unit, and when the voltage that causes the output terminal of partial pressure unit is less than the set voltage of input end of signal output unit, signal output unit is controlled master controller and is resetted in Preset Time, and master controller is not worked, and control the first switch element and second switch unit and disconnect, thereby make the power-off of SD card, be that SD card discharges, because the Preset Time of setting is greater than the time that SD card discharges completely, so can guarantee that in Preset Time SD card can discharge completely, again because second switch unit disconnects, so disconnect between master controller and SD card, there is not the feed of the signal wire being connected between master controller and SD card, so can further guarantee that SD card discharges completely, when reaching Preset Time, the voltage of direct supply is normal, the first output terminal of signal output unit is controlled master controller and is opened, simultaneously, the second output terminal of signal output unit is controlled the first switch element and second switch cell conduction, the power supply of the control module in SD card is normal, and master controller is in the process of opening, SD card is carried out to initialization, to SD card, send reset command, now, because the control module power supply in SD card is normal, the control module in SD card is when receiving the reset command of master controller transmission, to master controller, send reset response message, thereby make master controller complete the initialization procedure to SD card, and after completing initialization, load the driver of SD card, thereby complete the recovery of master controller to SD card, be master controller can with the proper communication of SD card.In this process, when the voltage sag of direct supply causes control module in SD card abnormal, the present invention detects the output voltage of partial pressure unit automatically by signal output unit, when the voltage of the output terminal of partial pressure unit is less than the set voltage of input end of signal output unit, automatically control the first switch element, the break-make of second switch unit, and the reset of master controller and unlatching, thereby complete the recovery of master controller to SD card, and do not need operating personnel's intervention, thereby reduce the failure recovery time of electronic equipment.
Further, described signal output unit 104 comprises: the first reset unit 1041.
The first output terminal of described the first reset unit 1041 is connected with described master controller 101, and the second output terminal is connected with the control end of described the first switch element 105; The control end of described second switch unit 106 is connected with the first output terminal or second output terminal of described the first reset unit 1041.
It should be noted that, when the control end of described second switch unit 106 and the first output terminal of described the first reset unit 1041 are connected, described fault recovery circuit as shown in Figure 3; When the control end of described second switch unit 106 and the second output terminal of described the first reset unit 1041 are connected, described fault recovery circuit as shown in Figure 4.
That is to say, the first output terminal of the first reset unit 1041 is the first output terminal of signal output unit 104; The second output terminal of the first reset unit 1041 is the second output terminal of signal output unit 104.
It should be noted that, the first reset unit 1041 can be integrated reset chip; Can be the circuit being comprised of electronic devices and components, the present invention limit this yet.
Or described signal output unit 104 comprises: the second reset unit 1042 and phase inverter 1043.
The input end of described the second reset unit 1042 is connected with the output terminal of described partial pressure unit 103; Output terminal is connected with the input end of described phase inverter 1043; The output terminal of described phase inverter 1043 is the first output terminal of described signal output unit 104, and the output terminal of described the second reset unit 1042 is the second output terminal of described signal output unit 104.
Or the output terminal of described phase inverter 1043 is the second output terminal of described signal output unit 104, the output terminal of described the second reset signal 1042 is the first output terminal of described signal output unit 104.
It should be noted that, the second reset unit 1042 can be integrated reset chip; Also can be the circuit being formed by electronic devices and components.Phase inverter 1043 can also can pass through CPLD (Complex Programmable Logic Device, CPLD) and realize for the circuit that uses not gate logical device to form, and the present invention does not limit this.
It should be noted that, in the situation that signal output unit 104 comprises the second reset unit 1042 and phase inverter 1043, the connected mode of fault recovery circuit comprises four kinds, and concrete as Fig. 5, Fig. 6, shown in Fig. 7 and Fig. 8.
It should be noted that, the voltage sag of the direct supply being connected when the input end with partial pressure unit 103, and when the voltage that causes the output terminal output of partial pressure unit 103 is less than the set voltage of input end of the second reset unit 1042, under the connected mode shown in Fig. 5, the signal that the output terminal of the second reset unit 1042 is exported in Preset Time is low level signal, the switch element of second switch unit 106 for disconnecting when receiving high level signal.Under the connected mode shown in Fig. 6, the signal that the output terminal of the second reset unit 1042 is exported in Preset Time is low level signal, the switch element of second switch unit 106 for disconnecting when receiving low level signal.Under the connected mode shown in Fig. 7, the signal that the output terminal of the second reset unit 1042 is exported in Preset Time is high level signal, the switch element of second switch unit 106 for disconnecting when receiving high level signal.Under the connected mode shown in Fig. 8, the signal that the output terminal of the second reset unit 1042 is exported in Preset Time is high level signal, the switch element of second switch unit 106 for disconnecting when receiving low level signal.
It should be noted that, Fig. 5, Fig. 6, the principle of work of the circuit shown in Fig. 7 and Fig. 8 is similar, and the circuit shown in Fig. 5 of only take below illustrates the principle of work that it is concrete as example.
The specific works principle of the circuit shown in Fig. 5 is: the voltage sag of the direct supply being connected when the input end with partial pressure unit 103, and when the voltage that causes the output terminal output of partial pressure unit 103 is less than the set voltage of input end of the second reset unit 1042, low level signal in the output terminal output Preset Time of the second reset unit 1042, after making master controller 101 receive this low level signal, reset, and the low level signal of the output terminal of the second reset unit 1042 output is converted to high level signal through phase inverter 1043, because the output terminal of phase inverter 1043 is connected with the control end of the first switch element 105 and the control end of second switch unit 106 respectively, what can show that the control end of the first switch element 105 receives is high level signal, thereby the first switch element 105 is disconnected, the i.e. not conducting of output terminal of the input end of the first switch element 105 and the first switch element 105, so SD card 102 is without supply voltage, in off-position, now, SD card 102 starts electric discharge, and because the Preset Time of setting is greater than the time that SD card 102 discharges completely, so in Preset Time, can guarantee that SD card 102 can discharge completely.Further, while receiving high level signal due to the control end of second switch unit 106 in off-state, make master controller 101 not be connected with SD card 102, it is the signal wire disconnection between master controller 101 and SD card 102, so there is not feed in signal wire, and then also feed can not inputed in SD card 102, thereby further guaranteeing that SD is stuck in Preset Time can discharge completely.
When the second reset unit 1042 is determined while reaching Preset Time, at the first output terminal output high level signal, at the second output terminal output low level signal, thereby master controller 101 is opened, the first switch element 105 and 106 conductings of second switch unit, like this, direct supply is connected with SD card 102, thereby make the control module power supply in SD card 102 normal, master controller 101 carries out initialization to SD card 102 in opening process, to SD card 102, send reset command, now, because the control module power supply in SD card 102 is normal, the control module in SD card 102 can receive the reset command that master controller 101 sends, and when receiving this reset command, carry out reset operation, and after executing reset operation, to master controller 101, send reset response message, so that master controller 101 is when definite this reset response message is correct, determine the initialization success to SD card 102, and further load the driver of SD card 102, and due to 106 conductings of second switch unit, so master controller 101 is connected with SD card 102, thereby make master controller 101 and the SD card 102 can proper communication, completed the recovery of 101 pairs of SD cards 102 of master controller.
Further, as shown in Figure 9, described partial pressure unit 103 comprises: the 3rd resistance unit 1031 and the 4th resistance unit 1032.
The first end of described the 3rd resistance unit 1031 is connected with described direct supply, and the second end is connected with the first end of described the 4th resistance unit 1032 and the input end of described signal output unit 104 respectively; The second end ground connection of described the 4th resistance unit 1032.
Concrete, because the 3rd resistance unit 1031 is connected with the 4th resistance unit 1032, the electric current that flows through the 3rd resistance unit 1031 and the 4th resistance unit 1032 is identical, thereby make the 3rd resistance unit 1031 and the 4th resistance unit 1032 that the voltage of direct supply is divided into two parts, again due to the second end ground connection of the 4th resistance unit 1032, the input end to signal output unit 104 by the Voltage-output at the 4th resistance unit 1032 two ends.
Further, as shown in figure 10, described fault recovery circuit also comprises: the first resistance unit 107.
The first end of described the first resistance unit 107 is connected with described direct supply, and the second end is connected with the control end of described the first switch element 105.
Concrete, when the second output terminal of signal output unit 104 is not exported any signal, in order to guarantee that the first switch element 105 remains open state, the control end at the first switch element 105 connects pull-up resistor, connect the first resistance unit 107, because the first end of the first resistance unit is connected with direct supply, so when the second output terminal of signal output unit 104 is not exported any signal, the first resistance unit 107 can guarantee that the control end of the first switch element 105 receives high level signal, so can guarantee that the first switch element 105 is in off-state.
It should be noted that, the connected mode in Figure 10 is to take the second output terminal that the output terminal of phase inverter 1043 is signal output unit 104, and the control end of second switch unit 106 and the output terminal of phase inverter 1043 are connected to, and example is connected.
Further, as shown in figure 11, described fault recovery circuit also comprises: the second resistance unit 108.
The second end of described the first resistance unit 107 is connected with the control end of described the first switch element 105 by described the second resistance unit 108.
It should be noted that, the connected mode in Figure 11 is to take the second output terminal that the output terminal of phase inverter 1043 is signal output unit 104, and the control end of second switch unit 106 and the output terminal of phase inverter 1043 are connected to, and example is connected.
Wherein, the second 108 of resistance units metering function, the electric current that prevents from flowing into the first switch element 105 is excessive and burn out the first switch element 105.
The embodiment of the present invention provides a kind of fault recovery circuit, comprise: master controller, SD card, partial pressure unit, signal output unit, the first switch element and second switch unit, voltage sag when the direct supply being connected with the input end of partial pressure unit, and when the voltage that causes the output terminal of partial pressure unit is less than the set voltage of input end of signal output unit, signal output unit is controlled master controller and is resetted in Preset Time, and master controller is not worked, and control the first switch element and second switch unit and disconnect, thereby make the power-off of SD card, be that SD card discharges, because the Preset Time of setting is greater than the time that SD card discharges completely, so can guarantee that in Preset Time SD card can discharge completely, again because second switch unit disconnects, so disconnect between master controller and SD card, there is not the feed of the signal wire being connected between master controller and SD card, so can further guarantee that SD card discharges completely, when reaching Preset Time, the voltage of direct supply is normal, the first output terminal of signal output unit is controlled master controller and is opened, simultaneously, the second output terminal of signal output unit is controlled the first switch element and second switch cell conduction, the power supply of the control module in SD card is normal, and master controller is in the process of opening, SD card is carried out to initialization, to SD card, send reset command, now, because the control module power supply in SD card is normal, the control module in SD card is when receiving the reset command of master controller transmission, to master controller, send reset response message, thereby make master controller complete the initialization procedure to SD card, and after completing initialization, load the driver of SD card, thereby complete the recovery of master controller to SD card, be master controller can with the proper communication of SD card.In this process, when the voltage sag of direct supply causes control module in SD card abnormal, the present invention detects the output voltage of partial pressure unit automatically by signal output unit, when the voltage of the output terminal of partial pressure unit is less than the set voltage of input end of signal output unit, automatically control the first switch element, the break-make of second switch unit, and the reset of master controller and unlatching, thereby complete the recovery of master controller to SD card, and do not need operating personnel's intervention, thereby reduce the failure recovery time of electronic equipment.
The embodiment of the present invention provides a kind of fault recovery device, comprises the fault recovery circuit described in above-described embodiment.
The embodiment of the present invention provides a kind of fault recovery device, comprise fault recovery circuit, and fault recovery circuit comprises master controller, SD card, partial pressure unit, signal output unit, the first switch element and second switch unit, voltage sag when the direct supply being connected with the input end of partial pressure unit, and when the voltage that causes the output terminal of partial pressure unit is less than the set voltage of input end of signal output unit, signal output unit is controlled master controller and is resetted in Preset Time, and master controller is not worked, and control the first switch element and second switch unit and disconnect, thereby make the power-off of SD card, be that SD card discharges, because the Preset Time of setting is greater than the time that SD card discharges completely, so can guarantee that in Preset Time SD card can discharge completely, again because second switch unit disconnects, so disconnect between master controller and SD card, there is not the feed of the signal wire being connected between master controller and SD card, so can further guarantee that SD card discharges completely, when reaching Preset Time, the voltage of direct supply is normal, the first output terminal of signal output unit is controlled master controller and is opened, simultaneously, the second output terminal of signal output unit is controlled the first switch element and second switch cell conduction, the power supply of the control module in SD card is normal, and master controller is in the process of opening, SD card is carried out to initialization, to SD card, send reset command, now, because the control module power supply in SD card is normal, the control module in SD card is when receiving the reset command of master controller transmission, to master controller, send reset response message, thereby make master controller complete the initialization procedure to SD card, and after completing initialization, load the driver of SD card, thereby complete the recovery of master controller to SD card, be master controller can with the proper communication of SD card.In this process, when the voltage sag of direct supply causes control module in SD card abnormal, the present invention detects the output voltage of partial pressure unit automatically by signal output unit, when the voltage of the output terminal of partial pressure unit is less than the set voltage of input end of signal output unit, automatically control the first switch element, the break-make of second switch unit, and the reset of master controller and unlatching, thereby complete the recovery of master controller to SD card, and do not need operating personnel's intervention, thereby reduce the failure recovery time of electronic equipment.
Should be noted that it is that above each resistance unit can be realized for the combination of one or more devices, be that above-mentioned arbitrary resistance unit can comprise at least one resistance, while comprising at least two resistance in above-mentioned arbitrary resistance unit, resistance in described resistance unit can be in parallel, also can connect, and the size of described resistance can be fixed, also can change.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit comprises, also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that also can adopt hardware to add SFU software functional unit realizes.
The integrated unit that the above-mentioned form with SFU software functional unit realizes, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read-Only Memory, be called for short ROM), the various media that can be program code stored such as random access memory (Random Access Memory is called for short RAM), magnetic disc or CD.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (8)

1. a fault recovery circuit, comprises master controller and safe digital card SD card, it is characterized in that, also comprises: partial pressure unit, signal output unit, the first switch element and second switch unit;
The input end of described partial pressure unit is connected with direct supply, and output terminal is connected with the input end of described signal output unit; The first output terminal of described signal output unit is connected with described master controller, and the second output terminal is connected with the control end of described the first switch element; The output terminal of described the first switch element and described SD link and connect, and input end is connected with described direct supply; The control end of described second switch unit is connected with the first output terminal of described signal output unit or the second output terminal, and input end is connected with described master controller, and output terminal and described SD link and connect;
Described signal output unit, while being less than the set voltage of input end of described signal output unit for the voltage in the output of described partial pressure unit, in Preset Time, control described the first switch element and described second switch unit and disconnect, and control described master controller reset; Wherein, described Preset Time is greater than the time that described SD card discharges completely;
Described signal output unit, also, for determining while reaching described Preset Time, controls described the first switch element and described second switch cell conduction, and controls described master controller and open.
2. fault recovery circuit according to claim 1, is characterized in that, described signal output unit comprises: the first reset unit;
The first output terminal of described the first reset unit is connected with described master controller, and the second output terminal is connected with the control end of described the first switch element; The control end of described second switch unit is connected with the first output terminal of described the first reset unit or the second output terminal.
3. fault recovery circuit according to claim 1, is characterized in that, described signal output unit comprises: the second reset unit and phase inverter;
The input end of described the second reset unit is connected with the output terminal of described partial pressure unit, and output terminal is connected with the input end of described phase inverter; The output terminal of described phase inverter is the first output terminal of described signal output unit, the second output terminal that the output terminal of described the second reset unit is described signal output unit; Or;
The output terminal of described phase inverter is the second output terminal of described signal output unit, the first output terminal that the output terminal of described the second reset signal is described signal output unit.
4. according to the fault recovery circuit described in claim 1-3 any one, it is characterized in that, described fault recovery circuit also comprises: the first resistance unit;
The first end of described the first resistance unit is connected with described direct supply, and the second end is connected with the control end of described the first switch element.
5. fault recovery circuit according to claim 4, is characterized in that, described fault recovery circuit also comprises: the second resistance unit;
The second end of described the first resistance unit is connected with the control end of described the first switch element by described the second resistance unit.
6. according to the fault recovery circuit described in claim 1-5 any one, it is characterized in that, described partial pressure unit comprises: the 3rd resistance unit and the 4th resistance unit;
The first end of described the 3rd resistance unit is connected with described direct supply, and the second end is connected with described the 4th first end of resistance unit and the input end of described signal output unit respectively; The second end ground connection of described the 4th resistance unit.
7. according to the fault recovery circuit described in claim 1-6 any one, it is characterized in that, described the first switch element comprises: P raceway groove-metal oxide semiconductor field effect tube PMOS.
8. a fault recovery device, is characterized in that, comprises the fault recovery circuit described in claim 1-7 any one.
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 true CN104199752A (en) 2014-12-10
CN104199752B 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)

Cited By (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
CN110381196A (en) * 2019-06-17 2019-10-25 深圳盈达机器视觉技术有限公司 The control method and mobile device of mobile device fall protection

Citations (5)

* 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
US20070283136A1 (en) * 2006-06-02 2007-12-06 Hon Hai Precision Industry Co., Ltd. Reset device for a computer 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

Patent Citations (5)

* 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
US20070283136A1 (en) * 2006-06-02 2007-12-06 Hon Hai Precision Industry Co., Ltd. Reset device for a computer 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

Cited By (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
CN110381196A (en) * 2019-06-17 2019-10-25 深圳盈达机器视觉技术有限公司 The control method and mobile device of mobile device fall protection

Also Published As

Publication number Publication date
CN104199752B (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN102508755B (en) Device and method for simulating interface card hot-plugging
TWI483504B (en) Technique for combining in-rush current limiting and short circuit current limiting
US10064304B2 (en) Separated server back plane
CN104536321B (en) A kind of system and method for realizing detection of power loss and relay status control
CN106610712B (en) Substrate management controller resetting system and method
US10452460B2 (en) Storage server system capable of setting overcurrent protection value according to system configuration
CN104407556A (en) Hot standby redundancy module switching device
CN110187737B (en) Board card power-off time sequence control device
CN105098718A (en) Power supply device and overvoltage protection method
CN104505890A (en) Mobile terminal
CN112269347B (en) Power-on and power-off time sequence control device
CN105955082A (en) Power socket and power on-off control method and device thereof
CN104808758A (en) Electronic device capable of being automatically reset and automatic resetting method thereof
CN107037868A (en) A kind of cold standby TURP based on storage system changes system and method
CN104199752A (en) Failure recovery circuit and device
CN104714618A (en) Reset circuit
CN114421585A (en) Parallel power supply system control method, device, equipment and storage medium
CN104866052A (en) Power supply system for electronic devices
CN106033240A (en) Interface power supply circuit
CN108491052B (en) Self-recovery method for hot plug fan
CN108711440B (en) Write protection circuit, write protection method, write protection device and electrical equipment
CN105867523B (en) The mainboard of discharge circuit and the application discharge circuit
CN103955161A (en) Monitoring circuit and electronic device
CN106294223B (en) It is a kind of realize server network interface card multiplexing device, method and system
CN108762455A (en) A kind of chip power-on reset circuit

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