A system and method for on-site online security upgrade program of power switch
By working together with the CPU control module and the FPGA data processing module, online security upgrades of power switches were achieved, solving the problems of high manpower input and communication anomalies in the traditional upgrade process, and improving upgrade efficiency and security.
Patent Information
- Application Number
- CN202311864803.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2043-12-29
AI Technical Summary
Upgrading existing power switches requires disconnecting connected devices, resulting in heavy workload, frequent communication failures, and significant manpower investment.
The system employs a CPU control module and an FPGA data processing module to upload the upgrade program online via Ethernet port. During the program loading process, high and low level verification and internal serial message exchange are performed to achieve online secure upgrades of the power switch.
This technology enables online upgrades of power switches without removing external equipment, simplifying the upgrade process, saving labor time, and improving the security and reliability of the upgrade.
Smart Images

Figure CN117896360B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system automation technology, and in particular to a system and method for an online security upgrade program for a power switch. Background Technology
[0002] With the vigorous development of automation and intelligence, and the large-scale integration of new energy sources, the power system is facing an intelligent upgrade, and the construction and management of conventional substations are being transformed into intelligent substations. This requires automatic information collection and measurement, as well as automatic control and intelligent regulation, online analysis and decision-making, and collaborative interaction.
[0003] The widespread adoption of smart substations and the significant increase in secondary equipment have led to a growing demand for power switches. Power switches differ considerably in function from those used in other industries and have stringent safety requirements. As demands change and functions upgrade, switches deployed in the field inevitably require program modifications and upgrades. However, the extensive use of power switches in substations makes program upgrades a time-consuming and labor-intensive undertaking, as most switch ports are constantly in operation and connected to numerous secondary devices.
[0004] Traditional power switch upgrades require disconnecting all connected devices before the upgrade can begin; all external ports must be physically disconnected to ensure the safe operation of other devices during the upgrade process. This is a tedious and demanding task for upgrades involving the entire power switch network. Not only do external fiber optic or network cables need to be unplugged, but they also need to be labeled to prevent errors during restoration. The fiber optic plugging, unplugging, and labeling process is not only tedious but also prone to incorrect insertion, leading to communication abnormalities and introducing new problems. In other words, upgrading an online power switch requires a significant investment of manpower and effort.
[0005] Therefore, there is an urgent need for a system and method for online upgrade programs of power switches that can free up manpower and shorten the work cycle. Summary of the Invention
[0006] To address the shortcomings of existing technologies, such as high levels of human intervention, heavy workload, and susceptibility to communication anomalies, this invention provides a system and method for online on-site upgrade programs for power switches.
[0007] The present invention adopts the following technical solution.
[0008] A system for an online security upgrade program for a power switch includes a program storage module, a CPU control module, and an FPGA data processing module.
[0009] A CPU control module, an FPGA data processing module, and a program storage module are set up in the power switch. The CPU control module serves as the upper-level control unit of the power switch, and the FPGA data processing module implements the power switch port message transmission and reception control and delay accumulation functions.
[0010] The upgrade programs for the CPU control program and the FPGA data processing program are uploaded online to the program storage module via the Ethernet port. After the upgrade program is uploaded, the FPGA data processing module loads the FPGA data processing program from the program storage module, and the CPU control module loads the CPU control program from the program storage module. Both modules load the program independently and simultaneously.
[0011] After the above program is loaded, the port function configuration of the FPGA data processing module is completed based on the message interaction between the CPU control module and the FPGA data processing module.
[0012] After the FPGA data processing module completes the loading of the FPGA data processing program, it performs high and low level verification. When the FPGA data processing module outputs a high level, it indicates that the FPGA data processing module has completed the program upgrade and sends an internal serial message of 0x5A to the CPU module.
[0013] During and after the FPGA data processing program is loaded, the service ports of the FPGA data processing module are in an initialized state. In this state, the FPGA data processing module will only interact with the CPU control module internally, exchanging internal serial messages for information exchange. The external Ethernet messages received by the FPGA data processing module will not be forwarded to the CPU control module, nor will they be sent out. The received Ethernet messages will be discarded.
[0014] After the CPU control program is loaded, the CPU control module performs a return value verification. When the CPU control module sends a return value of 1 to itself, it indicates that the CPU control module has completed the program upgrade.
[0015] After the CPU control module completes the program upgrade, it waits for the internal serial message response information transmitted by the FPGA data processing module. If it receives the 0x5A internal serial message response, it determines that the FPGA data processing module has completed the program upgrade.
[0016] After the CPU control module determines that the FPGA data processing module has completed the program upgrade, it begins initialization configuration, sends port configuration information to the FPGA data processing module, and sends an internal serial message of 0xA5 to the FPGA data processing module to activate the service port; wherein, the port configuration information includes register initialization configuration, flow control configuration, and service port function parameters.
[0017] After the CPU control module completes its initialization configuration, the FPGA data processing module receives the aforementioned port configuration information sent from the CPU control module to the FPGA data processing module, and automatically jumps to the working state after completing the port configuration.
[0018] This application also discloses a method for upgrading the field online security of a power switch based on the above-mentioned procedure, comprising the following steps:
[0019] Step 1: Based on the field operation device, the FPGA data processing program and CPU control program are directly written into the program storage module through the Ethernet interface without needing to disconnect the external device of the switch or disconnect the service port of the switch.
[0020] Step 2: During power-on, the program storage module is used to store the FPGA data processing program and the CPU control program. The FPGA data processing module loads the FPGA data processing program from the program storage module, and the CPU control module loads the CPU control program from the program storage module.
[0021] Step 3: After the FPGA data processing module is loaded, it completes the initialization self-test and outputs a response to inform the CPU control module after startup, and the port is in the initialization state;
[0022] Step 4: After the CPU control module is loaded, it completes the initialization self-test and receives the working status of other chips connected to the CPU, and transmits the response status to the FPGA data processing module.
[0023] Step 5: After the FPGA data processing module receives the CPU control module's status as working, its service port automatically switches to working mode and waits for the receiving port to be configured.
[0024] Step 6: The CPU control module sends configuration parameters to the FPGA data processing module to complete the port function configuration of the FPGA data processing module.
[0025] The beneficial effects of this invention are: it enables the upgrading of online power switches without removing external devices, thus achieving the upgrade function of the switch. Specifically, it provides a method for secure online upgrades of field-operating switches. This method simplifies and reliably upgrades the process, eliminating the need for extensive manpower for plugging, unplugging, and marking peripherals on the power switch ports, shortening the upgrade cycle, significantly saving labor time, and making the upgrade process safer and more reliable. Attached Figure Description
[0026] Figure 1 This application provides a system field online upgrade architecture diagram for a field online security upgrade program for power switches.
[0027] Figure 2 This application provides a system structure diagram of a power switch's actual application using an online security upgrade program for power switches.
[0028] Figure 3 This application provides a flowchart of the system FPGA program loading and initialization process for an online security upgrade program for a power switch.
[0029] Figure 4 This application provides a flowchart of the system CPU program loading and initialization process for an online security upgrade program for a power switch.
[0030] Figure 5 This application provides a system security upgrade parameter configuration architecture diagram for a field online security upgrade program for power switches.
[0031] Figure 6 This application provides a flowchart of a method for an online security upgrade program for a power switch. Detailed Implementation
[0032] The present application will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention, and should not be construed as limiting the scope of protection of the present application.
[0033] The present invention adopts the following technical solution.
[0034] Based on the example Figure 1-5 As shown, this invention discloses a system for an online security upgrade program for a power switch, comprising a program storage module, a CPU control module, and an FPGA data processing module:
[0035] A CPU control module, an FPGA data processing module, and a program storage module are set up in the power switch. The CPU control module serves as the upper-level control unit of the power switch, and the FPGA data processing module implements the power switch port message transmission and reception control and delay accumulation functions.
[0036] The upgrade programs for the CPU control program and the FPGA data processing program are uploaded online to the program storage module via the Ethernet port. After the upgrade program is uploaded, the FPGA data processing module loads the FPGA data processing program from the program storage module, and the CPU control module loads the CPU control program from the program storage module. Both modules load the program independently and simultaneously.
[0037] After the above program is loaded, the port function configuration of the FPGA data processing module is completed based on the message interaction between the CPU control module and the FPGA data processing module.
[0038] After the FPGA data processing module completes the loading of the FPGA data processing program, it performs high and low level verification. When the FPGA data processing module outputs a high level, it indicates that the FPGA data processing module has completed the program upgrade and sends an internal serial message of 0x5A to the CPU module.
[0039] During and after the FPGA data processing program is loaded, the service ports of the FPGA data processing module are in an initialized state. In this state, the FPGA data processing module will only interact with the CPU control module internally, exchanging internal serial messages for information exchange. The external Ethernet messages received by the FPGA data processing module will not be forwarded to the CPU control module, nor will they be sent out. The received Ethernet messages will be discarded.
[0040] After the CPU control program is loaded, the CPU control module performs a return value verification. When the CPU control module sends a return value of 1 to itself, it indicates that the CPU control module has completed the program upgrade.
[0041] After the CPU control module completes the program upgrade, it waits for the internal serial message response information transmitted by the FPGA data processing module. If it receives the 0x5A internal serial message response, it determines that the FPGA data processing module has completed the program upgrade.
[0042] After the CPU control module determines that the FPGA data processing module has completed the program upgrade, it begins initialization configuration, sends port configuration information to the FPGA data processing module, and sends an internal serial message of 0xA5 to the FPGA data processing module to activate the service port; wherein, the port configuration information includes register initialization configuration, flow control configuration, and service port function parameters.
[0043] After the CPU control module completes its initialization configuration, the FPGA data processing module receives the aforementioned port configuration information sent from the CPU control module to the FPGA data processing module, and automatically jumps to the working state after completing the port configuration.
[0044] Based on the example Figure 6 As shown, this application also discloses a method for upgrading the field online security of a power switch based on the above-mentioned method, including the following steps:
[0045] Step 1: Based on the field operation device, the FPGA data processing program and CPU control program are directly written into the program storage module through the Ethernet interface without needing to disconnect the external device of the switch or disconnect the service port of the switch.
[0046] Step 2: During power-on, the program storage module is used to store the FPGA data processing program and the CPU control program. The FPGA data processing module loads the FPGA data processing program from the program storage module, and the CPU control module loads the CPU control program from the program storage module.
[0047] Step 3: After the FPGA data processing module is loaded, it completes the initialization self-test and outputs a response to inform the CPU control module after startup, and the port is in the initialization state;
[0048] Step 4: After the CPU control module is loaded, it completes the initialization self-test and receives the working status of other chips connected to the CPU, and transmits the response status to the FPGA data processing module.
[0049] Step 5: After the FPGA data processing module receives the CPU control module's status as working, its service port automatically switches to working mode and waits for the receiving port to be configured.
[0050] Step 6: The CPU control module sends configuration parameters to the FPGA data processing module to complete the port function configuration of the FPGA data processing module.
[0051] This disclosure can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of this disclosure.
[0052] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
[0053] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0054] Computer program instructions used to perform the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing the status information of the computer-readable program instructions to implement various aspects of this disclosure.
[0055] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. A system for an online security upgrade program for a power switch, comprising a program storage module, a CPU control module, and an FPGA data processing module, characterized in that: A CPU control module, an FPGA data processing module, and a program storage module are set up in the power switch. The CPU control module serves as the upper-level control unit of the power switch, and the FPGA data processing module implements the power switch port message transmission and reception control and delay accumulation functions. The upgrade programs for the CPU control program and the FPGA data processing program are uploaded online to the program storage module via the Ethernet port. After the upgrade program is uploaded, the FPGA data processing module loads the FPGA data processing program from the program storage module, and the CPU control module loads the CPU control program from the program storage module. Both modules load the program independently and simultaneously. During and after the FPGA data processing program is loaded, the service ports of the FPGA data processing module are in an initialized state. In this state, the FPGA data processing module will only interact internally with the CPU control module, exchanging internal serial messages for information exchange. The FPGA data processing module will not forward external Ethernet messages received to the CPU control module, nor will it send them out. The received Ethernet messages will be discarded. After the above program is loaded, the port function configuration of the FPGA data processing module is completed based on the message interaction between the CPU control module and the FPGA data processing module. The message interaction between the CPU control module and the FPGA data processing module includes: after the FPGA data processing program is loaded, it performs an initialization self-test, and after the program loading is complete, it sends an internal serial message to the CPU control module; after the CPU control program is loaded, it performs an initialization self-test, and after the program upgrade is completed and the internal serial message of program upgrade completion is received from the FPGA data processing module, it starts the initialization configuration and sends port configuration information and an internal serial message to activate the service port to the FPGA data processing module; the FPGA data processing module receives the port configuration information.
2. The system for an online security upgrade program for a power switch according to claim 1, characterized in that, After the FPGA data processing module completes the loading of the FPGA data processing program, it performs high and low level verification. When the FPGA data processing module outputs a high level, it indicates that the FPGA data processing module has completed the program upgrade and sends an internal serial message of 0x5A to the CPU module.
3. The system for an online security upgrade program for a power exchange according to claim 1, characterized in that, After the CPU control program is loaded, the CPU control module performs a return value verification. When the CPU control module sends a return value of 1 to itself, it indicates that the CPU control module has completed the program upgrade.
4. A system for an online security upgrade program for a power exchange according to claim 1 or 3, characterized in that, After the CPU control module completes the program upgrade, it waits for the internal serial message response information transmitted by the FPGA data processing module. If it receives the 0x5A internal serial message response, it determines that the FPGA data processing module has completed the program upgrade.
5. The system for an online security upgrade program for a power exchange according to claim 4, characterized in that, After the CPU control module determines that the FPGA data processing module has completed the program upgrade, it begins initialization configuration, sends port configuration information to the FPGA data processing module, and sends an internal serial message of 0xA5 to the FPGA data processing module to activate the service port; wherein, the port configuration information includes register initialization configuration, flow control configuration, and service port function parameters.
6. A system for an online security upgrade program for a power exchange according to claim 1 or 5, characterized in that, After the CPU control module completes its initialization configuration, the FPGA data processing module receives the aforementioned port configuration information sent from the CPU control module to the FPGA data processing module, and automatically jumps to the working state after completing the port configuration.
7. A method for on-site online security upgrade program of a power switch, applied to a system for on-site online security upgrade program of a power switch as described in any one of claims 1 to 6, characterized in that, Includes the following steps: Step 1: Based on the field operating device, the FPGA data processing program and CPU control program are directly written into the program storage module via the Ethernet interface, without needing to disconnect external devices from the switch or disconnect the switch's service ports; Step 2: During power-on, the program storage module is used to store the FPGA data processing program and the CPU control program. The FPGA data processing module loads the FPGA data processing program from the program storage module, and the CPU control module loads the CPU control program from the program storage module. Step 3: After the FPGA data processing module is loaded, it completes the initialization self-test and outputs a response to inform the CPU control module after startup, and the port is in the initialization state; Step 4: After the CPU control module is loaded, it completes the initialization self-test and receives the working status of other chips connected to the CPU, and transmits the response status to the FPGA data processing module. Step 5: After the FPGA data processing module receives confirmation that the CPU control module is in working mode, its service port automatically switches to working mode and waits for the receiving port to be configured. Step 6: The CPU control module sends configuration parameters to the FPGA data processing module to complete the port function configuration of the FPGA data processing module.
8. A terminal, comprising a processor and a storage medium; characterized in that, The storage medium is used to store instructions; The processor is configured to operate according to the instructions to perform the steps of the method according to claim 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method of claim 7.
Citation Information
Patent Citations
Method and device for on-line program upgrading of optical amplifier
CN109687278A
