Hydropower LCU controller signal interaction method, system, device and storage medium thereof

By establishing a signal database in the hydropower LCU controller and transferring the data information of the signal input and output tasks to the shared memory, efficient signal transmission is achieved, the problem of low efficiency of data interaction between tasks is solved, and the signal transmission rate and resource utilization are improved.

CN114936102BActive Publication Date: 2025-09-23XIAN THERMAL POWER RES INST CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210760715.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2025-09-23
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

In the industrial control system of a power plant, the data interaction efficiency of the hydropower LCU controller is low. In particular, there are a large number of time-consuming FIFO and semaphore operations in the signal transmission process between tasks, which affects the real-time performance and resource utilization of data transmission.

Method used

By associating and combining the data information of the signal input task and the signal output task and registering them in the signal database, and transferring the data to the shared memory, the signal output task only needs one memory copy to complete the signal transmission, and the signal input task reads the signal value content from the shared memory.

Benefits of technology

It improves the signal transmission efficiency, reduces the blocking and context switching of inter-process communication, increases the rate and efficiency of signal transmission between tasks, and saves resource loss within the controller.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114936102B_ABST
    Figure CN114936102B_ABST
Patent Text Reader

Abstract

The present invention discloses a hydropower LCU controller signal interaction method, system, device, and storage medium thereof. The method includes the following steps: dividing the same signal in the application processes of different tasks into a signal input task and a signal output task according to the signal conduction direction; creating a signal database, and registering the signal data information in the signal input task and the signal output task in the signal database by associating and combining them; the signal database transmits the data information of each task to a shared memory; the signal output task copies the signal value content to the shared memory, and the signal input task reads the signal value content copied by the signal output task from the shared memory, completing the signal data transmission in one step. This method frees a large amount of data interaction during the subsequent controller operation from traditional time-consuming methods such as FIFOs and semaphores, and only requires a single memory copy to complete the signal transmission, reducing unnecessary resource loss in the controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial control systems and hydropower LCU data processing, and in particular to a hydropower LCU controller signal interaction method, system, device and storage medium thereof. Background Art

[0002] In power plant industrial control systems, the hydropower LCU controller serves as the core of the field control layer. This involves extensive data exchange between host and server computers, redundant controller synchronization, communication between process control stations, and tasks within the controller. The controller's internal implementation is relatively complex, requiring extensive data exchange between different tasks, and placing high demands on real-time data exchange.

[0003] Currently, after signal registration in the initialization phase, subsequent controller operation involves a large amount of information and FIFO time consumption in data exchange, which reduces signal transmission efficiency. Signal transmission is a typical use case for data interaction between tasks. Some process control signals need to be calculated and transmitted between different tasks, and there are high requirements for the timeliness of transmission. This requires the controller software to optimize the design of data interaction between tasks during implementation. Summary of the Invention

[0004] In response to the problems existing in the prior art, the present invention provides a hydropower LCU controller signal registration method, system, device and storage medium thereof, which frees a large amount of data interaction during the subsequent controller operation from traditional time-consuming FIFO, semaphore and other methods. Only one memory copy is required to complete the signal transmission, thereby improving the efficiency of signal transmission and reducing unnecessary resource loss in the controller.

[0005] The present invention is achieved through the following technical solutions:

[0006] A hydropower LCU controller signal interaction method includes the following steps:

[0007] The same signal in the application process of different tasks is divided into signal input tasks and signal output tasks according to the signal transmission direction;

[0008] Create a signal database and associate the signal data information in the signal input task and signal output task to register it in the signal database

[0009] The signal database transfers the data information of each task to the shared memory;

[0010] The signal output task copies the signal value content to the shared memory, and the signal input task reads the signal value content copied by the signal output task from the shared memory, completing the transmission of the signal data in one go.

[0011] Preferably, the application processes of different tasks include a process control process DPU, an indicator light prompt process LCD and a time synchronization process SyncTime.

[0012] Preferably, the signal database is established in the proxy process master and is updated and maintained through the proxy process master.

[0013] Preferably, the signal data information of the signal input task and the signal output task includes a signal name, a signal type and a signal address.

[0014] Preferably, the signal input task and the signal output task associate and combine the designated signal through the input and output relationship during the hydropower LCU startup phase, register them in the signal database, and save them as a piece of data information in the signal database.

[0015] Preferably, the signal address information of the signal input task in the signal database is initialized to a designated address in the shared memory, managed through the shared memory, and the shared memory is published to the signal output task.

[0016] Preferably, when the signal output task copies the signal value content to the shared memory, the signal input task reads the signal value content in the shared memory through the signal address information.

[0017] A hydropower LCU controller signal interaction system, comprising:

[0018] A classification module is used to classify the same signal in the application process of different tasks into signal input tasks and signal output tasks according to the signal conduction direction;

[0019] The registration module is used to create a signal database and associate and combine the signal data information in the signal input task and the signal output task and register them in the signal database;

[0020] The signal transmission module is used to transmit the data information of each task to the shared memory through the signal database;

[0021] The information reading module is used for the signal output task to copy the signal value content to the shared memory, and the signal input task to read the signal value content copied by the signal output task from the shared memory, completing the transmission of signal data in one go.

[0022] A hydropower LCU controller signal interaction device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the hydropower LCU controller signal interaction method described above are implemented.

[0023] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the hydropower LCU controller signal interaction method as described above.

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

[0025] The present invention provides a signal interaction method for a hydropower LCU controller. Signals that need to be transmitted between tasks are managed through a database. The signals that need to be transmitted are registered and entered into the database. The same signal is divided into input and output signals in different tasks according to the signal transmission direction. The signal database is responsible for associating the same signals registered by different tasks according to the (input, output) relationship and saving them as a piece of data information in the database. During the startup phase of the hydropower LCU controller, a proxy process master is designated to be responsible for creating and updating the signal database. During the startup phase, each task registers the combination of inter-task interaction signals into the signal database through the proxy process master. After each task completes signal registration, the proxy process master converts the signal database into a shared memory for management and releases it to the corresponding task. During the operation phase of the hydropower LCU controller, the signal output task only needs to copy the signal value content to the shared memory, and the signal input task only needs to read the shared memory median value from the shared memory according to the signal address information to complete a signal transmission. In this way, signal transmission between tasks can be completed with only a single memory copy, eliminating time-consuming and complex operations such as blocking and context switching caused by inter-process communication, and improving the speed and efficiency of shared signal output between processes. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a flow chart of the hydropower LCU controller signal interaction method of the present invention;

[0027] Figure 2 This is a structural diagram of the hydropower LCU controller signal interaction system in the present invention;

[0028] Figure 3 Schematic diagram of the flow of the hydropower LCU controller signal interaction method in an embodiment of the present invention;

[0029] Figure 4 This is a schematic diagram of the signal data information association combination in the signal input task and signal output task in the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] The present invention is described in further detail below with reference to the accompanying drawings:

[0033] See also Figure 1 The present invention provides a signal interaction method for a hydropower LCU controller, which frees a large amount of data interaction during the subsequent controller operation from traditional time-consuming FIFO, semaphore and other methods. Only one memory copy is required to complete the signal transmission, thereby improving the efficiency of signal transmission and reducing unnecessary resource loss in the controller.

[0034] Specifically, the hydropower LCU controller signal interaction method includes the following steps:

[0035] Step 1: The same signal in the application process of different tasks is divided into signal input tasks and signal output tasks according to the signal transmission direction;

[0036] Specifically, the application processes of different tasks include the process control process DPU, the indicator light prompt process LCD and the time synchronization process SyncTime.

[0037] For example, the controller's signal light indication information is lit by the LED process. In actual process business operation, the process control process DPU determines that the network connection is wrong and needs to adjust the light on the controller that represents the network connection status from green to yellow. At this time, the DPU process will send a yellow light information to the LED process. In this scenario, the DPU process is the signal output task, and the LED process is the signal input task.

[0038] Step 2: Create a signal database and associate and combine the signal data information in the signal input task and the signal output task and register them in the signal database;

[0039] Among them, according to Figure 4 As shown, the signal data information in the signal input task and the signal output task are associated and combined to obtain the output signal data information and the input signal data information according to the signal name. After confirming that the signal type matches, the output signal data information and the input signal data information are inserted into the same data entry in the signal database, and the output signal address and the input signal address are filled in the data entry to complete the association between the input and output signals.

[0040] Specifically, the signal database is established in the proxy process master and is updated and maintained through the proxy process master.

[0041] Specifically, the signal data information of the signal input task and the signal output task includes a signal name, a signal type, and a signal address.

[0042] Specifically, during the startup phase of the hydropower LCU, the signal input task and the signal output task associate and combine the designated signals through the input and output relationships, register them in the signal database, and save them as a piece of data information in the signal database.

[0043] Step 3: The signal database transfers the data information of each task to the shared memory;

[0044] Specifically, the signal address information of the signal input task in the signal database is initialized to a specified address in the shared memory, managed through the shared memory, and the shared memory is published to the signal output task.

[0045] Step 4: The signal output task copies the signal value content to the shared memory, and the signal input task reads the signal value content copied by the signal output task from the shared memory, completing the transmission of the signal data in one go.

[0046] Specifically, when the signal output task copies the signal value content to the shared memory, the signal input task reads the signal value content in the shared memory through the signal address information.

[0047] In summary, the present invention provides a signal interaction method for a hydropower LCU controller, which manages signals that need to be transmitted between tasks through a database, registers and enters the signals that need to be transmitted into the database, and divides the same signal into input signals and output signals according to the signal transmission direction in different tasks. The signal database is responsible for associating the same signal registered by different tasks according to the (input, output) relationship and saving it as a piece of data information in the database. During the startup phase of the hydropower LCU controller, a proxy process master is designated to be responsible for the creation and update maintenance of the signal database. During the startup phase, each task registers the combination of interactive signals between tasks into the signal database through the proxy process master. After each task completes the signal registration, the proxy process master converts the signal database into a shared memory for management and publishes it to the corresponding task. During the operation phase of the hydropower LCU controller, the signal output task only needs to copy the signal value content to the shared memory, and the signal input task only needs to read the value in the shared memory according to the signal address information from the shared memory to complete a signal transmission. In this way, signal transmission between tasks can be completed with only one memory copy, eliminating time-consuming and complex operations such as blocking and context switching caused by inter-process communication, and improving the rate and efficiency of shared signal output between processes.

[0048] Example

[0049] Taking the operation of the running status indicator light signal (run_state) on the hydropower LCU controller panel as an example, the panel indication task (lcd process) in the controller is responsible for the output of specific physical signals for turning on and off the signal. The core process control task (dpu process) of the controller will operate the running status indicator light signal according to the real-time running results during operation, triggering the need for the dpu process to operate the lcd process signal.

[0050] according to Figure 3 As shown, the specific steps of the signal interaction method are as follows:

[0051] 1) After the hydropower LCU controller is powered on, the signal database is first initialized in the agent process master, and the DPU process and LCD process are notified through the FIFO message mechanism to register the signal;

[0052] 2) The dpu process registers the run_state signal of the running status indicator (run_state) with the proxy process master in the structure of [dpu, run_state, address_out, out];

[0053] 3) The lcd process registers the run_state signal of the running status indicator (run_state) with the proxy process master in the structure of [lcd, run_state, address_in, in];

[0054] 4) The agent process master integrates [dpu,run_state,address,out] and [lcd,run_state,address,in] to form a new item - [run_state_hash,address_in,address_out], and inserts the item into the signal database;

[0055] 5) After all signals are registered, the agent process master converts the signal database into shared memory shmem, converts the item in the signal database into [run_state_hash, address_new], and then publishes the new address of the signal to the lcd process and the dpu process;

[0056] 6) After receiving the release information from the proxy process master, the LCD process and the DPU process update the local signal address information and update the original address_in and address_out to address_new;

[0057] 7) When the dpu process changes the run_state state, it writes the new signal state value to address_new;

[0058] 8) When the LCD process updates the indicator light status, it obtains the latest run_state status from address_new and updates it.

[0059] according to Figure 2 As shown, this embodiment also provides a hydropower LCU controller signal interaction system, including a classification module, a registration module, a signal transmission module and an information reading module;

[0060] A classification module is used to classify the same signal in the application process of different tasks into signal input tasks and signal output tasks according to the signal conduction direction;

[0061] The registration module is used to create a signal database and associate and combine the signal data information in the signal input task and the signal output task and register them in the signal database;

[0062] The signal transmission module is used to transmit the data information of each task to the shared memory through the signal database;

[0063] The information reading module is used for the signal output task to copy the signal value content to the shared memory, and the signal input task to read the signal value content copied by the signal output task from the shared memory, completing the transmission of signal data in one go.

[0064] This embodiment further provides a hydropower LCU controller signal interaction device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a hydropower LCU controller signal interaction program.

[0065] When the processor executes the computer program, the steps in the above-mentioned hydropower LCU controller signal interaction method are implemented, for example:

[0066] The same signal in the application process of different tasks is divided into signal input tasks and signal output tasks according to the signal transmission direction;

[0067] Create a signal database, and associate and combine the signal data information in the signal input task and the signal output task and register them in the signal database;

[0068] The signal database transfers the data information of each task to the shared memory;

[0069] The signal output task copies the signal value content to the shared memory, and the signal input task reads the signal value content copied by the signal output task from the shared memory, completing the transmission of the signal data in one go.

[0070] When the processor executes the computer program, the functions of each module in the hydropower LCU controller signal interaction system are realized.

[0071] Exemplarily, the computer program can be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units can be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program in the hydropower LCU controller signal interaction device. For example, the computer program can be divided into a classification module, a registration module, a signal transmission module, and an information reading module. The specific functions of each module are as follows:

[0072] A classification module is used to classify the same signal in the application process of different tasks into signal input tasks and signal output tasks according to the signal conduction direction;

[0073] The registration module is used to create a signal database and associate and combine the signal data information in the signal input task and the signal output task and register them in the signal database;

[0074] The signal transmission module is used to transmit the data information of each task to the shared memory through the signal database;

[0075] The information reading module is used for the signal output task to copy the signal value content to the shared memory, and the signal input task to read the signal value content copied by the signal output task from the shared memory, completing the transmission of signal data in one go.

[0076] The hydropower LCU controller signal interaction device can be a computing device such as a desktop computer, a notebook, a palmtop computer, a cloud server, etc. The time series database synchronization device can include, but is not limited to, a processor and a memory.

[0077] Those skilled in the art will understand that the hydropower LCU controller signal interaction device may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the hydropower LCU controller signal interaction device may also include a communication interface, input and output devices, network access equipment and bus, etc.

[0078] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the time series database synchronization device, and uses various interfaces and lines to connect various parts of the entire hydropower LCU controller signal interaction device.

[0079] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the hydropower LCU controller signal interaction device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory.

[0080] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc.

[0081] In addition, the memory may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0082] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the time series database synchronization method. In this embodiment, if the module / unit integrated into the time series database synchronization device is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, this embodiment implements all or part of the process of the above-mentioned hydropower LCU controller signal interaction method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, the computer program can implement the steps of the above-mentioned method.

[0083] The computer program includes computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile 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 telecommunications signal, and a software distribution medium.

[0084] It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practices, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0085] 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, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered by the scope of protection of the claims of the present invention.

Claims

1. A hydropower LCU controller signal interaction method, characterized in that: The steps include: The same signal in the application process of different tasks is divided into signal input tasks and signal output tasks according to the signal transmission direction; Create a signal database, and associate and combine the signal data information in the signal input task and the signal output task and register them in the signal database; Among them, the signal data information in the signal input task and the signal output task are associated and combined to obtain the output signal data information and the input signal data information according to the signal name. After confirming that the signal type matches, the output signal data information and the input signal data information are inserted into the same data entry in the signal database, and the output signal address and the input signal address are filled in the data entry to complete the association between the input and output signals; The signal database transfers the data information of each task to the shared memory; The signal output task copies the signal value content to the shared memory, and the signal input task reads the signal value content copied by the signal output task from the shared memory, completing the transmission of the signal data in one go.

2. A hydropower LCU controller signal interaction method according to claim 1, characterized in that: The application processes for different tasks include the process control process DPU, the indicator light prompt process LCD and the time synchronization process SyncTime.

3. The hydropower LCU controller signal interaction method according to claim 1, characterized in that: The signal database is established in the agent process master and is updated and maintained through the agent process master.

4. The hydropower LCU controller signal interaction method according to claim 1, characterized in that: The signal data information of the signal input task and the signal output task includes the signal name, signal type and signal address.

5. The hydropower LCU controller signal interaction method according to claim 1, characterized in that: During the startup phase of the hydropower LCU, the signal input task and the signal output task associate and combine the designated signals through the input and output relationships and register them in the signal database, and save them as a piece of data information in the signal database.

6. The hydropower LCU controller signal interaction method according to claim 1, characterized in that: Initialize the signal address information of the signal input task in the signal database to the specified address in the shared memory, manage it through the shared memory, and publish the shared memory to the signal output task.

7. The hydropower LCU controller signal interaction method according to claim 1, characterized in that: When the signal output task copies the signal value content to the shared memory, the signal input task reads the signal value content in the shared memory through the signal address information.

8. A hydropower LCU controller signal interaction system, characterized in that: include: A classification module is used to classify the same signal in the application process of different tasks into signal input tasks and signal output tasks according to the signal conduction direction; The registration module is used to create a signal database and associate and combine the signal data information in the signal input task and the signal output task and register them in the signal database; The signal transmission module is used to transmit the data information of each task to the shared memory through the signal database; The information reading module is used for the signal output task to copy the signal value content to the shared memory, and the signal input task to read the signal value content copied by the signal output task from the shared memory, completing the transmission of signal data in one go.

9. A hydropower LCU controller signal interaction device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the hydropower LCU controller signal interaction method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the hydropower LCU controller signal interaction method according to any one of claims 1 to 7 are implemented.