Hardware-based after-failure automatic recovery circuit and driving method
By designing a hardware-based automatic recovery circuit after failure, and using discharge modules, delay modules and restart switch modules to achieve fault diagnosis and automatic restart, the problem of manual restart after failure in the existing technology is solved, reducing costs and development cycles, and improving product safety and reliability.
Patent Information
- Application Number
- CN202510006122.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-03-18
AI Technical Summary
现有技术中,车灯控制电路在发生故障后需要手动重启,导致用户体验降低,并且软件控制方案成本高、开发周期长。
Design a hardware-based automatic recovery circuit after failure, including a driver module, a self-recovery circuit module, a power supply and LED load. The self-recovery circuit module includes a discharge module, a delay module and a restart switch module, through which fault diagnosis, discharge reset and automatic restart of the drive module are realized.
The function of automatically recovering the circuit after a failure is realized, reducing development costs, simplifying circuit design, shortening development cycles, and improving product safety and reliability.
Smart Images

Figure CN119653541A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle light control, and in particular to a hardware-based automatic recovery circuit and driving method after failure. Background Art
[0002] In the circuit work of car light control, various failures may be encountered, such as failure of LED extinguishing due to collision and circuit breaking, failure of product intermittent performance due to poor connector contact, failure of product function loss due to wiring harness detachment, etc. From electronic components themselves to environmental factors, assembly factors and external force damage, etc., all may lead to product function loss. These common failures are based on the protection of the entire system. The protection circuit is closed when it fails to prevent fire, and the power supply is protected from burning. In other words, one of the ideas of circuit design is to consider the reliability of the entire system, and to shut down the function to protect the work of the entire system by diagnosing the fault, thereby reducing safety hazards. From another perspective, shutting down the function will reduce the user experience of the product. In the automotive field, shutting down the function itself is also contrary to the requirements of functional safety. For example, turning off the light may bring new safety hazards. Therefore, we need to find a better solution. Can we diagnose the fault and shut down the function after the fault occurs to avoid system-level safety issues, and then monitor the real-time situation of the fault. If the fault persists, maintain the status quo. If the fault is eliminated, automatically restore the product function through circuit design. Scenario example: If the internal connector of a car headlight has poor contact, the light will go out and the circuit will be locked after the fault, requiring manual re-opening of the light to restore function. However, if there is a self-recovery circuit, the light can be restored automatically within this switching cycle, bringing significant safety protection.
[0003] In order to achieve the effect of the above-mentioned self-recovery circuit, a common solution is to use software for core control, record product status through registers, and set the software code to restart under corresponding conditions. This solution requires the use of a processor, which is costly and involves a long software code development cycle.
[0004] Therefore, it is necessary to design a hardware-based automatic recovery circuit and driving method after failure to reduce development costs. Summary of the invention
[0005] The purpose of the present invention is to provide a hardware-based automatic recovery circuit and driving method after failure, aiming to solve the problems of high development cost and long software code development cycle in the prior art.
[0006] On the one hand, the present application provides a hardware-based automatic recovery circuit after failure, the circuit includes a driving module, a self-recovery circuit module, a power supply and an LED load, the self-recovery circuit module includes a discharge module, a delay module and a restart switch module; the first input end of the driving module is externally connected to a power supply, and the power supply is used to provide a power supply signal for the driving module; the first output end of the driving module is electrically connected to the delay module and the discharge module, and is used to send a fault diagnosis signal to the discharge module and the delay module; the discharge module is used to discharge the fault diagnosis signal so that the fault diagnosis signal reaches a preset threshold value for resetting the fault bit, thereby making the fault diagnosis flag bit in the driving module in a fault-free state; the delay module is used to delay the issuance of an enable start signal of the restart switch module by a preset time based on the received fault diagnosis signal; the output end of the delay module is electrically connected to the input end of the restart switch module, and the output end of the restart switch module is electrically connected to the second input end of the driving module, and the restart switch module is used to send a restart signal to the driving module based on the enable start signal; the driving module is used to restart the work based on the restart signal and drive the LED load.
[0007] Furthermore, the driving module includes a driving chip U1, a first transistor Q1, a seventeenth resistor R17, a second resistor R2, a twenty-fifth capacitor C25, a sixth capacitor C6 and a fourth resistor R4; wherein, the base of the first transistor Q1 is connected to the BASE pin of the driving chip U1 through the seventeenth resistor R17, one end of the second resistor R2 is connected to the SC pin of the driving chip U1, the other end of the second resistor R2 is connected to the collector of the first transistor Q1 and the LED load, one end of the twenty-fifth capacitor C25 is connected to the FB pin of the driving chip U1, the other end of the twenty-fifth capacitor C25 is grounded, one end of the sixth capacitor C6 is connected to the seventeenth resistor R17, and the other end is grounded, and one end of the fourth resistor R4 is connected to the FB pin of the driving chip U1, and the other end is grounded.
[0008] Furthermore, the discharge module integrates a twenty-eighth capacitor C28 and a twenty-fifth resistor R25; wherein, one end of the twenty-eighth capacitor C28 is connected to the FLTS pin of the driving chip U1, and the other end of the twenty-eighth capacitor C28 is grounded, one end of the twenty-fifth resistor R25 is connected to the FLTS pin of the driving chip U1, and the other end of the twenty-fifth resistor R25 is grounded.
[0009] Furthermore, the delay module integrates a twenty-fourth diode D24, a fifteenth resistor R15, a twenty-third resistor R23, a fifth capacitor C5 and a fourteenth resistor R14; wherein, the anode of the twenty-fourth diode D24 receives the fault diagnosis signal sent by the driver chip U1FLTS pin, the cathode of the twenty-fourth diode D24 is connected to one end of the fifteenth resistor R15, the other end of the fifteenth resistor R15 is connected to one end of the twenty-third resistor R23, the other end of the twenty-third resistor R23 is connected to one end of the fourteenth resistor R14, the other end of the fourteenth resistor R14 is grounded, one end of the fifth capacitor C5 is connected between the fifteenth resistor R15 and the twenty-third resistor R23, and the other end is grounded.
[0010] Furthermore, the restart switch module integrates a second capacitor C2, a ninth transistor Q9 and a first resistor R1; wherein, one end of the second capacitor C2 is connected to the PWM pin of the driving chip U1, and the other end is grounded, the collector of the ninth transistor Q9 is connected to the PWM pin of the driving chip U1, the emitter of the ninth transistor Q9 is grounded, the base of the ninth transistor Q9 is connected to the delay module, one end of the first resistor R1 is connected to the collector of the ninth transistor Q9, and the other end is connected to the VS pin of the driving chip U1.
[0011] Furthermore, the fault diagnosis signal is a low level signal when there is no fault, and is a high level signal when there is a fault.
[0012] Furthermore, the driving module is also used to stop sending a lighting signal to the LED load after a fault diagnosis signal is obtained.
[0013] Furthermore, the restart switch module is also used to restart the driving module when sending a high-level signal to the driving module, and shut down the driving module when sending a low-level signal to the driving module, thereby achieving the effect of restarting the driving module by switching the high and low states of the restart signal.
[0014] Furthermore, the driving module is also used to restart the operation of the driving module based on the restart signal, and drive the LED load to light up after no new fault diagnosis signal is obtained.
[0015] In the second aspect, the present application provides a method for driving a hardware-based automatic recovery circuit after failure, the method being used to drive the above-mentioned hardware-based automatic recovery circuit after failure, the method comprising: S1: acquiring a fault diagnosis signal through a driving module, and when the fault diagnosis signal is acquired, the driving module stops working and sends the fault diagnosis signal to a discharge module and a delay module; S2: discharging the fault diagnosis signal through the discharge module so that the fault diagnosis signal reaches a preset threshold for resetting the fault bit, so that the fault diagnosis flag bit in the driving module is in a fault-free state; S3: delaying the issuance of an enable start signal of a control restart switch module by a preset time based on the received fault diagnosis signal through the delay module; S4: using the restart switch module to send a restart signal to the driving module based on the enable start signal; S5: the driving module restarts based on the restart signal, and drives the LED load to light up when no new fault diagnosis signal is acquired; S6: when the driving module acquires a new fault diagnosis signal, go to step S1.
[0016] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the above-mentioned hardware-based post-failure automatic recovery circuit driving method.
[0017] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the above-mentioned hardware-based post-failure automatic recovery circuit driving method.
[0018] The beneficial effects of the present invention are: The embodiment of the present application provides a hardware-based automatic recovery circuit after failure and a driving method, the circuit includes a driving module, a self-recovery circuit module, a power supply and an LED load, the self-recovery circuit module includes a discharge module, a delay module and a restart switch module; the first input end of the driving module is externally connected to a power supply, and the power supply is used to provide a power supply signal for the driving module; the first output end of the driving module is electrically connected to the delay module and the discharge module, and is used to send a fault diagnosis signal to the discharge module and the delay module; the discharge module is used to discharge the fault diagnosis signal so that the fault diagnosis signal reaches a preset threshold value for resetting the fault bit, thereby making the fault diagnosis flag bit in the driving module in a fault-free state; the delay module is used to delay the sending of an enable start signal of the restart switch module by a preset time based on the received fault diagnosis signal; the output end of the delay module is electrically connected to the input end of the restart switch module, and the output end of the restart switch module is electrically connected to the second input end of the driving module, and the restart switch module is used to send a restart signal to the driving module based on the enable start signal; the driving module is used to restart the work based on the restart signal and drive the LED load. The fault diagnosis signal and the restart signal are balanced through the self-recovery circuit module, which perfectly utilizes the pure hardware circuit to achieve the effect of automatic recovery after failure. The development cost is low, the modular circuit application is simple, the development cycle is short, and it has great technical advantages. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0020] Figure 1 It is a schematic diagram of a hardware-based automatic recovery circuit structure after failure provided in Example 1 of the present invention.
[0021] Figure 2 This is a system circuit topology diagram of a practical application of a hardware-based automatic recovery circuit after failure provided by Example 1 of the present invention.
[0022] Figure 3 This is a flow chart of a method for automatically recovering a circuit after failure based on hardware provided in Embodiment 2 of the present invention.
[0023] Figure 4 This is a partial block diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0024] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations as sequential processes, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0025] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0026] The present invention will now be described in detail with reference to the accompanying drawings. This figure is a simplified schematic diagram, which only illustrates the basic structure of the present invention in a schematic manner, and therefore only shows the components related to the present invention.
[0027] Example 1 In order to facilitate subsequent understanding, the overall inventive concept of this application is explained here: the technical solution provided by the present invention is a hardware-based automatic recovery circuit after failure. When a product failure occurs, such as an open circuit of an LED load, the driver module will send a fault diagnosis signal, and the self-recovery circuit module can start the restart switch module after receiving the fault diagnosis signal. The restart switch module is responsible for controlling the restart of the driver module, which specifically includes two steps: closing the driver module and reopening the driver module. It itself only needs to give the driver module a restart signal after receiving the instruction. The core design of the self-recovery circuit lies in the innovative discharge module and delay module. The successful operation of the entire system requires that the fault diagnosis signal has been reset when the driver restarts during the self-recovery action. Otherwise, after the restart, the system will think that the fault still exists and cause the product to remain in a failed state. The discharge module and the delay module provide a time difference through these two modules. First, the discharge module is used to quickly discharge the fault diagnosis signal to reach the threshold of resetting the fault bit as soon as possible. At this time, the fault diagnosis signal has acted on the restart switch module to enable the driver module to turn off. We then use the delay module to delay the enable signal for a period of time. Finally, when the restart signal is sent to the driver module after the delay, the fault diagnosis flag in the driver module is already in a fault-free state, and the driver module can restart and light up the LED load. The fault diagnosis signal and the restart signal are balanced through the self-recovery circuit module, and the pure hardware circuit is perfectly used to achieve the effect of automatic recovery after failure. It has low cost, simple modular circuit application, short development cycle, and good technical advantages.
[0028] The specific implementation is as follows: like Figure 1 As shown, it is a schematic diagram of a hardware-based automatic recovery circuit structure after failure provided by this embodiment.
[0029] As an example, the circuit includes a driving module 1, a self-recovering circuit module 2, a power supply 3 and an LED load 4, wherein the self-recovering circuit module 2 includes a discharge module 200, a delay module 210 and a restart switch module 220; the first input end of the driving module 1 is externally connected to a power supply 3, and the power supply 3 is used to provide a power supply signal for the driving module 1; the first output end of the driving module 1 is electrically connected to the delay module 210 and the discharge module 200, and is used to send a fault diagnosis signal to the discharge module 200 and the delay module 210; the discharge module 200 is used to discharge the fault diagnosis signal so that the fault diagnosis signal reaches a reset fault state. The preset threshold of the fault position is set, so that the fault diagnosis flag in the driving module 1 is in a fault-free state; the delay module 210 is used to delay the sending of the enable start signal of the control restart switch module 220 by a preset time based on the received fault diagnosis signal; the output end of the delay module 210 is electrically connected to the input end of the restart switch module 220, and the output end of the restart switch module 220 is electrically connected to the second input end of the driving module 1, and the restart switch module 220 is used to send a restart signal to the driving module 1 based on the enable start signal; the driving module 1 is used to restart the work and drive the LED load 4 based on the restart signal. Among them, the preset threshold can be 1.15V, and the preset time can be set to 26ms. It should be noted that the specific values of the preset threshold and the preset time are not limited here, and relevant technical personnel can change their values based on actual needs.
[0030] In some feasible embodiments, combined with Figure 2 As shown, the driving module 1 includes a driving chip U1, a first transistor Q1, a seventeenth resistor R17, a second resistor R2, a twenty-fifth capacitor C25, a sixth capacitor C6 and a fourth resistor R4; wherein, the base of the first transistor Q1 is connected to the BASE pin of the driving chip U1 through the seventeenth resistor R17, one end of the second resistor R2 is connected to the SC pin of the driving chip U1, the other end of the second resistor R2 is connected to the collector of the first transistor Q1 and the LED load, one end of the twenty-fifth capacitor C25 is connected to the FB pin of the driving chip U1, the other end of the twenty-fifth capacitor C25 is grounded, one end of the sixth capacitor C6 is connected to the seventeenth resistor R17, and the other end is grounded, and one end of the fourth resistor R4 is connected to the FB pin of the driving chip U1, and the other end is grounded.
[0031] In some possible implementations, combining Figure 2As shown, the discharge module 200 integrates a twenty-eighth capacitor C28 and a twenty-fifth resistor R25; wherein, one end of the twenty-eighth capacitor C28 is connected to the FLTS pin of the driving chip U1, and the other end of the twenty-eighth capacitor C28 is grounded, one end of the twenty-fifth resistor R25 is connected to the FLTS pin of the driving chip U1, and the other end of the twenty-fifth resistor R25 is grounded.
[0032] In some possible implementations, combining Figure 2 As shown, the delay module 210 integrates a twenty-fourth diode D24, a fifteenth resistor R15, a twenty-third resistor R23, a fifth capacitor C5 and a fourteenth resistor R14; wherein, the anode of the twenty-fourth diode D24 receives the fault diagnosis signal sent by the driver chip U1FLTS pin, the cathode of the twenty-fourth diode D24 is connected to one end of the fifteenth resistor R15, the other end of the fifteenth resistor R15 is connected to one end of the twenty-third resistor R23, the other end of the twenty-third resistor R23 is connected to one end of the fourteenth resistor R14, the other end of the fourteenth resistor R14 is grounded, one end of the fifth capacitor C5 is connected between the fifteenth resistor R15 and the twenty-third resistor R23, and the other end is grounded.
[0033] In some feasible embodiments, combined with Figure 2 As shown, the restart switch module 220 integrates a second capacitor C2, a ninth transistor Q9 and a first resistor R1; wherein, one end of the second capacitor C2 is connected to the PWM pin of the driving chip U1, and the other end is grounded, the collector of the ninth transistor Q9 is connected to the PWM pin of the driving chip U1, the emitter of the ninth transistor Q9 is grounded, the base of the ninth transistor Q9 is connected to the delay module, and one end of the first resistor R1 is connected to the collector of the ninth transistor Q9, and the other end is connected to the VS pin of the driving chip U1.
[0034] In some feasible implementations, the fault diagnosis signal is a low level signal when there is no fault, and is a high level signal when there is a fault. It should be noted that the level signal sent by the fault diagnosis signal is not limited here. Specifically, the fault diagnosis signal can be a high level signal when there is no fault, and can be a low level signal when there is a fault.
[0035] In some feasible implementations, the driving module 1 is further configured to stop sending a lighting signal to the LED load after a fault diagnosis signal is acquired.
[0036] In some feasible implementations, the restart switch module 220 is also used to restart the driving module 1 when sending a high-level signal to the driving module 1, and shut down the driving module 1 when sending a low-level signal to the driving module 1, thereby achieving the effect of restarting the driving module 1 by switching the high and low states of the restart signal.
[0037] In some feasible implementation modes, the driving module 1 is further used to restart the operation of the driving module based on the restart signal, and drive the LED load to light up after no new fault diagnosis signal is obtained.
[0038] Specifically, the working principle of the hardware-based automatic recovery circuit after failure is as follows: Under normal circumstances, the driver module is powered by a 12V power supply, and the driver module lights up the LED load. At this time, the self-recovery circuit module does not receive a fault diagnosis signal, the FLTS pin is at a low level, the transistor Q9 is in a closed state, and the PWM pin is pulled up through the resistor R1 to maintain a high level. The driver chip works normally, that is, there is no restart signal, which is equivalent to the self-recovery circuit module being in standby state at this time.
[0039] When a product fails, such as the LED load is open due to poor contact, and the LED load is partially connected to another PCB board through a connector, a loose connector will cause the entire LED load to be open, then the driver module will send a fault diagnosis signal, and the driver chip will pull the FLTS pin up to 5V. This level is limited by resistors R23 and R14 to open the transistor Q9, then the collector and emitter of the transistor are turned on, the PWM pin is pulled down to 0V, and the chip is automatically turned off. After the chip is turned off, the FLTS pin is also pulled down to 0V. At the same time, the 5V level charges the capacitor C5 through resistor R15, and after charging, it is discharged through resistors R23 and R14. Due to the presence of diode D24, the level of the transistor base will not be reversely discharged to the FLTS pin. The RC value selection in this case corresponds to a charge and discharge time of about 26ms; and as the chip is turned off, the 5V level on the FLTS pin is gradually discharged through resistor R25. The critical point of FLTS in this case is 1.15V, When the FLTS pin is less than 1.15V, the driver chip believes that the fault has been eliminated. The resistor value in this case corresponds to the discharge time of the FLTS pin of about 2ms. The above values ensure that the delay circuit time of 26ms is greater than the discharge module time of 2ms (the values of the general working state at room temperature are shown here, and the condition can still be met after considering various worst working conditions). Therefore, when the chip is turned off, the FLTS pin is discharged, and the base of the transistor Q9 is discharged, the transistor Q9 is turned off, and the resistor R1 pulls the PWM pin up to 11.3V (battery 12V, minus 0.7V of the anti-reverse diode), and the chip automatically restarts. Because the FLTS pin has been discharged to below 1.15V, that is, the fault signal has been eliminated, the driver chip outputs a lighting signal to the LED load. Assuming that the poor contact short circuit of the LED load has been repaired at this time, the LED load can be lit normally. There is no manual operation of reconnecting the battery during the whole process, and the circuit itself completes the self-recovery after failure. The above analysis only analyzes the workflow of one cycle. If the LED load does not eliminate the fault in the first cycle, the failure is still found after the chip restarts and outputs the lighting signal. At this time, FLTS will be pulled high again, and the circuit will repeat the above steps until the failure is eliminated and the circuit completes self-recovery. This circuit that automatically recovers according to the failure state meets the expectations of the invention and provides great protection for the safety and reliability of the product.
[0040] In the above embodiment, a self-recovery circuit module is set up, based on the joint action of the discharge module and the delay module therein, the fault diagnosis signal and the restart signal are balanced through the self-recovery circuit module, and the effect of automatic recovery after failure is perfectly achieved by using pure hardware circuits. The cost is low, the modular circuit is simple to apply, the development cycle is short, and there are specific excellent technical advantages.
[0041] It is worth mentioning that all modules involved in this embodiment are logical units. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.
[0042] Example 2 See also Figure 3 , is a flow chart of a hardware-based post-failure automatic recovery circuit driving method provided in this embodiment.
[0043] As an example, the method is used to drive the above-mentioned circuit for automatic recovery after failure, and the method includes: S1: Acquire a fault diagnosis signal through a driving module. After acquiring the fault diagnosis signal, the driving module stops working and sends the fault diagnosis signal to a discharge module and a delay module.
[0044] S2: discharging the fault diagnosis signal through a discharge module so that the fault diagnosis signal reaches a preset threshold value for resetting the fault bit, and the fault diagnosis flag bit in the driving module is in a state of no fault.
[0045] S3: Delaying the sending of the enable signal of the restart switch module by a preset time based on the received fault diagnosis signal through the delay module.
[0046] S4: Using the restart switch module to send a restart signal to the driving module based on the enable start signal.
[0047] S5: The driving module restarts the operation based on the restart signal, and drives the LED load to light up when no new fault diagnosis signal is obtained.
[0048] S6: When the driving module obtains a new fault diagnosis signal, go to step S1.
[0049] It is not difficult to find that this embodiment is a method embodiment corresponding to the first embodiment, and this embodiment can be implemented in conjunction with the first embodiment. The relevant technical details mentioned in the first embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the first embodiment.
[0050] Example 3 See also Figure 4An embodiment of the present invention further provides an electronic device, comprising: a memory and a processor; the memory stores at least one program instruction; the processor implements the hardware-based post-failure automatic recovery circuit driving method provided in Example 2 by loading and executing the at least one program instruction.
[0051] The memory 702 and the processor 701 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 701 and the memory 702 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 701 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 701.
[0052] The processor 701 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 702 can be used to store data used by the processor 701 when performing operations.
[0053] Example 4 The embodiment of the present invention further provides a storage medium, on which a hardware-based automatic recovery circuit driving method after failure is stored, and when the hardware-based automatic recovery circuit driving program after failure is executed, the steps of the hardware-based automatic recovery circuit driving method after failure as described above are implemented. Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be repeated here one by one.
[0054] The above is only an embodiment of the present invention. The common sense such as the known specific structure and characteristics in the scheme is not described in detail here. The ordinary technicians in the relevant field know all the common technical knowledge in the technical field of the invention before the application date or priority date, can know all the existing technologies in the field, and have the ability to apply the conventional experimental means before that date. The ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the scope of protection of the present invention, which will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.
Claims
1. A hardware-based automatic recovery circuit after failure, characterized in that: The circuit includes a driving module, a self-recovery circuit module, a power supply and an LED load, wherein the self-recovery circuit module includes a discharge module, a delay module and a restart switch module; The first input terminal of the driving module is externally connected to a power supply, and the power supply is used to provide a power supply signal for the driving module; The first output end of the driving module is electrically connected to the delay module and the discharge module, and is used to send a fault diagnosis signal to the discharge module and the delay module; The discharge module is used to discharge the fault diagnosis signal so that the fault diagnosis signal reaches a preset threshold value for resetting the fault bit, thereby making the fault diagnosis flag bit in the driving module in a fault-free state; The delay module is used to delay the sending of the enable signal of the control restart switch module by a preset time based on the received fault diagnosis signal; The output end of the delay module is electrically connected to the input end of the restart switch module, the output end of the restart switch module is electrically connected to the second input end of the driving module, and the restart switch module is used to send a restart signal to the driving module based on the enable start signal; The driving module is used to restart the operation and drive the LED load based on the restart signal.
2. The hardware-based automatic recovery circuit after failure according to claim 1, characterized in that: The driving module includes a driving chip U1, a first transistor Q1, a seventeenth resistor R17, a second resistor R2, a twenty-fifth capacitor C25, a sixth capacitor C6 and a fourth resistor R4; Among them, the base of the first transistor Q1 is connected to the BASE pin of the driving chip U1 through the seventeenth resistor R17, one end of the second resistor R2 is connected to the SC pin of the driving chip U1, and the other end of the second resistor R2 is connected to the collector of the first transistor Q1 and the LED load, one end of the twenty-fifth capacitor C25 is connected to the FB pin of the driving chip U1, and the other end of the twenty-fifth capacitor C25 is grounded, one end of the sixth capacitor C6 is connected to the seventeenth resistor R17, and the other end is grounded, and one end of the fourth resistor R4 is connected to the FB pin of the driving chip U1, and the other end is grounded.
3. The hardware-based automatic recovery circuit after failure according to claim 2, characterized in that: The discharge module is integrated with a twenty-eighth capacitor C28 and a twenty-fifth resistor R25; Among them, one end of the 28th capacitor C28 is connected to the FLTS pin of the driving chip U1, and the other end of the 28th capacitor C28 is grounded. One end of the 25th resistor R25 is connected to the FLTS pin of the driving chip U1, and the other end of the 25th resistor R25 is grounded.
4. The hardware-based automatic recovery circuit after failure according to claim 2, characterized in that: The delay module integrates a twenty-fourth diode D24, a fifteenth resistor R15, a twenty-third resistor R23, a fifth capacitor C5 and a fourteenth resistor R14; Among them, the anode of the twenty-fourth diode D24 receives the fault diagnosis signal sent by the FLTS pin of the driving chip U1, the cathode of the twenty-fourth diode D24 is connected to one end of the fifteenth resistor R15, the other end of the fifteenth resistor R15 is connected to one end of the twenty-third resistor R23, the other end of the twenty-third resistor R23 is connected to one end of the fourteenth resistor R14, the other end of the fourteenth resistor R14 is grounded, one end of the fifth capacitor C5 is connected between the fifteenth resistor R15 and the twenty-third resistor R23, and the other end is grounded.
5. The hardware-based automatic recovery circuit after failure according to claim 2, characterized in that: The restart switch module integrates a second capacitor C2, a ninth transistor Q9 and a first resistor R1; Among them, one end of the second capacitor C2 is connected to the PWM pin of the driving chip U1, and the other end is grounded, the collector of the ninth transistor Q9 is connected to the PWM pin of the driving chip U1, the emitter of the ninth transistor Q9 is grounded, the base of the ninth transistor Q9 is connected to the delay module, and one end of the first resistor R1 is connected to the collector of the ninth transistor Q9, and the other end is connected to the VS pin of the driving chip U1.
6. The hardware-based automatic recovery circuit after failure according to claim 1, characterized in that: The fault diagnosis signal is a low level signal when there is no fault, and is a high level signal when there is a fault.
7. The hardware-based automatic recovery circuit after failure according to claim 1, characterized in that: The driving module is also used to stop sending a lighting signal to the LED load after a fault diagnosis signal is obtained.
8. The hardware-based automatic recovery circuit after failure according to claim 1, characterized in that: The restart switch module is also used to restart the driving module when sending a high-level signal to the driving module, and shut down the driving module when sending a low-level signal to the driving module. The effect of restarting the driving module is achieved by switching the high and low states of the restart signal.
9. The hardware-based automatic recovery circuit after failure according to claim 1, characterized in that: The driving module is further configured to restart the operation of the driving module based on the restart signal, and drive the LED load to light up after no new fault diagnosis signal is obtained.
10. A method for driving a circuit based on hardware-based automatic recovery after failure, characterized in that: The method is used to drive the hardware-based automatic recovery circuit after failure according to any one of claims 1 to 9, and the method comprises: S1: Acquire a fault diagnosis signal through a driving module. After acquiring the fault diagnosis signal, the driving module stops working and sends the fault diagnosis signal to a discharge module and a delay module; S2: discharging the fault diagnosis signal through a discharge module so that the fault diagnosis signal reaches a preset threshold value for resetting the fault bit, so that the fault diagnosis flag bit in the driving module is in a state of no fault; S3: delaying the sending of the enable signal of the control restart switch module by a preset time based on the received fault diagnosis signal through the delay module; S4: using the restart switch module to send a restart signal to the driving module based on the enable start signal; S5: the driving module restarts the operation based on the restart signal, and drives the LED load to light up when no new fault diagnosis signal is obtained; S6: When the driving module obtains a new fault diagnosis signal, go to step S1.