CN117667487A - Embedded device and self-recovery circuit thereof - Google Patents
Embedded device and self-recovery circuit thereof Download PDFInfo
- Publication number
- CN117667487A CN117667487A CN202311676403.3A CN202311676403A CN117667487A CN 117667487 A CN117667487 A CN 117667487A CN 202311676403 A CN202311676403 A CN 202311676403A CN 117667487 A CN117667487 A CN 117667487A
- Authority
- CN
- China
- Prior art keywords
- self
- power supply
- control unit
- recovery
- main control
- 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.)
- Pending
Links
- 238000011084 recovery Methods 0.000 title claims abstract description 146
- 238000004891 communication Methods 0.000 claims abstract description 46
- 238000012545 processing Methods 0.000 claims description 25
- 238000001914 filtration Methods 0.000 claims description 22
- 238000000034 method Methods 0.000 claims description 13
- 239000003990 capacitor Substances 0.000 claims description 11
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 230000011664 signaling Effects 0.000 claims description 5
- 230000001131 transforming effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 239000004065 semiconductor Substances 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1441—Resetting or repowering
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The invention discloses an embedded device and a self-recovery circuit thereof. The self-recovery circuit includes: a self-recovery control unit and a power supply control unit; the power supply control unit is arranged between the power supply and the main control module, and the control end of the power supply control unit is connected with the self-recovery control unit; the self-recovery control unit is also in communication connection with the main control module; the self-recovery control unit is configured to: the communication state between the self-recovery control unit and the main control module is acquired, a first control signal is output based on the communication state, and the power supply control unit is controlled to be turned on or off so as to control the main control module to be electrified or powered off; and after the main control module is powered off, a second control signal is output by delaying for a preset time to control the power supply control unit to be conducted so as to electrify the main control module again. The self-recovery control unit has the characteristics of configurable, forbidden and expandable functions, and has the characteristics of flexibility, reliability and intelligence, so that the fault self-recovery capability of the embedded equipment is effectively enhanced.
Description
Technical Field
The present invention relates to the field of embedded devices, and in particular, to an embedded device and a self-recovery circuit thereof.
Background
An embedded device is a special purpose computer device composed of hardware and software that can operate independently. The software part comprises an operating system and an application program, and the reliability requirements on the system and the program are high. When the system or the application program of the embedded equipment has BUG, the system needs to be restarted so as to restore the equipment to a normal working state.
Embedded devices typically employ watchdog circuitry to monitor the system operating state. When the main control module or the application program crashes, the watchdog circuit can not receive the signal of the main control module, the reset pin of the main control module can be pulled down, and the system can be restarted.
In the prior art, watchdog circuits mainly include the following two forms: the hardware comprises an internal watchdog and an external watchdog; the watchdog module in the main control module is called built-in watchdog. The built-in watchdog needs to be powered on for initialization, can configure overflow time according to requirements, can also realize software disabling, and has the following problems: the built-in watchdog cannot monitor the program started before the initialization of the watchdog is completed. If the program is abnormal before the watchdog initialization is completed, the device operation recovery is realized. The external watchdog starts working when being electrified, and has the following problems that the external watchdog cannot be configured without being needed or configured, and can not stop after being started, and once the program is abnormal, the equipment can be restarted repeatedly.
Disclosure of Invention
The invention provides an embedded equipment self-recovery circuit, which aims to solve the technical problems that an internal watchdog cannot monitor a program started before the initialization of the watchdog is completed, an external watchdog cannot be configured, and the built-in watchdog cannot stop after the initialization is completed.
According to an aspect of the present invention, there is provided an embedded device self-recovery circuit, the embedded device including a power supply and a main control module, the self-recovery circuit including: a self-recovery control unit and a power supply control unit;
the power supply control unit is arranged between the power supply and the main control module, and the control end of the power supply control unit is connected with the self-recovery control unit;
the self-recovery control unit is also in communication connection with the main control module;
the self-recovery control unit is configured to:
acquiring a communication state between the self-recovery control unit and the main control module, outputting a first control signal based on the communication state, and controlling the power supply control unit to be turned on or off so as to control the main control module to be electrified or powered off; the method comprises the steps of,
and after the main control module is powered off, outputting a second control signal in a delay preset time to control the power control unit to be turned on so as to electrify the main control module again.
Optionally, the self-recovery control unit is provided with a reset pin, and the reset pin is used for receiving a self-recovery restart signal sent by the main control module; the self-recovery control unit is configured to: when the self-recovery restarting signal is received, the self-recovery control unit is controlled to restart, and a third control signal is output, wherein the third control signal is used for controlling the power supply control unit to drive the main control module to restart.
Optionally, the power supply control unit includes: the first resistor is connected with the first resistor and the second resistor; the first end of the first switching tube is connected with the power supply, the second end of the first switching tube is connected with the power supply end of the main control module, and the control end of the first switching tube is connected with the first end of the second switching tube through the first resistor; the first end of the first capacitor is connected with the first end of the first switching tube, and the second end of the first capacitor is connected with the control end of the first switching tube; the first end of the second switching tube is connected with the power supply through the second resistor, the second end of the second switching tube is grounded, and the control end of the second switching tube is connected with the self-recovery control unit through the third resistor; the second capacitor and the fourth resistor are connected in parallel to form a bypass component, and the bypass component is arranged between the control end of the second switching tube and the second end of the second switching tube.
Optionally, the first switching tube is a PNP type MOS tube, and the second switching tube is an NPN type triode.
Optionally, the self-recovery circuit further comprises: a voltage processing unit; the input side of the voltage processing unit is connected with the power supply, and the voltage processing unit is provided with at least one power supply output pin; the voltage processing unit is used for filtering and voltage class conversion processing on the power supply voltage output by the power supply so as to output the power supply voltage of at least one voltage class.
Optionally, the voltage processing unit includes: a filtering subunit and a transforming subunit; the filtering subunit comprises a filtering inductor, a first end of the filtering inductor is connected with the power supply, a second end of the filtering inductor is set to be a first power supply output pin, and the first power supply output pin is connected with the input end of the power supply control unit; the transformer subunit comprises: a DC converter, a first filter assembly and a second filter assembly; the first filter component is arranged on the input side of the DC converter; the second filter component is provided with an output side of the DC converter; the input side of the DC converter is connected with the first power supply output pin, the output side of the DC converter is provided with a second power supply output pin, and the second power supply output pin is connected with the power supply end of the self-recovery control unit; the output voltage level of the first power supply output pin is higher than that of the second power supply output pin.
Optionally, the self-recovery control unit, the power supply control unit and the voltage processing unit are integrally arranged on a circuit board, and the circuit board is externally connected with the embedded device.
Optionally, the self-recovery control unit is in communication connection with the main control module based on at least two input/output interfaces.
Optionally, the system further comprises a communication module, wherein the communication module is connected with any one of the self-recovery control unit or the main control module, and the communication module is also connected with a remote terminal device in a communication way;
the communication module is configured to: and acquiring self-recovery data of the self-recovery circuit, forwarding the self-recovery data to the remote terminal equipment, and forwarding system upgrade data sent by the remote terminal equipment to the self-recovery control unit or the main control module.
According to another aspect of the present invention, there is provided an embedded device comprising: the power supply, the main control module and the self-recovery circuit are arranged; the self-recovery circuit is configured to: acquiring a communication state between the self-recovery circuit and the main control module, outputting a first control signal based on the communication state, and controlling the main control module to be electrified or powered off; and after the main control module is powered off, delaying for a preset time to output a second control signal, and controlling the main control module to be powered on again.
According to the technical scheme, the communication state between the self-recovery control unit and the main control module is obtained, and the first control signal is output based on the communication state to control the power supply control unit to be turned on or turned off so as to control the main control module to be electrified or powered off; and after the main control module is powered off, delaying for a preset time to output a second control signal, and controlling the power control unit to be conducted so as to electrify the main control module again. The self-recovery circuit is based on the working state of the independent control chip monitoring main control module, integrates the advantages of the external watchdog and the internal watchdog, has the characteristics of configurable, disabled and expandable functions, has the characteristics of flexibility, reliability and intelligence, effectively strengthens the fault self-recovery capability of embedded equipment, and ensures that the equipment can automatically recover the initial state and restart working when in fault.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an embedded device circuit according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for controlling a self-recovery circuit of an embedded device according to an embodiment of the present invention;
FIG. 3 is a schematic circuit diagram of a self-recovery circuit of an embedded device according to an embodiment of the present invention;
FIG. 4 is a schematic circuit diagram of a filtering subunit provided by an embodiment of the present invention;
FIG. 5 is a schematic circuit diagram of a transformer subunit according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a main control module according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another circuit of an embedded device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic structural diagram of an embedded device circuit according to an embodiment of the present invention; fig. 2 is a flowchart of a control method of a self-recovery circuit of an embedded device according to an embodiment of the present invention. The embodiment is applicable to a use scenario in which when a system or an application program of an embedded device has a BUG, the system needs to be restarted to enable the device to recover to a normal working state, as shown in fig. 1, the embedded device includes a power supply 1 and a main control module 2, a self-recovery circuit is disposed between the power supply 1 and a power supply end VDD of the main control module 2, and the self-recovery circuit is configured to power off and restart the main control module 2 until the main control module 2 recovers to normal working when the system or the application program of the embedded device has the BUG.
Referring to fig. 1, the self-recovery circuit includes: the self-recovery control unit 3 and the power supply control unit 4, the power supply control unit 4 is arranged between the power supply 1 and the main control module 2, and the control end of the power supply control unit 4 is connected with the self-recovery control unit 3; the self-recovery control unit 3 is also in communication connection with the main control module 2; the self-recovery control unit 3 is configured to: the communication state between the self-recovery control unit 3 and the main control module 2 is acquired, a first control signal is output based on the communication state, and the power supply control unit 4 is controlled to be turned on or off so as to control the main control module 2 to be electrified or powered off; and, after the power-off of the main control module 2, outputting a second control signal with a delay preset time to control the power supply control unit4And conducting to electrify the main control module 2 again. The preset time is the interval time between the power-off and restarting actions of the main control module 2. The preset time can be adjusted according to actual needs.
In this application, the first control signal may be a high level signal or a low level signal, and when the self-recovery control unit 3 sets the first control signal to the high level signal, the power control unit 4 is controlled to be turned on, so as to control the main control module 2 to be electrified; when the self-recovery control unit 3 sets the first control signal to be a low level signal, the power supply control unit 4 is controlled to be turned off, and then the main control module 2 is controlled to be powered off.
Specifically, the self-recovery control unit 3 may use a single chip microcomputer (Microcontroller Unit, abbreviated as MCU). The self-recovery control unit 3 may be powered by the power supply 1. In this application, a voltage converter may be provided to perform a voltage conversion process so that the power supply voltage output from the power supply 1 matches the rated operating voltage of the self-recovery control unit 3.
Referring to fig. 2, the control method of the self-recovery circuit of the embedded device of the present application includes the following steps:
s1: and (5) powering up a power supply.
S2: the self-recovery control unit is powered up.
S3: the self-recovery control unit controls the power supply control unit to be conducted so as to control the main control module to be electrified.
S4: judging whether the main control module works normally.
If the main control module works normally, executing step S5; if the working state of the main control module is abnormal, executing step S6.
S5: the embedded device continues to operate.
S6: the self-recovery control unit controls the power supply control unit to be turned off so as to control the main control module to be powered off.
S7: judging whether the power-off time of the main control module reaches the preset time.
If the power-off time reaches the preset time, executing the step S3; otherwise, the process returns to continue step S6.
Specifically, in the process of detecting the working state of the main control module 2, the power supply 1 is firstly connected to power up the self-recovery control unit 3, and at this time, the circuit of the main board and other parts does not work under the action of the power supply control unit 4. After the self-recovery control unit 3 is electrified, normal starting is started, and after starting, the power supply control unit 4 is conducted to control the main control module 2 to be electrified. The main control module 2 is electrified and started, after normal operation, the main control module 2 communicates with the self-recovery control unit 3 through a program which is programmed in advance, the self-recovery control unit 3 receives an instruction, the communication state is normal, a first control signal is set to be a high-level signal, the power supply control unit 4 is controlled to be conducted so as to continuously supply power to the main control module 2, the communication between the self-recovery unit 3 and the main control module 2 needs to be conducted once at intervals, the working state is mutually confirmed, and when the working state is normal, the current working state is maintained. If the working states of the two devices cannot be confirmed, the self-recovery unit 3 receives no communication request of the main control module 2 within a preset communication time period, and judges that the main control module 2 has a problem and cannot work normally, the first control signal is set to be a low-level signal, and the power control unit 4 is controlled to be turned off so as to control the main control module 2 to be powered off. After the main control module 2 is powered off, the self-recovery unit 3 performs power-off timing, and when the power-off time reaches the preset time, the second control signal is set to be a high-level signal to control the power control unit 4 to be turned on so as to enable the main control module 2 to be powered on again. After the main control module 2 is powered on again, the self-recovery control unit 3 continues to detect the communication state with the main control module, and executes the judgment logic until the main control module 2 recovers to the normal working state.
According to the invention, the communication state between the self-recovery control unit and the main control module is obtained, and the first control signal is output based on the communication state to control the power supply control unit to be turned on or turned off so as to control the main control module to be electrified or powered off; and after the main control module is powered off, delaying for a preset time to output a second control signal, and controlling the power control unit to be conducted so as to electrify the main control module again. The self-recovery circuit is based on the working state of the independent control chip monitoring main control module, integrates the advantages of the external watchdog and the internal watchdog, has the characteristics of configurable, disabled and expandable functions, has the characteristics of flexibility, reliability and intelligence, effectively strengthens the fault self-recovery capability of embedded equipment, and ensures that the equipment can automatically recover the initial state and restart working when in fault.
Optionally, fig. 3 is a schematic circuit diagram of an embedded device self-recovery circuit according to an embodiment of the present invention. Fig. 6 is a schematic structural diagram of a main control module according to an embodiment of the present invention. Referring to fig. 3, the self-recovery control unit 3 (MCU) is provided with a reset pin for receiving a self-recovery restart signal transmitted from the main control module; the self-recovery control unit 3 is configured to: when the self-recovery restarting signal is received, the self-recovery control unit 3 is controlled to restart, and a third control signal is output, wherein the third control signal is used for controlling the power supply control unit 4 to drive the main control module 2 to restart.
Referring to fig. 3, the self-recovery control unit 3 is provided with a power supply pin Vcc. Illustratively, the power supply pin Vcc may be used to connect to a 3.3V power supply. As shown in fig. 4 and 5 in combination, the 3.3V power may be supplied from the power supply 1 after the voltage conversion process.
In particular, the reset pin, which may be the reset pin, also referred to as the RST pin, is a component common in many circuits and devices, the primary function of which is reset and initialization. When the self-recovery control unit 3 monitors the working state of the main control module 2, the main control module 2 synchronously monitors the working state of the self-recovery control unit 3, if the self-recovery control unit 3 is abnormal and cannot send a recovery instruction to the main control module 2, the main control module 2 sends a self-recovery restarting signal, at the moment, the self-recovery unit receives the self-recovery restarting signal sent by the main control module 2 through a reset pin, controls the self-recovery control unit 3 to restart, and outputs a third control signal to control the power supply control unit 4 to drive the main control module 2 to restart. By arranging the two-way monitoring of the main control module and the self-recovery circuit, the system operation abnormality caused by the abnormality of the control chip of the self-recovery circuit is avoided, and the working reliability of the self-recovery circuit is improved.
Optionally, the self-recovery circuit further comprises: a voltage processing unit; the input side of the voltage processing unit is connected with the power supply 1, and the voltage processing unit is provided with at least one power supply output pin; the voltage processing unit is used for filtering and voltage class conversion processing on the power supply voltage output by the power supply 1 so as to output the power supply voltage of at least one voltage class.
In the embodiment of the present application, the power supply 1 may be used to output a dc power supply voltage of 10V or more. Typically, the power supply voltage output by the power supply 1 may be a power supply voltage of 12V dc or 24V dc. The voltage processing unit is used for carrying out step-down processing on the power supply voltage output by the power supply 1 so as to match the working voltage requirements of the self-recovery circuit and the main control module 2.
Alternatively, fig. 4 is a schematic circuit diagram of a filtering subunit according to an embodiment of the present invention. Fig. 5 is a schematic circuit diagram of a transformer subunit according to an embodiment of the present invention. Referring to fig. 4 and 5, the voltage processing unit includes a filtering sub-unit and a transforming sub-unit; the filtering subunit comprises a filtering inductor L, a first end of the filtering inductor L is connected with the power supply 1, a second end of the filtering inductor L is set to be a first power supply output pin VDD_OUT1, and the first power supply output pin VDD_OUT1 is connected with an input end of the power supply control unit 4; the transformer subunit comprises: a DC converter 5, a first filter component 61 and a second filter component 62; the first filter element 61 is provided on the input side of the DC converter 5; the second filter assembly 62 is provided with an output side of the DC converter; the input side of the DC converter is connected with a first power supply output pin VDD_OUT1, the output side of the DC converter is set to be a second power supply output pin VDD_OUT2, and the second power supply output pin VDD_OUT2 is connected with a power supply end of the self-recovery control unit 3; the output voltage level of the first power supply output pin is higher than that of the second power supply output pin.
Illustratively, the output voltage of the first power supply output pin may be set to 12V; the output voltage of the second power supply output pin may be set to 3.3V.
Specifically, high-frequency noise and clutter signals are filtered through a filter inductor: because of the high-frequency noise and clutter signals existing in the alternating current power supply, interference can be generated in the circuit, and normal operation of equipment is affected. The filter inductor can suppress these high frequency components. The input end of the power control unit 4 is the first end of the first switching tube Q1, the first power supply output pin VDD_OUT1 is connected with the input end of the power control unit 4, so that the power supply voltage firstly passes through the filtering subunit and then supplies power to the main control module 2 and the circuit through the power control unit 4, and the output voltage is smoother and more stable. The voltage converting subunit is a voltage converting circuit for converting the power supply voltage into 3.3V. The input side of the DC converter is connected to the first power supply output pin vdd_out1 and the second power supply output pin vdd_out2 is connected to the power supply terminal of the self-recovery control unit 3, so that the power supply voltage is converted into a voltage of 3.3V through filtering and the DC converter to supply power to the self-recovery unit 3.
Alternatively, referring to fig. 3, the power supply control unit 4 includes: the first switching tube Q1, the second switching tube Q2, the first resistor R1, the second resistor R2, the third resistor R3, the fourth resistor R4, the first capacitor C1 and the second capacitor C2; the first end of the first switching tube Q1 is connected with a first power supply output pin VDD_OUT1 of the power supply 1, the second end of the first switching tube Q1 is connected with a power supply end VDD of the main control module 2, and the control end of the first switching tube Q1 is connected with the first end of the second switching tube Q2 through a first resistor R1; the first end of the first capacitor C1 is connected with the first end of the first switching tube Q1, and the second end of the first capacitor C1 is connected with the control end of the first switching tube Q1; the first end of the second switching tube Q2 is connected with the power supply 1 through a second resistor R2, the second end of the second switching tube Q2 is grounded, and the control end of the second switching tube Q2 is connected with the self-recovery control unit 3 through a third resistor R3; the second capacitor C2 and the fourth resistor R4 are connected in parallel to form a bypass component, and the bypass component is arranged between the control end of the second switching tube Q2 and the second end of the second switching tube Q2.
Specifically, referring to fig. 3 and 6, the first end S of the first switching tube Q1 is used as an input end of the power control unit 4, connected to the first power supply output pin vdd_out1 of the power supply 1, and the second end D of the first switching tube Q1 is used as an output end of the power control unit 4, connected to the power supply end VDD of the main control module 2, and controls the main control module 2 and other power loads of the embedded device to be powered on or off through on/off of the first switching tube Q1. When the first switching tube Q1 is conducted, the power supply 1 conducts a power supply loop of a power supply end VDD of the main control module 2, and the main control module 2 is electrified; when the first switching tube Q1 is turned off, the power supply circuit of the power supply end VDD of the main control module 2 is disconnected by the power supply source 1, and the main control module 2 is powered off. The on-off of the first switching tube Q1 is controlled by the second switching tube Q2. The control end of the second switching tube Q2 is connected with the self-recovery control unit 3 through a third resistor R3, so that the self-recovery control unit 3 can control the on-off of the first switching tube Q1 by controlling the second switching tube Q2.
Optionally, the first switching tube Q1 is a PNP type MOS tube, and the second switching tube Q2 is an NPN type triode.
It can be understood that the PNP type MOS transistor, which is also called a P-channel MOS transistor, controls on and off of the MOS transistor by controlling the change of the gate voltage of the MOS transistor. An NPN type triode is a key device in an electronic circuit and consists of two N type semiconductors and one P type semiconductor, so that a three-layer structure is formed, two N type semiconductors are arranged on two sides, and the P type semiconductor is arranged in the middle. The on and off of the transistor is controlled by controlling the base voltage Ub of the transistor. In the present application, when the self-recovery control unit 3 outputs a high-level signal, the voltage difference between the base and the emitter of the NPN transistor is greater than the turn-on voltage, the second switching transistor Q2 is turned on, a reverse voltage (i.e., UG is smaller than US) is applied between the gate G and the source S of the PNP transistor, and the first switching transistor Q1 is turned on; when the self-recovery control unit 3 outputs a low-level signal, the voltage between the base electrode and the emitter electrode of the NPN triode is smaller than the conducting voltage, the second switching tube Q2 is disconnected, a forward voltage (UG is larger than US) is applied between the grid electrode G and the source electrode S of the PNP MOS tube, and the first switching tube Q1 is turned off; optionally, the self-recovery control unit 3, the power supply control unit 4 and the voltage processing unit are integrally arranged on a circuit board, and the circuit board is externally connected with the embedded device. Specifically, connection lines may be provided on the circuit board to realize electrical connection between the self-recovery control unit 3, the power supply control unit 4 and the voltage processing unit, so as to form the circuit structures shown in fig. 3 to 5. The self-recovery control unit 3, the power supply control unit 4 and the voltage processing unit are independently integrated, so that the modularization and external connection of the self-recovery circuit are realized, and the use is more flexible and convenient.
Optionally, the self-recovery control unit 3 is communicatively connected to the main control module 2 based on at least two input-output interfaces.
Specifically, referring to fig. 3 and 6, the self-recovery control unit 3 and the main control module 2 are connected by gpio_1 and gpio_2 to perform communication, and by programming, the communication interval duration can be set, which can be long or short, can be single or complex, and can be edited at will according to the requirement, so that the self-recovery unit 3 and the main control module 2 can communicate at intervals, and the working states can be mutually confirmed. By arranging a plurality of communication pins, the expansion performance of communication signals is improved, the bidirectional monitoring between the self-recovery control unit 3 and the main control module 2 is realized, and the reliability of the self-recovery circuit is improved.
Optionally, fig. 7 is a schematic structural diagram of another circuit of an embedded device according to an embodiment of the present invention, and referring to fig. 7, the self-recovery circuit of an embedded device further includes a communication module 7, where the communication module 7 is connected to any one of the self-recovery control unit 3 or the main control module 2, and the communication module 7 is further connected to a remote terminal device 8 in a communication manner; the communication module 7 is configured to: the self-recovery data obtained from the recovery circuit is forwarded to the remote terminal device 8, and the system upgrade data sent by the remote terminal device 8 is forwarded to the self-recovery control unit 3 or the main control module 2.
Specifically, when a system or an application program of the existing embedded device generates a BUG, a technician often needs to run beside the device to restart the device, so that the normal state can be recovered, the pressure on after-sales and maintenance is high, and more importantly, the customer experience is influenced. In this embodiment, the communication module sends the acquired self-recovery data of the self-recovery circuit to the remote terminal device, and after the device with a problem is automatically recovered, remote checking and upgrading of the code can be performed to realize remote maintenance, so that the actual maintenance cost is reduced.
Based on the same inventive concept, an embodiment of the present invention provides an embedded device, including: the self-recovery circuit comprises a power supply 1, a main control module 2 and the self-recovery circuit of the embodiment; the self-recovery circuit is configured to: the communication state between the self-recovery circuit and the main control module 2 is acquired, and a first control signal is output based on the communication state to control the main control module 2 to be electrified or powered off; and after the main control module 2 is powered off, delaying for a preset time to output a second control signal, and controlling the main control module 2 to be powered on again.
It should be noted that the embedded device includes, but is not limited to: a player, a set-top box or a terminal device, which may typically be an emergency broadcast terminal. The device comprises the technical features of a self-healing circuit, has the beneficial effects of the self-healing circuit, and can be referred to as the same point.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. An embedded device self-recovery circuit, the embedded device including a power supply and a main control module, the self-recovery circuit comprising: a self-recovery control unit and a power supply control unit;
the power supply control unit is arranged between the power supply and the main control module, and the control end of the power supply control unit is connected with the self-recovery control unit;
the self-recovery control unit is also in communication connection with the main control module;
the self-recovery control unit is configured to:
acquiring a communication state between the self-recovery control unit and the main control module, outputting a first control signal based on the communication state, and controlling the power supply control unit to be turned on or off so as to control the main control module to be electrified or powered off; the method comprises the steps of,
and after the main control module is powered off, outputting a second control signal in a delay preset time to control the power control unit to be turned on so as to electrify the main control module again.
2. The embedded device self-recovery circuit according to claim 1, wherein the self-recovery control unit is provided with a reset pin, and the reset pin is used for receiving a self-recovery restart signal sent by the main control module;
the self-recovery control unit is configured to: when the self-recovery restarting signal is received, the self-recovery control unit is controlled to restart, and a third control signal is output, wherein the third control signal is used for controlling the power supply control unit to drive the main control module to restart.
3. The embedded device self-healing circuit according to claim 1, wherein the power control unit includes: the first resistor is connected with the first resistor and the second resistor;
the first end of the first switching tube is connected with the power supply, the second end of the first switching tube is connected with the power supply end of the main control module, and the control end of the first switching tube is connected with the first end of the second switching tube through the first resistor;
the first end of the first capacitor is connected with the first end of the first switching tube, and the second end of the first capacitor is connected with the control end of the first switching tube;
the first end of the second switching tube is connected with the power supply through the second resistor, the second end of the second switching tube is grounded, and the control end of the second switching tube is connected with the self-recovery control unit through the third resistor;
the second capacitor and the fourth resistor are connected in parallel to form a bypass component, and the bypass component is arranged between the control end of the second switching tube and the second end of the second switching tube.
4. The embedded device self-recovery circuit of claim 3, wherein the first switching tube is a PNP MOS tube and the second switching tube is an NPN triode.
5. The embedded device self-healing circuit of claim 1, wherein the self-healing circuit further comprises: a voltage processing unit;
the input side of the voltage processing unit is connected with the power supply, and the voltage processing unit is provided with at least one power supply output pin;
the voltage processing unit is used for filtering and voltage class conversion processing on the power supply voltage output by the power supply so as to output the power supply voltage of at least one voltage class.
6. The embedded device self-healing circuit according to claim 5, wherein the voltage processing unit includes: a filtering subunit and a transforming subunit;
the filtering subunit comprises a filtering inductor, a first end of the filtering inductor is connected with the power supply, a second end of the filtering inductor is set to be a first power supply output pin, and the first power supply output pin is connected with the input end of the power supply control unit;
the transformer subunit comprises: a DC converter, a first filter assembly and a second filter assembly;
the first filter component is arranged on the input side of the DC converter;
the second filter component is provided with an output side of the DC converter;
the input side of the DC converter is connected with the first power supply output pin, the output side of the DC converter is provided with a second power supply output pin, and the second power supply output pin is connected with the power supply end of the self-recovery control unit;
the output voltage level of the first power supply output pin is higher than that of the second power supply output pin.
7. The embedded device self-recovery circuit according to claim 5, wherein the self-recovery control unit, the power supply control unit and the voltage processing unit are integrally arranged on a circuit board, and the circuit board is externally connected to the embedded device.
8. The embedded appliance self-healing circuit according to any one of claims 1 to 7, wherein the self-healing control unit is communicatively connected to the main control module based on at least two input-output interfaces.
9. The embedded appliance self-healing circuit according to any one of claims 1 to 7, further comprising a communication module connected to any one of the self-healing control unit or the master control module, the communication module being further communicatively connected to a remote terminal appliance;
the communication module is configured to: and acquiring self-recovery data of the self-recovery circuit, forwarding the self-recovery data to the remote terminal equipment, and forwarding system upgrade data sent by the remote terminal equipment to the self-recovery control unit or the main control module.
10. An embedded device, comprising: a power supply, a main control module, and the self-recovery circuit of any one of claims 1 to 9;
the self-recovery circuit is configured to: acquiring a communication state between the self-recovery circuit and the main control module, outputting a first control signal based on the communication state, and controlling the main control module to be electrified or powered off; and after the main control module is powered off, delaying for a preset time to output a second control signal, and controlling the main control module to be powered on again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311676403.3A CN117667487A (en) | 2023-12-07 | 2023-12-07 | Embedded device and self-recovery circuit thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311676403.3A CN117667487A (en) | 2023-12-07 | 2023-12-07 | Embedded device and self-recovery circuit thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117667487A true CN117667487A (en) | 2024-03-08 |
Family
ID=90082272
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311676403.3A Pending CN117667487A (en) | 2023-12-07 | 2023-12-07 | Embedded device and self-recovery circuit thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117667487A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118158855A (en) * | 2024-05-11 | 2024-06-07 | 珠海市圣昌电子有限公司 | LED power supply with self-recovery quick-response short-circuit protection function |
-
2023
- 2023-12-07 CN CN202311676403.3A patent/CN117667487A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118158855A (en) * | 2024-05-11 | 2024-06-07 | 珠海市圣昌电子有限公司 | LED power supply with self-recovery quick-response short-circuit protection function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN117667487A (en) | Embedded device and self-recovery circuit thereof | |
FI98424C (en) | Sleep state / power source power source and control circuit | |
CN101378267B (en) | Primary and secondary switching device, and switching method using the same | |
US11349383B2 (en) | Fault protection method used in multiphase switching converters with daisy chain configuration | |
CN101609440B (en) | Bus system and method for recovering bus from lock state | |
CN102750206A (en) | Multiple-basic input/ output system (BIOS) circuit and multiple-BIOS switching method | |
CN203788138U (en) | Starting circuit | |
JP2003169471A (en) | Switching power supply unit | |
CN103324545B (en) | Power switch module, voltage generation circuit and power control method | |
CN112306752B (en) | Automatic power-down restarting circuit and corresponding gateway of Internet of things | |
CN111103827B (en) | Server working mode switching device | |
CN204009457U (en) | On/off circuit based on PMU and electronic equipment | |
CN111580442A (en) | Mutual noninterference reset circuit | |
CN110750374A (en) | Watchdog circuit and control method thereof | |
DE102004026383B4 (en) | Motor vehicle with at least one controller controlled by a processor | |
CN107991981B (en) | A kind of service board and electronic equipment | |
CN102591407B (en) | Mainboard | |
CN209784946U (en) | controllable reset circuit based on single chip microcomputer | |
CN100438258C (en) | Circuit and method for control of multi-module power supply synchronization | |
US9599644B2 (en) | Semiconductor device | |
CN202917399U (en) | Apparatus for avoiding relay misoperation in power-on process | |
CN218335365U (en) | Power supply circuit and electronic device | |
CN211956192U (en) | Mutual noninterference reset circuit | |
CN111834983B (en) | Circuit, method and device for preventing false triggering through IO control of SOC (System on chip) | |
CN115097900B (en) | Clock output configuration device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |