Programmable online power management system and watchdog counter
By designing a programmable online power management system, using technologies such as signal conversion, feature command recognition and watchdog counters, the power outage and restart problems of submodule power management when electronic devices are "crashed", and automated power management and I/O port operation are realized.
Patent Information
- Application Number
- CN202411859986.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-12-17
AI Technical Summary
The prior art is difficult to achieve physical power outage, power-on and restart when electronic devices "crash", and it is impossible to effectively manage the power supply and I/O port switching of multiple submodules.
A programmable online power management system is designed to control the total power supply and submodules of electronic equipment through modules such as signal conversion, data cache, feature command identification and watchdog counter, including dog feeding signal transmission, counting and power restart operations.
It realizes automatic physical power outage, power-on and restart when the electronic device "crashs", as well as online power management and I/O port switching operations of multiple submodules, avoiding the need for manual restart and the cost of hardware changes.
Smart Images

Figure CN119806301A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of power management, and in particular to a programmable online power management system and a watchdog counter for electronic equipment. Background Art
[0002] At present, the pain points that need to be solved in some electronic devices are as follows: 1. After working for a period of time, the electronic device is not working properly, and the built-in watchdog of the electronic device does not start. The electronic device must be manually restarted externally (physical power off, power on and off, power on) before it can work normally. 2. After working for a period of time, the electronic device is not working properly. The built-in watchdog of the electronic device is started but still cannot make the electronic device work normally. The electronic device must be manually restarted externally before it can work normally. 3. After the electronic device is powered on, it cannot start working normally. It must be manually restarted or restarted several times before it can work normally. 4. The user needs to control the power switch of the lower computer, the power control of the submodule separately, self-destruct or switch I / O operations through the upper computer, but the hardware circuits of the upper computer and the lower computer must be changed as little as possible. The original design of the electronic device does not have the ability to deal with and overcome the above pain points. In some cases, users or designers do not have the conditions to manually restart (physical power off, power on).
[0003] The above fault phenomena 1 to 3 are commonly known as "freeze", which occasionally occur during system operation. It is difficult to troubleshoot the fault by reproducing and finding the cause of the fault, and once it occurs, the consequences are serious.
[0004] Usually, the watchdog circuit is connected in parallel with the electronic device to share the power supply. After the electronic device enters an abnormal state, the electronic device can be partially restarted, such as restarting with power through the RESET signal, but the electronic device cannot be physically powered off or restarted. Chinese patent document CN202111106926 "Watchdog Control Circuit, Electronic Device, and Watchdog Control Method" adds selection, self-locking, and three-state output control modules to the usual watchdog circuit, with the purpose of "disabling the watchdog during program burning, debugging, or power-on startup." However, in this solution, the watchdog circuit and the electronic device are still connected in parallel to share the power supply, and the electronic device cannot be physically powered off or restarted. If the electronic device needs to be restarted and the electronic device continues to feed the dog, that is, the watchdog of the electronic device is not started, this type of watchdog circuit will not work, and the designer must modify the design of the electronic device to enable its watchdog circuit to cope with this situation, adding additional costs. In some cases, the modification cannot be completed or the effect is not good. For example, the electronic equipment has reached a certain design stage and the hardware cannot be modified drastically, or the reason why the watchdog does not start cannot be found and the modification cannot be made or the effect is still not good after the modification.
[0005] Chinese patent document CN118113125A "Multi-way power supply control method and device" proposes a multi-way power supply control method and device, which can "control multiple power supplies to respond in sequence" in electronic equipment according to delay conditions, but the patented device cannot restart the electronic equipment and cannot overcome the above pain points.
[0006] Chinese patent document CN114291133A "Control method and device for remote restart of ground equipment, remote restart equipment" proposes a solution for remote restart equipment. Although it can send instructions to the remote equipment to restart according to user needs, the remote equipment needs to repeatedly receive confirmation of the restart instruction and wait for the same instruction or "two out of three" to restart the "ground equipment". If the remote equipment does not work properly, it cannot repeatedly receive confirmation and restart, and it is not suitable for timely restart under time pressure. Moreover, this technical solution still cannot timely overcome the pain points of the equipment that sends instructions, the remote equipment or the "ground equipment" similar to those mentioned in 1 to 4 above.
[0007] Chinese patent document CN117728664A "An FPGA controlled protection circuit and power supply control protection device" proposes a power supply control device composed of FPGA, but this device is a component of the power supply and can only monitor the current and voltage of the power supply. It cannot identify whether the electronic device is "frozen" or external instructions issued by the user. At the same time, the user cannot intervene in the power supply control operation, nor can the power supply be restarted under control.
[0008] Therefore, there is a strong demand in the industry to further improve power control or management of electronic devices. Summary of the invention
[0009] The technical problems to be solved by the present invention are as follows: 1. Physically powering off and restarting the electronic device when the electronic device "freezes"; 2. There are multiple sub-modules in the electronic device, and power management or I / O port switching operations need to be performed on one or several of the sub-modules respectively; 3. The upper computer performs power management or I / O port switching operations on the sub-modules in the lower computer respectively.
[0010] In order to solve the above technical problems, the technical solution of the present invention provides a programmable online power management system, which is used to control the total power supply and the control object in the electronic device respectively, and includes the following steps:
[0011] The signal conversion module obtains the digital signal from the electronic device through the communication cable and converts it into the information data to be tested that can be recognized by the characteristic instruction recognition module;
[0012] A data cache module obtains the information data to be tested from the signal conversion module and stores it as cache data;
[0013] A programmable ROM, used for storing preset characteristic instructions and operation instructions corresponding to the preset characteristic instructions;
[0014] The characteristic instruction recognition module obtains the cache data from the data cache module and the preset characteristic instruction from the programmable ROM, and determines whether there is a characteristic instruction matching the preset characteristic instruction in the cache data one by one according to the acquisition order, and if so, determines whether the characteristic instruction is a dog feeding instruction in the preset characteristic instruction, and if so, transmits a dog feeding signal corresponding to the dog feeding instruction to the watchdog counter;
[0015] If it is not a dog feeding instruction, the corresponding preset characteristic instruction is matched according to the cache data, the corresponding operation instruction stored in the ROM is retrieved, and the operation instruction is transmitted to the instruction execution module;
[0016] A watchdog counter obtains a power-on signal from the electronic device and a dog-feeding signal from the characteristic instruction recognition module, and counts or clears the watchdog counter accordingly. If the count overflows, the power supply of the electronic device's main power supply is powered off and restarted;
[0017] The instruction execution module connected to the control object obtains the operation instruction from the characteristic instruction recognition module, and operates the control object according to the operation instruction.
[0018] Preferably, the watchdog counter also includes an "initial count enable / " pin signal. If the pin signal is "0", the watchdog counter starts counting after obtaining a power-on signal, and the first dog feeding instruction identified by the characteristic instruction recognition module performs count reset and stops the watchdog counter. Subsequently, the dog feeding instruction wakes up, resets and restarts counting;
[0019] If the pin signal is "1", the watchdog counter will not count after receiving the power-on signal. The first feeding dog instruction wakes up the watchdog counter to start counting, and the subsequent feeding dog instruction clears it and starts counting again.
[0020] Preferably, the data cache module stores the information data to be tested in the order in which the signal conversion module sends the information data to be tested, and ejects the cache data corresponding to the information data to be tested from the data cache module after being processed by the characteristic instruction recognition module.
[0021] Preferably, the preset characteristic instruction also includes key bytes and auxiliary bytes, and only the preset characteristic instruction is transmitted by the communication cable to reduce the impact on the communication of the communication cable.
[0022] The technical solution of the present invention also provides a watchdog counter started by feeding a dog, which is applied to a programmable online power management system as described above to power off and restart the power supply of an out-of-control electronic device, wherein the watchdog counter includes a normally closed relay switch, a relay coil, a relay drive circuit, a WDOG circuit, a first counting enabling circuit, a first power supply and a second power supply;
[0023] The electronic device is connected to the first power supply via a relay normally closed switch, one end of the relay coil is connected to the second power supply for supplying power to the watchdog counter, and the other end is connected to the overflow end of the WDOG circuit output via a relay drive circuit; the reset end of the WDOG circuit is connected to the feeding end of the first counting enabling circuit; the enabling end output of the first counting enabling circuit is connected to the enabling end of the WDOG circuit;
[0024] When the initial count enable terminal of the first count enable circuit obtains the artificial preset signal of "1", the enable terminal of the first count enable circuit is allowed to output the signal "1";
[0025] When the electronic device is powered on, the electronic device generates a power-on signal and transmits it to the power-on end of the first count enable circuit, so that the enable end of the first count enable circuit outputs a signal of "0" to the enable end of the WDOG circuit, the WDOG circuit does not work, the overflow end of the WDOG circuit outputs a signal of "0", and the normally closed switch of the relay remains closed, so that the electronic device is connected to the first power supply until the feeding end of the first count enable circuit obtains the feeding signal, so that the enable end of the first count enable circuit outputs a signal of "1" to the enable end of the WDOG circuit, and the WDOG circuit obtains the counting clock accumulated count;
[0026] When the WDOG circuit is working and the electronic device is working normally, the reset end of the WDOG circuit obtains the dog feeding signal to reset the accumulated count to restart the counting, the overflow end of the WDOG circuit maintains the output as "0", and the normally closed switch of the relay remains closed, so that the electronic device is connected to the first power supply;
[0027] When the WDOG circuit works and the electronic device is out of control and cannot send out the dog feeding signal, the accumulated count of the WDOG circuit overflows and the overflow terminal of the WDOG circuit outputs "1", the relay drive circuit works to control the normally closed switch of the relay to be disconnected, and the electronic device is powered off;
[0028] When the overflow end of the WDOG circuit restores the output to "0", the normally closed switch of the relay is closed, the electronic device is powered on, and a power-on signal is generated and transmitted to the power-on end of the first counting enabling circuit.
[0029] The technical solution of the present invention also provides a watchdog counter that is powered on and started, which is applied to a programmable online power management system as described above to power off and restart the power supply of an out-of-control electronic device, wherein the watchdog counter includes a normally closed relay switch, a relay coil, a relay drive circuit, a WDOG circuit, a second counting enabling circuit, a first power supply and a second power supply;
[0030] The electronic device is connected to the first power supply via a relay normally closed switch, one end of the relay coil is connected to the second power supply for supplying power to the watchdog counter, and the other end is connected to the overflow end of the WDOG circuit output via a relay drive circuit; the reset end of the WDOG circuit is connected to the feeding end of the second counting enabling circuit; the enabling end output of the second counting enabling circuit is connected to the enabling end of the WDOG circuit;
[0031] When the initial count enable terminal of the second count enable circuit obtains the artificial preset signal of "0", the enable terminal of the second count enable circuit is allowed to output the signal "1";
[0032] When the electronic device is powered on, the electronic device generates a power-on signal and transmits it to the power-on terminal of the second counting enabling circuit, so that the enabling terminal of the second counting enabling circuit outputs a signal of "1" to the enabling terminal of the WDOG circuit, and the WDOG circuit works, and the WDOG circuit obtains the accumulated count of the counting clock; the overflow terminal of the WDOG circuit maintains the output signal of "0", and the normally closed switch of the relay remains closed, so that the electronic device is connected to the first power supply;
[0033] When the WDOG circuit is working and the electronic device is working normally, the reset end of the WDOG circuit obtains the dog feeding signal to reset the accumulated count to restart the counting, the overflow end of the WDOG circuit maintains the output as "0", the normally closed switch of the relay remains closed, and the electronic device remains powered on; at the same time, the dog feeding end of the second counting permission circuit obtains the dog feeding signal, if it is the first time to obtain, the output signal of the enable end of the second counting permission circuit is "0" and transmitted to the enable end of the WDOG circuit, the WDOG circuit does not work and the overflow end output signal of the WDOG circuit is "0", until the dog feeding end of the second counting permission circuit obtains the second and subsequent dog feeding signals, so that the output signal of the enable end of the second counting permission circuit is "1" to the enable end of the WDOG circuit, so that the WDOG circuit works;
[0034] When the WDOG circuit works and the electronic device is out of control and cannot send out the dog feeding signal, the accumulated count of the WDOG circuit overflows and the overflow terminal of the WDOG circuit outputs "1", the relay drive circuit works to control the normally closed switch of the relay to be disconnected, and the electronic device is powered off;
[0035] When the overflow end of the WDOG circuit restores the output to "0", the normally closed switch of the relay is closed, the electronic device is powered on, and a power-on signal is generated and transmitted to the power-on end of the second counting enabling circuit.
[0036] The technical solution of the present invention also provides a watchdog counter that is started by feeding a dog and starting by powering on, which is applied to a programmable online power management system as described above to power off and restart the power supply of an out-of-control electronic device, wherein the watchdog counter includes a normally closed relay switch, a relay coil, a relay drive circuit, a WDOG circuit, a first counting enabling circuit and a second counting enabling circuit, an OR gate, a first power supply and a second power supply;
[0037] The electronic device is connected to the first power supply via a relay normally closed switch, one end of the relay coil is connected to the second power supply for powering the watchdog counter, and the other end is connected to the overflow end of the WDOG circuit output via a relay drive circuit; the reset end of the WDOG circuit is respectively connected to the feeding end of the first count enabling circuit and the second count enabling circuit; the enabling ends of the first count enabling circuit and the second count enabling circuit are respectively connected to the input end of the OR gate, and the output end of the OR gate is connected to the enabling end of the WDOG circuit; the power-on end of the first count enabling circuit is connected to the power-on end of the second count enabling circuit, and the initial count enabling end of the first count enabling circuit is connected to the initial count enabling end of the second count enabling circuit;
[0038] When the initial count enable end of the first count enable circuit obtains the artificial preset signal of "1", only the enable end of the first count enable circuit is allowed to output the signal "1"; when the electronic device is powered on, the electronic device generates a power-on signal and transmits it to the power-on end of the first count enable circuit, so that the enable end of the first count enable circuit outputs a signal of "0" to the enable end of the WDOG circuit, the WDOG circuit does not work, the overflow end of the WDOG circuit outputs a signal of "0", and the normally closed switch of the relay connects the electronic device to the first power supply until the feeding end of the first count enable circuit obtains the feeding signal, so that the enable end of the first count enable circuit outputs a signal of "1" to the enable end of the WDOG circuit, the WDOG circuit works, and the count is obtained. The clock accumulates the count; when the WDOG works and the electronic device works normally, the reset end of the WDOG circuit obtains the dog feeding signal to reset the accumulated count to restart the counting, the overflow end of the WDOG circuit maintains the output as "0", the relay normally closed switch remains closed, and the electronic device remains powered on; when the WDOG circuit works and the electronic device is out of control and cannot send the dog feeding signal, the accumulated count of the WDOG circuit overflows and its overflow end outputs "1", so that the relay drive circuit works to control the relay normally closed switch to be disconnected, and the electronic device is powered off; when the overflow end of the WDOG circuit resumes the output as "0", the relay normally closed switch is closed, the electronic device is powered on, and a power-on signal is generated and transmitted to the power-on end of the first counting enabling circuit;
[0039] When the initial count enable end obtains the artificial preset signal of "0", only the second count enable circuit enable end is allowed to output the signal "1"; when the electronic device is powered on, a power-on signal is generated and transmitted to the power-on end of the second count enable circuit, so that the enable end of the second count enable circuit outputs a signal of "1" to the enable end of the WDOG circuit, and the WDOG circuit works to obtain the cumulative count of the counting clock; when the WDOG circuit count does not overflow, the overflow end outputs a signal of "0", and the normally closed switch of the relay remains closed, so that the electronic device is connected to the first power supply; when the WDOG circuit works and the electronic device works normally, the reset end of the WDOG circuit obtains the dog feeding signal to reset the cumulative count to restart the counting, and the overflow end of the WDOG circuit maintains the output of "0", the normally closed switch of the relay remains closed, and the electronic device remains powered on; at the same time, the dog feeding end of the second count enable circuit Obtain the dog feeding signal. If it is the first time to obtain it, the enable end of the second counting enable circuit outputs a signal of "0" to the enable end of the WDOG circuit, the WDOG circuit does not work and its overflow end outputs a signal of "0", until the dog feeding end of the second counting enable circuit obtains the second and subsequent dog feeding signals, so that the enable end of the second counting enable circuit outputs a signal of "1" to the enable end of the WDOG circuit, and the WDOG circuit works; when the WDOG circuit works and the electronic device is out of control and cannot send out the dog feeding signal, the accumulated count of the WDOG circuit overflows and its overflow end outputs a signal of "1", so that the relay drive circuit works to control the normally closed switch of the relay to be disconnected, and the electronic device is powered off; when the overflow end of the WDOG circuit resumes outputting a signal of "0", the normally closed switch of the relay is closed, the electronic device is powered on, and a power-on signal is generated and transmitted to the power-on end of the second counting enable circuit.
[0040] Preferably, the first counting enabling circuit comprises an AND gate and an RS trigger; the initial counting enabling terminal of the first counting enabling circuit and the output terminal of the RS trigger are respectively connected to the input terminal of the AND gate, and the output terminal of the AND gate serves as the enabling terminal of the first counting enabling circuit; only when the initial counting enabling terminal of the first counting enabling circuit acquires a signal of "1", the output of the RS trigger is output through the AND gate and transmitted to the enabling terminal of the WDOG circuit;
[0041] When the R end of the RS trigger obtains the power-on signal "0" from the electronic device, the output of the RS trigger is "0", which is transmitted to the enable end of the WDOG circuit to prevent the WDOG circuit from counting; when the electronic device is working normally, the S end of the RS trigger obtains the dog feeding signal, and the output of the RS trigger is "1", which is transmitted to the enable end of the WDOG circuit to allow the WDOG circuit to count.
[0042] Preferably, the second counting enabling circuit comprises a plurality of gate circuits, a D flip-flop locked after counting once, and a second RS flip-flop; only when the initial counting enabling terminal of the second counting enabling circuit acquires a signal of "0", the output of the second RS flip-flop is allowed to be transmitted to the enabling terminal of the WDOG circuit;
[0043] When the power-on terminal of the second counting enabling circuit receives a power-on signal, the gate circuit, the D flip-flop and the second RS flip-flop of the second counting enabling circuit interact with each other, the D flip-flop is set to "0", the second RS flip-flop is set to "1", and the enabling terminal of the second counting enabling circuit outputs "1", which is transmitted to the enabling terminal of the WDOG circuit to enable the WDOG circuit to count;
[0044] When the feeding end of the second counting enabling circuit receives the first feeding signal outputted by the normal operation of the electronic device, the gate circuit, the D flip-flop and the second RS flip-flop of the second counting enabling circuit interact with each other, the D flip-flop counts once and is locked as "1", the second RS flip-flop is set to "0", and the enabling end of the second counting enabling circuit outputs "0", which is transmitted to the enabling end of the WDOG circuit so that the WDOG circuit does not count;
[0045] When the dog feeding end of the second counting enabling circuit receives the second and subsequent dog feeding signals outputted due to the normal operation of the electronic device, the gate circuit, the D flip-flop and the second RS flip-flop of the second counting enabling circuit interact with each other, the D flip-flop is maintained at "1", the second RS flip-flop is set to "1", and the enabling end of the second counting enabling circuit outputs "1", which is transmitted to the enabling end of the WDOG circuit to allow the WDOG circuit to count.
[0046] Preferably, the first power supply and the second power supply are the same power supply.
[0047] The programmable online power management system provided by the technical solution of the present invention is connected to the electronic device only by means of a communication cable, obtains the data to be tested transmitted by the electronic device through the communication cable, monitors whether there are characteristic instructions (including dog feeding instructions) in the data to be tested through the characteristic instruction recognition module, and if there are, transmits the dog feeding signal to the watchdog counter, or retrieves the operation instructions stored in the ROM corresponding to other characteristic instructions and transmits them to the instruction execution module, respectively executing the clearing of the watchdog counter, restarting the power supply of the electronic device, switch operation or other operations. If the watchdog counter is not cleared by the dog feeding signal within a certain period, it overflows, and the power supply of the electronic device is powered off and restarted. In this way, the system provided by the solution of the present invention realizes the monitoring of whether the electronic device has a "freeze" phenomenon, and automatically realizes the physical power off and power-on restart of the electronic device when it "freezes", and also realizes that the electronic device or the host computer performs online management operations such as turning on or off the sub-module power supply, enabling the self-destruction module, setting the current classification limit power supply or I / O port selection on the electronic device through the communication cable, and the electronic device is changed very little or no hardware needs to be changed.
[0048] The watchdog counter provided by the technical solution of the present invention does not share a power supply or a power supply in parallel with the electronic device to be managed. Through the control counting mechanism of the first counting enabling circuit and / or the second counting enabling circuit in combination with the WDOG circuit, when the electronic device is out of control and cannot issue a feeding dog instruction to clear the count of the WDOG circuit, resulting in an overflow, the relay driving circuit drives the relay to make the electronic device power on again after power is cut off, thereby realizing restart control of the out-of-control electronic device, solving the problem of having to manually restart the "freeze" electronic device externally, and the electronic device also requires very little change or no hardware change. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of the connection between the programmable online power management system block diagram provided by an embodiment of the present invention and the managed electronic device;
[0050] Figure 2 A schematic diagram of the connection between the programmable online power management system block diagram provided by an embodiment of the present invention and a host computer and electronic equipment;
[0051] Figure 3 A flow chart of an online power management system provided by an embodiment of the present invention;
[0052] Figure 4 A schematic diagram of connecting a watchdog counter started by feeding a dog and an electronic device provided in an embodiment of the present invention;
[0053] Figure 5 A schematic diagram of connecting a power-on watchdog counter and an electronic device provided by an embodiment of the present invention;
[0054] Figure 6 A schematic diagram of connecting a watchdog counter started by feeding a dog and started by powering on and an electronic device provided in an embodiment of the present invention;
[0055] Figure 7 A schematic diagram of a logic circuit of a first counting enabling circuit in a watchdog counter provided by an embodiment of the present invention;
[0056] Figure 8 A schematic diagram of a logic circuit of a second counting enabling circuit in a watchdog counter provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The present invention is further described below in conjunction with specific examples. It should be understood that these examples are only used to illustrate the present invention and are not used to limit the scope of the present invention. Any modifications made without departing from the spirit and scope of the present invention are still included in the patent protection scope of the present invention. The protection scope of the present invention is based on the maximum scope of the innovative features defined by the claims.
[0058] Figure 1 This is a schematic diagram of the connection between the programmable online power management system block diagram of an embodiment of the present invention and the managed electronic device, see Figure 1 . Figure 1 The programmable online power management system includes: signal conversion module, data cache module, programmable ROM, characteristic instruction recognition module, watchdog counter and instruction execution module. The watchdog counter supplies power to the electronic device through the power supply lead or performs power-off and restart operations. The instruction execution module connects to the electronic device to control several other modules in it, namely the control object ( Figure 1 The electronic device is connected to the system via a communication cable, that is, the system is externally mounted on the completed managed electronic device, and receives data or characteristic instructions from the managed electronic device via the communication cable. The system does not share power with the managed object (the system uses power supply 2, and the electronic device uses power supply 1), or does not share power in parallel with the managed object electronic device, so as to physically power off and restart the electronic device.
[0059] The signal conversion module of this embodiment is used to convert the signal in the communication cable into the information data to be tested, and the converted information data to be tested is stored in the data cache module as cache data for the characteristic instruction recognition module to identify. This module can be implemented by a common serial-to-parallel circuit. Considering that the electrical characteristics of the signal in some communication cables may not match this module, this module is also implemented by some commonly used integrated circuits on the market, such as the MAX232 integrated circuit commonly used in the RS232 communication protocol. In order to facilitate the storage and identification of data, the data sent to the data cache module is composed of bytes with a length of 8 bits. At the same time, in order to improve the efficiency of the characteristic instruction recognition module, the data transmitted to the data cache module by this module is only the data bits of the signal in the communication cable (such as the data bits of RS232). If the transmission protocol is a custom protocol or the transmission protocol has multiple layers of protocol nesting (such as Ethernet), the user needs to match the targeted circuit to obtain the required data.
[0060] The data cache module of this embodiment is used to store cache data from the signal conversion module, and the data cache module includes a FIFO memory. Since the stored information data to be tested does not need to be output outside the system, part of the data that is pushed out of the FIFO memory can be directly discarded. The data in this module (hereinafter referred to as "cache data") is used by the feature instruction recognition module to identify whether there are instructions (i.e., "feature instructions") that the user needs for power management, and a circuit composed of RAM can be used to implement the same first-in, first-out function as FIFO. The storage depth of the data cache module is set by the user, and the depth should be at least longer than the longest feature instruction set by the user.
[0061] The programmable ROM storage of the present embodiment includes preset characteristic instructions and corresponding time parameters (t) and operation instructions, which are provided to the characteristic instruction recognition module as a basis for comparison matching and generating operation instructions. In addition to the preset characteristic instructions, each piece of information stored in the programmable ROM also includes the following: corresponding time parameters (t) and operation instructions. Among them, only the characteristic instructions are provided to the characteristic instruction recognition module for comparison matching, and the others are directly read out by the characteristic instruction recognition module to generate delayed operations and operation instructions. In other words, only the characteristic instructions need to be transmitted by the electronic device through the communication cable, and other contents do not need to be transmitted. For example, the operation instructions stored in the programmable ROM are directly retrieved by the characteristic instruction recognition module, and do not need to be obtained by transmission through the communication cable. This greatly reduces the difficulty of adding a characteristic instruction set for managing electronic devices in a completed electronic device system.
[0062] The preset characteristic instructions are used to match and judge the characteristic instructions that appear in the cache data. The characteristic instructions respectively define the specific management operations for the control object, including the watchdog clearing characteristic instruction (i.e., feeding the dog instruction), the submodule power on / off instruction, the submodule power restart instruction, the trigger self-destruct instruction, the current grading limiting power supply grading setting instruction, the I / O switching instruction, etc. t is the time parameter for delaying the sending of the operation instruction. Except for the operation of the feeding dog instruction, which is that the characteristic instruction recognition module sends a feeding dog signal to the watchdog counter, the operations of other characteristic instructions are finally implemented to operate the control switch quantity of the control object respectively. Therefore, the operation instruction is the information sent to the instruction execution module to perform control management, which respectively contains the operation information of the control object, i.e., the switch quantity address and the switch quantity output type (low level, high level, positive pulse, negative pulse, high impedance signal, etc.). Of course, different electronic devices, different control objects, and different management operations, the characteristic instructions and corresponding time parameters and operation instructions stored in the programmable ROM are also different. In other words, the content in the programmable ROM is set according to the different electronic devices used for the object.
[0063] Since this system is externally mounted on the completed electronic equipment, the programmable ROM of the present embodiment, the characteristic instructions stored therein should be composed of data bytes or byte strings that will not appear on the communication cable (i.e., the original system is not defined), such as a certain instruction consisting of a displayable string "####" to form an instruction header, which is convenient for the system debugging (monitoring) platform to find and display. When there is no or cannot be determined to be enough redundant data bytes on the communication cable to manage the characteristic instruction set of the electronic equipment, or for strict system considerations, the characteristic instruction header can also be composed of "keywords + auxiliary bytes". The keywords need to be selected from the bytes (such as non-display characters) that the system does not use on the communication cable, so that the characteristic instruction recognition module can distinguish them. In a word, the composition of the characteristic instruction must not affect the communication function undertaken by the completed communication cable.
[0064] The characteristic instruction recognition module of this embodiment compares the cached data from the data cache module with the preset characteristic instructions in the programmable ROM one by one in real time, and determines whether there is a characteristic instruction matching the preset characteristic instruction in the cached data. If there is, it determines again whether the characteristic instruction is a dog feeding instruction. If it is a dog feeding instruction, a dog feeding signal is sent to the watchdog counter to clear it, otherwise, the corresponding t and operation instruction stored in the ROM are retrieved according to the characteristic instruction, and the operation instruction is sent to the instruction execution module with a delay of t, and the operation instruction is sent immediately if t is 0.
[0065] The watchdog counter of the present embodiment is reset by the dog feeding signal triggered by the dog feeding instruction identified by the characteristic instruction recognition module. After the electronic device and the system are started, the electronic device can issue a dog feeding instruction to wake up the watchdog counter, and periodically issue a dog feeding instruction to reset the watchdog counter during normal operation, otherwise the dog feeding instruction cannot be issued so that the watchdog counter overflows. If the watchdog counter overflows, the total power supply of the electronic device will be turned off and on to restart. Therefore, as long as the electronic device does not work properly and the external system cannot issue a periodic dog feeding instruction, the watchdog counter of the system will perform a power off-on restart operation on the electronic device. This operation is used to overcome the occasional abnormal phenomenon after the electronic device has worked for a period of time, regardless of whether the watchdog of the electronic device is started or not.
[0066] The working mode of the watchdog counter of the present embodiment is determined by the "initial count allowance / " pin signal. If the pin signal is set to "0", the watchdog counter starts counting immediately after obtaining the power-on signal of the electronic device, and the first dog feeding instruction identified by the characteristic instruction recognition module is cleared and the watchdog counter count is stopped. Subsequently, the watchdog counter is cleared (wake up) by the dog feeding instruction and the counting is restarted. Therefore, if the electronic device fails to power on and start, the dog feeding instruction cannot be issued to the external system within the watchdog cycle, and the watchdog counter of the system overflows, and the electronic device will be restarted by turning off and on the power supply to overcome the failure of the electronic device to power on and start. If the electronic device is powered on and starts normally, the first dog feeding instruction will be issued to the system in time to stop the watchdog counter counting. If the external watchdog counter of this system needs to work in the future, the watchdog counter must be cleared and counted (wake up) by the dog feeding instruction, and the dog feeding instruction must be sent periodically to clear the watchdog counter and count. Otherwise, the overflow of the watchdog counter will implement a power-off-on restart operation on the main power supply of the electronic equipment.
[0067] If the "initial count enable / " pin signal of the watchdog counter is set to "1", the watchdog counter will not count after receiving the power-on signal of the electronic device. If the electronic device needs an external watchdog counter to work, the first dog feeding instruction must be issued to wake up the watchdog counter to start counting. Subsequently, the dog feeding instruction must be periodically issued to clear the watchdog counter and perform counting operations. Otherwise, the overflow of the watchdog counter will implement a power-off-on restart operation on the main power supply of the electronic device.
[0068] The instruction execution module of this embodiment receives the operation instruction sent by the characteristic instruction recognition module, and performs output operation on the control object in the electronic device connected to it through the corresponding switch quantity in the form of level, pulse, high-impedance signal, etc. according to the operation instruction. The specific execution circuit configuration is determined according to the power supply requirements of the submodule managed by this system or the requirements of other control objects, for example, a relay is used for the switch operation of the submodule power supply.
[0069] Figure 2 For a schematic diagram of the connection between the programmable online power management system block diagram provided by an embodiment of the present invention and the host computer and electronic equipment, please refer to Figure 2 . Figure 2 The host computer in the middle is the electronic device that implements management. It is connected to this system through a communication cable, that is, this system is externally mounted on the completed host computer and the managed electronic device. The electronic device managed on the right side includes the control objects specifically managed by this system, such as the total power supply of the device (connected and controlled by the watchdog counter of this system through the power supply lead), as well as the submodule power supply, self-destruction module, current grading limiting power supply, I / O port selection, or other objects that need to be controlled, which are connected and controlled by the instruction execution module of this system. Therefore, the characteristic instructions of this system include the watchdog clearing characteristic instruction (i.e., feeding dog instruction), submodule power on / off instruction, submodule power restart instruction, trigger self-destruction instruction, current grading limiting power supply grading setting instruction, I / O switching instruction, etc. This system does not share power supply with the management object (this system uses power supply 2, and the electronic device uses power supply 1), or does not share power supply in parallel with the electronic device of the management object, so as to realize physical power off and power on restart of the electronic device. This system is connected to the communication cable and receives the characteristic instructions sent by the electronic device that implements management through it, without affecting other communication functions of the system that the communication cable may undertake. Therefore, the characteristic instruction is issued by the electronic device implementing the management to realize the remote online management of the electronic device. The electronic device implementing the management implements the start / stop and cut-in / cut-out operations of the sub-module power supply and output port by this system through the characteristic instruction, or starts the self-destruct module, or limits the current of the power supply in stages (for example, limiting it to 5A or 10A), or selects the I / O port input and output for the electronic device. If the electronic device implementing the management detects that the managed electronic device is working normally or abnormally, it will issue or not issue the dog feeding instruction, and the watchdog counter will perform the off-on restart operation on the main power supply of the device through the power supply lead. Of course, if the managed electronic device is also connected to the communication cable (similar to Figure 1 If there is a connection in the system), some characteristic instructions (such as feeding the dog instruction) can also be sent to this system by the managed electronic device.
[0070] other Figure 2 and Figure 1 The same parts in the description are omitted.
[0071] This system is used to overcome the occasional "freeze" phenomenon of electronic equipment, and it cannot "freeze" itself. In order to enhance the operational reliability of this device, this system is implemented using FPGA or CPLD, or using discrete components, that is, it is completely implemented using hardware circuits. This system does not need to contain a processor to avoid the "freeze" phenomenon caused by program operation.
[0072] Figure 3 For a flow chart of the online power management operation method provided by an embodiment of the present invention, please refer to Figure 3 The process of the online power management operation method includes the following steps.
[0073] Step 1. Real-time identification and conversion of digital signals in the communication cable into data to be tested, and storage in a data cache module;
[0074] Step 2: Real-time detection of whether the data to be tested has matching instructions with the characteristic instructions preset in the programmable ROM;
[0075] Step 3. If a matching characteristic instruction is detected, continue to determine whether the characteristic instruction is a dog feeding instruction. If so, send a dog feeding signal to the watchdog counter and clear the watchdog counter, and go to step 1;
[0076] Otherwise, generate and send an operation instruction to the instruction execution module according to the instruction format; if the instruction is set with a delay time, send the operation instruction according to the delay requirement; go to step 1;
[0077] If no matching feature instruction is detected, go to step 1.
[0078] The embodiment of the present invention further provides a watchdog counter that can be used in a programmable online power management system, as follows:
[0079] Figure 4 A schematic diagram of the connection between a watchdog counter started by feeding a dog and an electronic device provided in an embodiment of the present invention. Figure 4 A watchdog counter started by feeding a dog mainly consists of a relay normally closed switch, a relay coil, a relay drive circuit, a WDOG circuit (mainly composed of a counter), a first counting enabling circuit, a first power supply (i.e., power supply 1) and a second power supply (i.e., power supply 2). The watchdog counter works independently so that there is no need to modify the circuit design of the electronic device. In order to increase the stability of operation, the power supply of the watchdog counter in this embodiment is not shared with the power supply of the electronic device, that is, the electronic device uses power supply 1 and the watchdog counter uses power supply 2. The total power supply of the electronic device is connected to power supply 1 through the power supply lead through the relay normally closed switch, one end of the relay coil is connected to power supply 2 for supplying power to the watchdog counter, and the other end is connected to the overflow end of the WDOG circuit output through the relay drive circuit. The dog feeding signal (i.e., the negative pulse "feed dog / ") issued by the feature instruction recognition module is connected to the reset end of the WDOG circuit and the dog feeding end of the first counting enabling circuit. The enabling end output of the first counting enabling circuit is connected to the enabling end of the WDOG circuit. The clock end of the WDOG is connected to the counting clock, and the counting clock is provided by the system clock or by the oscillation circuit.
[0080] The first power supply and the second power supply can be the same power supply, but the above connection method ensures that the watchdog counter and the electronic device are not connected in parallel on the same power line, that is, they are not connected in parallel to share a common power supply.
[0081] Figure 7 A schematic diagram of a logic circuit of a first counting enabling circuit in a watchdog counter provided by an embodiment of the present invention. Figure 7 The first counting enable circuit is mainly composed of an RS flip-flop U201 and an AND gate U202. The input end of the AND gate is connected to the initial counting enable end of the first counting enable circuit and the output end of the RS flip-flop respectively, and the output end of the AND gate serves as the enable end of the first counting enable circuit. Therefore, only when the initial counting enable end is artificially set to a signal "1", the output Q1 of the RS flip-flop is output through the AND gate and transmitted to the enable end output of the first counting enable circuit, otherwise the enable end output remains at "0". The power-on signal sent by the electronic device is connected to the R end of the RS flip-flop, and the dog feeding signal sent by the feature instruction recognition module is connected to the S end of the RS flip-flop. The RS flip-flop is designed as a signal maintenance circuit, and its output Q1 serves as an "enable" ("1" is valid) signal, and is finally output through the enable end of the first counting enable circuit.
[0082] See also Figure 4 and Figure 7 When the initial count enable terminal of the first count enable circuit obtains the artificial preset signal as "1", the enable terminal of the first count enable circuit is allowed to output the signal of the RS trigger Q1.
[0083] When the electronic device is powered on, a power-on signal (negative pulse) is generated and transmitted to the power-on end of the first counting enabling circuit, that is, the R end of the RS trigger, and the RS trigger Q1 outputs and maintains "0", so that the enabling end of the first counting enabling circuit outputs a signal of "0" to the enabling end of the WDOG circuit, so that the WDOG circuit does not count, and the overflow end of the WDOG circuit outputs a signal of "0", the relay drive circuit does not work, the relay normally closed switch is in a closed circuit state, and the electronic device remains connected to the power supply 1. This is the initial state.
[0084] Until the feeding end of the first counting enable circuit obtains the feeding signal from the characteristic instruction recognition module, that is, when the S end of the RS trigger obtains a negative pulse, the RS trigger Q1 outputs and maintains "1", so that the enable end of the first counting enable circuit outputs a signal of "1" to the enable end of the WDOG circuit, and the WDOG circuit works to obtain the counting clock cumulative count.
[0085] The function of the WDOG circuit is similar to that of an ordinary watchdog circuit (mainly composed of a counter). When the enable terminal is "1", the WDOG circuit counts the count clock. A properly functioning electronic device will output a dog feeding instruction within the overflow cycle of the WDOG circuit, causing the characteristic instruction recognition module to issue a dog feeding signal. When the WDOG is working and when the electronic device is working properly, the reset terminal of the WDOG circuit obtains the dog feeding signal to reset the accumulated count to restart the counting. The overflow terminal of the WDOG circuit maintains the output as "0", the relay drive circuit does not work, the relay normally closed switch remains closed, and the electronic device remains powered on.
[0086] When WDOG is working and the electronic device is out of control and cannot send out the dog feeding command, that is, the electronic device "freezes" and causes the characteristic command recognition module to fail to output the dog feeding signal, and the WDOG circuit counts fully and the reset end still does not receive the dog feeding signal, then the accumulated count of the WDOG circuit overflows and its overflow end outputs "1", that is, a positive pulse signal with a certain period pulse width (to fully cut off the power of the electronic device), so that the relay drive circuit works to control the normally closed switch of the relay to disconnect, and the electronic device is powered off.
[0087] When the overflow end of the WDOG circuit restores the output to "0", the relay drive circuit does not work, the normally closed switch of the relay is closed, the electronic device is connected to power supply 1 to power on, and a power-on signal is generated and transmitted to the power-on end of the first counting enable circuit, returning to the initial state.
[0088] The above process is realized. After the watchdog counter is started by the dog feeding signal, if the electronic device loses control and "freezes", the power is cut off and then powered on again to start.
[0089] Figure 5 A schematic diagram of connecting a power-on watchdog counter and an electronic device provided by an embodiment of the present invention. Figure 5 and Figure 4 , a power-on watchdog counter ( Figure 5 ), except that the first counting enabling circuit is replaced by the second counting enabling circuit, the other parts are similar to the aforementioned watchdog counter started by feeding the dog ( Figure 4 ), so the explanation is omitted.
[0090] Figure 8 A schematic diagram of a logic circuit of a second counting enabling circuit in a watchdog counter provided by an embodiment of the present invention. Figure 8The second counting enable circuit is mainly composed of multiple gate circuits (U301, U303-U306), a D flip-flop U302 and a second RS flip-flop U307. The D flip-flop U302 is designed as a counter that counts once and then locks and no longer counts (Q2 / is connected to D, and Q2 shields the CK terminal pulse signal through the OR gate U301). The second RS flip-flop U307 is designed as a signal maintenance circuit, and its output Q3 is used as an "enable" ("1" is valid) signal. The function of the AND gate U306 is that only when the initial counting enable terminal is artificially set to the signal "0", the output Q3 of the second RS flip-flop is output through the AND gate U306 and transmitted to the enable terminal output of the second counting enable circuit, otherwise the enable terminal output remains "0".
[0091] See also Figure 5 and Figure 8 When the initial count enable terminal of the second count enable circuit obtains the artificial preset signal as “0”, the enable terminal of the second count enable circuit is allowed to output the signal of the second RS flip-flop Q3.
[0092] When the electronic device is powered on, a power-on signal (negative pulse) is generated and transmitted to the power-on terminal of the second count enable circuit, so that the D flip-flop Q2 is set to "0", and the second RS flip-flop Q3 is set to "1", so that the enable terminal of the second count enable circuit outputs the Q3 signal as "1" to the enable terminal of the WDOG circuit, and the WDOG circuit works to obtain the accumulated count of the count clock. When the WDOG circuit count does not overflow, the overflow terminal output signal is "0", the relay drive circuit does not work, and the relay normally closed switch keeps the electronic device connected to the power supply 1. This is the initial state.
[0093] When WDOG is working and the electronic equipment is working normally, the reset end of the WDOG circuit obtains the dog feeding signal (negative pulse) from the feature instruction recognition module to reset the accumulated count to restart the counting. The overflow end of the WDOG circuit maintains the output as "0", the relay drive circuit does not work, the relay normally closed switch remains closed, and the electronic equipment remains powered on.
[0094] At the same time, the feeding end of the second counting enabling circuit obtains the feeding signal. If it is the first acquisition, since Q2 of the D flip-flop is "0" at this time, the feeding signal cannot set the second RS flip-flop Q3 to "1" through the OR gate U304 that is ORed with Q2 / , and can only set the second RS flip-flop Q3 to "0" through the OR gate U303 that is ORed with Q2; at the same time, the rising edge of the feeding signal causes the D flip-flop to count once (Q2 / connects to D) and locks Q2 to "1" (that is, Q2's "1" passes through the OR gate U301 so that the D flip-flop CK end no longer receives the feeding signal); the combined effect is that the D flip-flop Q2 is locked to "1" and the second RS flip-flop Q3 is set to "0". After the second RS flip-flop Q3 is set to "0", the enabling end of the second counting enabling circuit outputs the Q3 signal "0" to the enabling end of the WDOG circuit, so that the WDOG circuit does not count, and the overflow end of the WDOG circuit outputs a signal of "0", the relay drive circuit does not work, the relay normally closed switch is in a closed state, and the electronic device remains connected to the power supply 1.
[0095] Until the feeding end of the second counting enabling circuit obtains the second and subsequent feeding signals, since Q2 of the D flip-flop is locked to "1" at this time, the feeding signal cannot pass through the OR gate U303 that is ORed with Q2 to set the second RS flip-flop Q3 to "0", and can only pass through the OR gate U304 that is ORed with Q2 / to set the second RS flip-flop Q3 to "1" and maintain it. The combined effect is that the D flip-flop Q2 is maintained at "1" and the second RS flip-flop Q3 is set to "1". The second RS flip-flop Q3 is set to "1", so that the enabling end of the second counting enabling circuit outputs the Q3 signal as "1" to the enabling end of the WDOG circuit, and the WDOG circuit works to obtain the counting clock cumulative count.
[0096] When WDOG is working and the electronic device is out of control and cannot send out a dog feeding signal, the accumulated count of the WDOG circuit overflows and its overflow terminal outputs "1", that is, a positive pulse signal with a certain period pulse width, which makes the relay drive circuit work and control the normally closed switch of the relay to disconnect, and the electronic device is powered off.
[0097] When the overflow end of the WDOG circuit restores the output to "0", the relay drive circuit does not work, the normally closed switch of the relay is closed, the electronic device is connected to power supply 1 to power on, and a power-on signal is generated and transmitted to the power-on end of the second counting enable circuit, returning to the initial state.
[0098] The above process is realized. After the power-on signal or the dog feeding signal starts the watchdog counter, if the electronic device loses control and "freezes", the power is cut off and then powered on again to start.
[0099] Figure 6 A schematic diagram of the connection between a watchdog counter started by feeding a dog and started by powering on and an electronic device provided in an embodiment of the present invention. Figure 6 ,contrast Figure 4 and Figure 5This kind of watchdog counter is a combination of the aforementioned watchdog counter started by feeding the dog and the watchdog counter started by powering on, the purpose is to facilitate the use of either. This kind of watchdog counter is mainly composed of a relay normally closed switch, a relay coil, a relay drive circuit, a WDOG circuit (mainly composed of a counter), a first counting enable circuit and a second counting enable circuit, an OR gate, a first power supply and a second power supply. The connection or function of each component is similar to the aforementioned watchdog counter started by feeding the dog and started by powering on, except that the enable signal output by the first counting enable circuit and the second counting enable circuit is output to the enable end of the WDOG circuit through the OR gate combination, so the description is omitted.
[0100] See also Figure 6 and Figure 7 When the initial count enable terminal obtains the artificial preset signal of "1", only the enable terminal of the first count enable circuit is allowed to output the signal of RS trigger Q1, and the output of the second count enable circuit enable terminal remains "0". At this time, the working process of the watchdog counter is the same as the watchdog counter started by feeding the dog, so the description is omitted.
[0101] See also Figure 6 and Figure 8 When the initial count enable terminal obtains the artificial preset signal of "0", only the enable terminal of the second count enable circuit is allowed to output the signal of the second RS flip-flop Q3, and the output of the enable terminal of the first count enable circuit remains "0". At this time, the working process of the watchdog counter is the same as the aforementioned power-on start-up watchdog counter, so the description is omitted.
[0102] The beneficial effects of the programmable online power management system and watchdog counter of the present invention: the system of the present invention realizes the online management operation of the electronic device by the host computer through the operation instruction, such as turning on / off the submodule power supply, enabling the self-destruct module, setting the current classification limit power supply or I / O port selection, etc. The system of the present invention can be hung on the electronic device as an independent unit with the help of a communication cable, does not share the power supply with the electronic device or shares the power supply in parallel, and the electronic device is changed very little or no hardware change is required. When the system and watchdog counter of the present invention detect that the electronic device is "dead", it directly realizes physical power off and power-on restart, simulates manual power-on restart, and can effectively overcome the "dead" failure of the electronic device online. In addition, the watchdog counter provides two working mode options by artificially presetting the "initial count permission" signal, that is, feeding the dog to start the watchdog, or powering on the watchdog (including feeding the dog to start the watchdog). The former enables the user to flexibly grasp the timing of starting the watchdog, and the latter is based on the former, and is also used to overcome the phenomenon that the electronic device may not be able to start normal work after powering on. Since the watchdog counter itself is composed of a relatively simple pure hardware circuit, it is guaranteed that the watchdog counter itself can run stably without "freezing". In addition, if the dog feeding signal is sent by an electronic device instead, the watchdog counter can also be used as an independent unit to work externally on the electronic device to overcome the "freezing" fault.
Claims
1. A programmable online power management system, characterized in that: The programmable online power management system is used to control the total power supply and the control object in the electronic device respectively, and comprises the following steps: The signal conversion module obtains the digital signal from the electronic device through the communication cable and converts it into the information data to be tested that can be recognized by the characteristic instruction recognition module; A data cache module obtains the information data to be tested from the signal conversion module and stores it as cache data; A programmable ROM, used for storing preset characteristic instructions and operation instructions corresponding to the preset characteristic instructions; The characteristic instruction recognition module obtains the cache data from the data cache module and the preset characteristic instruction from the programmable ROM, and determines whether there is a characteristic instruction matching the preset characteristic instruction in the cache data one by one according to the acquisition order, and if so, determines whether the characteristic instruction is a dog feeding instruction in the preset characteristic instruction, and if so, transmits a dog feeding signal corresponding to the dog feeding instruction to the watchdog counter; If it is not a dog feeding instruction, the corresponding preset characteristic instruction is matched according to the cache data, the corresponding operation instruction stored in the ROM is retrieved, and the operation instruction is transmitted to the instruction execution module; A watchdog counter obtains a power-on signal from the electronic device and a dog-feeding signal from the characteristic instruction recognition module, and counts or clears the watchdog counter accordingly. If the count overflows, the power supply of the electronic device's main power supply is powered off and restarted; The instruction execution module connected to the control object obtains the operation instruction from the characteristic instruction recognition module, and operates the control object according to the operation instruction.
2. The programmable online power management system according to claim 1, characterized in that: The watchdog counter also includes an "initial count enable / " pin signal. If the pin signal is "0", the watchdog counter starts counting after obtaining a power-on signal, and the first feeding dog instruction identified by the characteristic instruction recognition module is counted and cleared, and the watchdog counter is stopped. The subsequent feeding dog instruction wakes up, clears and restarts counting; If the pin signal is "1", the watchdog counter will not count after receiving the power-on signal. The first feeding instruction wakes up the watchdog counter to start counting, and the subsequent feeding instruction clears it and restarts counting.
3. The programmable online power management system according to claim 1, characterized in that: The data cache module stores the information data to be tested in the order in which the signal conversion module sends the information data to be tested, and ejects the cache data corresponding to the information data to be tested from the data cache module after being processed by the characteristic instruction recognition module.
4. The programmable online power management system according to claim 1, characterized in that: The preset characteristic instruction also includes key bytes and auxiliary bytes, and only the preset characteristic instruction is transmitted by the communication cable to reduce the impact on the communication of the communication cable.
5. A watchdog counter started by feeding the dog, characterized in that: Applied to a programmable online power management system as claimed in claim 1 to power off and restart the power supply of an out-of-control electronic device, the watchdog counter comprises a relay normally closed switch, a relay coil, a relay drive circuit, a WDOG circuit, a first counting enabling circuit, a first power supply and a second power supply; The electronic device is connected to the first power supply via a relay normally closed switch, one end of the relay coil is connected to the second power supply for supplying power to the watchdog counter, and the other end is connected to the overflow end of the WDOG circuit output via a relay drive circuit; the reset end of the WDOG circuit is connected to the feeding end of the first counting enabling circuit; the enabling end output of the first counting enabling circuit is connected to the enabling end of the WDOG circuit; When the initial count enable terminal of the first count enable circuit obtains the artificial preset signal "1", the enable terminal of the first count enable circuit is allowed to output the signal "1"; When the electronic device is powered on, the electronic device generates a power-on signal and transmits it to the power-on end of the first count enable circuit, so that the enable end of the first count enable circuit outputs a signal of "0" to the enable end of the WDOG circuit, the WDOG circuit does not work, the overflow end of the WDOG circuit outputs a signal of "0", and the normally closed switch of the relay remains closed, so that the electronic device is connected to the first power supply until the feeding end of the first count enable circuit obtains the feeding signal, so that the enable end of the first count enable circuit outputs a signal of "1" to the enable end of the WDOG circuit, and the WDOG circuit obtains the counting clock accumulated count; When the WDOG circuit is working and the electronic device is working normally, the reset end of the WDOG circuit obtains the dog feeding signal to reset the accumulated count to restart the counting, the overflow end of the WDOG circuit maintains the output as "0", and the normally closed switch of the relay remains closed, so that the electronic device is connected to the first power supply; When the WDOG circuit works and the electronic device is out of control and cannot send out the dog feeding signal, the accumulated count of the WDOG circuit overflows and the overflow terminal of the WDOG circuit outputs "1", the relay drive circuit works to control the normally closed switch of the relay to be disconnected, and the electronic device is powered off; When the overflow end of the WDOG circuit restores the output to "0", the normally closed switch of the relay is closed, the electronic device is powered on, and a power-on signal is generated and transmitted to the power-on end of the first count enabling circuit.
6. A watchdog counter activated by power-on, characterized in that: Applied to a programmable online power management system as claimed in claim 1 to cut off and restart the power supply of an out-of-control electronic device, the watchdog counter comprises a normally closed relay switch, a relay coil, a relay drive circuit, a WDOG circuit, a second counting enabling circuit, a first power supply and a second power supply; The electronic device is connected to the first power supply via a relay normally closed switch, one end of the relay coil is connected to the second power supply for supplying power to the watchdog counter, and the other end is connected to the overflow end of the WDOG circuit output via a relay drive circuit; the reset end of the WDOG circuit is connected to the feeding end of the second counting enabling circuit; the enabling end output of the second counting enabling circuit is connected to the enabling end of the WDOG circuit; When the initial count enable terminal of the second count enable circuit obtains the artificial preset signal "0", the enable terminal of the second count enable circuit is allowed to output a signal "1"; When the electronic device is powered on, the electronic device generates a power-on signal and transmits it to the power-on terminal of the second counting enabling circuit, so that the enabling terminal of the second counting enabling circuit outputs a signal of "1" to the enabling terminal of the WDOG circuit, and the WDOG circuit works, and the WDOG circuit obtains the accumulated count of the counting clock; the overflow terminal of the WDOG circuit maintains the output signal of "0", and the normally closed switch of the relay remains closed, so that the electronic device is connected to the first power supply; When the WDOG circuit is working and the electronic device is working normally, the reset end of the WDOG circuit obtains the dog feeding signal to reset the accumulated count to restart the counting, the overflow end of the WDOG circuit maintains the output as "0", the normally closed switch of the relay remains closed, and the electronic device remains powered on; at the same time, the dog feeding end of the second counting permission circuit obtains the dog feeding signal, if it is the first time to obtain, the output signal of the enable end of the second counting permission circuit is "0" and transmitted to the enable end of the WDOG circuit, the WDOG circuit does not work and the overflow end of the WDOG circuit outputs a signal of "0", until the dog feeding end of the second counting permission circuit obtains the second and subsequent dog feeding signals, so that the output signal of the enable end of the second counting permission circuit is "1" to the enable end of the WDOG circuit, so that the WDOG circuit works; When the WDOG circuit works and the electronic device is out of control and cannot send out the dog feeding signal, the accumulated count of the WDOG circuit overflows and the overflow terminal of the WDOG circuit outputs "1", the relay drive circuit works to control the normally closed switch of the relay to be disconnected, and the electronic device is powered off; When the overflow end of the WDOG circuit restores the output to "0", the normally closed switch of the relay is closed, the electronic device is powered on, and a power-on signal is generated and transmitted to the power-on end of the second counting enabling circuit.
7. A watchdog counter that can be started by feeding the dog and starting with power on, characterized in that: Applied to a programmable online power management system as claimed in claim 1 to power off and restart the power supply of an out-of-control electronic device, the watchdog counter comprises a normally closed relay switch, a relay coil, a relay drive circuit, a WDOG circuit, a first count enable circuit and a second count enable circuit, an OR gate, a first power supply and a second power supply; The electronic device is connected to the first power supply via a relay normally closed switch, one end of the relay coil is connected to the second power supply for powering the watchdog counter, and the other end is connected to the overflow end of the WDOG circuit output via a relay drive circuit; the reset end of the WDOG circuit is respectively connected to the feeding end of the first count enabling circuit and the second count enabling circuit; the enabling ends of the first count enabling circuit and the second count enabling circuit are respectively connected to the input end of the OR gate, and the output end of the OR gate is connected to the enabling end of the WDOG circuit; the power-on end of the first count enabling circuit is connected to the power-on end of the second count enabling circuit, and the initial count enabling end of the first count enabling circuit is connected to the initial count enabling end of the second count enabling circuit; When the initial count enable end of the first count enable circuit obtains the artificial preset signal of "1", only the enable end of the first count enable circuit is allowed to output the signal "1"; when the electronic device is powered on, the electronic device generates a power-on signal and transmits it to the power-on end of the first count enable circuit, so that the enable end of the first count enable circuit outputs a signal of "0" to the enable end of the WDOG circuit, the WDOG circuit does not work, the overflow end of the WDOG circuit outputs a signal of "0", and the normally closed switch of the relay connects the electronic device to the first power supply until the feeding end of the first count enable circuit obtains the feeding signal, so that the enable end of the first count enable circuit outputs a signal of "1" to the enable end of the WDOG circuit, the WDOG circuit works, and the count is obtained. The clock accumulates the count; when the WDOG works and the electronic device works normally, the reset end of the WDOG circuit obtains the dog feeding signal to reset the accumulated count to restart the counting, the overflow end of the WDOG circuit maintains the output as "0", the relay normally closed switch remains closed, and the electronic device remains powered on; when the WDOG circuit works and the electronic device is out of control and cannot send the dog feeding signal, the accumulated count of the WDOG circuit overflows and its overflow end outputs "1", so that the relay drive circuit works to control the relay normally closed switch to be disconnected, and the electronic device is powered off; when the overflow end of the WDOG circuit resumes the output as "0", the relay normally closed switch is closed, the electronic device is powered on, and a power-on signal is generated and transmitted to the power-on end of the first counting enabling circuit; When the initial count enable end obtains the artificial preset signal "0", only the second count enable circuit enable end is allowed to output the signal "1"; when the electronic device is powered on, a power-on signal is generated and transmitted to the power-on end of the second count enable circuit, so that the enable end of the second count enable circuit outputs a signal "1" to the enable end of the WDOG circuit, and the WDOG circuit works to obtain the cumulative count of the counting clock; when the WDOG circuit count does not overflow, the overflow end outputs a signal "0", and the normally closed switch of the relay remains closed, so that the electronic device is connected to the first power supply; when the WDOG circuit works and the electronic device works normally, the reset end of the WDOG circuit obtains the dog feeding signal to reset the cumulative count to restart the counting, and the overflow end of the WDOG circuit maintains the output "0", the normally closed switch of the relay remains closed, and the electronic device remains powered on; at the same time, the dog feeding end of the second count enable circuit Obtain the dog feeding signal. If it is the first time to obtain it, the enable end of the second counting enable circuit outputs a signal of "0" to the enable end of the WDOG circuit, the WDOG circuit does not work and its overflow end outputs a signal of "0", until the dog feeding end of the second counting enable circuit obtains the second and subsequent dog feeding signals, so that the enable end of the second counting enable circuit outputs a signal of "1" to the enable end of the WDOG circuit, and the WDOG circuit works; when the WDOG circuit works and the electronic device is out of control and cannot send out the dog feeding signal, the accumulated count of the WDOG circuit overflows and its overflow end outputs a signal of "1", so that the relay drive circuit works to control the normally closed switch of the relay to be disconnected, and the electronic device is powered off; when the overflow end of the WDOG circuit resumes outputting a signal of "0", the normally closed switch of the relay is closed, the electronic device is powered on, and a power-on signal is generated and transmitted to the power-on end of the second counting enable circuit.
8. The watchdog counter according to claim 5 or 7, characterized in that: The first counting enabling circuit includes an AND gate and an RS trigger; the initial counting enabling terminal of the first counting enabling circuit and the output terminal of the RS trigger are respectively connected to the input terminal of the AND gate, and the output terminal of the AND gate serves as the enabling terminal of the first counting enabling circuit; only when the initial counting enabling terminal of the first counting enabling circuit obtains a signal of "1", the output of the RS trigger is output through the AND gate and transmitted to the enabling terminal of the WDOG circuit; When the R end of the RS trigger obtains the power-on signal "0" from the electronic device, the output of the RS trigger is "0", which is transmitted to the enable end of the WDOG circuit to stop the WDOG circuit from counting; when the electronic device is working normally, the S end of the RS trigger obtains the dog feeding signal, and the output of the RS trigger is "1", which is transmitted to the enable end of the WDOG circuit to allow the WDOG circuit to count.
9. The watchdog counter according to claim 6 or 7, characterized in that: The second counting enabling circuit includes a plurality of gate circuits, a D flip-flop locked after counting once, and a second RS flip-flop; only when the initial counting enabling terminal of the second counting enabling circuit acquires a signal of "0", the output of the second RS flip-flop is allowed to be transmitted to the enabling terminal of the WDOG circuit; When the power-on terminal of the second counting enabling circuit receives a power-on signal, the gate circuit, the D flip-flop and the second RS flip-flop of the second counting enabling circuit interact with each other, the D flip-flop is set to "0", the second RS flip-flop is set to "1", and the enabling terminal of the second counting enabling circuit outputs "1", which is transmitted to the enabling terminal of the WDOG circuit to enable the WDOG circuit to count; When the feeding end of the second counting enabling circuit receives the first feeding signal outputted by the normal operation of the electronic device, the gate circuit, the D flip-flop and the second RS flip-flop of the second counting enabling circuit interact with each other, the D flip-flop counts once and is locked as "1", the second RS flip-flop is set to "0", the enabling end of the second counting enabling circuit outputs "0", which is transmitted to the enabling end of the WDOG circuit so that the WDOG circuit does not count; When the dog feeding end of the second counting enabling circuit receives the second and subsequent dog feeding signals outputted due to the normal operation of the electronic device, the gate circuit, the D flip-flop and the second RS flip-flop of the second counting enabling circuit interact with each other, the D flip-flop is maintained at "1", the second RS flip-flop is set to "1", the enabling end of the second counting enabling circuit outputs "1", which is transmitted to the enabling end of the WDOG circuit to enable the WDOG circuit to count.
10. The watchdog counter according to any one of claims 5 to 7, characterized in that: The first power supply and the second power supply are the same power supply.
Citation Information
Patent Citations
Watchdog control circuit, electronic equipment and watchdog control method
CN113791927A
Control method and device for remote restart of ground equipment and remote restart equipment
CN114291133A
FPGA control protection circuit and power supply control protection device
CN117728664A
Multi-path power supply control method and device
CN118113125A
Watchdog circuit
CN101710296A