System and method for dual-channel software programming of a dcs platform board
By using the DCS platform's dual-channel programming software system, which separates serial and network channels for communication, and combines one-click command operation with encryption algorithms, the system solves the problems of complex programming processes and low success rates in existing technologies, achieving efficient and secure software updates for circuit boards.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA NUCLEAR CONTROL SYST ENG
- Filing Date
- 2021-12-15
- Publication Date
- 2026-04-14
AI Technical Summary
The existing DCS platform board programming process involves a large amount of communication, cumbersome operation steps, high learning costs, low programming success rate, and high engineering and testing difficulty, which affects the engineering promotion.
Design a dual-channel programming software system for DCS platform boards. It adopts a communication method that separates serial and network channels. The control computer software is divided into two parts, and the target board software is divided into three parts. Combining the optimized Caesar encryption algorithm and cross-platform development, it realizes one-click command operation.
It improves the success rate of programming, reduces the risk of manual intervention, enhances efficiency and safety, simplifies the operation process, and is suitable for factory commissioning and engineering applications of nuclear power plant equipment.
Smart Images

Figure CN116263665B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of automatic control technology, specifically relating to a system and method for dual-channel programming software for DCS platform boards. Background Technology
[0002] With the increasing power generation equipment and electricity consumption of nuclear power plants year by year, people's requirements for the automation of control systems are also getting higher and higher. In engineering applications and commissioning, the burning of equipment programs is one of the important links, and the burning of equipment programs needs to meet the requirements of safety, high reliability, high stability and high efficiency.
[0003] The current application of DCS platforms in the field of nuclear power plant control system automation is based on embedded device hardware. For safety reasons, manual command input via serial terminal is used for command operation and data transmission. The program is copied to the FLASH of the DCS platform board via mnt or SD card. This method involves high communication volume, cumbersome operation steps, high learning costs, and low success rate of programming. In actual operation, operators need to be proficient in the embedded file system structure and familiar with the relevant commands of the serial terminal board, which can generally only be done by professional developers. In the engineering field, if an upgrade is needed to program the board, the board must be taken back and reprogrammed with the factory settings. This greatly affects the software update schedule in the project, increases the difficulty of engineering and testing, and limits the engineering promotion.
[0004] For the reasons mentioned above, there is an urgent need to design a system and method for dual-channel programming software for DCS platform boards, which can be applied to engineering debugging. Summary of the Invention
[0005] The technical problem to be solved by this invention is to propose a system and method for dual-channel programming software for DCS platform boards, which overcomes the shortcomings and deficiencies of existing technologies such as large communication volume, cumbersome operation steps, high learning cost, low programming success rate, and high engineering and testing difficulty.
[0006] The technical solution of the present invention is as follows:
[0007] A system for dual-channel programming software for DCS platform boards includes a serial port channel for command operation and a network channel for data / software communication. The software is built on both the control computer and the DCS target board. The control computer software is divided into two parts: the implementation of control command operations and the data / software downloading part. The DCS target board programming software consists of three parts: a program for receiving external control commands, a program for receiving data / software, and a program for configuring the data, linking the system, and updating scripts after programming. The DCS target board communication software is forcibly written into the bootloader when the system is not running. When the system starts, the boot process is completed through a library written to a file. The programs for receiving external control commands, receiving data / software, and configuring the data, linking the system, and updating scripts after programming work synchronously and collaboratively after startup to complete the programming of the DOC target board.
[0008] As a preferred option, during the data / software download process, plaintext or encrypted transmission is selected based on the device model and on-site application conditions. When encrypted transmission is selected, an optimized Caesar encryption algorithm is used. The encryption permutation method is dynamically obtained during the communication process based on the system time of both parties, and the ciphertext is obtained by permuting the dynamically obtained two-dimensional matrix.
[0009] As a preferred option: the control computer supports cross-platform Windows, Linux, and the domestic Deepin system. The DCS target board supports embedded Linux systems.
[0010] As a preferred solution, the control command operation implementation part and the data / software download part of the control terminal computer software are integrated into one through the desktop development environment and coordinated through the signal slot, integrating multi-step communication automation into a one-click command.
[0011] A method for dual-channel programming software for a DCS platform board includes the following steps:
[0012] Step 1: After the device is powered on and started, it first enters the boot module, which detects and sets the boot parameters through the serial port. After the boot parameters are detected and set, the communication environment is set, serial port / network dual-channel configuration is performed, and the memory area is erased. If the serial port / network dual-channel configuration is successful, the second step is performed; otherwise, the first step is repeated.
[0013] Step 2: After the communication environment is successfully set up, start network communication and use network protocols to burn the image, device tree, and file system respectively.
[0014] Step 3: After the image, device tree, and file system are burned, configure the communication environment again, configure the serial port / network dual-path, and erase the storage area; if the serial port / network dual-path configuration is successful, proceed to step 4; otherwise, return to step 1 and repeat.
[0015] Step 4: After the second communication environment setup is successful, start driver loading, application burning, and script file updating;
[0016] Step 5: The board reloads the new software, completes the burning process, and starts the project configuration file synchronization process.
[0017] As a preferred option: In the second step, the entire process is completed in coordination between serial port and network, and is implemented by automation software installed on the control computer.
[0018] As a preferred option, in the fourth step, engineering parameters and equipment connection settings are configured.
[0019] The beneficial effects of this invention are as follows:
[0020] (1) For the DCS platform board programming software system of nuclear power plants, the operating system control method greatly increases the process and complexity of information processing. The programming process of separating commands and data brings certain difficulties to program programming, affecting debugging and engineering applications, resulting in unsuccessful programming, repeated programming, and inefficiency. The DCS platform board dual-channel programming software system and method proposed in this invention rely on the control terminal computer to realize the separation and coordination of control commands and data / software download communication. The design of separating control and data increases the reliability of the software programming process. The one-way network data communication method (encryption optional) reduces unnecessary link interaction and speeds up transmission efficiency under the premise of security hardening. The integrated control terminal software programming system based on cross-platform development reduces development problems caused by system differences. The one-click operation design greatly reduces the risk of manual intervention in software programming, improves the programming success rate, and reduces the programming difficulty.
[0021] (2) The DCS platform board dual-channel programming software system and method of the present invention, because of the design of dual-channel programming software, the program is further simplified and the efficiency is more than twice as fast as the traditional mode of similar commercial programming software. It has the characteristics of faster, more efficient and safer board programming process completed in a unit of time.
[0022] (3) The system and method for dual-channel programming software of the DCS platform board of the present invention uses dual-channel communication for data and commands, which enhances reliability. The modular software automatically executes the data and command interaction, simplifying the system operation process. The system encapsulates data and commands in two layers, realizing the functions of direct sending and receiving of embedded board commands and data, one-click interface execution and display. In the factory commissioning and engineering application of nuclear power plant equipment, the programming process is systematically abstracted, and operators can complete the dual-channel programming of DCS platform board software without having to understand the programming principle and steps. Attached Figure Description
[0023] Figure 1 Design diagrams for system modules;
[0024] Figure 2 This is a schematic diagram of the dual-channel programming operation process for the system. Detailed Implementation
[0025] The system and method of the DCS platform board dual-channel programming software of the present invention will be described in detail below with reference to the accompanying drawings and embodiments.
[0026] The system and method for dual-channel programming software of DCS platform boards of the present invention include two parts: system module architecture design and system dual-channel communication operation process. The system module construction diagram is shown below. Figure 1 As shown, the system's dual-channel communication programming operation process is as follows: Figure 2 As shown.
[0027] DCS platform board dual-channel programming software system such as Figure 1 As shown, the dual-channel design of the system module refers to the serial port channel for command operations and the network channel for data / software communication.
[0028] The software is built on both the control computer and the DCS target board. The control computer supports cross-platform Windows and Linux systems (including the domestic Deepin), while the DCS target board supports embedded Linux systems.
[0029] The control terminal computer software is built in two parts: the implementation of control command operations and the data / software download. These two parts are integrated into a single desktop development environment and coordinate through signals and slots, automating multi-step communication into a single command.
[0030] The DCS target board programming software consists of three parts: a program for receiving external control commands, a program for receiving data / software, and a program for configuring the data, linking the system, and updating scripts after programming is completed.
[0031] The data / software download process can choose between plaintext and encrypted transmission based on the device model and on-site application conditions, employing an optimized Caesar encryption algorithm. The encryption permutation method is dynamically obtained during communication based on the system time of both parties, and the ciphertext is extracted using a dynamically generated two-dimensional matrix.
[0032] The DCS target board communication software is forcibly written into the boot program when the system is not booting. When the system is booting, the boot process is completed by writing to the file library. This includes programs that receive external control commands, programs that receive data / software, and programs that configure the software, link the system, and update the scripts after the burning is completed. These programs work together synchronously after booting to complete the burning of the DOC target board.
[0033] Methods for dual-channel programming software on DCS platform boards, such as Figure 2 As shown. During system initialization, parameter detection and setting, serial / network dual-channel communication configuration and communication, image burning, device tree and file system burning, driver loading, application writing and script updating are performed respectively.
[0034] Step 1: After the device powers on and boots, it first enters the boot module, which detects and sets boot parameters via the serial port. After the boot parameters are detected and set, the communication environment is configured, including both serial and network dual-channel configuration, and the memory area is erased. If the serial and network dual-channel configuration is successful, proceed to Step 2; otherwise, return to Step 1 and repeat.
[0035] Step 2: After the communication environment is successfully set up, network communication is started. The network protocol is used to burn the image, device tree and file system respectively. The whole process is completed by the cooperation of serial port and network, and is implemented by the automation software installed on the control computer.
[0036] Step 3: After the image, device tree, and file system are burned, the communication environment needs to be set up again, including serial port / network dual-path configuration and erasing the storage area. If the serial port / network dual-path configuration is successful, proceed to step 4; otherwise, return to step 1 and repeat.
[0037] Step 4: After the second communication environment setup is successful, start driver loading, application burning, and script file updates. Also, set project parameters and device connection.
[0038] Step 5: The board reloads the new software, completes the burning process, and starts the project configuration file synchronization process.
[0039] Example 1
[0040] 1. After the DCS system powers on and starts running, the control computer establishes communication with the DCS control command receiving program via serial port mode. The startup program initiates both the control command receiving program and the data / software receiving program. The control command receiving program performs parameter checks and settings, responds to control command operation programs, and establishes a dual-channel communication configuration. This process is functionally encapsulated within the integrated programming software of the control computer.
[0041] 2. Upon receiving a command from the DCS target board controller and meeting the data / software transmission conditions, the integrated programming software on the control terminal computer sends a message slot to the data / software download program, notifying it to initiate data / software transmission. The encryption mode is automatically selected based on the response data packet received from the control command. A forced encryption mode can also be selected through the integrated programming software interface. This process is functionally encapsulated on the control terminal computer.
[0042] 3. Serial / Network Dual Communication Configuration: Because the device tree and file system are reloaded, configuration is required before each flashing process.
[0043] 4. The processes of burning images, device trees, file systems, drivers, applications, and script files all use a dual-path burning method. The difference is that the former starts from the loader, while the latter starts from the operating system.
[0044] 5. The DCS target board starts the data / software receiving task through control commands. The two work together to write the software to the file system, complete the software burning, and perform the initialization startup script, version information, device point, and device number parameter configuration.
[0045] The scope of this invention should not be limited to the above description. Any modifications or improvements within the scope of the principles of this invention are protected by this invention.
Claims
1. A system for dual-channel programming software for a DCS platform board, comprising a serial port channel for command operation and a network channel for data / software communication, characterized in that: The software is built on both the control computer and the DCS target board. The control computer software is divided into two parts: the implementation part for control command operations and the data / software download part. The implementation part for control command operations is configured to send control commands through the serial port channel, and the data / software download part is configured to transmit data through the network channel. The DCS target board programming software is divided into three parts: a program for receiving external control commands, a program for receiving data / software, and a program for configuring the data, linking the system, and updating scripts after programming. The DCS target board communication software is forcibly written into the bootloader when the system is not booting. When the system boots, the boot process is completed by writing to the library. This includes programs that receive external control commands, programs that receive data / software, and programs that configure the software, link the system, and update scripts after the burning process is completed. These programs work together synchronously after booting to complete the burning of the DCS target board.
2. The system for dual-channel programming software of a DCS platform board according to claim 1, characterized in that: During the data / software download process, plaintext or encrypted transmission can be selected based on the device model and on-site application conditions.
3. The system for dual-channel programming software of a DCS platform board according to claim 2, characterized in that: During the data / software download process, when encrypted transmission is selected, the optimized Caesar encryption algorithm is used. The encryption permutation method is dynamically obtained based on the system time of both parties during the communication process, and the ciphertext is obtained by permutation through the dynamically obtained two-dimensional matrix.
4. The system for dual-channel programming software of a DCS platform board according to claim 1, characterized in that: The control computer supports cross-platform Windows, Linux, and the domestic Deepin system.
5. The system for dual-channel programming software of a DCS platform board according to claim 1, characterized in that: DCS target boards support embedded Linux systems.
6. The system for dual-channel programming software of a DCS platform board according to claim 1, characterized in that: The control command operation implementation part and the data / software download part of the control terminal computer software are integrated into one through the desktop development environment and coordinated through the signal slot, integrating multi-step communication automation into a one-click command.
7. A method for dual-channel programming software on a DCS platform board, characterized in that: Includes the following steps: Step 1: After the device is powered on and started, it first enters the boot module, which detects and sets the boot parameters through the serial port. After the boot parameters are detected and set, the communication environment is set, serial port / network dual-channel configuration is performed, and the memory area is erased. If the serial port / network dual-channel configuration is successful, the second step is performed; otherwise, the first step is repeated. Step 2: After the communication environment is successfully set up, start network communication and use network protocols to burn the image, device tree, and file system respectively. Step 3: After the image, device tree, and file system are burned, configure the communication environment again, configure the serial port / network dual-path, and erase the storage area; if the serial port / network dual-path configuration is successful, proceed to step 4; otherwise, return to step 1 and repeat. Step 4: After the second communication environment setup is successful, start driver loading, application burning, and script file updating; Step 5: The board reloads the new software, completes the burning process, and starts the project configuration file synchronization process.
8. The method for dual-channel programming software of a DCS platform board according to claim 7, characterized in that: In the second step, the entire process is completed through the coordinated use of serial port and network, and is implemented by automation software installed on the control computer.
9. A method for dual-channel programming software on a DCS platform board according to claim 7, characterized in that: In the fourth step, engineering parameters and equipment connection settings are configured.
Citation Information
Patent Citations
Method for automatically burning firmware of embedded equipment, and system thereof
CN103914324A
Data transmission control method and system for holographic display device
CN110149389A