CN114765101B - Circuit breaker with no interruption of protection during online firmware upgrade - Google Patents
Circuit breaker with no interruption of protection during online firmware upgrade Download PDFInfo
- Publication number
- CN114765101B CN114765101B CN202110040438.2A CN202110040438A CN114765101B CN 114765101 B CN114765101 B CN 114765101B CN 202110040438 A CN202110040438 A CN 202110040438A CN 114765101 B CN114765101 B CN 114765101B
- Authority
- CN
- China
- Prior art keywords
- program
- control chip
- main program
- main
- firmware
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01H—ELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
- H01H71/00—Details of the protective switches or relays covered by groups H01H73/00 - H01H83/00
- H01H71/10—Operating or release mechanisms
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01H—ELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
- H01H71/00—Details of the protective switches or relays covered by groups H01H73/00 - H01H83/00
- H01H71/10—Operating or release mechanisms
- H01H71/12—Automatic release mechanisms with or without manual release
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01H—ELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
- H01H9/00—Details of switching devices, not covered by groups H01H1/00 - H01H7/00
- H01H9/54—Circuit arrangements not adapted to a particular application of the switching device and for which no provision exists elsewhere
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
A circuit breaker without interrupting protection during online firmware upgrading comprises an MCU control chip and a storage medium, wherein the storage medium stores a main program and a BootLoader program, the BootLoader program comprises a main program firmware upgrading program and a standby main protection program, an interruption setting step is used for fixedly dividing an alternating current period T into N equal parts, timing interruption time is set according to T/N, when the MCU control chip executes the main program firmware upgrading program, the standby main protection program is executed through timing interruption, the main program firmware upgrading program reads firmware upgrading package data and writes the firmware upgrading package data into the storage medium to update the main program, the standby main protection program samples and stores current transient values at timing interruption and judges to protect based on the current transient values, and when an alternating current period is ended, the current effective values are calculated to protect based on the current effective values, so that online firmware upgrading can be carried out under the condition of no power failure and the protection is not interrupted.
Description
Technical Field
The invention belongs to the technical field of manufacturing of piezoelectric devices, and particularly relates to a circuit breaker which is not interrupted for protection during online firmware upgrading.
Background
The circuit breaker is used for carrying out circuit protection on an accessed circuit, and the circuit protection function mainly comprises overcurrent protection, short-circuit protection, leakage protection, undervoltage/overvoltage protection and the like. The existing intelligent circuit breaker is generally provided with a circuit breaker controller, performs circuit protection by collecting current, voltage information and the like in a circuit, communicates with an upper computer through a communication module, uploads electricity information and protects the circuit according to control of the upper computer.
The existing circuit breaker controller generally does not have a firmware online upgrading function, and if the function of the circuit breaker is changed or upgraded, the firmware of the circuit breaker controller also needs to be changed or upgraded synchronously. The traditional method is that the cover of the breaker is opened, and the firmware of the controller of the breaker can be upgraded by using special equipment, so that the method has low efficiency and cannot meet the requirement of mass production.
Existing markets also have circuit breaker controllers with online firmware upgrade functions, which require 3-5 minutes to upgrade even if upgrade software is downloaded locally in advance, because of the generally long time for firmware upgrade. In the upgrading process, the existing circuit breaker controller cannot provide effective circuit protection measures at the same time, so that firmware upgrading is carried out on the circuit breaker controller generally until power failure maintenance is carried out, and the situation that program upgrading can be carried out in time without power failure is inadaptable to occasions where effective circuit protection still needs to be provided during program upgrading.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a circuit breaker without interrupting protection during online firmware upgrading.
In order to achieve the above purpose, the invention adopts the following technical scheme:
The circuit breaker without interrupting protection during on-line firmware upgrade comprises MCU control chip, storage medium storing main program and BootLoader program, the BootLoader program comprises main program firmware upgrade program and standby main protection program,
The method comprises an interruption setting step, wherein the interruption setting step fixedly divides an alternating current period T into N equal parts, N is a natural number larger than 1, and the time of the interruption is set according to the T/N, so that when the MCU control chip executes a main program firmware upgrading program, a standby main protection program is executed through the time interruption;
The main program firmware upgrade program reads the firmware upgrade package data and writes the firmware upgrade package data into a storage medium to update the main program;
The standby main protection program checks whether an alternating current period is ended, calculates current effective values based on a plurality of current transient values sampled in the alternating current period if the alternating current period is ended, judges whether protection is needed based on the current effective values, and drives the breaker to break off the brake if protection is needed.
Preferably, the BootLoader program further comprises a start-up bootstrap program, the MCU control chip firstly enters the start-up bootstrap program after being started up, the start-up bootstrap program detects whether the main program firmware is required to be upgraded, if the main program firmware is required to be upgraded, the step of setting interrupt is skipped, and if the main program firmware is not required to be upgraded, the main program is skipped.
Preferably, the main program is communicated with the upper computer, receives firmware upgrade package data sent by the upper computer and stores the firmware upgrade package data in a storage medium, when the main program receives a firmware upgrade instruction, after checking that the current product working state is normal and the downloaded firmware upgrade package data is correct, the main program sets a main program firmware upgrade flag bit and then triggers system software to reset, and the starting guide program determines whether the main program firmware upgrade is needed or not based on the main program firmware upgrade flag bit.
Preferably, the storage medium includes a main program area for storing a main program and a BootLoader area for storing a BootLoader program, and after the main program firmware upgrade program writes the firmware upgrade packet data into the main program area, it is checked whether the upgrade of the firmware is correct, and after the upgrade is determined to be correct, the main program firmware upgrade flag bit is cleared, and the system software is triggered to be reset.
Preferably, the standby main protection program compares the current transient value with a set threshold value, triggers the breaker to trip and break when the current transient value is larger than the set threshold value, compares the current effective value with a set effective value threshold value, and drives the breaker to trip and break if the current effective value is larger than the effective value threshold value.
Preferably, the storage medium is used for retaining the original main program after the firmware is upgraded, and the main program of the MCU control chip is restored to the original main program when the BUG exists in the upgraded main program.
Preferably, the system comprises a signal sampling module, a protection driving module, a man-machine interface module and a communication module which are respectively connected with the MCU control chip.
Preferably, the storage medium comprises a memory built in the MCU control chip, the main program and the BootLoader program are stored in the memory built in the MCU control chip, and the firmware upgrading packet data are cached in the memory built in the MCU control chip;
Or the storage medium comprises a memory and an independent storage unit which are arranged in the MCU control chip, the main program and the BootLoader program are stored in the memory which is arranged in the MCU control chip, and the firmware upgrading packet data are cached in the storage unit.
Preferably, the device also comprises a standby control chip, and when the MCU control chip is damaged, the standby control chip replaces the MCU control chip to work.
Preferably, the system further comprises a signal sampling module, a protection driving module, a human-computer interface module and a communication module, wherein the signal sampling module, the protection driving module, the human-computer interface module and the communication module are respectively connected with the MCU control chip and the standby control chip;
the storage medium comprises a memory of the MCU control chip and a memory of the standby control chip, firmware upgrade packet data is cached in the memory of the MCU control chip or the memory of the standby control chip,
Or the storage medium comprises a memory of the MCU control chip, a memory of the standby control chip and an independent storage unit, and the firmware upgrade package data is cached in the memory of the MCU control chip or the memory or the storage unit of the standby control chip.
The circuit breaker can perform online firmware upgrading without power failure and interrupt protection, does not need to wait for the firmware upgrading when power failure is maintained, and has high upgrading efficiency.
In addition, standby main protection is carried out in an interrupt mode when main program firmware is upgraded, an alternating current period T is fixedly divided into N equal parts, time interrupt time is set according to T/N, judgment protection is carried out by sampling current transient values during interrupt, current effective values are calculated at the end of the alternating current period T, judgment protection is carried out, necessary current protection is realized, and execution efficiency is high.
Drawings
Fig. 1 is a frame diagram of a circuit breaker according to an embodiment;
FIG. 2 is a timing diagram of a firmware upgrade according to an embodiment;
FIG. 3 is a flowchart of a standby main protection procedure according to the first embodiment;
Fig. 4 is a frame diagram of a circuit breaker of the second embodiment;
fig. 5 is a frame diagram of a three-embodiment circuit breaker.
Detailed Description
The following describes further embodiments of the circuit breaker of the present invention for on-line firmware upgrade without interruption protection, in conjunction with the examples presented in the figures. The circuit breaker of the present invention that does not interrupt protection at the time of online firmware upgrade is not limited to the description of the following embodiments.
The circuit breaker includes binding post, contact mechanism, operating device and the protection mechanism of setting in the casing, and the circuit breaker passes through binding post access circuit in, drives the moving contact swing of contact mechanism through operating device, contacts or breaks apart with the static contact in order to realize the closure and the disconnection of circuit, and when the circuit breaks down, protection mechanism action makes the circuit breaker break a floodgate to cut off the circuit and realize the protection. The protection mechanism typically includes one or more of a short circuit protection mechanism, an overload protection mechanism, a leakage protection mechanism, and an undervoltage/overvoltage protection mechanism, which are prior art in the art and will not be described in detail.
Example 1
As shown in fig. 1, the circuit breaker of the embodiment is an intelligent circuit breaker, and further comprises a circuit breaker controller, wherein the circuit breaker controller comprises an MCU control chip, a signal sampling module, a protection driving module, a man-machine interface module, a storage unit and a communication module, which are respectively connected with the MCU control chip, and the circuit breaker controller also comprises a power supply module for supplying power to the modules, wherein the storage unit is used for storing information such as circuit breaker parameters. The MCU control chip executes the protection function of the circuit breaker, the MCU control chip collects signals such as current and voltage of the circuit through the signal sampling module, judges whether the circuit has faults such as overload, undervoltage or overvoltage according to the collected signals of the current and the voltage, and can drive the protection mechanism to act through the protection driving module to open the circuit breaker so as to cut off the circuit to realize protection when the MCU control chip judges that the circuit has faults. The user can check the parameters of the circuit breaker, check the working state of the circuit breaker and the like through the human-computer interface module, and can set the parameters of the circuit breaker to adjust various thresholds of the protection function of the circuit breaker. The MCU control chip is in communication interaction with the upper computer through the communication module, the upper computer can modify parameters of the circuit breaker through the communication module, control switching on and off of the circuit breaker and the like, the MCU control chip can upload information such as current, voltage information and state of the circuit breaker to the upper computer, online firmware upgrading can be carried out through the communication module, and a main program operated by the MCU control chip is upgraded.
The circuit breaker of the embodiment is a single-chip scheme, only one MCU control chip is provided, a main program and a BootLoader program are stored in a storage medium of the circuit breaker, the MCU control chip executes the main program to realize the protection function of the circuit breaker and the daily circuit breaker management function, and the MCU control chip executes the BootLoader program to realize the functions of starting, guiding, firmware upgrading and the like. An improvement point of the embodiment is that the BootLoader program includes a main program firmware upgrade program and a standby main protection program, and the MCU control chip executes the main program firmware upgrade program and executes the standby main protection program when the power is interrupted, so that online firmware upgrade can be performed without interruption.
As shown in fig. 2, when the firmware is upgraded, an ac current period T is fixedly divided into N equal parts by the interrupt setting step, N is a natural number greater than 1, the time of the interrupt is set according to T/N, and then the step of executing the main program firmware upgrade program is skipped, and when the MCU control chip executes the main program firmware upgrade program, the standby main protection program is executed by the interrupt. The main program firmware upgrade program comprises a main program update step, namely, the main program area of the storage medium is written with read firmware upgrade packet data to update the main program. The standby main protection program checks whether an alternating current period is ended, calculates current effective values based on a plurality of current transient values sampled in the alternating current period if the alternating current period is ended, judges whether protection is needed based on the current effective values, and drives the breaker to break off the brake if protection is needed. Referring to fig. 2, an ac current period T is divided into N time periods, and a standby main protection program performs current sampling and transient value protection judging to determine whether to perform protection action when each timing interruption in the ac current period T, if the current transient value is greater than a set threshold, a circuit breaker is triggered to trip and break to protect a circuit, and a time slice between each timing interruption is a time slice for the main program firmware upgrade program to execute, and at the last timing interruption of the ac current period T, the standby main protection program performs current effective value calculation and performs protection judging whether to perform protection action based on the effective value, so as to drive the circuit breaker to trip and break to protect the circuit.
Specifically, the storage medium of the circuit breaker of the embodiment comprises a memory built in the MCU control chip and an independent storage unit positioned outside the MCU control chip. The software program space of the memory built in the MCU control chip is divided into a main program area for storing a main program, a BootLoader area for storing a BootLoader program, firmware upgrade packet data are sequentially read and written into the main program area when firmware is upgraded, and the main program and the BootLoader program are stored in the memory built in the MCU control chip. The memory unit is a nonvolatile memory and used for storing information such as breaker parameters and the like and also used for caching firmware upgrade packages, and preferably, the memory unit is a Ferroelectric Random Access Memory (FRAM) which has the advantages of high speed, high density, low power consumption, radiation resistance and the like. Of course, as another implementation manner, instead of providing an external nonvolatile memory unit, a memory area for caching the firmware upgrade package may be allocated in the memory of the MCU control chip, where both the original firmware (original main program) and the firmware upgrade package to be updated are stored.
When the circuit breaker normally operates, the MCU control chip operates in the main program to realize the protection function of the circuit breaker and the daily circuit breaker management function, and the protection function is that the MCU control chip collects circuit current and voltage signals at regular time through the signal sampling module, compares the circuit current and the voltage signals with the set threshold value of the circuit breaker parameter through corresponding calculation, judges whether faults need to be protected, and when the circuit needs to be protected, the main program drives the protection mechanism to act through the protection driving module to enable the circuit breaker to trip so as to realize circuit protection. The daily breaker management functions comprise interaction with a man-machine interface, communication interaction with an upper computer and the like. In addition, the main program is also communicated with the upper computer through the communication module, and the nonvolatile storage unit stored in the firmware upgrading package issued by the upper computer is received so as to carry out the subsequent firmware upgrading step.
The BootLoader program is used for realizing the functions of boot-up, main program firmware upgrading and standby main protection, and comprises a boot-up boot program, a main program firmware upgrading program and a standby main protection program, and can also be considered as the BootLoader program comprises a boot-up boot step, a main program firmware upgrading step and a standby main protection step, and further comprises an interrupt setting step, wherein the interrupt setting step can be considered as a part of the boot-up boot program and a part of the main program firmware upgrading program. The standby main protection program in this embodiment mainly performs necessary current protection, and is generally simplified compared with the protection function of the main program, and the standby main protection program also does not have a corresponding breaker management function.
After the MCU control chip is reset and started, the MCU control chip firstly enters a BootLoader program to finish starting and guiding, after the MCU control chip is started, the MCU control chip firstly enters a starting and guiding program, the starting and guiding program detects whether the main program firmware is required to be upgraded, if the main program firmware is required to be upgraded, the MCU control chip jumps to an interrupt setting step, and if the main program firmware is not required to be upgraded, the MCU control chip jumps to the main program. The start-up guide program judges whether firmware upgrading is needed by detecting whether a main program firmware upgrading flag bit is set or not, if the main program firmware upgrading flag bit is not set (for example, 0), a program pointer jumps to the main program operation, and if the main program firmware upgrading flag bit is set (for example, 1), an interrupt setting step and the main program firmware upgrading program are carried out.
The specific process is as follows:
after the MCU control chip is started, the MCU control chip firstly enters a starting guide program, the starting guide program judges whether firmware upgrading is needed by detecting whether a main program firmware upgrading flag bit is set, the main program firmware upgrading flag bit is not set, and the MCU control chip jumps to executing the main program.
The main program performs a breaker protection function and a daily breaker management function when running. After the upper computer issues new firmware, the main program is communicated with the upper computer through the communication module, and the data of the firmware upgrade package sent by the upper computer is received and stored in the storage unit. When the main program receives the firmware upgrading instruction, whether the working state of the current product is normal or not, the integrity and the correctness of the downloaded firmware upgrading package are checked, after the working state of the current product is checked to be normal and the data of the downloaded firmware upgrading package are correct, after the upgrading condition is confirmed to be met, the main program sets a main program firmware upgrading flag bit, and then the system software is triggered to reset, so that the MCU control chip is restarted.
After the MCU control chip is started, the MCU control chip firstly enters a starting guide program, the starting guide program judges whether firmware upgrading is needed by detecting whether a main program firmware upgrading flag bit is set, at the moment, an interruption setting step is carried out when the main program firmware upgrading flag bit is set, namely, an alternating current period T is fixedly divided into N equal parts, N is a natural number larger than 1, the time of interruption is set according to T/N, then the starting guide program jumps to the main program firmware upgrading program to start the firmware upgrading, and meanwhile, a standby main protection program is executed through interruption.
And the main program firmware upgrading program reads the firmware upgrading packet data from the storage unit, writes the firmware upgrading packet data into a main program area of the storage medium to update the main program, and triggers the execution of the standby main protection program at the time of interruption in the process of reading, writing and updating the main program, at the moment, the main program firmware upgrading program is suspended, and the main program firmware upgrading program is continuously executed from the last suspension position after the operation of the standby main protection program is finished.
As shown in fig. 3, the standby main protection program samples a current transient value when the standby main protection program is interrupted at regular time, judges whether protection is needed based on the current transient value, drives a breaker to trip and break if protection is needed, for example, compares the current transient value with a set threshold value, and triggers the breaker to trip and break when the current transient value is larger than the set threshold value;
If the standby main protection program has been executed N times, the alternating current period is ended, a current effective value is calculated based on a plurality of current transient values sampled in the alternating current period, whether protection is needed is judged based on the current effective value, if protection is needed, the breaker is driven to trip and break, for example, the current effective value is compared with a set effective value threshold, if the current effective value is larger than the effective value threshold, the breaker is driven to trip and break, if protection is not needed, current period data are initialized, so that data sampling of the next alternating current period is started when the standby main protection program is started next time, for example, the execution times of the standby main protection program are cleared, and thus the sampling of the next alternating current period is restarted when the standby main protection program is executed next time.
The main program firmware upgrading program and the standby main protection program are repeatedly executed until the firmware upgrading is completed, after the firmware upgrading is completed, namely, after all firmware upgrading packet data are written into the main program area, the main program firmware upgrading program firstly checks whether the firmware is correctly upgraded or not, for example, the checking mark is checked for detection, after the fact that the firmware is correctly upgraded is determined, the main program firmware upgrading mark bit is cleared, and the system software is triggered to reset.
After the MCU control chip is started, the starting guide program is firstly started, the starting guide program judges whether firmware upgrading is needed by detecting whether a main program firmware upgrading flag bit is set, the main program firmware upgrading flag bit is not set, the MCU control chip jumps to an execution main program, and the main program at the moment is a main program for new firmware upgrading.
As a preferable scheme, after upgrading the new main program, if the upper computer finds that the new main program has a BUG, the circuit breaker controller is informed to quickly restore the firmware of the MCU control chip to the original edition. After the firmware upgrade is finished, the storage medium of the circuit breaker is reduced to keep a primary program, the primary program can be cached in other spaces of the storage medium, if the new primary program has no problem, the new primary program is executed, if the new primary program has a BUG, the primary program is read, and the replacement is finished, and the primary program of the MCU control chip is restored to the primary program. The replacement step is similar to the step of updating the new firmware, and is executed by a main program firmware updating program and a standby main protection program of the BootLoader program.
Example two
As shown in fig. 4, the circuit breaker of the second embodiment is a dual chip solution. The second embodiment is basically the same as the first embodiment, the circuit breaker includes a power module for supplying power, an MCU control chip, a signal sampling module, a protection driving module, a man-machine interface module and a communication module, which are respectively connected with the MCU control chip, wherein a main program and a BootLoader program are stored in a memory of the MCU control chip, the BootLoader program includes a main program firmware upgrade program and a standby main protection program, the MCU control chip executes the main program firmware upgrade program and executes the standby main protection program when the circuit breaker is interrupted regularly, and the on-line firmware upgrade and the protection are performed without interruption under the condition of no power failure.
The second embodiment is different from the first embodiment in that the system further comprises a standby control chip, and the signal sampling module, the protection driving module, the man-machine interface module and the communication module are respectively connected with the standby control chip, and the standby control chip and the MCU control chip. The function and function of the standby control chip are consistent with those of the MCU control chip, and a main program and a BootLoader program are also stored in a memory of the standby control chip, so that online firmware upgrading can be performed under the condition of no power failure and no interruption is caused. When the circuit breaker of the embodiment normally operates, the MCU control chip runs the main program, so that the protection function of the circuit breaker and the daily circuit breaker management function are realized. When the MCU control chip is damaged, the standby control chip replaces the MCU control chip to work, takes over the product to realize the protection function of the circuit breaker and the daily circuit breaker management function, and informs the upper computer of the damage of the MCU control chip. When the standby control chip is damaged, the MCU control chip informs the upper computer of the damage of the standby control chip. When the upgrade program is needed, the current working chip reads the firmware upgrade package data upgrade program.
The storage medium of the circuit breaker in this embodiment includes a memory of the MCU control chip and a memory of the standby control chip, and firmware upgrade packet data downloaded through the communication module before starting to upgrade may be cached in the memory of the MCU control chip or the memory of the standby control chip. Preferably, when the MCU control chip upgrades the main program, firmware upgrade package data is cached in the memory of the standby control chip, and the space of the memory of the standby control chip is utilized, at this time, an independent memory unit outside the chip is not required to be arranged.
As another preferred scheme, similar to the embodiment, the circuit breaker further comprises a separate storage unit connected with the MCU control chip and the standby control chip, the storage medium of the circuit breaker comprises a memory of the MCU control chip, a memory of the standby control chip and a storage unit connected with the MCU control chip and the standby control chip, and the firmware upgrade package data can be cached in the storage unit, for example, when a space required for the firmware upgrade package data is larger than the sizes of the memories of the MCU control chip and the standby control chip, the firmware upgrade package data is placed in an external storage unit of a larger storage space.
As shown in fig. 5, as another preferred scheme, the storage medium of the circuit breaker further includes a storage unit and a standby storage unit, both of which are connected with the MCU control chip and the standby control chip, firmware upgrade package data may be cached in the storage unit and the standby storage unit, and when the storage unit fails, the firmware upgrade package data may be stored in the standby storage unit, thereby realizing a safer approach. The memory cells and spare memory cells may employ fl ash.
When the circuit breaker of the embodiment operates normally, the MCU control chip executes the main program to perform the protection function of the circuit breaker and the daily circuit breaker management function. When the MCU control chip receives a firmware upgrading instruction, after the firmware upgrading package data is checked to be correct, the MCU control chip is restarted, the MCU control chip executes a main program firmware upgrading program of a BootLoader program and a standby main protection program to continuously upgrade, and the MCU control chip reads the firmware upgrading package data and writes the firmware upgrading package data into a main program area of the memory.
When the MCU control chip fails, the standby control chip starts working, numerical calculation is sampled, working conditions are monitored, data are fed back to the upper computer, meanwhile, the damage condition of the MCU control chip is fed back to the upper computer, and corresponding processing is carried out by staff. When the standby control chip needs to upgrade the program, the standby control chip executes the main program firmware upgrade program, and the standby control chip reads the firmware upgrade packet data to upgrade the program by interrupting the execution of the standby main protection program at regular time.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.
Claims (10)
1. The utility model provides a circuit breaker of uninterrupted protection when online firmware upgrades, includes MCU control chip, has the storage medium of main procedure and BootLoader program, bootLoader program include main procedure firmware upgrade program and reserve main protection program, its characterized in that:
the method comprises an interruption setting step, wherein the interruption setting step fixedly divides an alternating current period T into N equal parts, N is a natural number larger than 1, and the time of the interruption is set according to the T/N, so that when the MCU control chip executes a main program firmware upgrading program, a standby main protection program is executed through the time interruption;
The main program firmware upgrade program reads the firmware upgrade package data and writes the firmware upgrade package data into a storage medium to update the main program;
The standby main protection program checks whether an alternating current period is ended, calculates current effective values based on a plurality of current transient values sampled in the alternating current period if the alternating current period is ended, judges whether protection is needed based on the current effective values, and drives the breaker to break off the brake if protection is needed.
2. The circuit breaker of claim 1, wherein the BootLoader program further comprises a startup boot program, the startup boot program is first entered after the MCU control chip is started, the startup boot program detects whether the main program firmware upgrade is needed, and jumps to execute the interrupt setting step if the main program firmware upgrade is needed, and jumps to execute the main program if the main program firmware upgrade is not needed.
3. The circuit breaker of claim 2, wherein the main program is in communication with the upper computer, receives the firmware upgrade package data sent by the upper computer and stores the firmware upgrade package data in a storage medium, when the main program receives the firmware upgrade instruction, after checking that the current product working state is normal and the downloaded firmware upgrade package data is correct, the main program sets a main program firmware upgrade flag bit and then triggers system software reset, and the start-up boot program determines whether the main program firmware upgrade is needed based on the main program firmware upgrade flag bit.
4. The circuit breaker of claim 3, wherein the storage medium comprises a main program area for storing a main program and a BootLoader area for storing a BootLoader program, wherein after the main program firmware upgrading program writes the firmware upgrading packet data into the main program area, the main program firmware upgrading program firstly checks whether the firmware is correctly upgraded, and after the upgrading is determined to be correct, clears the main program firmware upgrading flag bit and triggers the system software to reset.
5. The circuit breaker of claim 1, wherein the standby main protection program compares the current transient value with a set threshold value, triggers the circuit breaker to trip and break when the current transient value is greater than the set threshold value, compares the current effective value with a set effective value threshold value, and drives the circuit breaker to trip and break if the current effective value is greater than the effective value threshold value.
6. The circuit breaker of claim 1, wherein the storage medium is used for maintaining the original main program after the firmware is upgraded, and the main program of the MCU control chip is restored to the original main program when the BUG exists in the main program after the firmware is upgraded.
7. The circuit breaker of claim 1, wherein the circuit breaker comprises a signal sampling module, a protection driving module, a man-machine interface module and a communication module which are respectively connected with the MCU control chip.
8. The circuit breaker of claim 1, wherein the storage medium comprises a memory built in the MCU control chip, the main program and the BootLoader program are stored in the memory built in the MCU control chip, and the firmware upgrading packet data are cached in the memory built in the MCU control chip;
Or the storage medium comprises a memory and an independent storage unit which are arranged in the MCU control chip, the main program and the BootLoader program are stored in the memory which is arranged in the MCU control chip, and the firmware upgrading packet data are cached in the storage unit.
9. The circuit breaker of claim 1-6, further comprising a standby control chip, wherein the standby control chip replaces the MCU control chip to operate when the MCU control chip is damaged.
10. The circuit breaker of claim 9, further comprising a signal sampling module, a protection driving module, a man-machine interface module and a communication module, wherein the signal sampling module, the protection driving module, the man-machine interface module and the communication module are respectively connected with the MCU control chip and the standby control chip;
the storage medium comprises a memory of the MCU control chip and a memory of the standby control chip, firmware upgrade packet data is cached in the memory of the MCU control chip or the memory of the standby control chip,
Or the storage medium comprises a memory of the MCU control chip, a memory of the standby control chip and an independent storage unit, and the firmware upgrade package data is cached in the memory of the MCU control chip or the memory or the storage unit of the standby control chip.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110040438.2A CN114765101B (en) | 2021-01-13 | 2021-01-13 | Circuit breaker with no interruption of protection during online firmware upgrade |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110040438.2A CN114765101B (en) | 2021-01-13 | 2021-01-13 | Circuit breaker with no interruption of protection during online firmware upgrade |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114765101A CN114765101A (en) | 2022-07-19 |
| CN114765101B true CN114765101B (en) | 2025-02-18 |
Family
ID=82363069
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110040438.2A Active CN114765101B (en) | 2021-01-13 | 2021-01-13 | Circuit breaker with no interruption of protection during online firmware upgrade |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114765101B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20250079821A1 (en) * | 2023-08-29 | 2025-03-06 | Siemens Industry, Inc. | Method for updating electronic circuit breaker firmware to avoid load de-energization |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CA2032067A1 (en) * | 1989-12-22 | 1991-06-23 | Douglas E. Jewett | Fault-tolerant computer system with online reintegration and shutdown/restart |
| JPH11273489A (en) * | 1998-03-20 | 1999-10-08 | Toshiba Corp | Relay device |
| WO2018160532A1 (en) * | 2017-02-28 | 2018-09-07 | Leviton Manufacturing Co., Inc. | Communication enabled circuit breakers |
| US10782958B2 (en) * | 2018-05-07 | 2020-09-22 | Schneider Electric USA, Inc. | Performance software updates on DF/CAFI breakers with existing hardware architecture |
-
2021
- 2021-01-13 CN CN202110040438.2A patent/CN114765101B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN114765101A (en) | 2022-07-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101976217B (en) | Anomaly detection method and system for network processing unit | |
| CN100419699C (en) | Method and device remotely automatic recovering CMOS date with network | |
| CN108491058A (en) | A kind of the powered-off fault data guard method and device of Nonvolatile memory | |
| EP3200085A1 (en) | Data saving method and device and terminal | |
| CN111506351A (en) | Deep sleep method, wake-up method and sleep and wake-up method for system on chip | |
| CN101170435B (en) | A Method to Solve the Software Loss of Asymmetric Digital Subscriber Line Modem | |
| CN100474271C (en) | Multi-level buffering type memory system and method therefor | |
| CN101937344B (en) | Computer and method for quickly starting same | |
| CN102236569A (en) | Embedded system and starting method thereof | |
| CN114765101B (en) | Circuit breaker with no interruption of protection during online firmware upgrade | |
| CN109032632A (en) | A kind of FOTA upgrade method, wireless communication terminal and storage medium | |
| CN108197008A (en) | A kind of log collecting method, system, device and computer readable storage medium | |
| CN105138433A (en) | Backup method for UBIFS file system in embedded type Linux operating system | |
| CN109358865A (en) | A kind of industrial vehicle car networking instrument and upgrade method with remote upgrade function | |
| CN111767172A (en) | Self-repairing method for set top box based on watchdog and bootloader | |
| CN115793995B (en) | Pflash-only data storage method for traditional MCU | |
| CN105468390A (en) | BOOT online upgrade apparatus and method | |
| CN1211980C (en) | Extension storage method of journal information | |
| CN112988465A (en) | Method for automatically recovering operation of single chip microcomputer in upgrading failure | |
| CN119311496A (en) | A hot-swap test method and system for NVMe solid-state hard disks | |
| CN102508676A (en) | Startup method and device of embedded system | |
| CN102810007B (en) | A kind of computer mode conversion method, device and computing machine | |
| CN102620948A (en) | Intelligent pump storage machine set fault analysis method and system thereof | |
| CN101369238A (en) | Processing method of abnormal monitoring reset in USB device | |
| CN101299200A (en) | Processor system, equipment and fault handling method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |