Data processing method and device based on nuclear power instrument control system and related equipment

By designing message queues and analysis units in the nuclear power instrument control system, analyzing and storing various types, multi-cycle, customizable types of data of the nuclear power instrument control system control station, the problem of low data processing efficiency in the existing technology is solved, and rapid processing and analysis of control station data is realized.

CN120065869APending Publication Date: 2025-05-30CHINA TECHENERGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510268547.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The prior art cannot effectively obtain and process multiple types, multi-cycle, customizable types of data sent by multiple control stations in the nuclear power instrument control system, resulting in low processing efficiency of control station data.

Method used

The data processing method based on the nuclear power instrument control system is adopted to store the control station data through a pre-designed message queue, and the data is parsed based on the configured data address point table and type comparison table, and the corresponding storage folder is created and the data is stored periodically. The storage folder name is determined by the encryption of the data type and the timestamp value.

Benefits of technology

It realizes rapid traversal and quick reading analysis of the control station data of the nuclear power instrument control system, improves data processing efficiency, and meets the rapid processing requirements of offline data analysis software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120065869A_ABST
    Figure CN120065869A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device based on a nuclear power instrument control system and related equipment, which are applied to the field of industrial control, and are used for acquiring control station data of a plurality of control stations of the nuclear power instrument control system, and the control station data of the plurality of control stations are stored through a pre-designed message queue. According to a data address point table and a type comparison table obtained through configuration, the control station data is analyzed, an analysis result is obtained, corresponding storage folders are created according to different types of data in the analysis result, and corresponding periods of the different types of data are stored in the storage folders, the name of the storage folder is determined at least after the data type and the timestamp value are encrypted together.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial control technology, and more specifically, to a data processing method, device and related equipment based on a nuclear power instrument control system. Background Art

[0002] In the field of industrial control, various types, multiple cycles, and customizable type of data will be generated when the control station is running. Other systems or devices need to perform offline data analysis based on the above data, and perform data processing operations such as judging the running state of the control station according to these data.

[0003] In the process of performing data processing operations, connections are established with multiple control stations through a communication station. The communication station actively sends data requests to the control stations to obtain response packets. The communication protocol is agreed upon by both parties, and the control station data is parsed according to the protocol. After parsing, the communication station stores or transmits the data to other systems or devices.

[0004] In the prior art, since the communication station cannot obtain various types, multiple cycles, and customizable type of data sent by multiple control stations, it is impossible to meet the fast traversal and fast analysis of the control station data by other offline data analysis software, resulting in low processing efficiency of the control station data.

[0005] Therefore, how to improve the processing efficiency of the control station data is an urgent problem to be solved in the present application. Summary of the Invention

[0006] In view of this, the present application discloses a data processing method, device and related equipment based on a nuclear power instrument control system, aiming to improve the processing efficiency of the control station data of the nuclear power instrument control system.

[0007] To achieve the above object, the disclosed technical solutions are as follows:

[0008] The first aspect of the present application discloses a data processing method based on a nuclear power instrument control system, and the method includes:

[0009] Obtain the control station data of multiple control stations of the nuclear power instrument control system; wherein, the control station data of multiple control stations is stored through a pre-designed message queue;

[0010] Parse the control station data according to the data address point table and type comparison table obtained from the configuration to obtain a parsing result;

[0011] Create respective corresponding storage folders according to different types of data in the parsing result, and store the data corresponding to different types in the corresponding cycles in the storage folders; wherein, the name of the storage folder is determined by at least encrypting the data type and the timestamp value together.

[0012] Preferably, obtaining the control station data of multiple control stations of the nuclear power instrument and control system includes:

[0013] Collecting the control station data of multiple control stations of the nuclear power instrument and control system by capturing network data packets and a network packet capture library;

[0014] Among them, the control station data at least includes health parameter data, periodic test data, and forced table data.

[0015] Preferably, the design process of the message queue includes:

[0016] Defining a message queue structure; among them, the structure at least includes a condition variable, a read lock, and a write lock;

[0017] Initializing the condition variable, read lock, and write lock in the message queue structure;

[0018] Designing a message queue for data synchronization through the initialized condition variable, read lock, and write lock.

[0019] Preferably, parsing the control station data according to the data address point table and type comparison table obtained by configuration to obtain a parsing result includes:

[0020] Performing configuration through configuration software to obtain a one-dimensional array of the same type or a multi-dimensional array of the same type, as well as a one-dimensional array of different types or multi-dimensional data of different types;

[0021] Compiling and installing the one-dimensional array of the same type or the multi-dimensional array of the same type, as well as the one-dimensional array of different types or multi-dimensional data of different types to obtain a data address point table and a type comparison table;

[0022] Parsing the control station data according to the data address point table and type comparison table to obtain a parsing result.

[0023] Preferably, creating respective corresponding storage folders for different types of data according to the parsing result and storing different types of data in the storage folders at corresponding intervals includes:

[0024] Obtaining the periodic test data, health data, and forced data in the parsing result;

[0025] Creating a first storage folder corresponding to the periodic test data, a second storage folder corresponding to the health data, and a third storage folder corresponding to the forced data;

[0026] Combining the data types and the first timestamp value of the periodic test data into a first string and encrypting it;

[0027] Combine the data type of the health data and the second timestamp value into a second string and encrypt it;

[0028] Combine the data type of the mandatory data and the third timestamp value into a third string and encrypt it;

[0029] Name the first storage folder according to the encrypted first string, and store the periodic test data in the named first storage folder periodically;

[0030] Name the second storage folder according to the encrypted second string, and store the health data in the named second storage folder periodically;

[0031] Name the third storage folder according to the encrypted third string, and store the mandatory data in the named third storage folder periodically.

[0032] The second aspect of the present application discloses a data processing device based on a nuclear power instrument and control system, and the device includes:

[0033] An acquisition unit, configured to acquire control station data of multiple control stations of a nuclear power instrument and control system; wherein, the control station data of the multiple control stations is stored through a pre-designed message queue;

[0034] An analysis unit, configured to analyze the control station data according to the data address point table and type comparison table obtained by configuration to obtain an analysis result;

[0035] A creation storage unit, configured to create respective corresponding storage folders according to different types of data in the analysis result, and store different types of data in the storage folders periodically; wherein, the name of the storage folder is determined at least after being encrypted by the data type and the timestamp value together.

[0036] Preferably, the acquisition unit is specifically configured to:

[0037] Collect the control station data of multiple control stations of the nuclear power instrument and control system by capturing network data packets and a network packet capture library; wherein, the control station data includes at least health parameter data, periodic test data and mandatory table data.

[0038] Preferably, the acquisition unit in the design process of the message queue includes:

[0039] A definition module, configured to define a message queue structure; wherein, the structure includes at least a condition variable, a read lock and a write lock;

[0040] An initialization module, configured to initialize the condition variable, read lock and write lock in the message queue structure;

[0041] A design module for designing a message queue for data synchronization through an initialized condition variable, a read lock, and a write lock.

[0042] A third aspect of this application discloses a storage medium, which includes stored instructions. When the instructions are running, they control the device where the storage medium is located to execute the data processing method based on the nuclear power instrumentation and control system as described in any item of the first aspect.

[0043] A fourth aspect of this application discloses an electronic device, including a memory and one or more instructions. One or more instructions are stored in the memory and are configured to be executed by one or more processors to execute the data processing method based on the nuclear power instrumentation and control system as described in any item of the first aspect.

[0044] It can be seen from the above technical solutions that this application discloses a data processing method, device and related equipment based on a nuclear power instrumentation and control system, which is applied to the industrial control field. The control station data of multiple control stations of the nuclear power instrumentation and control system is obtained. Among them, the control station data of multiple control stations is stored through a pre-designed message queue. According to the data address point table and type comparison table obtained by configuration, the control station data is parsed to obtain a parsing result. According to the different types of data in the parsing result, respective corresponding storage folders are created, and different types of data are stored periodically in the storage folders. The name of the storage folder is determined by encrypting at least the data type and the timestamp value together.

[0045] Through the above solution, various types, multiple cycles, and customizable type control station data of multiple control stations of the nuclear power instrumentation and control system transmitted on the basis of the Ethernet physical layer and data link layer are obtained. Since the customizable type refers to a one-dimensional array or multi-dimensional array of the same type, or a one-dimensional array or multi-dimensional array of different types, this solution supports the parsing of customizable type data, and realizes the classification and periodic storage of the obtained multiple control station data, so as to meet the fast traversal and fast reading analysis of the control station data by other offline data analysis software, and improve the processing efficiency of the control station data of the nuclear power instrumentation and control system. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of this application. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0047] Figure 1 It is a schematic flowchart of a data processing method based on a nuclear power instrumentation and control system disclosed in an embodiment of this application;

[0048] Figure 2 It is a schematic flow chart of another data processing method based on a nuclear power instrument and control system disclosed in the embodiments of the present application;

[0049] Figure 3 It is a schematic structural diagram of a data processing device based on a nuclear power instrument and control system disclosed in the embodiments of the present application;

[0050] Figure 4 It is a schematic structural diagram of an electronic device disclosed in the embodiments of the present application. Detailed implementation manners

[0051] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0052] In the present application, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.

[0053] As can be seen from the background art, in the prior art, since the communication station cannot obtain various types, multiple cycles, and customizable type data sent by multiple control stations, it is impossible to meet the fast traversal and fast analysis of the control station data by other offline data analysis software, resulting in low processing efficiency of the control station data. Therefore, how to improve the processing efficiency of the control station data is an urgent problem to be solved in the present application.

[0054] To solve the above problems, the present application discloses a data processing method, device and related equipment based on a nuclear power instrument control system, which acquires various types, multi-cycle, and customizable type control station data of multiple control stations in the nuclear power instrument control system transmitted on the basis of the Ethernet physical layer and data link layer. Since the customizable type refers to one-dimensional arrays or multi-dimensional arrays of the same type, or one-dimensional arrays or multi-dimensional arrays of different types, this solution supports the parsing of customizable type data and realizes the storage of the acquired control station data of multiple control stations by category and by cycle, so as to meet the requirements of other offline data analysis software for the quick traversal and fast reading analysis of control station data, and improve the processing efficiency of the control station data of the nuclear power instrument control system. The specific implementation manner will be specifically described through the following embodiments.

[0055] Refer to Figure 1 As shown, a data processing method based on a nuclear power instrument control system disclosed in an embodiment of the present application mainly includes the following steps:

[0056] S101: Acquire the control station data of multiple control stations in the nuclear power instrument control system; wherein, the control station data of multiple control stations is stored through a pre-designed message queue.

[0057] In S101, the control station data of multiple control stations in the nuclear power instrument control system is collected by capturing network data packets and a network packet capture library (NPCAP); wherein, the control station data at least includes health parameter data, periodic test data, and forced table data.

[0058] Among them, the health parameter data is data representing the operating state of the control station, such as the percentage of the central processing unit (CPU), memory, and storage used, etc.

[0059] The periodic test data is, for example, the input and output data of the running algorithm in the controller.

[0060] The forced table data represents the value of the forced point.

[0061] The specific design process of the message queue is as shown in A1 - A3.

[0062] A1: Define the message queue structure; wherein, the structure at least includes a condition variable, a read lock, and a write lock;

[0063] A2: Initialize the condition variable, read lock, and write lock in the message queue structure.

[0064] Among them, initializing the condition variable, read lock, and write lock in the message queue structure means allocating the memory space of the message queue structure and initializing the read-write lock and the condition variable.

[0065] Read locks and write locks are mechanisms for protecting shared resources. Read locks and write locks are used to protect shared resources. Multiple read threads can execute concurrently, while write threads need to exclusively occupy the resources, and other write and read accesses to the shared resources need to wait.

[0066] Condition variables provide a mechanism for inter-thread communication, allowing one thread to wait for another thread to meet a certain condition before continuing to execute.

[0067] A3: Design a message queue for data synchronization through initialized condition variables, read locks, and write locks.

[0068] In A3, a message queue for data synchronization is designed by combining condition variables, read locks, and write locks.

[0069] The message queue uses a double-ended queue for data storage, provides interfaces for accessing and configuring the queue capacity, and uses read-write locks to control the invocation of the access interfaces. This queue is used to store data from multiple control stations in memory.

[0070] S102: Parse the control station data according to the data address point table and type comparison table obtained from configuration to obtain the parsing result.

[0071] The prerequisite for this solution is to use the configuration software of the engineer station for configuration, configuring one-dimensional arrays or multi-dimensional arrays of the same type, one-dimensional arrays or multi-dimensional arrays of different types, where both the data type and the number of arrays can be customized. Compile one-dimensional arrays or multi-dimensional arrays of the same type, as well as one-dimensional arrays or multi-dimensional data of different types, and generate a data address point table and a data type comparison table after compilation.

[0072] The specific process of parsing the control station data according to the data address point table and type comparison table obtained from configuration to obtain the parsing result is shown in B1 - B3.

[0073] B1: Through the configuration software, configure one-dimensional arrays or multi-dimensional arrays of the same type, as well as one-dimensional arrays or multi-dimensional data of different types.

[0074] Among them, the configuration software of the engineer station needs to support the configuration of custom type data. The custom type data includes one-dimensional or multi-dimensional arrays, and the data types in the arrays include but are not limited to basic data types such as char, bool, short, int, long, float, double, unsigned types, etc.

[0075] B2: Compile and install one-dimensional arrays or multi-dimensional arrays of the same type, as well as one-dimensional arrays or multi-dimensional data of different types, to obtain a data address point table and a type comparison table.

[0076] Use the engineer station configuration software to configure the project. When configuring variables, configure one-dimensional or multi-dimensional arrays. After the project is compiled by the configuration software, a data address point table and a type comparison table will be generated. The data address point table contains at least information such as point name, point type, point offset, point length, and point initial value. The type comparison table contains at least point type name, basic type, length, offset, initial value, number of variables, etc.

[0077] B3: Parse the control station data according to the data address point table and the type comparison table to obtain the parsing result.

[0078] According to the parsing tool, the data address point table and the type comparison table, parse the control station data to obtain the parsing results of data of different types and different periods. The parsing results include a log file and a binary file.

[0079] S103: Create respective corresponding storage folders according to different types of data in the parsing result, and store the data of different types in corresponding periods in the storage folders; among them, the name of the storage folder is determined by encrypting at least the data type and the timestamp value together.

[0080] Among them, the name of the storage folder is determined by the value obtained by encrypting the data type, the timestamp, the time interval, etc. together.

[0081] According to different types of data in the parsing result, create storage folders for different types of data. The name of the storage folder is the ciphertext obtained by encrypting a fixed string using an encryption algorithm. The fixed string contains classification information such as data type (such as periodic test data, health data, forced data, etc.), timestamp or time interval. For example, using the MD5 encryption algorithm, the fixed string format is "data type + timestamp".

[0082] Specifically, the process of creating respective corresponding storage folders according to different types of data in the parsing result and storing the data of different types in corresponding periods in the storage folders is shown in C1 - C4.

[0083] C1: Obtain the periodic test data, health data, and forced data in the parsing result.

[0084] C2: Create a first storage folder corresponding to the periodic test data, a second storage folder corresponding to the health data, and a third storage folder corresponding to the forced data.

[0085] C3: Combine the data type of the periodic test data and the first timestamp value into a first string and encrypt it.

[0086] For example, the regular test data is stored in the first storage folder D: / (under MD5("Test + timestamp")). The data files are stored by time. For example, if the regular test data is millisecond-level data, such as millisecond-cycle data, the storage path is: D: / MD5("Test + yearmonthdayhourminute second") / yearmonthdayhourminute second millisecond.bin.

[0087] C4: Combine the data type of the health data and the second timestamp value into a second string and encrypt it. For example, according to the data type, the health data is stored in the second storage folder D: / MD5("Health + timestamp"). If the health data is second-level data, such as second-cycle data, the storage path is: D: / MD5("Health + yearmonthdayhour") / yearmonthdayhour second.bin.

[0088] C5: Combine the data type of the forced data and the third timestamp value into a third string and encrypt it.

[0089] For example, the forced data is stored in the third storage folder D: / MD5("Force + timestamp"). If the forced data is minute-level data, such as minute-cycle data, the storage path is: D: / MD5("Force + yearmonthdayhour") / yearmonthdayhour minute.bin.

[0090] It can be seen from the above scheme that the millisecond-level data is stored in a folder named after the MD5 encryption value of the data type + second as the timestamp. The advantage is that the number of files stored in the second-level folder is limited. When other systems parse the data, they can quickly traverse and parse the files. The second-level and minute-level data are both stored in this way, which is convenient for other offline software to quickly traverse the files in the folder and parse the data.

[0091] The bin folder stores the ciphertext, which is divided into three parts. The first part includes the encrypted data length a of the basic data, the length b of the complex data type, and the encryption algorithm. The values of a and b are randomly generated each time; the second part is the basic type data (data types such as char, bool, short, int, long, float, double, unsigned types, etc.); the third part is the complex type data (one-dimensional arrays or multi-dimensional arrays of the same type, one-dimensional arrays or multi-dimensional arrays of different types). Each piece of complex type data is stored in the format of offset, length, and value. The encrypted data with random lengths can ensure that the data is not easily cracked and parsed by other software during storage, and can ensure the security of the data.

[0092] To facilitate the understanding of the process of data processing based on the nuclear power I&C system, combined with Figure 2 it is described as follows:

[0093] Figure 2Among them, the engineer station configuration software with the function of supporting custom types is used for configuration. When configuring variables, one-dimensional or multi-dimensional arrays are configured, and after compilation and downloading, a data address point table and a type comparison table are generated;

[0094] When the control station uploads these data, such as health parameter data (data representing the running state of the control station, such as the percentage of CPU, memory, and storage usage), periodic test data (such as the input and output data of the running algorithm in the controller), and forced table data (the values of forced points), at different periods, the running data parser of this solution parses the data address point table and the data comparison table;

[0095] Start using the NPCAP library to collect data. When it is determined to be health parameter data, the control station data is encrypted according to the above encryption scheme, and the data is stored in the D: / MD5("Test + year-month-day hour:minute:second") folder. When it is determined to be periodic test data, the data is encrypted and stored in the D: / MD5("Health + year-month-day hour:minute") folder. When it is determined to be forced table data, the data is encrypted and stored in the D: / MD5("Force + year-month-day hour") folder.

[0096] This solution provides a method for collecting, parsing, and storing multi-control station data. This method can obtain various types, multi-period, and customizable type data from multiple control stations. The custom types in this application refer to one-dimensional arrays or multi-dimensional arrays of the same type, one-dimensional arrays or multi-dimensional arrays of different types. The data type and the number of arrays are determined according to the actual situation, and can be configured at the engineer station. After compilation, a data type point table is generated, including a basic data type point table and a complex data type point table. The data is parsed according to the point table. After parsing, according to the data type, it is stored in a folder named with the MD5 value of the data type + timestamp and other classification information for other systems or platforms to parse.

[0097] This solution involves the collection, parsing, and storage of various types, multi-period, and customizable type data of multiple control stations, and belongs to the field of industrial control. This solution can be used for the collection, parsing, and storage of data of multiple control stations in the field of industrial control. In the field of industrial control, multiple control stations will interact with other systems or devices. When the control stations report various types, multi-period, and customizable type data, there is a method that can collect, parse, and store data through protocols, realizing the data interaction between other systems or devices and multiple control stations. This solution proposes a method for collecting data from multiple control stations, introduces the NPCAP library for capturing network data packets and data analysis, collects various types, multi-period, and customizable type data of multiple control stations, parses the data through multiple tables, and proposes a data storage scheme to store the data, so that other systems can quickly traverse the data folder to parse the data, improving the data processing efficiency.

[0098] Advantages of the embodiments of the present application: Obtain various types, multiple cycles, and customizable type control station data of multiple control stations of the nuclear power I&C system transmitted based on the Ethernet physical layer and data link layer. Since the customizable type refers to one-dimensional arrays or multi-dimensional arrays of the same type, or one-dimensional arrays or multi-dimensional arrays of different types, this solution supports the parsing of data of customizable types, and realizes the storage of the obtained control station data of multiple control stations by category and by cycle, so as to meet the requirements of other offline data analysis software for the quick traversal and fast reading analysis of control station data, and improve the processing efficiency of the control station data of the nuclear power I&C system.

[0099] Based on the above embodiments Figure 1 Disclosed is a data processing method based on a nuclear power I&C system. The embodiments of the present application also correspondingly disclose a data processing device based on the nuclear power I&C system, as Figure 3 shown. The data processing device based on the nuclear power I&C system includes:

[0100] An acquisition unit 301, configured to acquire control station data of multiple control stations of the nuclear power I&C system; wherein, the control station data of the multiple control stations is stored through a pre-designed message queue;

[0101] An analysis unit 302, configured to analyze the control station data according to the data address point table and type comparison table obtained from the configuration to obtain an analysis result;

[0102] A creation storage unit 303, configured to create respective corresponding storage folders according to different types of data in the analysis result, and store the different types of data in corresponding cycles in the storage folders; wherein, the name of the storage folder is determined by encrypting at least the data type and the timestamp value together.

[0103] Further, the acquisition unit 301 is specifically configured to collect the control station data of multiple control stations of the nuclear power I&C system by capturing network data packets and a network packet capture library; wherein, the control station data at least includes health parameter data, periodic test data, and forced table data.

[0104] Further, the acquisition unit 301 in the design process of the message queue includes:

[0105] A definition module, configured to define a message queue structure; wherein, the structure at least includes a condition variable, a read lock, and a write lock;

[0106] An initialization module, configured to initialize the condition variable, read lock, and write lock in the message queue structure;

[0107] A design module, configured to design a message queue for data synchronization through the initialized condition variable, read lock, and write lock.

[0108] Further, the parsing unit 302 includes:

[0109] The configuration module is used to perform configuration through configuration software to obtain one-dimensional arrays of the same type or multi-dimensional arrays of the same type, as well as one-dimensional arrays of different types or multi-dimensional data of different types;

[0110] The compilation and installation module is used to compile and install one-dimensional arrays of the same type or multi-dimensional arrays of the same type, as well as one-dimensional arrays of different types or multi-dimensional data of different types, to obtain a data address point table and a type comparison table;

[0111] The parsing module is used to parse the control station data according to the data address point table and the type comparison table to obtain a parsing result.

[0112] Further, the creation storage unit 303 includes:

[0113] The acquisition module is used to acquire periodic test data, health data, and forced data in the parsing result;

[0114] The creation module is used to create a first storage folder corresponding to the periodic test data, a second storage folder corresponding to the health data, and a third storage folder corresponding to the forced data;

[0115] The first combined encryption module is used to combine the data type of the periodic test data and the first timestamp value into a first string and encrypt it;

[0116] The second combined encryption module is used to combine the data type of the health data and the second timestamp value into a second string and encrypt it;

[0117] The third combined encryption module is used to combine the data type of the forced data and the third timestamp value into a third string and encrypt it;

[0118] The first named storage module is used to name the first storage folder according to the encrypted first string and periodically store the periodic test data in the named first storage folder;

[0119] The second named storage module is used to name the second storage folder according to the encrypted second string and periodically store the health data in the named second storage folder;

[0120] The third named storage module is used to name the third storage folder according to the encrypted third string and periodically store the forced data in the named third storage folder.

[0121] Advantages of the embodiments of the present application: Obtain various types of control station data of multiple control stations of a nuclear power instrument and control system transmitted based on the Ethernet physical layer and data link layer, with multiple cycles and customizable types. Since the customizable type refers to one-dimensional arrays or multi-dimensional arrays of the same type, or one-dimensional arrays or multi-dimensional arrays of different types, this solution supports the parsing of customizable type data, and realizes the storage of the obtained control station data by category and by cycle, so as to meet the fast traversal and fast reading analysis of control station data by other offline data analysis software, and improve the processing efficiency of the control station data of the nuclear power instrument and control system.

[0122] The embodiments of the present application also provide a storage medium, which includes stored instructions. When the instructions run, the device where the storage medium is located is controlled to execute the data processing method based on the nuclear power instrument and control system as described above.

[0123] The embodiments of the present application also provide an electronic device, and its structural schematic diagram is as Figure 4 shown, specifically including a memory 401, and one or more instructions 402. One or more of the instructions 402 are stored in the memory 401, and are configured to be executed by one or more processors 403 to execute the above-mentioned data processing method based on the nuclear power instrument and control system.

[0124] For the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.

[0125] It should be noted that the embodiments in this specification are all described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments.

[0126] The steps in the methods of the embodiments of the present application can be adjusted, combined and deleted according to actual needs.

[0127] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0128] The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0129] The foregoing are only the preferred embodiments of the present application, and it should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and modifications can be made, and these improvements and modifications should also be regarded as the protection scope of the present application.

Claims

1. A data processing method based on a nuclear power instrumentation and control system, characterized in that: The method comprises: Acquire control station data of multiple control stations of a nuclear power instrumentation and control system; wherein the control station data of multiple control stations are stored through a pre-designed message queue; According to the data address point table and type comparison table obtained by configuration, the control station data is parsed to obtain the parsing result; Create corresponding storage folders according to different types of data in the analysis results, and store different types of data in the storage folders in corresponding periods; wherein the name of the storage folder is determined by encrypting at least the data type and the timestamp value together.

2. The method according to claim 1, characterized in that The obtaining of control station data of multiple control stations of the nuclear power instrumentation and control system includes: Collect control station data of multiple control stations of nuclear power instrumentation and control system by capturing network data packets and network packet capture library; The control station data at least includes health parameter data, periodic test data and mandatory table data.

3. The method according to claim 1, characterized in that The design process of the message queue includes: Define a message queue structure; wherein the structure includes at least a condition variable, a read lock and a write lock; Initialize the condition variables, read lock and write lock in the message queue structure; Design a message queue for data synchronization through initialized condition variables, read locks, and write locks.

4. The method according to claim 1, characterized in that: The control station data is parsed according to the data address point table and type comparison table obtained by configuration to obtain parsing results, including: Through configuration software, one-dimensional arrays of the same type or multi-dimensional arrays of the same type, as well as one-dimensional arrays of different types or multi-dimensional data of different types are obtained; Compile and install one-dimensional arrays of the same type or multi-dimensional arrays of the same type, as well as one-dimensional arrays of different types or multi-dimensional arrays of different types, to obtain a data address point table and a type comparison table; The control station data is parsed according to the data address point table and the type comparison table to obtain a parsing result.

5. The method according to claim 1, characterized in that The step of creating storage folders corresponding to different types of data in the analysis results, and storing different types of data in the storage folders in corresponding periods, includes: Obtaining periodic test data, health data and mandatory data in the analysis results; Creating a first storage folder corresponding to the periodic test data, a second storage folder corresponding to the health data, and a third storage folder corresponding to the mandatory data; Combining the data type of the periodic test data and the first timestamp value into a first character string and encrypting the first character string; combining the data type of the health data and the second timestamp value into a second character string and encrypting the second character string; combining the data type of the mandatory data and the third timestamp value into a third character string and encrypting the third character string; Naming the first storage folder according to the encrypted first character string, and periodically storing the periodic test data in the named first storage folder; Naming the second storage folder according to the encrypted second character string, and periodically storing the health data in the named second storage folder; The third storage folder is named according to the encrypted third character string, and the forced data period is stored in the named third storage folder.

6. A data processing device based on a nuclear power instrumentation and control system, characterized in that: The device comprises: An acquisition unit is used to acquire control station data of multiple control stations of a nuclear power instrumentation and control system; wherein the control station data of multiple control stations are stored through a pre-designed message queue; A parsing unit, used to parse the control station data according to the data address point table and type comparison table obtained by configuration to obtain a parsing result; A storage unit is created to create corresponding storage folders according to different types of data in the analysis results, and store different types of data in the storage folders in corresponding periods; wherein the name of the storage folder is determined by encrypting at least the data type and the timestamp value together.

7. The device according to claim 6, characterized in that The acquisition unit is specifically used for: By capturing network data packets and a network packet capture library, control station data of multiple control stations of a nuclear power instrumentation and control system are collected; wherein the control station data at least includes health parameter data, periodic test data and mandatory table data.

8. The device according to claim 6, characterized in that The acquisition unit of the message queue design process includes: A definition module, used to define a message queue structure; wherein the structure at least includes a condition variable, a read lock, and a write lock; An initialization module, used to initialize the condition variables, read locks and write locks in the message queue structure; Design module for designing message queues for data synchronization through initialized condition variables, read locks, and write locks.

9. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the data processing method based on the nuclear power instrumentation and control system as described in any one of claims 1 to 5.

10. An electronic device, characterized in that: It comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the data processing method based on the nuclear power instrumentation and control system as described in any one of claims 1 to 5.