A method, device, system and medium for burning a valve control program
By employing a dual flash memory storage area design and precise routing technology in the flexible DC converter valve control system, the abnormal issues during the valve control program burning process were resolved, achieving high accuracy and automatic recovery, reducing manual intervention, and ensuring system stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
- Filing Date
- 2026-03-30
- Publication Date
- 2026-06-05
AI Technical Summary
In the existing technology, the valve control program burning method of the flexible DC converter valve control system has the problem that the central control board loses the executable program under abnormal conditions such as communication interruption, data error or power failure. This causes maintenance personnel to disassemble and repair the machine on-site, which consumes manpower and resources and may lead to long-term downtime. In addition, the burning accuracy is insufficient.
The system adopts a dual flash memory storage area design. The central control board includes a first flash memory storage area and a second flash memory storage area, which are used for the current program and the historical backup program, respectively. Combined with the precise routing, segmented data transmission and status monitoring of the switch and interface board, it ensures that the program data is delivered accurately and automatically rolls back to the historical backup in case of abnormality, forming a complete accuracy closed loop.
It improves the accuracy of valve control program programming, avoids equipment failure due to abnormalities, reduces on-site manual intervention, and ensures stable system operation.
Smart Images

Figure CN122152331A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power systems, and more particularly to a method, apparatus, system, and medium for burning valve control programs. Background Technology
[0002] Flexible DC transmission, as a core technology for new energy grid connection, long-distance power transmission, and isolated power supply, consists of a converter valve system composed of hundreds or thousands of cascaded power submodules. The central control board within each submodule serves as the core control unit for functions such as modulation / demodulation, voltage equalization control, and fault protection; the stability of its program operation directly affects the safety of the entire DC transmission system. With changes in grid operation demands, optimization of control strategies, and improvement of protection logic, the flexible DC converter valve control system requires version upgrades to the central control board's operating program. Therefore, reprogramming the valve control program on the central control board has become a necessary maintenance method to ensure system performance and reliability.
[0003] In existing technologies, a remote programming method based on a serial bus is typically used to program the valve control program on the central control board of a flexible DC converter valve. However, this method has significant drawbacks: because it uses a single program storage area for overwriting, if an abnormal situation occurs during the programming process, such as communication interruption, data error, unexpected power failure, or write verification failure, the original valve control program will be erased and the new program will not be fully written, directly causing the central control board to lose its executable program, i.e., it will become "bricked". In this case, maintenance personnel must go to the site to disassemble and repair or reprogram the program using a special programmer, which not only consumes a lot of manpower and resources, but may also cause the converter valve to be shut down for a long time. The accuracy of the valve control program programming urgently needs to be improved. Summary of the Invention
[0004] This invention provides a method, apparatus, system, and medium for burning valve control programs, which can improve the accuracy of burning valve control programs in flexible DC converter valve control systems.
[0005] In a first aspect, an embodiment of the present invention provides a method for programming a valve control program, applied to a flexible DC-DC converter valve control system, the flexible DC-DC converter valve control system comprising a valve control backend and several central control boards, the method comprising: Receive the data of the valve control program to be written and the location of the target central control board sent by the valve control backend; The valve control program data to be burned is written into the first flash memory storage area of the central control board corresponding to the position of the target central control board. The central control board includes the first flash memory storage area and the second flash memory storage area, and the second flash memory storage area stores historical backup programs. The burning status information of the central control board is monitored. If the burning status information meets the preset burning conditions, the historical backup program is read from the second flash memory storage area of the central control board and written into the first flash memory storage area of the central control board. This process continues until the central control board is successfully burned. Then, the valve control program data to be burned is written into the second flash memory storage area of the central control board, thereby realizing the burning of the valve control program of the central control board.
[0006] By receiving the valve control program data to be burned and the target central control board location from the valve control backend, the required program files and their target device locations can be accurately obtained, providing a reliable data foundation for the subsequent burning process and ensuring the accuracy of the valve control program burning. Writing the valve control program data to be burned into the first flash memory storage area of the central control board corresponding to the target central control board location completes the update writing of the new program. Simultaneously, the second flash memory storage area of the central control board independently stores historical backup programs, physically isolating the currently running program from the historical backup programs. This reserves available resources for fault recovery in case of burning failure, thereby improving the accuracy of valve control program burning. Monitoring the burning status information after the central control board completes the writing process allows for real-time acquisition of the burning results, providing accurate judgment criteria for subsequent rollback or backup operations based on preset burning conditions, avoiding erroneous operations when the status is unclear. This invention improves the accuracy of valve control program programming. If the programming status information meets the preset programming conditions, it indicates a programming failure. In this case, the historical backup program needs to be read from the second flash memory storage area of the central control board and written to the first flash memory storage area of the central control board. This enables an automatic rollback mechanism to be triggered in case of programming anomalies, allowing the central control board to quickly return to its usable state before programming. This avoids the need for on-site manual intervention due to "bricked" equipment caused by programming anomalies, thus improving the accuracy of valve control program programming. If the programming status information does not meet the preset programming conditions, it indicates a successful programming. In this case, the valve control program data to be programmed needs to be written to the second flash memory storage area of the central control board. This enables automatic updating of the historical backup program after successful programming, ensuring that the backup is always the latest usable version. This provides reliable recovery resources for the next programming, forming a complete accuracy closed loop, thereby improving the accuracy of valve control program programming. This application can improve the accuracy of valve control program programming in flexible DC converter valve control systems.
[0007] Furthermore, the process of the valve control backend sending the data of the valve control program to be programmed and the location of the target central control board specifically includes: Based on the location of the target central control board and the preset system topology table, determine the target core board identifier associated with the location of the target central control board; The switch is used to transmit the valve control program data to be burned and the target central control board location to the core board corresponding to the target core board identifier. The flexible DC converter valve control system also includes the switch and several core boards.
[0008] By determining the associated target core board identifier based on the target central control board location and the preset system topology table, and using a switch to transmit the valve control program data to be programmed and the target central control board location to the corresponding core board, precise routing of programming instructions under a multi-level distributed architecture can be achieved. This ensures that the program data is accurately delivered to the target central control board location, avoiding programming errors caused by data mistransmission or broadcast flooding, thereby improving the accuracy of valve control program programming.
[0009] Furthermore, the step of writing the valve control program data to be programmed into the first flash memory storage area of the central control board corresponding to the target central control board location specifically includes: Based on the target core board identifier and the system topology table, the target interface board identifier associated with the target core board identifier is determined, wherein the flexible DC converter valve control system also includes several interface boards; The valve control program data to be programmed is segmented and sent to the interface board corresponding to the target interface board identifier, so that the interface board sends the valve control program data to be programmed to the central control board, and the central control board writes the valve control program data to be programmed into the first flash memory storage area of the central control board.
[0010] By determining the associated target interface board identifier based on the target core board identifier and the system topology table, and sending the valve control program data to be burned in segments to the corresponding interface board, which then forwards it to the central control board, reliable transmission of burning data between boards can be achieved. This avoids the risk of communication congestion or data packet loss caused by a single large data transmission, ensuring that the program data written to the central control board is complete and error-free, thereby improving the accuracy of valve control program burning.
[0011] Furthermore, before writing the valve control program data to be programmed into the first flash memory storage area of the central control board corresponding to the target central control board location, the method further includes: Send an erase command to the interface board corresponding to the target interface board identifier, so that the interface board triggers the central control board to execute the erase command and receives the erase status flag returned by the interface board; If the erase status flag is successful, then the data of the valve control program to be burned is allowed to be written to the central control board.
[0012] This method sends an erase command to the interface board before writing the data to be burned into the valve control program and receives the returned erase status flag. Data writing is only allowed after successful erasure, which ensures that the first flash memory storage area is in a writable state. This avoids data writing misalignment or program malfunction due to the storage area not being erased or erasure failure, thereby improving the accuracy of valve control program burning.
[0013] Furthermore, the method for burning the valve control program also includes: The received valve control program data to be burned and the target central control board location are stored in the power-down partition of the core board; The power supply status is monitored during the burning process. If the power supply status meets the preset power-down conditions, the valve control program data to be burned and the target central control board position are read from the power-down partition, and the valve control program data to be burned is rewritten into the first flash memory storage area of the central control board corresponding to the target central control board position.
[0014] This method stores the valve control program data to be programmed and the target central control board location in the core board's power-down partition. When the power supply meets the preset power-down conditions, the data is read from the power-down partition and the programming is re-executed. This allows the programming process to be automatically resumed after an unexpected power outage, without the need for manual re-issuance of programming commands. This avoids data loss and programming interruption caused by power outages, ensuring the complete execution of the programming process and thus improving the accuracy of valve control program programming.
[0015] Secondly, an embodiment of the present invention provides a valve control program burning device, which is applied to a flexible DC converter valve control system. The flexible DC converter valve control system includes a valve control backend, a core board and several central control boards. The device includes a first module, a second module and a third module. The first module is used to receive the valve control program data to be burned and the target central control board location sent by the valve control backend; The second module is used to write the valve control program data to be burned into the first flash memory storage area of the central control board corresponding to the position of the target central control board, wherein the central control board includes the first flash memory storage area and the second flash memory storage area, and the second flash memory storage area stores historical backup programs; The third module is used to monitor the burning status information of the central control board. If the burning status information meets the preset conditions, the historical backup program is read from the second flash memory storage area of the central control board and written into the first flash memory storage area of the central control board until the central control board is successfully burned. Then, the valve control program data to be burned is written into the second flash memory storage area of the central control board to realize the burning of the valve control program of the central control board.
[0016] The first module receives the valve control program data to be burned and the target central control board location from the valve control backend, accurately obtaining the program files required for burning and the location of the target device. This provides a reliable data foundation for the subsequent burning process, ensuring the accuracy of the valve control program burning. The second module writes the valve control program data to be burned into the first flash memory storage area of the central control board corresponding to the target central control board location, completing the update writing of the new program. At the same time, the second flash memory storage area of the central control board independently stores historical backup programs, physically isolating the currently running program from the historical backup programs. This reserves available resources for fault recovery in case of burning failure, thereby improving the accuracy of valve control program burning. The third module monitors the burning status information of the central control board after the writing is completed, obtaining the burning results in real time. This provides an accurate basis for subsequent rollback or backup operations based on preset burning conditions, avoiding errors caused by unclear status. In case of misoperation, the accuracy of valve control program programming is improved. If the programming status information meets the preset programming conditions, it indicates that the programming has failed. In this case, the historical backup program needs to be read from the second flash memory storage area of the central control board and written to the first flash memory storage area of the central control board. This realizes the automatic triggering of the rollback mechanism in case of programming failure, so that the central control board can be quickly restored to the usable state before programming. This avoids the device becoming "bricked" due to programming failure and requires on-site manual intervention, thereby improving the accuracy of program programming. If the programming status information does not meet the preset programming conditions, it indicates that programming has succeeded. In this case, the valve control program data to be programmed needs to be written to the second flash memory storage area of the central control board. This realizes the automatic update of the historical backup program after successful programming, so that the backup is always kept as the latest usable version, providing reliable recovery resources for the next programming, forming a complete accuracy closed loop, thereby improving the accuracy of valve control program programming.
[0017] Thirdly, another embodiment of the present invention provides a flexible DC-DC converter valve control system, including a valve control backend, a switch, several interface chassis, and several central control boards, wherein: The interface chassis includes an interface board and several core boards, which are used to implement the valve control program burning method.
[0018] In this way, through a hierarchical system architecture that includes a valve control backend, a switch, an interface chassis, and a central control board, the centralized issuance and hierarchical transmission of programming instructions can be realized. Each hardware unit works together to complete the accurate routing, reliable transmission, and fault-tolerant programming of program data, ensuring the accuracy of the programming process at the system level.
[0019] Furthermore, the valve control backend is connected to the switch via a network cable, and each core board in each interface chassis is connected to the switch via a network cable. For each of the interface chassis, each of the core boards of the interface chassis is connected to the interface board via optical fiber, and the interface board is connected to each of the central control boards via optical fiber.
[0020] In this way, by connecting the valve control backend and the switch with network cables, connecting the core board and the switch with network cables, and connecting the core board and the interface board with fiber optic cables, and connecting the interface board and the central control board with fiber optic cables, a high-speed, isolated, and interference-resistant physical transmission channel is constructed. This ensures that the data being burned is transmitted with low loss and high fidelity between each level of unit, avoiding data errors caused by electrical interference or signal attenuation, thereby improving the accuracy of program burning.
[0021] Furthermore, the central control board includes a first flash memory storage area and a second flash memory storage area. The first flash memory storage area is used to store the currently running program, and the second flash memory storage area is used to store historical backup programs.
[0022] In this way, by setting up independent first and second flash memory storage areas within the central control board, which are used to store the currently running program and the historical backup program respectively, physical isolation between the running program and the backup program is achieved. This provides reliable recovery resources for automatic rollback in case of burning failure, ensuring that the central control board has an executable program under any burning result, thereby improving the accuracy of program burning.
[0023] Fourthly, another embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, a method for burning a valve control program is used to control the device or apparatus where the computer-readable storage medium is located. Attached Figure Description
[0024] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0025] Figure 1 This is a flowchart illustrating one embodiment of the valve control program burning method provided in this application; Figure 2 This is a schematic diagram of the valve control program burning device provided in this application; Figure 3 This is a topology diagram of the medium- and low-voltage flexible interconnected power distribution system provided in this application. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0028] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0029] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0030] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0031] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).
[0032] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.
[0033] In the power system field, the valve control system of flexible DC converter requires the central control board to be programmed with valve control software during program upgrades. Existing technology uses a remote programming method based on a serial bus for central control board programming, but this method has drawbacks: it uses a single program storage area for overwriting, and if an anomaly occurs during the programming process, the original program is erased while the new program is not fully written, causing the central control board to malfunction. Maintenance personnel must then disassemble the system on-site for repair or reprogramming, consuming significant manpower and resources and potentially leading to prolonged shutdown of the converter valves. Furthermore, the accuracy of the valve control program programming is insufficient.
[0034] See Figure 1 To improve the accuracy of programming the valve control system of flexible DC-DC converter, an embodiment of the present invention provides a method for programming the valve control system, which is applied to the flexible DC-DC converter valve control system. The flexible DC-DC converter valve control system includes a valve control backend and several central control boards. The method includes steps S101 to S103. Step S101: Receive the valve control program data to be burned and the target central control board location sent by the valve control backend; In some embodiments, the process of the valve control backend sending the valve control program data to be burned and the target central control board location specifically includes: determining the target core board identifier associated with the target central control board location based on the target central control board location and a preset system topology table; and using a switch to directionally transmit the valve control program data to be burned and the target central control board location to the core board corresponding to the target core board identifier. The flexible DC converter valve control system further includes the switch and several core boards. Specifically, the valve control backend receives the central control board to be upgraded and its location selected by the maintenance personnel, generates the target central control board location information, and reads the valve control program data to be burned from the local storage uploaded by the maintenance personnel. Based on a preset system topology table, the valve control backend parses the chassis number and board slot number corresponding to the target central control board location, matching the core board identifier associated with that location as the target core board identifier. The valve control backend encapsulates the valve control program data to be burned and the target central control board location into a data packet, adds the destination IP address corresponding to the target core board identifier to the packet header, and sends the data packet to the switch via a network cable. The switch, based on the destination IP address in the packet header, uses its built-in VLAN isolation function to forward the data packet to the core board corresponding to the target core board identifier, achieving precise routing and targeted transmission from the valve control backend to the target core board.
[0035] By determining the associated target core board identifier based on the target central control board location and the preset system topology table, and using a switch to transmit the valve control program data to be programmed and the target central control board location to the corresponding core board, precise routing of programming instructions under a multi-level distributed architecture can be achieved. This ensures that the program data is accurately delivered to the target central control board location, avoiding programming errors caused by data mistransmission or broadcast flooding, thereby improving the accuracy of valve control program programming.
[0036] In some embodiments, receiving the valve control program data to be programmed and the target central control board location sent by the valve control backend specifically includes: the core board listening to data packets in the network through its network port; when receiving a data packet from the valve control backend, parsing the packet content and extracting the valve control program data to be programmed and the target central control board location information; the core board storing the received valve control program data to be programmed into its memory buffer (including the power-down partition), writing the target central control board location information into the local register, and simultaneously returning a successful reception confirmation message to the valve control backend.
[0037] Step S102: Write the valve control program data to be burned into the first flash memory storage area of the central control board corresponding to the position of the target central control board. The central control board includes the first flash memory storage area and the second flash memory storage area, and the second flash memory storage area stores historical backup programs. In some embodiments, before writing the valve control program data to be programmed into the first flash memory storage area of the central control board corresponding to the target central control board location, the method further includes: sending an erase command to the interface board corresponding to the target interface board identifier, so that the interface board triggers the central control board to execute the erase command and receives an erase status flag returned by the interface board; if the erase status flag is successful, then the valve control program data to be programmed is allowed to be written into the central control board. Specifically, the core board determines the target interface board identifier corresponding to the central control board location based on the target central control board location information stored locally, and sends an erase command to the target interface board via optical fiber, the erase command carrying the central control board identifier to be erased; after receiving the erase command, the target interface board forwards the erase command to all central control boards connected to the interface board through its FPGA high-speed channel, and each central control board determines whether it is the selected object according to the central control board identifier in the command; if the central control board identifier matches, the central control board performs a Flash (flash memory) erase operation to clear its first flash memory. The system stores the original data in the storage area and returns an erase status flag to the interface board after erasure. If the central control board identifier does not match, the instruction is ignored. The interface board summarizes the erase status flags returned by each central control board and returns them to the core board via optical fiber. The core board receives and parses the erase status flags returned by the interface board. If all selected central control boards return an erase success flag, the erasure is considered successful, and subsequent writing operations are allowed to continue. If any selected central control board returns an erase failure flag, the erasure is considered failed, the core board reports an alarm message and terminates the writing process.
[0038] This method sends an erase command to the interface board before writing the data to be burned into the valve control program and receives the returned erase status flag. Data writing is only allowed after successful erasure, which ensures that the first flash memory storage area is in a writable state. This avoids data writing misalignment or program malfunction due to the storage area not being erased or erasure failure, thereby improving the accuracy of valve control program burning.
[0039] In some embodiments, writing the valve control program data to be programmed into the first flash memory storage area of the central control board corresponding to the location of the target central control board specifically includes: determining the target interface board identifier associated with the target core board identifier based on the target core board identifier and the system topology table, wherein the flexible DC converter valve control system further includes several interface boards; and sending the valve control program data to be programmed in segments to the interface board corresponding to the target interface board identifier, so that the interface board sends the valve control program data to be programmed to the central control board, and the central control board writes the valve control program data to be programmed into the first flash memory storage area of the central control board. Specifically, the core board queries a preset system topology table based on the target core board identifier to determine the target interface board identifier connected to the core board; it divides the valve control program data to be programmed into multiple data segments, assigns a sequence number to each data segment, and sequentially sends the data segments to the interface board corresponding to the target interface board identifier via optical fiber according to the sequence number; after each data segment is sent, it waits for the interface board's confirmation message; the interface board receives the data segments from the core board through its FPGA high-speed channel, and sends the data segments to the designated central control board connected to the interface board according to the target central control board location information; after receiving the data segments, the central control board sequentially writes them into its own first flash memory storage area.
[0040] For example, after the writing is completed, the central control board will also return a write confirmation to the interface board. After the interface board summarizes the write confirmation information of each central control board, it returns the confirmation information to the core board through optical fiber. The core board determines whether the current data segment has been successfully written to the selected central control board based on the returned confirmation information. If the confirmation is successful, it continues to send the next data segment. If the confirmation fails, it retransmits the current data segment until all data segments are successfully written.
[0041] For example, during the process of the core board sending the programming data to the interface board, the core board counts the number of data segments that have been successfully sent and their corresponding data volume in real time, and transmits the percentage of the sent data volume to the valve control backend via fiber optic cable through the interface board and switch. After receiving the percentage data, the valve control backend dynamically displays the current programming progress in the form of a progress bar on the system interface, so that the operation and maintenance personnel can intuitively understand the real-time status of the programming operation.
[0042] By determining the associated target interface board identifier based on the target core board identifier and the system topology table, and sending the valve control program data to be burned in segments to the corresponding interface board, which then forwards it to the central control board, reliable transmission of burning data between boards can be achieved. This avoids the risk of communication congestion or data packet loss caused by a single large data transmission, ensuring that the program data written to the central control board is complete and error-free, thereby improving the accuracy of valve control program burning.
[0043] In some embodiments, the central control board includes a first flash memory storage area and a second flash memory storage area. The second flash memory storage area stores historical backup programs. Specifically, the central control board integrates a domestically produced chip with dual flash memory storage areas: a first flash memory storage area and a second flash memory storage area. The first flash memory storage area serves as an application running area, storing the currently running program on the central control board. After the central control board is powered on, the program is loaded from this area and executed. The second flash memory storage area serves as a backup storage area, storing historical backup programs, which are usable versions saved when the last successful burning operation was completed. The first flash memory storage area and the second flash memory storage area are physically independent and logically independent. When a burning operation is performed on the first flash memory storage area, the program in the second flash memory storage area is not affected in any way, thereby ensuring that in the event of a burning error, the historical backup program can be read from the second flash memory storage area for recovery.
[0044] Step S103: Monitor the burning status information of the central control board. If the burning status information meets the preset burning conditions, the historical backup program is read from the second flash memory storage area of the central control board and written into the first flash memory storage area of the central control board until the central control board is successfully burned. Then, the valve control program data to be burned is written into the second flash memory storage area of the central control board to realize the valve control program burning of the central control board. In some embodiments, monitoring the burning status information of the central control board specifically includes: during the process of the core board sending the valve control program data to be burned to the interface board, the interface board continuously monitors the burning status information of the central control board through the interface board.
[0045] In some embodiments, if the burning status information meets preset burning conditions, the historical backup program is read from the second flash memory storage area of the central control board and written into the first flash memory storage area of the central control board. Specifically, this includes: when the core board detects that the burning status information meets the burning conditions for burning failure, it determines that the current burning has failed. The core board sends a rollback command to the corresponding central control board through the interface board. After receiving the rollback command, the central control board reads the historical backup program from its second flash memory storage area and writes the historical backup program into the first flash memory storage area, overwriting the previously failed new program. After completing the rollback operation, the central control board loads the historical backup program from the first flash memory storage area and runs it, restoring the central control board to its usable state before burning.
[0046] It should be noted that the central control board will also send a rollback completion flag back to the core board through the interface board. After receiving the rollback completion flag, the core board will send the writing failure information to the valve control backend for display and recording.
[0047] In some embodiments, until the central control board is successfully programmed, the valve control program data to be programmed is written into the second flash memory storage area of the central control board to realize the programming of the valve control program of the central control board. Specifically, after the core board completes the sending and writing confirmation of all data segments, it obtains the final programming status information of the central control board through the interface board again. If the central control board returns that the programming is successful and the verification is passed, the core board determines that the programming is successful and sends a backup update command to the corresponding central control board. After receiving the backup update command, the central control board copies the newly written valve control program data to be programmed in its first flash memory storage area to the second flash memory storage area, overwriting the original historical backup program, so that the backup program in the second flash memory storage area is updated to the latest available version, thereby completing the programming of the valve control program of the central control board.
[0048] It should be noted that after the central control board completes the backup and update, it returns a backup and update completion flag to the core board through the interface board. After receiving the backup and update completion flag, the core board sends the successful flashing information to the valve control backend, which then notifies the maintenance personnel that the flashing is complete.
[0049] In some embodiments, the method for burning the valve control program further includes: storing the received valve control program data to be burned and the target central control board location into the power-down partition of the core board; monitoring the power supply status during the burning process; if the power supply status meets the preset power-down conditions, reading the valve control program data to be burned and the target central control board location from the power-down partition, and rewriting the valve control program data to be burned into the first flash memory storage area of the central control board corresponding to the target central control board location. Specifically, after receiving the valve control program data to be burned and the target central control board location from the valve control backend, the core board immediately writes these data into its built-in power-down partition, which uses a non-volatile storage medium to ensure data retention after system power failure; the core board has a built-in power supply status monitoring circuit, which detects that the system has experienced a power outage and then power restoration during the burning process, reads the previously stored valve control program data to be burned and the target central control board location from the power-down partition, and restarts the burning process based on the read data until the program burning of the target central control board is completed.
[0050] This method stores the valve control program data to be programmed and the target central control board location in the core board's power-down partition. When the power supply meets the preset power-down conditions, the data is read from the power-down partition and the programming is re-executed. This allows the programming process to be automatically resumed after an unexpected power outage, without the need for manual re-issuance of programming commands. This avoids data loss and programming interruption caused by power outages, ensuring the complete execution of the programming process and thus improving the accuracy of valve control program programming.
[0051] By receiving the valve control program data to be burned and the target central control board location from the valve control backend, the required program files and their target device locations can be accurately obtained, providing a reliable data foundation for the subsequent burning process and ensuring the accuracy of the valve control program burning. Writing the valve control program data to be burned into the first flash memory storage area of the central control board corresponding to the target central control board location completes the update writing of the new program. Simultaneously, the second flash memory storage area of the central control board independently stores historical backup programs, physically isolating the currently running program from the historical backup programs. This reserves available resources for fault recovery in case of burning failure, thereby improving the accuracy of valve control program burning. Monitoring the burning status information after the central control board completes the writing process allows for real-time acquisition of the burning results, providing accurate judgment criteria for subsequent rollback or backup operations based on preset burning conditions, avoiding erroneous operations when the status is unclear. This invention improves the accuracy of valve control program programming. If the programming status information meets the preset programming conditions, it indicates a programming failure. In this case, the historical backup program needs to be read from the second flash memory storage area of the central control board and written to the first flash memory storage area of the central control board. This enables an automatic rollback mechanism to be triggered in case of programming anomalies, allowing the central control board to quickly return to its usable state before programming. This avoids the need for on-site manual intervention due to "bricked" equipment caused by programming anomalies, thus improving the accuracy of valve control program programming. If the programming status information does not meet the preset programming conditions, it indicates a successful programming. In this case, the valve control program data to be programmed needs to be written to the second flash memory storage area of the central control board. This enables automatic updating of the historical backup program after successful programming, ensuring that the backup is always the latest usable version. This provides reliable recovery resources for the next programming, forming a complete accuracy closed loop, thereby improving the accuracy of valve control program programming. This application can improve the accuracy of valve control program programming in flexible DC converter valve control systems.
[0052] See Figure 2 Based on the above method embodiments, corresponding device embodiments are provided; One embodiment of the present invention provides a valve control program burning device, which is applied to a flexible DC converter valve control system. The flexible DC converter valve control system includes a valve control backend, a core board and several central control boards. The device includes a first module 100, a second module 200 and a third module 300. The first module 100 is used to receive the valve control program data to be burned and the target central control board position sent by the valve control backend; The second module 200 is used to write the valve control program data to be burned into the first flash memory storage area of the central control board corresponding to the position of the target central control board, wherein the central control board includes the first flash memory storage area and the second flash memory storage area, and the second flash memory storage area stores historical backup programs; The third module 300 is used to monitor the burning status information of the central control board. If the burning status information meets the preset conditions, the historical backup program is read from the second flash memory storage area of the central control board and written into the first flash memory storage area of the central control board until the central control board is successfully burned. Then, the valve control program data to be burned is written into the second flash memory storage area of the central control board, thereby realizing the burning of the valve control program of the central control board.
[0053] The first module receives the valve control program data to be burned and the target central control board location from the valve control backend, accurately obtaining the program files required for burning and the target device location. This provides a reliable data foundation for the subsequent burning process, ensuring the accuracy of the valve control program burning. The second module writes the valve control program data to be burned into the first flash memory storage area of the central control board corresponding to the target central control board location, completing the update writing of the new program. At the same time, the second flash memory storage area of the central control board independently stores historical backup programs, physically isolating the currently running program from the historical backup programs. This reserves available resources for fault recovery in case of burning failure, thereby improving the accuracy of valve control program burning. The third module monitors the burning status information of the central control board after the writing is completed, obtaining the burning results in real time. This provides an accurate basis for subsequent rollback or backup operations based on preset burning conditions, avoiding errors when the status is unclear. To improve the accuracy of valve control program programming, the following steps are taken: If the programming status information meets the preset programming conditions, it indicates a programming failure. In this case, the historical backup program needs to be read from the second flash memory storage area of the central control board and written to the first flash memory storage area of the central control board. This automatically triggers a rollback mechanism in case of programming errors, allowing the central control board to quickly return to its usable state before programming. This avoids the need for on-site manual intervention due to device "bricking" caused by programming errors, thus improving the accuracy of valve control program programming. If the programming status information does not meet the preset programming conditions, it indicates a successful programming. In this case, the valve control program data to be programmed needs to be written to the second flash memory storage area of the central control board. This automatically updates the historical backup program after successful programming, ensuring that the backup is always the latest usable version. This provides reliable recovery resources for the next programming, forming a complete accuracy closed loop, thereby improving the accuracy of valve control program programming.
[0054] It is understood that the above-described device embodiments correspond to the method embodiments of the present invention, and can implement the valve control program burning method provided by any of the above-described method embodiments of the present invention.
[0055] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can specifically be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.
[0056] See Figure 3 Based on the above embodiment of the valve control program burning method, another embodiment of the present invention provides a flexible DC converter valve control system, including a valve control backend, a switch, several interface chassis and several central control boards, wherein: the interface chassis includes interface boards and several core boards, and the core boards are used to implement the valve control program burning method.
[0057] This hierarchical system architecture, which includes a valve control backend, switch, interface chassis, and central control board, enables centralized distribution and hierarchical transmission of programming instructions. Each hardware unit works together to complete the accurate routing, reliable transmission, and fault-tolerant programming of program data, ensuring the accuracy of the programming process at the system level.
[0058] In some embodiments, the valve control backend is connected to the switch via a network cable, and each core board in each interface chassis is connected to the switch via a network cable; for each interface chassis, each core board in the interface chassis is connected to the interface board via an optical fiber, and the interface board is connected to each central control board via an optical fiber.
[0059] It should be noted that each interface chassis is responsible for communicating with a group of central control boards corresponding to it. Each central control board is only connected to the interface boards in its own interface chassis via optical fiber. The central control boards under different interface chassis are physically independent of each other, forming a hierarchical architecture of partitioned management.
[0060] By using network cables between the valve control backend and the switch, between the core board and the switch, and between the core board and the interface board, and between the interface board and the central control board, a high-speed, isolated, and interference-resistant physical transmission channel is constructed. This ensures that the data being programmed is transmitted with low loss and high fidelity between each level of the unit, avoiding data errors caused by electrical interference or signal attenuation, thereby improving the accuracy of program programming.
[0061] In some embodiments, the central control board includes a first flash memory storage area and a second flash memory storage area, wherein the first flash memory storage area is used to store currently running programs and the second flash memory storage area is used to store historical backup programs.
[0062] By setting up independent first and second flash memory storage areas within the central control board to store the currently running program and historical backup programs respectively, physical isolation between the running program and the backup program is achieved. This provides reliable recovery resources for automatic rollback in case of burning failure, ensuring that the central control board has an executable program under any burning result, thereby improving the accuracy of program burning.
[0063] Based on the above-described embodiment of a valve control program burning method, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a valve control program burning method according to any embodiment of the present invention.
[0064] For example, in this embodiment, the computer program can be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.
[0065] The terminal device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0066] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.
[0067] Based on the above-described method embodiments, another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute the valve control program burning method described in any of the above-described method embodiments of the present invention.
[0068] The modules / units integrated in the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0069] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for programming a valve control program, characterized in that, The method, applied to a flexible DC-DC converter valve control system, which includes a valve control backend and several central control boards, comprises: Receive the data of the valve control program to be written and the location of the target central control board sent by the valve control backend; The valve control program data to be burned is written into the first flash memory storage area of the central control board corresponding to the position of the target central control board. The central control board includes the first flash memory storage area and the second flash memory storage area, and the second flash memory storage area stores historical backup programs. The burning status information of the central control board is monitored. If the burning status information meets the preset burning conditions, the historical backup program is read from the second flash memory storage area of the central control board and written into the first flash memory storage area of the central control board. This process continues until the central control board is successfully burned. Then, the valve control program data to be burned is written into the second flash memory storage area of the central control board, thereby realizing the burning of the valve control program of the central control board.
2. The method for burning the valve control program as described in claim 1, characterized in that, The process of the valve control backend sending the data of the valve control program to be programmed and the location of the target central control board specifically includes: Based on the location of the target central control board and the preset system topology table, determine the target core board identifier associated with the location of the target central control board; The switch is used to transmit the valve control program data to be burned and the target central control board location to the core board corresponding to the target core board identifier. The flexible DC converter valve control system also includes the switch and several core boards.
3. The method for burning the valve control program as described in claim 2, characterized in that, The step of writing the valve control program data to be programmed into the first flash memory storage area of the central control board corresponding to the location of the target central control board specifically includes: Based on the target core board identifier and the system topology table, the target interface board identifier associated with the target core board identifier is determined, wherein the flexible DC converter valve control system also includes several interface boards; The valve control program data to be programmed is segmented and sent to the interface board corresponding to the target interface board identifier, so that the interface board sends the valve control program data to be programmed to the central control board, and the central control board writes the valve control program data to be programmed into the first flash memory storage area of the central control board.
4. The method for burning the valve control program as described in claim 3, characterized in that, Before writing the valve control program data to be programmed into the first flash memory storage area of the central control board corresponding to the target central control board location, the method further includes: Send an erase command to the interface board corresponding to the target interface board identifier, so that the interface board triggers the central control board to execute the erase command and receives the erase status flag returned by the interface board; If the erase status flag is successful, then the data of the valve control program to be burned is allowed to be written to the central control board.
5. The method for burning the valve control program as described in any one of claims 1-4, characterized in that, Also includes: The received valve control program data to be burned and the target central control board location are stored in the power-down partition of the core board; The power supply status is monitored during the burning process. If the power supply status meets the preset power-down conditions, the valve control program data to be burned and the target central control board position are read from the power-down partition, and the valve control program data to be burned is rewritten into the first flash memory storage area of the central control board corresponding to the target central control board position.
6. A device for burning valve-controlled programs, characterized in that, The device is applied to a flexible DC converter valve control system, which includes a valve control backend, a core board, and several central control boards. The device includes a first module, a second module, and a third module. The first module is used to receive the valve control program data to be burned and the target central control board location sent by the valve control backend; The second module is used to write the valve control program data to be burned into the first flash memory storage area of the central control board corresponding to the position of the target central control board, wherein the central control board includes the first flash memory storage area and the second flash memory storage area, and the second flash memory storage area stores historical backup programs; The third module is used to monitor the burning status information of the central control board. If the burning status information meets the preset conditions, the historical backup program is read from the second flash memory storage area of the central control board and written into the first flash memory storage area of the central control board until the central control board is successfully burned. Then, the valve control program data to be burned is written into the second flash memory storage area of the central control board to realize the burning of the valve control program of the central control board.
7. A flexible DC-DC converter valve control system, characterized in that, It includes a valve control backend, a switch, several interface chassis, and several central control boards, among which: The interface chassis includes an interface board and several core boards, the core boards being used to implement the valve control program burning method as described in any one of claims 1 to 5.
8. The flexible DC converter valve control system as described in claim 7, characterized in that, The valve control backend is connected to the switch via a network cable, and each core board in each interface chassis is connected to the switch via a network cable. For each of the interface chassis, each of the core boards of the interface chassis is connected to the interface board via optical fiber, and the interface board is connected to each of the central control boards via optical fiber.
9. The flexible DC converter valve control system as described in claim 7, characterized in that, The central control board includes a first flash memory storage area and a second flash memory storage area. The first flash memory storage area is used to store the currently running program, and the second flash memory storage area is used to store historical backup programs.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device or apparatus containing the computer-readable storage medium to perform the valve control program burning method as described in any one of claims 1 to 5.