Power failure fault processing circuit and processing method
Through multi-stage detection and supercapacitor boost output circuit, the problem of low accuracy of power-down detection in the existing technology is solved, and more reliable power-down fault handling is achieved, ensuring accurate reporting and storage of events is achieved, and the circuit is extended. Service life.
Patent Information
- Application Number
- CN202411442869.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2024-11-15
AI Technical Summary
In the prior art, the accuracy of power-down detection is low, and false alarms and missed reports are prone to occur. Especially in the case of electromagnetic environment difference and power supply voltage fluctuations, it is impossible to effectively monitor and record power-down fault events of communication equipment.
A power-down fault handling circuit is designed, including a multi-stage power-down detection circuit and an ultra-capacitor boost output circuit. By performing multi-stage detection of the external power supply voltage, it determines whether the power is lost, and after receiving the secondary power-down signal, it is Output supercapacitance voltage to ensure accurate reporting and processing of power-down events. The processor turns off the supercapacitance boost circuit after receiving the reply frame within the preset time interval, saving power and extending service life.
Improve the reliability of power-down fault handling, avoid false alarms and missed reports, ensure effective reporting and storage of power-down events, extend the usage time of the ultra-capacitance boost circuit, and reduce power consumption and other circuits. Shock.
Smart Images

Figure CN118972270A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a power failure fault processing circuit and a processing method. Background Art
[0002] With the continuous advancement of the intelligence and big data of the Internet of Things, this has brought huge challenges to the management and operation of physical equipment. As an important channel for data transmission networks, the operation of communication equipment needs to be monitored, tracked, and managed. When the communication equipment loses power, not only the operation status of the communication equipment is not monitored, but also the operation status of other devices that interact with the communication equipment cannot be effectively monitored. Therefore, the accuracy and success rate of equipment power failure reporting cannot be ignored.
[0003] At present, the mainstream common power-off detection method is to directly connect the detection signal to the processing sampling interface after a simple voltage division detection of the power supply voltage. This detection method is easily interfered by the outside world, especially in the case of poor electromagnetic environment and fluctuation of power supply voltage, the interference is more serious.
[0004] The current power failure detection scheme lacks the reporting and processing of fault events after a power failure occurs. In the operation and maintenance of communication equipment, the retention of power failure fault records of the equipment is an important indicator. Communication equipment needs to store information recording power failure events locally, and also needs to upload relevant fault event information to the data terminal of the communication equipment. Due to the requirement of data integrity, when reporting power failure events on communication equipment, it is necessary to avoid underreporting to ensure the effectiveness of power failure event reporting. Summary of the invention
[0005] Therefore, the technical problem to be solved by the present invention is to solve the problem of low accuracy of power failure detection in the prior art, thereby providing a power failure fault processing circuit and processing method.
[0006] In order to achieve the above object, the present invention provides the following technical solutions: In the first aspect, the present invention provides a power-off fault processing circuit, comprising: a power-off detection circuit and an over-capacity boost output circuit, wherein the first end of the power-off detection circuit inputs an external power supply voltage, the second end of the power-off detection circuit is connected to the first end of the over-capacity boost output circuit, and the power-off detection circuit is used to determine whether the external power supply is powered off after performing multi-level detection on the external power supply voltage; the second end of the over-capacity boost output circuit inputs an over-capacity voltage; when the power-off detection circuit determines that the external power supply is powered off, the power-off detection circuit outputs a secondary power-off signal, and the over-capacity boost output circuit boosts the over-capacity voltage and outputs it.
[0007] The power failure fault processing circuit provided by the present invention determines whether the external power supply is powered off after performing multi-level detection on the external power supply voltage, thereby avoiding false alarm and missed alarm of the power failure event when the external power supply fluctuates, and improving the reliability of the power failure fault processing circuit.
[0008] In an optional embodiment, the power-off detection circuit includes: a primary power-off detection unit and a secondary power-off detection unit, wherein the first end of the primary power-off detection unit inputs an external power supply voltage, the second end of the primary power-off detection unit is connected to the first end of the secondary power-off detection unit, and the primary power-off detection unit is used to output a primary power-off signal when the external power supply voltage drops to a first threshold value; the second end of the secondary power-off detection unit is connected to the first end of the over-capacity boost output circuit, and the secondary power-off detection unit is used to compare the voltage of the primary power-off signal with the size of the internal threshold voltage, and output the secondary power-off signal when the voltage of the primary power-off signal is less than the internal threshold voltage.
[0009] In an optional embodiment, the over-capacity boost output circuit includes: a first switch unit, a capacitor module and a control unit, wherein the control end of the first switch unit is connected to the second end of the power-off detection circuit, the first end of the first switch unit is connected to the first end of the control unit, and the first switch unit is used to shut down based on a secondary power-off signal; the first end of the capacitor module inputs the over-capacity voltage, and the second end of the capacitor module is connected to the second end of the control unit; the third end of the control unit outputs the boosted over-capacity voltage; when the first switch unit is turned off, the control unit boosts the over-capacity voltage and outputs it.
[0010] In an optional embodiment, the power-off fault handling circuit also includes: a processor and a power output control circuit, the first end of the processor is connected to the second end of the power-off detection circuit, and the second end of the processor is connected to the third end of the power-off detection circuit; the first end of the power output control circuit is connected to the third end of the over-capacity boost output circuit, the second end of the power output control circuit is connected to the third end of the processor, and the power output control circuit is used to switch the on-off state based on the power control signal of the processor; the fourth end of the processor is connected to the main station for communication.
[0011] The power-off fault processing circuit provided by the present invention has a processor that can generate a power-off event according to a secondary power-off signal and report it to a main station, and receive a reply frame returned by the main station within a preset time interval. When the reply frame is received within the first time interval, the output of the over-capacity boost circuit is turned off, thereby saving unnecessary power consumption, extending the use time of the over-capacity boost circuit, indirectly increasing the service life of the product, and reducing the impact on the power consumption requirements and other circuits when power is restored.
[0012] In an optional embodiment, the power output control circuit includes: a second switch unit and a third switch unit, wherein the control end of the second switch unit is connected to the third end of the processor, the first end of the second switch unit is connected to the control end of the third switch unit, and the second switch unit is used to shut down based on the power control signal of the processor; the first end of the third switch unit is connected to the third end of the over-capacity boost output circuit, and when the second switch unit is turned off, the third switch unit is turned off to shut down the output of the over-capacity boost output circuit.
[0013] In an optional embodiment, the power-off fault handling circuit also includes: a communication module, a first end of the communication module is connected to the fourth end of the processor, a second end of the communication module is connected to the main station, and the communication module is used to transmit power-off event information and reply frames between the processor and the main station.
[0014] In an optional implementation, the power failure fault processing circuit further includes: a memory, a first terminal of the memory is connected to a fifth terminal of the processor, and the memory is used to store information about each power failure event.
[0015] The power failure fault processing circuit provided by the present invention has a memory capable of storing the latest power failure event information for the processor to read and query.
[0016] In a second aspect, the present invention provides a method for handling a power-off fault, which is applied to the processor of the first aspect, and the method includes: when a secondary power-off signal is received, recording the power-off event and sending the power-off event information to the main station; when a reply frame returned by the main station is received within the i-th preset time interval, shutting down the output of the over-capacity boost output circuit; wherein i is a positive integer.
[0017] The power-off fault handling method provided by the present invention is that the processor can generate a power-off event according to the secondary power-off signal and report it to the main station, and receive a reply frame returned by the main station within a preset time interval. When the reply frame is received within the first time interval, the output of the over-capacity boost circuit is turned off, thereby saving unnecessary power consumption, extending the use time of the over-capacity boost circuit, indirectly increasing the service life of the product, and reducing the impact on the power consumption requirements and other circuits when power is restored.
[0018] In an optional embodiment, the power-off fault handling method further includes: when no reply frame returned by the master station is received within the Nth preset time interval, controlling the power supply output control circuit to shut down the output of the over-capacity boost output circuit; wherein N is a positive integer greater than or equal to i.
[0019] The power failure fault processing method provided by the present invention is that when no reply frame returned by the master station is received within the Nth preset time interval, the processor forcibly shuts down the output of the over-capacity boost circuit, thereby saving unnecessary power consumption.
[0020] In an optional embodiment, when a reply frame returned by the master station is received within the i-th preset time interval, the process of controlling the power supply output control circuit to shut down the output of the over-capacity boost output circuit includes: when a reply frame returned by the master station is received within the i-th preset time interval, controlling the power supply output control circuit to shut down the output of the over-capacity boost output circuit; when no reply frame returned by the master station is received within the i-th preset time interval, sending power-off event information to the master station again, and obtaining a reply frame returned by the master station within the i+1-th preset time interval, until i equals N.
[0021] The power-off fault handling method provided by the present invention is that when the processor does not receive a reply frame returned by the master station within the i-th preset time interval, the processor again sends power-off event information to the master station at the beginning of the next preset time interval until i equals N or a reply frame returned by the master station is received, and then the output of the over-capacity boost circuit is turned off to save unnecessary power consumption.
[0022] In an optional embodiment, the power-off fault handling method also includes: when the external power supply is powered on again after power failure, reading the power-off event information stored in the memory; after sending a query instruction to the main station, obtaining the power-off event information recorded by the main station; determining whether the power-off event information recorded by the main station is consistent with the power-off event information stored in the memory; if the power-off event information recorded by the main station is inconsistent with the power-off event information stored in the memory, using the power-off event information stored in the memory to reissue the missing part of the power-off event information recorded by the main station; the power-off event information includes the time when the power-off event occurred, the power-off event fault code and the identity information of the communication device.
[0023] The power failure fault processing method provided by the present invention enables the processor to detect specific information in the most recent power failure event stored in the memory, and when information leakage is found, it will be reissued when the system is powered on, thereby ensuring the integrity of the power failure event information content and facilitating subsequent reading and query by the processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 is a composition diagram of a specific example of a power failure fault processing circuit according to an embodiment of the present invention; Figure 2 is a structural diagram of a specific circuit of a power failure detection circuit according to an embodiment of the present invention; Figure 3 is a structural diagram of a specific circuit of a super-capacitor boost output circuit according to an embodiment of the present invention; Figure 4 is a composition diagram of another specific example of a power failure fault processing circuit according to an embodiment of the present invention; Figure 5 is a structural diagram of a specific circuit of a power output control circuit according to an embodiment of the present invention; Figure 6 is a composition diagram of another specific example of a power failure fault processing circuit according to an embodiment of the present invention; Figure 7 is a flow chart of a method for handling a power failure according to an embodiment of the present invention; Figure 8 It is a specific flow chart of the power failure fault processing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0028] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, it can also be the internal connection of two components, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0029] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0030] This embodiment provides a power failure fault processing circuit. Figure 1 As shown, it includes: a power-off detection circuit 1 and an over-capacitance boost output circuit 2, wherein the first end of the power-off detection circuit 1 inputs an external power supply voltage VIN, and the second end of the power-off detection circuit is connected to the first end of the over-capacitance boost output circuit.
[0031] Specifically, Figure 1 In the embodiment, the power-off detection circuit 1 is used to perform multi-level detection on the external power supply voltage VIN and then determine whether the external power supply is powered off. The power-off detection circuit sets a multi-level threshold value, compares the external power supply voltage VIN with the first threshold value, and if it is determined that the external power supply voltage VIN is lower than the first threshold value, outputs a voltage signal and compares the voltage signal with the next adjacent threshold value until each voltage signal is lower than the next adjacent threshold value, and then determines that the external power supply is powered off. If any voltage signal is greater than the next adjacent threshold value, it is determined that the external power supply is not powered off.
[0032] Figure 1 In the embodiment, the second end of the super-capacity boost output circuit 2 inputs the super-capacity voltage V_SUPER.
[0033] Specifically, Figure 1 In the embodiment, when the power-off detection circuit 1 determines that the external power supply is powered off, the power-off detection circuit 1 outputs a secondary power-off signal CHK_POWER, and the secondary power-off signal CHK_POWER triggers the enable terminal of the super-capacity boost output circuit 2, so that the super-capacity boost output circuit 2 starts to boost the super-capacity voltage V_SUPER and output the boosted super-capacity voltage BOOST_OUT.
[0034] Optionally, the supercapacitor boost output circuit has a built-in supercapacitor. The supercapacitor boost output circuit is actually a circuit that has the ability to charge and discharge quickly and can release a large amount of electrical energy in a short time. The supercapacitor boost output circuit can also be other energy storage circuits such as rechargeable batteries.
[0035] The power failure fault processing circuit provided in this embodiment determines whether the external power supply has failed by performing multi-level detection on the external power supply voltage, thereby avoiding false alarms and missed alarms of power failure events when the external power supply fluctuates, and improving the reliability of the power failure fault processing circuit.
[0036] In some optional embodiments, such as Figure 2 As shown, the power-off detection circuit 1 includes: a primary power-off detection unit 11 and a secondary power-off detection unit 12, wherein the first end of the primary power-off detection unit 11 inputs the external power supply voltage VIN, and the second end of the primary power-off detection unit 11 is connected to the first end of the secondary power-off detection unit 12; the second end of the secondary power-off detection unit 12 (i.e., the CHK_POWER end) is connected to the first end of the super-capacitance boost output circuit 2.
[0037] Specifically, Figure 2 In the embodiment, the primary power-off detection unit 11 is used to output a primary power-off signal PWR_DOWN when the external power supply voltage VIN drops to a first threshold value; the secondary power-off detection unit 12 is used to compare the voltage of the primary power-off signal PWR_DOWN with the internal threshold voltage, and output a secondary power-off signal CHK_POWER when the voltage of the primary power-off signal PWR_DOWN is less than the internal threshold voltage.
[0038] Optionally, Figure 2 In the embodiment, the primary power-off detection unit 11 includes resistors R113, R114 and capacitor C79. For example, when the external power supply voltage VIN is 12V, the device can operate normally. 9V is selected as the first-stage detection standard of the primary power-off detection unit 11. When the external power supply voltage VIN drops from 12V to 9V, the primary power-off detection unit 11 determines that the external power supply has been powered off, and outputs the primary power-off signal PWR_DOWN after voltage division by resistors R113 and R114. The secondary power-off detection unit 12 is composed of a chip U13, resistors R48, R49, R50, R51, R55, capacitors C39 and C40. The 3.3V power supply is used as the threshold voltage inside the chip U13 after voltage division by resistors. The chip U13 compares the primary power-off signal PWR_DOWN voltage with the threshold voltage. When the primary power-off signal PWR_DOWN voltage is lower than the threshold voltage, the chip U13 determines that the external power supply has been powered off and outputs the secondary power-off signal CHK_POWER.
[0039] In some optional embodiments, such as Figure 3 As shown, the super-capacitance boost output circuit 2 includes: a first switch unit 21, a capacitor module 22 and a control unit 23, wherein the control end of the first switch unit 21 is connected to the second end of the power-off detection circuit 1, and the first end of the first switch unit 21 is connected to the first end of the control unit 23; the first end of the capacitor module 22 inputs the super-capacitance voltage V_SUPER, and the second end of the capacitor module 22 is connected to the second end of the control unit 23; the third end of the control unit 23 outputs the boosted super-capacitance voltage BOOST_OUT.
[0040] Specifically, Figure 3In the embodiment, the first switch unit 21 includes a resistor R319 and a transistor V100; the capacitor module 22 includes two supercapacitors C92 and C349; the control unit 23 includes a chip U5, resistors R82, R85, R86, capacitors C338, C31, C32, and a diode D16. When there is a secondary power-off signal CHK_POWER, the transistor V100 switches from the on state to the off state, and the supercapacitor voltage V_SUPER pulls up the EN pin of the chip U5 through the resistor R82, and the supercapacitor voltage V_SUPER is input to the IN pin of the chip U5. When the EN pin of the chip U5 is in the pull-up state, the chip U5 is driven to output the boosted supercapacitor voltage BOOST_OUT.
[0041] In some optional embodiments, such as Figure 4 As shown, the power-off fault processing circuit also includes: a processor 3 and a power output control circuit 4, the first end of the processor 3 is connected to the second end of the power-off detection circuit 1, and the second end of the processor 3 is connected to the third end of the power-off detection circuit 1; the first end of the power output control circuit 4 is connected to the third end of the over-capacity boost output circuit 2, and the second end of the power output control circuit 4 is connected to the third end of the processor 3; the fourth end of the processor 3 is connected to the master station for communication.
[0042] Specifically, Figure 4 In the embodiment, the power failure detection circuit 1 continuously collects the pulse detection signal WDG_PWM sent by the processor 3, so as to determine whether the processor 3 is in a normal working state. The power output control circuit 4 is used to switch the on-off state based on the power control signal CTRL_CAP of the processor 3: when the processor 3 sends the power control signal CTRL_CAP, the power output control circuit 4 is turned on and the boosted super-capacitance voltage BOOST_OUT is output as the output voltage VOUT; when the processor 3 stops sending the power control signal CTRL_CAP, the power output control circuit 4 is turned off and the boosted super-capacitance voltage BOOST_OUT is no longer output.
[0043] Specifically, Figure 4In the embodiment, when the processor 3 receives the secondary power-off signal CHK_POWER, the processor 3 sends the power-off event information to the main station through wireless communication or wired communication. After the main station analyzes and stores the power-off event occurrence time, power-off event fault code, communication device ID, voltage, current, power and other information in the power-off event information, it replies with a reply frame, which includes the communication device ID, power-off event fault reply code, reply frame sending event time and other information. The processor 3 starts timing while sending the power-off event information, and requires receiving the reply frame returned by the main station within a preset time interval. If the processor 3 receives the reply frame returned by the main station within the first preset time interval, the power output control circuit 4 is controlled to be disconnected, and the output of the super-capacity boost output circuit 2 is turned off, so that the boosted super-capacity voltage BOOST_OUT is no longer output.
[0044] Specifically, Figure 4 In the process, if the processor 3 does not receive a reply frame returned by the master station within the first preset time interval, the processor 3 resends the power-off event information and restarts the timing, repeating the above steps until the processor 3 receives a reply frame returned by the master station within the i-th preset time interval, and controls the power supply output control circuit 4 to disconnect and turn off the output of the super-capacity boost output circuit 2; wherein i is a positive integer.
[0045] Optionally, Figure 4 In the embodiment, the maximum number of times N that the processor 3 sends power-off event information can be set. If the processor 3 still does not receive a reply frame returned by the main station within the Nth preset time interval, the processor 3 no longer sends the power-off event information to the main station, but directly controls the power supply output control circuit 4 to disconnect and turn off the output of the super-capacity boost output circuit 2.
[0046] In some optional embodiments, such as Figure 5 As shown, the power output control circuit 4 includes: a second switch unit 41 and a third switch unit 42, wherein the control end of the second switch unit 41 is connected to the third end of the processor 3, and the first end of the second switch unit 41 is connected to the control end of the third switch unit 42; the first end of the third switch unit 42 is connected to the third end of the super-capacitance boost output circuit 2.
[0047] Specifically, Figure 5In the embodiment, the second switch unit 41 includes resistors R341, R342, and transistor V109; the third switch unit 42 includes resistor R328, MOS transistor V108, capacitors C19, C343, and diodes D17 and D18. When the processor 3 determines that no power failure event occurs, the processor 3 does not output the power control signal CTRL_CAP, the transistor V109 remains in the on state, and the voltage of the G pole of the MOS transistor V108 is pulled down, so that the MOS transistor V108 remains in the on state and outputs the boosted super-capacitance voltage BOOST_OUT as the output voltage VOUT. When the processor 3 receives the reply frame returned by the master station within the i-th preset time interval, the processor 3 sends the power control signal CTRL_CAP to turn off the transistor V109, and the voltage of the G pole of the MOS tube V108 gradually increases to close to the S pole voltage, so that the MOS tube V108 changes from the on state to the off state, and the boosted super-capacitance voltage BOOST_OUT cannot be output through the MOS tube V108, that is, the output of the super-capacitance boost output circuit 2 is turned off.
[0048] In some optional embodiments, such as Figure 6 As shown, the power failure fault processing circuit also includes: a communication module 5 and a memory 6, the first end of the communication module 5 is connected to the fourth end of the processor 3, the second end of the communication module 5 is connected to the main station; the first end of the memory 6 is connected to the fifth end of the processor 3.
[0049] Specifically, Figure 6 In the embodiment, the communication module 5 is used to transmit power failure event information and reply frames between the processor 3 and the master station. The memory 6 is used to store the power failure event information of the recent N times for the processor 3 to read and query. The master station can store all the power failure event information as a communication fault file management, and can also be queried by the communication device.
[0050] This embodiment provides a method for handling a power failure, which is applied to a processor of the above embodiment and any optional implementation manner thereof, such as Figure 7 As shown, the method includes: Step S1: When a secondary power-off signal is received, a power-off event is recorded and power-off event information is sent to the master station.
[0051] Step S2: When a reply frame returned by the master station is received within the i-th preset time interval, the output of the super-capacity boost output circuit is turned off; wherein i is a positive integer.
[0052] Specifically, when a reply frame returned by the master station is received within the i-th preset time interval, the process of controlling the power supply output control circuit to shut down the output of the over-capacity boost output circuit includes: when a reply frame returned by the master station is received within the i-th preset time interval, controlling the power supply output control circuit to shut down the output of the over-capacity boost output circuit; when no reply frame returned by the master station is received within the i-th preset time interval, sending power-off event information to the master station again, and obtaining the reply frame returned by the master station within the i+1-th preset time interval, until i is equal to N.
[0053] Specifically, refer to Figure 6 When the processor 3 receives the secondary power-off signal CHK_POWER, the processor 3 sends the power-off event information to the communication module 5, i.e., the memory 6. The communication module 5 transmits the power-off event information to the master station. The master station analyzes and stores the power-off event occurrence time, power-off event fault code, communication device ID, voltage, current, power and other information in the power-off event information, and then replies with a reply frame through the communication module 5. The reply frame includes the communication device ID, the power-off event fault reply code, the reply frame sending event time and other information.
[0054] Specifically, refer to Figure 6 After sending the power-off event information to the communication module, the processor 3 will start the timing at the same time, requiring the receipt of a reply frame from the master station within a preset time interval. If the processor 3 receives the returned reply frame within the first interval, the processor 3 will send a power control signal CTRL_CAP to turn off the output of the super-capacity boost output circuit 2. If the processor 3 does not receive the reply frame within the first interval, the processor 3 will resend the power-off event information once again and restart the timing. This time is called the second interval, and the above steps are repeated. If the processor 3 receives the reply frame within the i-th interval, the processor 3 will send a power control signal CTRL_CAP to turn off the output of the super-capacity boost output circuit 2. If the processor 3 still does not receive the reply frame within the i-th interval, the processor 3 will continue to repeat the above steps until i is equal to N.
[0055] The power-off fault handling method provided in this embodiment is that the processor can generate a power-off event report to the main station based on the secondary power-off signal, and receive a reply frame returned by the main station within a preset time interval. When the reply frame is received within the first time interval, the output of the over-capacity boost circuit is shut down, thereby saving unnecessary power consumption, extending the use time of the over-capacity boost circuit, indirectly increasing the service life of the product, and reducing the impact on the power consumption requirements and other circuits when power is restored.
[0056] In some optional embodiments, the power-off fault handling method further includes: when no reply frame returned by the master station is received within the Nth preset time interval, controlling the power supply output control circuit to shut down the output of the super-capacity boost output circuit; wherein N is a positive integer greater than or equal to i.
[0057] Specifically, refer to Figure 6 , set the maximum number of times N that the processor 3 sends power-off event information. If the processor 3 still does not receive a reply frame returned by the master station within the Nth preset time interval, the processor 3 no longer sends the power-off event information to the master station, but directly controls the power output control circuit 4 to disconnect and turn off the output of the super-capacity boost output circuit 2.
[0058] For example, reference Figure 8 , the specific methods for handling power failure are as follows: (1) When the input power fails, the detection circuit outputs a secondary power failure signal so that the over-capacity boost circuit outputs a boost power supply.
[0059] (2) The processor sends the power-off event to the master station through the communication module, and determines whether a reply frame returned by the master station is received within a preset time interval.
[0060] (3) If the processor confirms that the reply frame returned by the master station is received within the preset time interval, the power output control circuit is controlled to turn off the output of the super-capacity boost circuit; otherwise, the process returns to step (2).
[0061] (4) Set N=3. If the processor has sent power-off events three times in succession and still has not received a reply frame, the processor directly controls the power output control circuit to turn off the output of the super-capacitance boost circuit.
[0062] In some optional embodiments, the power-off fault handling method also includes: when the external power supply is powered on again after power failure, reading the power-off event information stored in the memory; after sending a query instruction to the main station, obtaining the power-off event information recorded by the main station; determining whether the power-off event information recorded by the main station is consistent with the power-off event information stored in the memory; if the power-off event information recorded by the main station is inconsistent with the power-off event information stored in the memory, using the power-off event information stored in the memory to reissue the missing part of the power-off event information recorded by the main station; the power-off event information includes the time when the power-off event occurred, the power-off event fault code and the identity information of the communication device.
[0063] Specifically, refer to Figure 6In order to reduce the possibility of underreporting of power-off events, when the communication device is powered on again, there will be measures for reissuing power-off events. When the device is powered on again, the processor 3 reads the last three power-off events recorded by the memory 6, which is called event record A. At the same time, the processor 3 reports a query instruction to query the master station for the last three power-off events recorded by the master station, and the master station issues a power-off event record, which is called event record B. The processor 3 compares event record A with event record B, and compares information such as the time when the power-off event occurred, the fault code of the power-off event, and the ID of the communication device. If the content of event record B already contains the content of event record A, it is determined that the power-off event record is correct and will not be reissued. If the content of event record B is missing, the processor 3 will use event record A to reissue the missing part of event record B of the master station through the communication module 5 when the communication device is powered on. After receiving the power-off event, the master station will issue a confirmation reply frame. After the communication module 5 receives the issued confirmation reply frame, the communication module 5 sends the confirmation reply frame to the processor 3, ending the reissue process.
[0064] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A power failure fault processing circuit, characterized in that: include: Power-off detection circuit and over-capacity boost output circuit, where: The first end of the power-off detection circuit inputs the external power supply voltage, the second end of the power-off detection circuit is connected to the first end of the super-capacity boost output circuit, and the power-off detection circuit is used to perform multi-level detection on the external power supply voltage and then determine whether the external power supply is powered off; The second end of the supercapacitance boost output circuit is input with supercapacitance voltage; When the power-off detection circuit determines that the external power supply is powered off, the power-off detection circuit outputs a secondary power-off signal, and then the over-capacity boost output circuit boosts the over-capacity voltage and outputs it.
2. The power failure processing circuit according to claim 1, characterized in that: The power failure detection circuit comprises: a primary power failure detection unit and a secondary power failure detection unit, wherein: The first end of the primary power failure detection unit is input with an external power supply voltage, the second end of the primary power failure detection unit is connected with the first end of the secondary power failure detection unit, and the primary power failure detection unit is used to output a primary power failure signal when the external power supply voltage drops to a first threshold value; The second end of the secondary power-off detection unit is connected to the first end of the super-capacity boost output circuit. The secondary power-off detection unit is used to compare the voltage of the primary power-off signal with the internal threshold voltage, and output the secondary power-off signal when the voltage of the primary power-off signal is less than the internal threshold voltage.
3. The power failure processing circuit according to claim 1, characterized in that: The super-capacitor boost output circuit comprises: a first switch unit, a capacitor module and a control unit, wherein: The control end of the first switch unit is connected to the second end of the power-off detection circuit, the first end of the first switch unit is connected to the first end of the control unit, and the first switch unit is used to shut down based on the secondary power-off signal; The first end of the capacitor module inputs the overcapacitance voltage, and the second end of the capacitor module is connected to the second end of the control unit; The third terminal of the control unit outputs the boosted supercapacitance voltage; When the first switch unit is turned off, the control unit boosts the super-capacity voltage and outputs it.
4. The power failure fault processing circuit according to claim 1, characterized in that: Also includes: Processor and power output control circuit, The first end of the processor is connected to the second end of the power failure detection circuit, and the second end of the processor is connected to the third end of the power failure detection circuit; The first end of the power output control circuit is connected to the third end of the super-capacitor boost output circuit, the second end of the power output control circuit is connected to the third end of the processor, and the power output control circuit is used to switch the on-off state based on the power control signal of the processor; The fourth terminal of the processor is communicatively connected to the main station.
5. The power failure fault processing circuit according to claim 4, characterized in that: The power output control circuit includes: a second switch unit and a third switch unit, wherein: The control end of the second switch unit is connected to the third end of the processor, the first end of the second switch unit is connected to the control end of the third switch unit, and the second switch unit is used to shut down based on the power control signal of the processor; The first end of the third switch unit is connected to the third end of the super-capacitance boost output circuit. When the second switch unit is turned off, the third switch unit is turned off to turn off the output of the super-capacitance boost output circuit.
6. The power failure fault processing circuit according to claim 4, characterized in that: Also includes: Communication module, The first end of the communication module is connected to the fourth end of the processor, the second end of the communication module is connected to the main station, and the communication module is used to transmit the power-off event information and the reply frame between the processor and the main station.
7. The power failure fault processing circuit according to claim 6, characterized in that: Also includes: Memory, The first terminal of the memory is connected to the fifth terminal of the processor, and the memory is used to store information of each power-off event.
8. A method for handling power failure, characterized in that: Applied to the processor according to any one of claims 1 to 7, the method comprising: When receiving the secondary power-off signal, the power-off event is recorded and the power-off event information is sent to the master station; When a reply frame returned by the master station is received within the i-th preset time interval, the output of the super-capacity boost output circuit is turned off; Wherein, i is a positive integer.
9. The power failure processing method according to claim 8, characterized in that: Also includes: When no reply frame returned by the master station is received within the Nth preset time interval, controlling the power output control circuit to turn off the output of the super-capacity boost output circuit; Wherein, N is a positive integer greater than or equal to i.
10. The power failure processing method according to claim 9, characterized in that: The process of controlling the power supply output control circuit to turn off the output of the super-capacity boost output circuit when a reply frame returned by the master station is received within the i-th preset time interval includes: When a reply frame returned by the master station is received within the i-th preset time interval, the power supply output control circuit is controlled to turn off the output of the super-capacity boost output circuit; When no reply frame returned by the master station is received within the i-th preset time interval, the power-off event information is sent to the master station again, and a reply frame returned by the master station is obtained within the i+1-th preset time interval until i equals N.
11. The power failure processing method according to claim 10, characterized in that: Also includes: When the external power supply is powered on again after power failure, the power failure event information stored in the memory is read; After sending a query command to the master station, the power-off event information recorded by the master station is obtained; Determine whether the power-off event information recorded by the master station is consistent with the power-off event information stored in the memory; If the power failure event information recorded by the master station is inconsistent with the power failure event information stored in the memory, the power failure event information stored in the memory is used to reissue the missing part of the power failure event information recorded by the master station; The power-off event information includes the power-off event occurrence time, the power-off event fault code and the identity information of the communication device.
Citation Information
Patent Citations
Power failure detection method and system and air conditioner
CN105115105A
Power failure protection device, control system and power failure protection method of the control system
CN110224479A
Electric energy metering circuit and electric energy metering device
CN115932386A
Power terminal event data supplement processing method, medium and electronic equipment
CN117318288A
Power down protection circuit and device
CN203827057U
