Circuit breaker with no interruption of protection during online firmware upgrade
By using the combination of the MCU control chip and the BootLoader program in the circuit breaker, the uninterrupted protection during online firmware upgrade is achieved, the problem of interruption of protection function during the upgrade process in the existing technology is solved, and the upgrading efficiency is improved.
Patent Information
- Application Number
- CN202110040438.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-13
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-01-13
AI Technical Summary
When the existing circuit breaker is upgraded online firmware, it cannot complete the upgrade without interruption protection, resulting in interruption of the circuit protection function and cannot meet the needs of program upgrades without power outage.
The MCU control chip is used, combined with the main program firmware upgrade program and the standby master protection program in the BootLoader program, and the standby master protection program is executed by timed interrupts to ensure that circuit protection can still be provided during the firmware upgrade process to avoid interrupts.
It realizes online firmware upgrade without interruption protection without power outage, improves upgrade efficiency and meets the needs of program upgrade without power outage.
Smart Images

Figure CN114765101B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of low-voltage electrical appliance manufacturing, and in particular relates to a circuit breaker with uninterrupted protection during online firmware upgrade. Background Art
[0002] The circuit breaker is used to protect the connected circuit, and its circuit protection functions mainly include overcurrent protection, short circuit protection, leakage protection, undervoltage / overvoltage protection, etc. Existing intelligent circuit breakers are usually equipped with a circuit breaker controller, which performs circuit protection by collecting current and voltage information in the circuit, and communicates with the host computer through a communication module to upload power consumption information, and protects the circuit according to the control of the host computer.
[0003] Existing circuit breaker controllers generally do not have the function of online firmware upgrade. If the function of the circuit breaker is changed or upgraded, the circuit breaker controller firmware must also be changed or upgraded synchronously. The traditional method is to open the cover of the circuit breaker and use special equipment to upgrade the circuit breaker controller firmware. This method is very inefficient and cannot meet the needs of large-scale production.
[0004] There are also circuit breaker controllers with online firmware upgrade functions in the existing market. Since firmware upgrades usually take a long time, even if the upgrade software is downloaded locally in advance, it still takes 3-5 minutes to upgrade. During the upgrade process, the existing circuit breaker controllers cannot provide effective circuit protection measures at the same time. Therefore, it is generally necessary to wait until power outages for maintenance before upgrading the firmware of the circuit breaker controller. This is not suitable for occasions where the program can be upgraded in time without power outages and effective circuit protection still needs to be provided during the program upgrade. Summary of the invention
[0005] The object of the present invention is to overcome the defects of the prior art and provide a circuit breaker which can provide protection without interruption during online firmware upgrade.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] A circuit breaker with uninterrupted protection during online firmware upgrade, comprising an MCU control chip, a storage medium storing a main program and a BootLoader program, wherein the BootLoader program comprises a main program firmware upgrade program and a backup main protection program,
[0008] The method comprises an interrupt setting step, wherein the interrupt setting step divides an AC current cycle T into N equal parts, where N is a natural number greater than 1, and sets a timer interrupt time according to T / N, so that when the MCU control chip executes the main program firmware upgrade program, the backup main protection program is executed through the timer interrupt;
[0009] The main program firmware upgrade program reads the firmware upgrade package data and writes it into the storage medium to update the main program;
[0010] The standby main protection program samples and saves the instantaneous value of the current during the timed interruption, determines whether protection is required based on the instantaneous value of the current, and drives the circuit breaker to trip and open if protection is required; the standby main protection program checks whether an AC current cycle has ended, and if the AC current cycle has ended, calculates the effective value of the current based on multiple current instantaneous values sampled during the AC current cycle, determines whether protection is required based on the effective value of the current, and drives the circuit breaker to trip and open if protection is required.
[0011] Preferably, the BootLoader program also includes a boot program. After the MCU control chip is started, it first enters the boot program. The boot program detects whether a main program firmware upgrade is required. If the main program firmware upgrade is required, it jumps to execute the interrupt setting step; if the main program firmware upgrade is not required, it jumps to execute the main program.
[0012] Preferably, the main program communicates with the host computer, receives the firmware upgrade package data sent by the host computer and stores it in the storage medium; when the main program receives the firmware upgrade instruction, after checking that the current product working status is normal and the downloaded firmware upgrade package data is correct, the main program sets the main program firmware upgrade flag and then triggers a system software reset; the boot program determines whether the main program firmware upgrade is required based on the main program firmware upgrade flag.
[0013] Preferably, the storage medium includes a main program area for storing the main program and a BootLoader area for storing the BootLoader program. After the main program firmware upgrade program writes all the firmware upgrade package data into the main program area, it first checks and verifies whether the firmware has been upgraded correctly. After determining that the upgrade is correct, it clears the main program firmware upgrade flag and triggers a system software reset.
[0014] Preferably, the backup main protection program compares the instantaneous value of the current with a set threshold value, and triggers the circuit breaker to trip when the instantaneous value of the current is greater than the set threshold value; compares the effective value of the current with a set effective value threshold, and drives the circuit breaker to trip if the effective value of the current is greater than the effective value threshold.
[0015] Preferably, after the firmware upgrade is completed, the storage medium still retains the original main program. If a bug is found in the upgraded main program, the main program of the MCU control chip is restored to the original main program.
[0016] Preferably, it comprises a signal sampling module, a protection drive module, a human-machine interface module and a communication module which are respectively connected to the MCU control chip.
[0017] Preferably, the storage medium includes a memory built into the MCU control chip, the main program and the BootLoader program are stored in the memory built into the MCU control chip, and the firmware upgrade package data is cached in the memory built into the MCU control chip;
[0018] Alternatively, the storage medium includes a memory built into the MCU control chip and an independent storage unit, the main program and the BootLoader program are stored in the memory built into the MCU control chip, and the firmware upgrade package data is cached in the storage unit.
[0019] Preferably, a backup control chip is also included. When the MCU control chip is damaged, the backup control chip replaces the MCU control chip to work.
[0020] Preferably, it also includes a signal sampling module, a protection drive module, a human-machine interface module and a communication module, wherein the signal sampling module, the protection drive module, the human-machine interface module and the communication module are respectively connected to the MCU control chip and the standby control chip;
[0021] The storage medium includes a memory of the MCU control chip and a memory of the standby control chip, and the firmware upgrade package data is cached in the memory of the MCU control chip or the memory of the standby control chip.
[0022] Alternatively, the storage medium includes a memory of the MCU control chip, a memory of the backup 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 storage unit of the backup control chip.
[0023] The circuit breaker of the present invention can perform online firmware upgrade without power outage and without interrupting protection. There is no need to wait until power outage maintenance to perform firmware upgrade, and the upgrade efficiency is high.
[0024] In addition, when the main program firmware is upgraded, the backup main protection is performed by interruption. An AC current cycle T is fixedly divided into N equal parts. The timer interrupt time is set according to T / N. The instantaneous value of the current is sampled during the interruption to judge the protection. At the end of an AC current cycle T, the effective value of the current is calculated to judge the protection, thereby realizing necessary current protection with high execution efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a framework diagram of a circuit breaker in Embodiment 1;
[0026] Figure 2 is a timing diagram of firmware upgrade in Embodiment 1;
[0027] Figure 3 is a flow chart of the backup master protection program of embodiment 1;
[0028] Figure 4 is a framework diagram of a circuit breaker of Embodiment 2;
[0029] Figure 5 It is a framework diagram of the circuit breaker of embodiment 3. DETAILED DESCRIPTION
[0030] The following embodiments are combined with the accompanying drawings to further illustrate the specific implementation of the circuit breaker with uninterrupted protection during online firmware upgrade of the present invention. The circuit breaker with uninterrupted protection during online firmware upgrade of the present invention is not limited to the description of the following embodiments.
[0031] The circuit breaker includes a wiring terminal, a contact mechanism, an operating mechanism and a protection mechanism arranged in a housing. The circuit breaker is connected to the circuit through the wiring terminal. The operating mechanism drives the moving contact of the contact mechanism to swing, and contacts or separates with the static contact to close and disconnect the circuit. When a circuit fails, the protection mechanism operates to open the circuit breaker to cut off the circuit for protection. The protection mechanism generally includes one or more of a short circuit protection mechanism, an overload protection mechanism, a leakage protection mechanism and an under / overvoltage protection mechanism. This is the prior art in the art and will not be described in detail.
[0032] Embodiment 1
[0033] like Figure 1 As shown, the circuit breaker of this embodiment is an intelligent circuit breaker, and also includes a circuit breaker controller, which includes an MCU control chip, and a signal sampling module, a protection drive module, a human-machine interface module, a storage unit and a communication module respectively connected to the MCU control chip, and of course also includes a power module for supplying power to each module, and the storage unit is used to store information such as circuit breaker parameters. The MCU control chip performs the protection function of the circuit breaker, including the MCU control chip collecting the current, voltage and other signals of the circuit through the signal sampling module, and judging whether the circuit has faults such as overload, undervoltage or overvoltage according to the collected current and voltage signals. When the MCU control chip judges that there is a fault in the line, the protection drive module can be used to drive the protection mechanism to open the circuit breaker to cut off the circuit for protection. The user can view the circuit breaker parameters and the working status of the circuit breaker through the human-machine interface module, and can also set the circuit breaker parameters and adjust the various thresholds of the circuit breaker protection function. The MCU control chip communicates and interacts with the host computer through the communication module. The host computer can modify the parameters of the circuit breaker through the communication module, control the opening and closing of the circuit breaker, etc. The MCU control chip can upload the circuit breaker current, voltage information, status and other information to the host computer, and can also perform online firmware upgrades through the communication module to upgrade the main program running the MCU control chip.
[0034] The circuit breaker of this embodiment is a single-chip solution, with only one MCU control chip. The storage medium of the circuit breaker stores the main program and the BootLoader program. The MCU control chip executes the main program to realize the protection function of the circuit breaker and the daily circuit breaker management function. The MCU control chip executes the BootLoader program to realize the boot and firmware upgrade functions. An improvement of this embodiment is that the BootLoader program includes a main program firmware upgrade program and a backup main protection program. The MCU control chip executes the main program firmware upgrade program and executes the backup main protection program when the timing interruption occurs, so that the firmware can be upgraded online without power outage and without interrupting the protection.
[0035] like Figure 2 As described, when the firmware is upgraded in this embodiment, an AC current cycle T is fixedly divided into N equal parts through an interrupt setting step, N is a natural number greater than 1, and the timed interrupt time is set according to T / N, and then the step of jumping to execute the main program firmware upgrade program is performed, and when the MCU control chip executes the main program firmware upgrade program, the standby main protection program is executed through a timed interrupt. The main program firmware upgrade program includes a main program update step, that is, reading the firmware upgrade package data and writing it into the main program area of the storage medium to update the main program. The standby main protection program samples and saves the current transient value during the timed interrupt, determines whether protection is required based on the current transient value, and drives the circuit breaker to trip and open if protection is required; the standby main protection program checks whether an AC current cycle is over, and if the AC current cycle is over, calculates the current effective value based on multiple current transient values sampled in the AC current cycle, determines whether protection is required based on the current effective value, and drives the circuit breaker to trip and open if protection is required. See. Figure 2 , an AC current cycle T is divided into N time periods. During each timed interruption within an AC current cycle T, the backup main protection program performs current sampling and transient value protection judgment to determine whether to perform protection action. If the current transient value is greater than the set threshold, the circuit breaker is triggered to trip and open to protect the circuit. The time slice between each timed interruption is the time slice for the execution of the main program firmware upgrade program. At the last timed interruption of an AC current cycle T, the backup main protection program calculates the effective value of the current and judges whether to perform protection action based on the effective value, and drives the circuit breaker to trip and open to protect the circuit.
[0036] Specifically, the storage medium of the circuit breaker of this embodiment includes a memory built into the MCU control chip and an independent storage unit located outside the MCU control chip. The software program space of the memory built into the MCU control chip is divided into a main program area for storing the main program and a BootLoader area for storing the BootLoader program. When the firmware is upgraded, the firmware upgrade package data is read in sequence and written into the main program area. The main program and the BootLoader program are stored in the memory built into the MCU control chip. The storage unit is a non-volatile memory, which is used to store information such as circuit breaker parameters and can also be used to cache the firmware upgrade package; preferably, the storage unit is a ferroelectric random access memory (FRAM), which has the advantages of high speed, high density, low power consumption and radiation resistance. Of course, as another implementation method, it is also possible not to set up an external non-volatile storage unit, but to allocate a storage area for caching the firmware upgrade package in the memory of the MCU control chip, and the original firmware (original main program) and the firmware upgrade package to be updated are both stored in the memory.
[0037] When the circuit breaker is operating normally, the MCU control chip runs in the main program to realize the protection function of the circuit breaker and the daily circuit breaker management function. The protection function is that the aforementioned MCU control chip regularly collects the circuit current and voltage signals through the signal sampling module, and compares them with the threshold of the set circuit breaker parameters through corresponding calculations to determine whether there is a fault that needs protection. When the circuit needs to be protected, the main program drives the protection mechanism through the protection drive module to trip the circuit breaker to achieve circuit protection. Daily circuit breaker management functions include interaction with the human-machine interface, communication interaction with the host computer, etc. In addition, the main program also communicates with the host computer through the communication module, and receives the firmware upgrade package sent by the host computer and stores it in the non-volatile storage unit, so as to carry out subsequent firmware upgrade steps.
[0038] The BootLoader program is used to implement booting, main program firmware upgrade and standby main protection functions, including a booting program, a main program firmware upgrade program and a standby main protection program. It can also be considered that the BootLoader program includes a booting step, a main program firmware upgrade step and a standby main protection step, and also includes an interrupt setting step, which can be considered as a part of the booting program, and can also be considered as a part of the main program firmware upgrade program. The standby main protection program described in this embodiment mainly performs necessary current protection, which is usually simpler than the protection function of the main program, and the standby main protection program does not have the corresponding circuit breaker management function.
[0039] After the MCU control chip is reset and started, it first enters the BootLoader program to complete the boot boot. After the MCU control chip is started, it first enters the boot boot program. The boot boot program detects whether the main program firmware needs to be upgraded. If the main program firmware is upgraded, it jumps to the interrupt setting step; if the main program firmware is not upgraded, it jumps to the main program. The boot boot program determines whether a firmware upgrade is required by detecting whether the main program firmware upgrade flag is set. If the main program firmware upgrade flag is not set (such as 0), the program pointer will jump to the main program to run; if the main program firmware upgrade flag is set (such as 1), the interrupt setting step and the main program firmware upgrade program are performed.
[0040] The specific process is as follows:
[0041] After the MCU control chip is started, it first enters the boot program. The boot program determines whether a firmware upgrade is required by detecting whether the main program firmware upgrade flag is set. If the main program firmware upgrade flag is not set, the MCU control chip jumps to execute the main program.
[0042] When the main program is running, the circuit breaker protection function and daily circuit breaker management function are performed. When the host computer releases a new firmware, the main program communicates with the host computer through the communication module, receives the firmware upgrade package data sent by the host computer and stores it in the storage unit. When the main program receives the firmware upgrade instruction, it will check whether the current product working status is normal, and the integrity and correctness of the downloaded firmware upgrade package. After checking that the current product working status is normal and the downloaded firmware upgrade package data is correct, and confirming that the upgrade conditions are met, the main program sets the main program firmware upgrade flag, and then triggers the system software reset to restart the MCU control chip.
[0043] After the MCU control chip is started, it first enters the boot program. The boot program determines whether a firmware upgrade is required by detecting whether the main program firmware upgrade flag is set. At this time, if it is detected that the main program firmware upgrade flag is set, an interrupt setting step is performed, that is, an AC current cycle T is fixedly divided into N equal parts, N is a natural number greater than 1, and the timing interrupt time is set according to T / N, and then jumps to the main program firmware upgrade program to start the firmware upgrade, and at the same time executes the backup main protection program through the interrupt.
[0044] The main program firmware upgrade program reads the firmware upgrade package data from the storage unit and writes it into the main program area of the storage medium to update the main program. During the process of reading, writing and updating the main program, the interrupt timing triggers the execution of the backup main protection program. At this time, the main program firmware upgrade program is paused. After the backup main protection program ends, the main program firmware upgrade program continues to be executed from the last pause point.
[0045] like Figure 3As shown, the standby main protection program samples the instantaneous value of the current during the timing interruption, determines whether protection is required based on the instantaneous value of the current, and drives the circuit breaker to trip and open if protection is required, for example, compares the instantaneous value of the current with a set threshold value, and triggers the circuit breaker to trip and open when the instantaneous value of the current is greater than the set threshold value; then the standby main protection program checks whether an AC current cycle is over, for example, by determining whether the standby main protection program has been executed N times to determine whether the AC current cycle is over, if it has not been executed N times, the AC current cycle has not ended, and the timing interruption is exited;
[0046] If the backup main protection program has been executed N times, the AC current cycle ends. At this time, the current effective value is calculated based on multiple current transient values sampled during the AC current cycle, and whether protection is needed is determined based on the current effective value. If protection is needed, the circuit breaker is driven to trip and open. For example, the current effective value is compared with the set effective value threshold. If the current effective value is greater than the effective value threshold, the circuit breaker is driven to trip and open. If protection is not needed, the current cycle data is initialized so that data sampling for the next AC current cycle can be started when the interruption occurs next time. For example, the number of executions of the backup main protection program is cleared to zero, so that sampling of the next AC current cycle will be restarted when the backup main protection program is executed next time.
[0047] The main program firmware upgrade program and the backup main protection program are executed repeatedly until the firmware upgrade is completed. When the firmware upgrade is completed, that is, all firmware upgrade package data is written into the main program area, the main program firmware upgrade program first checks whether the firmware is upgraded correctly, for example, by checking the verification flag. After confirming that the upgrade is correct, the main program firmware upgrade flag is cleared and the system software reset is triggered.
[0048] After the MCU control chip is started, it first enters the boot program. The boot program determines whether a firmware upgrade is required by detecting whether the main program firmware upgrade flag is set. If the main program firmware upgrade flag is not set, the MCU control chip jumps to execute the main program. At this time, the main program is the main program for the new firmware upgrade.
[0049] As a preferred solution, after upgrading the new main program, if the upper computer finds that the new main program has a bug, the circuit breaker controller is notified to quickly restore the firmware of the MCU control chip to the original version. After the firmware upgrade is completed, the storage medium of the circuit breaker still retains the original main program, and the original main program can be cached in other spaces of the storage medium. If there is no problem with the new main program, the new main program is executed. If there is a bug in the new main program, the original main program is read. After the replacement is completed, the main program of the MCU control chip is restored to the original main program. The replacement step is similar to the step of upgrading the new firmware, and is executed by the main program firmware upgrade program and the backup main protection program of the BootLoader program.
[0050] Embodiment 2
[0051] like Figure 4 As shown, the circuit breaker of the second embodiment is a dual-chip solution. The second embodiment is basically the same as the first embodiment, and the circuit breaker includes a power supply module for power supply, an MCU control chip, a signal sampling module, a protection drive module, a human-machine interface module and a communication module respectively connected to the MCU control chip, and the memory of the MCU control chip stores a main program and a BootLoader program, and the BootLoader program includes a main program firmware upgrade program and a backup main protection program. The MCU control chip executes the main program firmware upgrade program and executes the backup main protection program when the timing interruption occurs, and can perform online firmware upgrades without power outages and without interrupting protection.
[0052] The difference between the second embodiment and the first embodiment is that it also includes a spare control chip, the signal sampling module, the protection drive module, the human-machine interface module and the communication module are respectively connected to the spare control chip, and the spare control chip is connected to the MCU control chip. The function and role of the spare control chip are consistent with the MCU control chip, and the main program and the BootLoader program are also stored in the memory of the spare control chip, which can perform online firmware upgrades without power outages and without interrupting protection. When the circuit breaker of this embodiment is operating normally, the MCU control chip runs the main program to realize the protection function of the circuit breaker and the daily circuit breaker management function. When the MCU control chip is damaged, the spare control chip replaces the MCU control chip to take over the product to realize the protection function of the circuit breaker and the daily circuit breaker management function, and informs the host computer of the damage of the MCU control chip. When the spare control chip is damaged, the MCU control chip informs the host computer of the damage of the spare control chip. When the program needs to be upgraded, the firmware upgrade package data is read by the current working chip to upgrade the program.
[0053] The storage medium of the circuit breaker in this embodiment includes the memory of the MCU control chip and the memory of the standby control chip. The firmware upgrade package data downloaded through the communication module before starting the upgrade can 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 its main program, the 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 storage unit outside the chip may not be set.
[0054] As another preferred solution, similar to the first embodiment, the circuit breaker also includes an independent storage unit connected to the MCU control chip and the backup control chip. The storage medium of the circuit breaker includes the memory of the MCU control chip, the memory of the backup control chip and the storage unit. The storage unit is connected to the MCU control chip and the backup control chip. The firmware upgrade package data can be cached in the storage unit. For example, when the space required for the firmware upgrade package data is larger than the size of the memory of the MCU control chip and the backup control chip, the firmware upgrade package data is placed in an external storage unit with a larger storage space.
[0055] like Figure 5 As shown, as another preferred solution, the storage medium of the circuit breaker also includes a storage unit and a backup storage unit, both of which are connected to the MCU control chip and the backup control chip, and the firmware upgrade package data can be cached in the storage unit and the backup storage unit. When the storage unit fails, the firmware upgrade package data can be stored in the backup storage unit, which is a safer approach. The storage unit and the backup storage unit can use Flash.
[0056] When the circuit breaker of this 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 host computer releases a new firmware, the MCU control chip communicates with the host computer through the communication module, receives the firmware upgrade package data sent by the host computer and stores it in the memory of the standby control chip. When the MCU control chip receives the firmware upgrade instruction, after checking that the firmware upgrade package data is correct, the MCU control chip is restarted. The MCU control chip executes the main program firmware upgrade program of the BootLoader program and the standby main protection program for uninterrupted upgrades. The MCU control chip reads the firmware upgrade package data and writes it into the main program area of its memory.
[0057] When the MCU control chip fails, the backup control chip starts working, sampling numerical calculations, monitoring the working conditions, and feeding back data to the host computer. At the same time, the damage of the MCU control chip is fed back to the host computer, and the staff will make corresponding processing. When the backup control chip needs to upgrade the program, the backup control chip executes the main program firmware upgrade program, and executes the backup main protection program through timed interrupts. The backup control chip reads the firmware upgrade package data to upgrade the program.
[0058] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A circuit breaker with uninterrupted protection during online firmware upgrade, comprising an MCU control chip, a storage medium storing a main program and a BootLoader program, wherein the BootLoader program comprises a main program firmware upgrade program and a backup main protection program, and is characterized in that: The method comprises an interrupt setting step, wherein the interrupt setting step divides an AC current cycle T into N equal parts, where N is a natural number greater than 1, and sets a timer interrupt time according to T / N, so that when the MCU control chip executes the main program firmware upgrade program, the backup main protection program is executed through the timer interrupt; The main program firmware upgrade program reads the firmware upgrade package data and writes it into the storage medium to update the main program; The standby main protection program samples and saves the instantaneous value of the current when the timing is interrupted, determines whether protection is required based on the instantaneous value of the current, and drives the circuit breaker to trip and open if protection is required; The backup main protection program checks whether an AC current cycle has ended. If the AC current cycle has ended, the current effective value is calculated based on multiple current transient values sampled during the AC current cycle, and whether protection is required is determined based on the current effective value. If protection is required, the circuit breaker is driven to trip and open.
2. The circuit breaker with non-interrupted protection during online firmware upgrade according to claim 1, characterized in that: The BootLoader program also includes a boot program. After the MCU control chip is started, it first enters the boot program. The boot program detects whether the main program firmware needs to be upgraded. If the main program firmware needs to be upgraded, it jumps to the interrupt setting step. If the main program firmware upgrade is not required, jump to execute the main program.
3. The circuit breaker with non-interrupted protection during online firmware upgrade according to claim 2, characterized in that: The main program communicates with the host computer, receives the firmware upgrade package data sent by the host computer and stores it in the storage medium; when the main program receives the firmware upgrade instruction, after checking that the current product working status is normal and the downloaded firmware upgrade package data is correct, the main program sets the main program firmware upgrade flag and then triggers a system software reset; the boot program determines whether the main program firmware upgrade is required based on the main program firmware upgrade flag.
4. The circuit breaker with non-interrupted protection during online firmware upgrade according to claim 3, characterized in that: The storage medium includes a main program area for storing a main program and a BootLoader area for storing a BootLoader program. After the main program firmware upgrade program writes all the firmware upgrade package data into the main program area, it first checks whether the firmware is upgraded correctly. After determining that the upgrade is correct, it clears the main program firmware upgrade flag and triggers a system software reset.
5. The circuit breaker with non-interrupted protection during online firmware upgrade according to claim 1, characterized in that: The standby main protection program compares the current transient value with the set threshold value, and triggers the circuit breaker to trip when the current transient value is greater than the set threshold value; compares the current effective value with the set effective value threshold, and drives the circuit breaker to trip if the current effective value is greater than the effective value threshold.
6. The circuit breaker with non-interrupted protection during online firmware upgrade according to claim 1, characterized in that: After the firmware upgrade is completed, the storage medium still retains the original main program. If a bug is found in the upgraded main program, the main program of the MCU control chip will be restored to the original main program.
7. The circuit breaker with uninterrupted protection during online firmware upgrade according to claim 1, characterized in that: It includes a signal sampling module, a protection drive module, a human-machine interface module and a communication module which are respectively connected to the MCU control chip.
8. The circuit breaker with uninterrupted protection during online firmware upgrade according to claim 1, characterized in that: The storage medium includes a memory built into the MCU control chip, the main program and the BootLoader program are stored in the memory built into the MCU control chip, and the firmware upgrade package data is cached in the memory built into the MCU control chip; Alternatively, the storage medium includes a memory built into the MCU control chip and an independent storage unit, the main program and the BootLoader program are stored in the memory built into the MCU control chip, and the firmware upgrade package data is cached in the storage unit.
9. A circuit breaker with uninterrupted protection during online firmware upgrade according to any one of claims 1 to 6, characterized in that: It also includes a backup control chip. When the MCU control chip is damaged, the backup control chip will replace the MCU control chip to work.
10. The circuit breaker with uninterrupted protection during online firmware upgrade according to claim 9, characterized in that: It also includes a signal sampling module, a protection drive module, a human-machine interface module and a communication module, wherein the signal sampling module, the protection drive module, the human-machine interface module and the communication module are connected to the MCU control chip and the standby control chip respectively; The storage medium includes a memory of the MCU control chip and a memory of the standby control chip, and the firmware upgrade package data is cached in the memory of the MCU control chip or the memory of the standby control chip. Alternatively, the storage medium includes a memory of the MCU control chip, a memory of the backup 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 storage unit of the backup control chip.
Citation Information
Patent Citations
Performance software updates on DF / CAFI breakers with existing hardware architecture
US20190339961A1
Secure communication for commissioning and decommissioning circuit breakers and panel system
US20200008050A1