Method for upgrading software program of circuit breaker product

Through embedded operating system and bus communication technology, software upgrades are carried out when the circuit breaker product is working normally, which solves the problem of product stopping during the upgrade process, and achieves efficient and reliable software updates and grid protection.

CN120560686APending Publication Date: 2025-08-29HANGZHOU MINGYANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510664879.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2025-08-29

AI Technical Summary

Technical Problem

Existing circuit breaker products need to enter upgrade mode when upgrading software, causing the product to stop working, affecting the use effect, and are not conducive to grid protection and regular maintenance.

Method used

The multi-tasking concurrency technology of embedded operating systems is adopted, and the software is upgraded when the product is working normally. A stable communication channel is established through RS485, SPI or I2C bus communication technology, and only the communication function module is updated, and other modules are not affected.

Benefits of technology

It realizes software upgrade without affecting the normal operation of the circuit breaker product, ensures the continuity of grid protection, shortens upgrade time, reduces maintenance work, and improves the efficiency and reliability of upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120560686A_ABST
    Figure CN120560686A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of circuit product program upgrading, in particular to a method for upgrading a software program of a circuit breaker product, comprising a PC (Personal Computer) upper computer of a management master station, circuit breaker product equipment and a bus communication technology, establishing a stable communication channel with external equipment by utilizing the bus communication technology, and sending an upgrading package to the interior of the product by the external equipment, after the product receives an upgrading instruction, a FLash area with a proper size is developed for receiving an updating program package and a communication function module of the product needing to be updated, the product only needs to download the communication function module and replace the communication function module, other modules such as a protection module, a control module and a sampling module are not influenced, and the product upgrading efficiency is improved. According to the method and the device, the degree of influence on operation of a circuit breaker product is reduced, after the upgrade package is downloaded, whether the upgrade package is completely downloaded or not is verified, program updating is completed after confirmation is completed, and the updated program is started, and by means of the setting, the product can work normally in the process of receiving the upgrade package.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit product program upgrades, and in particular to a method for upgrading a software program of a circuit breaker product. Background Art

[0002] Currently, the software upgrade program used in most smart circuit breaker products needs to receive software upgrade instructions transmitted by an external device. After the product enters the boot program from the main APP program, the external device downloads the software upgrade package to the product. After the product upgrade is completed, the external device sends a verification instruction. After receiving the verification instruction, the product replaces the software. After the replacement is completed, the boot program jumps back to the main APP program to complete the software program update.

[0003] The current upgrade program mentioned above requires entering an upgrade mode. During this process, the circuit breaker product stops working and downloads the entire program package. After the upgrade is completed, the program needs to be restarted, which affects the use of the circuit breaker product, is not conducive to the circuit breaker product's constant protection of the power grid, and is not conducive to regular program updates and maintenance of the circuit breaker product. Therefore, to address the above problems, a method for upgrading the software program of a circuit breaker product is proposed. Summary of the Invention

[0004] The present invention aims to provide a method for upgrading the software program of a circuit breaker product, which is used to solve the problem that some current upgrade programs need to enter an upgrade mode. During this process, the circuit breaker product stops working and the entire program package is downloaded in full. After the upgrade is completed, the program needs to be restarted, which affects the use effect of the circuit breaker product, is not conducive to the circuit breaker product's constant protection of the power grid, and is not conducive to regular program updates and maintenance of the circuit breaker product.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A method for upgrading software programs for circuit breaker products includes a PC host computer for managing a master station, circuit breaker product equipment, and bus communication technology. The circuit breaker product equipment uses an embedded operating system, divides each function of the circuit breaker product equipment into multiple APP programs, and utilizes the multi-tasking concurrent technology of the embedded operating system to download software upgrade files while the product is operating normally.

[0007] The method for upgrading the software program of a circuit breaker product includes the following steps:

[0008] S1. The PC host computer of the management master station is used to edit or receive a software program upgrade package. The PC host computer and several circuit breaker products communicate and set data of the software program upgrade package through bus communication technology. Each circuit breaker product device is assigned a unique communication address. The manufacturer name, device type, device name, upgrade program name, and version number of the circuit breaker product device are verified and compared with the configuration file in the software program upgrade file. The PC host computer verifies and confirms the above parameters of the circuit breaker product device. If the comparison and confirmation of the above parameters fails, the configuration information of the software program upgrade package of the PC host computer is corrected and then re-verified.

[0009] S2. After the verification and confirmation process is successful, the PC host computer of the management master station sends a software update request and a software program upgrade file to the circuit breaker product device, and the circuit breaker product device performs communication verification and confirmation on the software update request and software program upgrade file;

[0010] S3. After the circuit breaker product device is successfully verified and receives the upgrade instruction, the circuit breaker product device will open up an internal FLash area of ​​the memory size suitable for the software program upgrade file to receive the update program package. The circuit breaker product device downloads for a certain period of time until the corresponding software program upgrade file is downloaded. It verifies whether the software program upgrade file is downloaded completely. If the verification of the above software program file is incomplete, the software program upgrade file is deleted and re-downloaded. After the download is confirmed to be complete, it is determined that the downloaded program is a new program and can be run directly.

[0011] Preferably, the bus communication technology adopts one of RS485 serial communication technology, SPI bus communication technology, and I2C bus communication technology.

[0012] Preferably, when RS485 serial communication technology is adopted in steps S1-S3, a differential transmission mode is adopted in the RS485 communication network, the network topology is reasonably planned, and terminal resistors are added at both ends of the bus.

[0013] Preferably, when the SPI bus communication technology is used in steps S1-S3, the uniform width and constant distance of the routing are maintained, the routing is avoided to form sharp angles or 90-degree angles, and microstrip or stripline technology is used for wiring.

[0014] Preferably, when the I2C bus communication technology is adopted in the steps S1-S3, an appropriate I2C communication rate is selected and the bus arrangement system is designed as a single host communication mode.

[0015] Compared with the prior art, the present invention has the following beneficial effects:

[0016] In the present invention, bus communication technology is used to establish a stable communication channel with an external device, and the external device sends an upgrade package to the product. After receiving the upgrade instruction, the product will open up a FLash area of ​​appropriate size to receive the update program package. If the communication function module of the product needs to be updated, the product only needs to download and replace the communication function module. Other modules such as the protection module, control module, and sampling module will not be affected, and the impact on the operation of the circuit breaker product is reduced. After the upgrade package is downloaded, it is checked whether the upgrade package is downloaded completely. After confirmation, the program update is completed and the updated program is started. Through the above settings, the circuit breaker product equipment can continue to perform normal working tasks during the upgrade, without affecting the use of the circuit breaker product, which is beneficial for the product to protect the power grid at all times and is beneficial for regular program updates and maintenance of the product. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of the overall process method of the upgrade software program of the circuit breaker product of the present invention;

[0018] Figure 2 Schematic diagram of the bus communication type used in the software upgrade program of the present invention. DETAILED DESCRIPTION

[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0020] See also Figure 1-2 , the present invention provides a technical solution:

[0021] A method for upgrading software programs for circuit breaker products includes a PC host computer for managing a master station, circuit breaker product equipment, and bus communication technology. The circuit breaker product equipment uses an embedded operating system, divides each function of the circuit breaker product equipment into multiple APP programs, and utilizes the multi-tasking concurrent technology of the embedded operating system to download software upgrade files while the product is operating normally.

[0022] The method for upgrading the software program of a circuit breaker product includes the following steps:

[0023] S1. The PC host computer of the management master station is used to edit or receive the software program upgrade package. The PC host computer and several circuit breaker products communicate and set up the data of the software program upgrade package through bus communication technology. Each circuit breaker product device is assigned a unique communication address. The manufacturer name, device type, device name, upgrade program name and version number of the circuit breaker product device are verified and compared with the configuration file in the software program upgrade file. The PC host computer verifies and confirms the above parameters of the circuit breaker product device. If the comparison and confirmation of the above parameters fails, the configuration information of the software program upgrade package of the PC host computer is corrected and then re-verified.

[0024] S2. After the verification and confirmation process is successful, the PC host computer of the management master station sends a software update request and a software program upgrade file to the circuit breaker product device, and the circuit breaker product device performs communication verification and confirmation on the above software update request and software program upgrade file;

[0025] S3. After the circuit breaker product device is successfully verified and receives the upgrade instruction, the circuit breaker product device will open up an internal FLash area of ​​the memory size suitable for the software program upgrade file to receive the update program package. The circuit breaker product device downloads for a certain period of time until the corresponding software program upgrade file is downloaded. It verifies whether the software program upgrade file is downloaded completely. If the verification of the above software program file is incomplete, the software program upgrade file is deleted and re-downloaded. After the download is confirmed to be complete, it is determined that the downloaded program is a new program and can be run directly.

[0026] The bus communication technology adopts one of RS485 serial communication technology, SPI bus communication technology, and I2C bus communication technology. Through the above settings, the wiring requirements and data transmission requirements installed in different building areas are used to select the corresponding bus communication technology.

[0027] When RS485 serial communication technology is used in steps S1-S3, a differential transmission mode is adopted in the RS485 communication network. Through the above setting, external interference is effectively resisted and the stability of signal transmission is improved; the network topology is reasonably planned. Through the above setting, signal attenuation and increased interference caused by an excessively long bus are avoided; terminal resistors are added at both ends of the bus. Through the above setting, they are used to match the impedance of the transmission line and reduce signal reflection and interference.

[0028] When using SPI bus communication technology in steps S1-S3, maintain uniform width and constant distance of the routing, avoid routing at sharp angles or 90-degree angles, and use microstrip or stripline technology. Through the above settings, good impedance control is achieved.

[0029] When I2C bus communication technology is used in steps S1-S3, an appropriate I2C communication rate is selected to increase the data transmission speed through the above settings; the bus layout system is designed as a single-host communication mode, and the above settings are used to simplify the management of the communication protocol.

[0030] Workflow: The present invention provides a method for upgrading the software program of a circuit breaker product. This technology relies on an embedded operating system to divide each function of the product into multiple APP programs. By utilizing the multi-tasking concurrency technology of the embedded operating system, the upgrade program can be downloaded while the product is working normally, which can greatly reduce the impact of product function updates on product operation.

[0031] Implementation process of the FLASH storage process of the software upgrade file sent by the PC host:

[0032] The server sends the software upgrade file description information. After receiving it, the device first reads the content stored in the FLash to check whether the file to be upgraded is consistent with the file information saved locally. If they are inconsistent, it means it is a new upgrade file. The previously saved file description information and the saved upgrade file in the FLash are cleared, and the upgrade file description information sent by the server is saved. The purpose of this is to prevent the upgrade from being terminated due to abnormal conditions such as power outages during the upgrade process. The upgrade can be continued from the last interrupted package number and storage address. If they are consistent, it means it is the same upgrade file, and the upgrade continues from the last interrupted upgrade package.

[0033] The device reads the locally stored file description and compares it with the file description being upgraded to determine if it is the same upgrade file. The device then saves the description to the local server and begins sending the first upgrade package containing the checksum. Upon receiving the package, the device compares the checksum with the upgrade package sent by the server. If they match, the transmission is correct, and the device adds the storage address to the address and saves it. The device then responds to the server for the next upgrade package. If they do not match, the transmission is incorrect, and the server should request the upgrade package again.

[0034] After the last packet is sent, the number of currently transmitted packets is equal to the total number of packets. All packets are cumulatively checked and compared with the total checksum in the file description information. If they are consistent, it means that there are no errors in the entire upgrade process, the upgrade is set to successful, and the software can be reset and the new program can be loaded. If they are inconsistent, it means that there is packet loss, all saved upgrade packages are cleared, and a new upgrade is requested.

[0035] When upgrading, this technology first uses bus communication technology (such as RS485 serial communication, SPI bus communication, I2C bus communication, etc.) to establish a stable communication channel with external devices, and the external device sends the upgrade package to the product. After receiving the upgrade instruction, the product will open up a FLash area of ​​appropriate size to receive the update program package. During the process of receiving the upgrade package, the product can work normally without affecting the monitoring and protection functions of the power grid. Since the updated program is only a part of the program, such as the communication function module of the product needs to be updated, the product only needs to download the communication function module and replace the communication function module. Other modules such as protection module, control module, and sampling module will not be affected. Therefore, the replacement and download process consumes relatively few resources, and the impact on the operation of the circuit breaker product is also reduced to a certain extent. After the upgrade package is downloaded, it is verified whether the upgrade package is downloaded completely. After confirmation, the program update is completed and the updated program is started.

[0036] This technology shortens the upgrade time and reduces the size of the upgrade package on the basis of stable upgrade. It can also complete real-time monitoring and protection of power grid security during the upgrade process without restarting or interrupting the normal operation of the product. It can improve the security protection of the power grid and also reduce some of the subsequent maintenance work accordingly.

[0037] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.

Claims

1. A method for upgrading the software program of a circuit breaker product, comprising a PC host computer for managing a master station, circuit breaker product equipment, and bus communication technology, characterized in that: The circuit breaker products used rely on embedded operating systems, dividing each function of the circuit breaker products into multiple APP programs. The multi-tasking concurrent technology of the embedded operating system is used to download software upgrade files while the product is working normally. The method for upgrading the software program of a circuit breaker product includes the following steps: S1. The PC host computer of the management master station is used to edit or receive a software program upgrade package. The PC host computer and several circuit breaker products communicate and set data of the software program upgrade package through bus communication technology. Each circuit breaker product device is assigned a unique communication address. The manufacturer name, device type, device name, upgrade program name, and version number of the circuit breaker product device are verified and compared with the configuration file in the software program upgrade file. The PC host computer verifies and confirms the above parameters of the circuit breaker product device. If the comparison and confirmation of the above parameters fails, the configuration information of the software program upgrade package of the PC host computer is corrected and then re-verified. S2. After the verification and confirmation process is successful, the PC host computer of the management master station sends a software update request and a software program upgrade file to the circuit breaker product device, and the circuit breaker product device performs communication verification and confirmation on the software update request and software program upgrade file; S3. After the circuit breaker product device is successfully verified and receives the upgrade instruction, the circuit breaker product device will open up an internal FLash area of ​​the memory size suitable for the software program upgrade file to receive the update program package. The circuit breaker product device downloads for a certain period of time until the corresponding software program upgrade file is downloaded. It verifies whether the software program upgrade file is downloaded completely. If the verification of the above software program file is incomplete, the software program upgrade file is deleted and re-downloaded. After the download is confirmed to be complete, it is determined that the downloaded program is a new program and can be run directly.

2. The method for upgrading software of a circuit breaker product according to claim 1, characterized in that: The bus communication technology adopts one of RS485 serial communication technology, SPI bus communication technology and I2C bus communication technology.

3. The method for upgrading software of a circuit breaker product according to claim 2, characterized in that: When RS485 serial communication technology is used in steps S1-S3, a differential transmission mode is adopted in the RS485 communication network to effectively resist external interference, improve the stability of signal transmission, rationally plan the network topology, avoid signal attenuation and increased interference caused by a bus that is too long, and add terminal resistors at both ends of the bus to match the impedance of the transmission line to reduce signal reflection and interference.

4. The method for upgrading software of a circuit breaker product according to claim 2, characterized in that: When the SPI bus communication technology is used in the steps S1-S3, the uniform width and constant distance of the routing are maintained, and the routing is avoided at sharp angles or 90-degree angles. Microstrip or stripline technology is used for wiring.

5. The method for upgrading software of a circuit breaker product according to claim 2, characterized in that: When the I2C bus communication technology is used in the steps S1-S3, an appropriate I2C communication rate is selected and the bus arrangement system is designed to be a single host communication mode.