A data processing method and device for nuclear power plant
Through the data processing method of the nuclear power plant, the sending terminal is processed and combined with the switching volume event, and the receiving end is parsed and stored, which solves the problem of low transmission efficiency and inconvenient data processing, and realizes efficient data transmission and storage.
Patent Information
- Application Number
- CN202210640535.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-08
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2042-06-08
AI Technical Summary
The existing data transmission method is inefficient and inconvenient for processing subsequent data when passing a large number of historical switching variable events, especially in data communication between the DCS system of the nuclear power plant and the third-party system.
By dealing with each switching of each switching position on the sender, the target switching volume variable structure is formed, and these events are combined based on the target data packet structure to form a application data packet. The receiving terminal analyzes and stores these data packets, and uses the circular storage structure to achieve efficient data storage and processing.
It improves the efficiency of a large number of switching events in batches and simplifies the processing of subsequent data, which is convenient for data exchange and storage between DCS systems and third -party systems.
Smart Images

Figure CN115048376B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a data processing method and device applied to a nuclear power plant. Background Art
[0002] The DCS (Digital Control System) of a nuclear power plant usually has data communication requirements with third-party systems. Some third-party systems need to transmit monitoring point information within their systems to the DCS system for display and alarm, which may include many switch quantity change events. The transmitted data usually only includes the current values of analog quantities and switch quantities. In some scenarios, it may be necessary to transmit time-stamped data.
[0003] However, existing data transmission is usually aimed at scenarios with the same time scale. If it is used to transmit a large number of historical switch quantity change events between a DCS system and a third-party system, it will lead to low transmission efficiency and inconvenience in subsequent data processing. Summary of the invention
[0004] In view of the above problems, the present invention provides a data processing method and device for use in a nuclear power plant, which improves the efficiency of batch transmission of a large number of switch position change events and the convenience of data processing.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] A data processing method applied to a nuclear power plant, applied to a sending end, the method comprising:
[0007] Acquire at least one switch value change event to be transmitted;
[0008] Processing each switch quantity change event based on a target switch quantity change structure to obtain at least one target switch quantity change event, wherein the target switch quantity change structure includes a point item identifier, a switch quantity change value, and a change time;
[0009] Based on the target data packet structure, each of the target switch quantity change events is combined to obtain an application data packet, wherein the target data packet structure includes packet header information, the current value of the switch quantity and the switch quantity change event set;
[0010] The application data packet is sent to a receiving end.
[0011] Optionally, sending the application data packet to a receiving end includes:
[0012] Based on a sending cycle, the application data packet is periodically sent to a receiving end.
[0013] Optionally, sending the application data packet to a receiving end includes:
[0014] Obtaining the byte length of the application data packet;
[0015] Based on the byte length, determining whether to split the application data packet;
[0016] If yes, split the application data packet to obtain sub-data packets, and send the sub-data packets to the receiving end.
[0017] A data processing method applied to a nuclear power plant, applied to a receiving end, the method comprising:
[0018] Receive an application data packet sent by a transmitting end, wherein the application data packet is a data packet obtained by the transmitting end after combining various target switch quantity position change events based on a target data packet structure, and the target switch quantity position change event is a switch quantity position change event constructed based on the target switch quantity position change structure;
[0019] Parsing the application data packet based on the target data packet structure to obtain each switch value change event;
[0020] According to the target storage structure, each of the switch value change events is stored to obtain storage data.
[0021] Optionally, the target storage structure is a ring storage structure, wherein storing each of the switch value change events based on the target storage structure includes:
[0022] Obtaining the amount of valid data in the ring array corresponding to the ring storage structure;
[0023] Based on the amount of the valid data, determining whether the annular array is empty;
[0024] If yes, determining the tail array index of the ring array as the stored event number;
[0025] The switch value change event to be stored is stored in the storage unit pointed to by the event number, and the tail array index and the number of valid data are updated.
[0026] Optionally, the method further comprises:
[0027] Based on the amount of valid data, determining whether the ring array is full;
[0028] If so, update the index of the first array and the number of valid data;
[0029] If not, determining the tail array index of the ring array as the stored event number;
[0030] The switch value change event to be stored is stored in the storage unit pointed to by the event number, and the tail array index and the number of valid data are updated.
[0031] Optionally, the method further comprises:
[0032] In response to reading an event in a ring array corresponding to the ring storage structure, a switch quantity change event reading operation is performed by taking the head of the ring array as a reading starting point.
[0033] Optionally, the method further comprises:
[0034] In response to receiving a data acquisition request sent by a server, the stored data is sent to the server based on a target communication protocol, wherein the target communication protocol includes a transport layer, a presentation layer and an application layer, the transport layer is used to transmit the stored data, the presentation layer is used to complete one or more of the splitting, assembly, sending or response processing of the data packet, and the protocol corresponding to the application layer includes a server request packet and a communication station response packet.
[0035] A data processing device for a nuclear power plant, applied to a transmitting end, comprising:
[0036] An acquisition unit, used for acquiring at least one switch value change event to be transmitted;
[0037] A processing unit, used for processing each switch quantity change event based on a target switch quantity change structure to obtain at least one target switch quantity change event, wherein the target switch quantity change structure includes a point item identifier, a switch quantity change value and a change time;
[0038] A combining unit, used for combining each of the target switch quantity position change events based on a target data packet structure to obtain an application data packet, wherein the target data packet structure includes packet header information, a current value of the switch quantity, and a switch quantity position change event set;
[0039] The sending unit is used to send the application data packet to the receiving end.
[0040] A data processing device applied to a nuclear power plant, used at a receiving end, the device comprising:
[0041] A receiving unit, configured to receive an application data packet sent by a transmitting end, wherein the application data packet is a data packet obtained by combining various target switch quantity position change events based on a target data packet structure, and the target switch quantity position change event is a switch quantity position change event constructed based on a target switch quantity position change structure;
[0042] A parsing unit, used for parsing the application data packet based on the target data packet structure to obtain each switch value change event;
[0043] The storage unit is used to store each of the switch value change events according to the target storage structure to obtain storage data.
[0044] Compared with the prior art, the present invention provides a data processing method and device for use in a nuclear power plant. The sending end can process each switch position change event based on the target switch position change structure to obtain at least one target switch position change event, and combine each of the target switch position change events based on the target data packet structure to obtain an application data packet. The receiving end can parse the application data packet after receiving it and store it based on the target storage structure, wherein the sending end can be a third-party system in the nuclear power plant, and the receiving end can be a DCS system of the nuclear power plant, which realizes the combination of switch position change events based on the target data packet structure and storage based on the corresponding target storage structure, and can realize batch transmission of a large number of switch position change events, thereby improving transmission efficiency and the convenience of data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0046] Figure 1 A schematic flow chart of a data processing method applied to a sending end of a nuclear power plant provided by an embodiment of the present invention;
[0047] Figure 2 A schematic diagram of a scenario of communication between a DCS system and a third-party system provided by an embodiment of the present invention;
[0048] Figure 3 A schematic diagram of a switch quantity change event structure unit provided by an embodiment of the present invention;
[0049] Figure 4 A structural diagram of an application data packet provided by an embodiment of the present invention;
[0050] Figure 5 A schematic flow chart of a data processing method applied to a receiving end of a nuclear power plant provided by an embodiment of the present invention;
[0051] Figure 6 A schematic diagram of a ring storage structure provided by an embodiment of the present invention;
[0052] Figure 7 A flow chart for storing a switch value change event provided by an embodiment of the present invention;
[0053] Figure 8 A flowchart of reading events from a ring storage area provided by an embodiment of the present invention;
[0054] Fig. 9 A corresponding relationship diagram of a protocol model provided by an embodiment of the present invention;
[0055] Fig.10 A schematic diagram of the structure of a data processing device applied to a sending end provided by an embodiment of the present invention;
[0056] Fig.11 A schematic diagram of the structure of a data processing device applied to a receiving end provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments 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 creative work are within the scope of protection of the present invention.
[0058] The terms "first" and "second" and the like in the specification and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. 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 including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0059] In an embodiment of the present invention, a data processing method applied to a nuclear power plant is provided. The method is mainly applied to a method for transmitting source time stamps in a DCS (Digital Control System) communication station of a nuclear power plant. The method can realize the transmission of a large number of historical switch quantity change events between the DCS system and a third-party system, and solve the problem of storing switch quantity change events in a DCS communication station.
[0060] See also Figure 1 , which is a flow chart of a data processing method applied to a sending end of a nuclear power plant provided by an embodiment of the present invention, wherein the sending end mainly refers to a third-party system corresponding to the DCS system of the nuclear power plant, see Figure 2 , is a schematic diagram of a scenario of communication between a DCS system and a third-party system provided by an embodiment of the present invention. Specifically, the method may include the following steps:
[0061] S101. Obtain at least one switch value change event to be transmitted.
[0062] The DCS system of a nuclear power plant has data communication requirements with the third-party system in the plant. The number of switch quantity change events in the third-party system is large. When the communication between the two communication stations is disconnected, a large number of historical switch quantity change events will be accumulated. Among them, the switch quantity change event is a general term for the switch quantity change. For example, when the value of a switch quantity changes from 0 to 1, it is called a switch quantity change event; when it changes from 1 to 0, another change event occurs.
[0063] S102: Process each switch quantity change event based on the target switch quantity change structure to obtain at least one target switch quantity change event.
[0064] The target switch value change structure includes a point item identifier, a switch value change value, and a change time. In order to facilitate the analysis and processing of switch value change events, the switch value change event is encapsulated by the target switch value change structure in the embodiment of the present invention, so that each switch value change event has a unified description field, which is convenient for subsequent processing. Figure 3 , is a schematic diagram of a switch quantity change event structure unit provided in an embodiment of the present invention, through which the target switch quantity change structure can be determined, and the point item identifier can be a point item ID (Identity document). Specifically, each change event consists of a point item ID, a switch quantity change value, and a change time, such as Figure 2 As shown in the figure, the point item ID is the unique identifier of each switch quantity, and the change time is the third-party calendar time accurate to milliseconds.
[0065] S103. Based on the target data packet structure, combine each target switch value change event to obtain an application data packet.
[0066] S104: Send the application data packet to the receiving end.
[0067] The communication station of the third-party system combines multiple target switch quantity change events to be sent after being processed by a unified target switch quantity change structure to obtain an application data packet. Then it periodically sends them in batches to the receiving end, i.e., the DCS communication station. In order to facilitate the DCS communication station to parse the received data, the target data packet structure is used in the embodiment of the present invention to encapsulate the application data packet, wherein the target data packet structure includes header information, the current value of the switch quantity, and the switch quantity change event set, that is, the header information is added to the application data packet. See Figure 4 , is a structural diagram of an application data packet provided by an embodiment of the present invention, wherein the switch quantity change event set is Figure 3The set of structural units, when there is no change in a certain transmission cycle, the switch value change event set is empty, that is, the application data packet only includes the header information and the current value of the switch value. See Table 1, which is an application data packet header content information table in an embodiment of the present invention.
[0068] Table 1
[0069]
[0070] In actual application, application data packets can be sent to the receiving end periodically based on the sending cycle. When the sending cycle changes, the time point when the sending end sends the application data packet will also change, which can avoid frequent data packet transmission. It can also be based on the idle time period of the transmission resources of the sending end and the receiving end to increase the transmission rate.
[0071] In one embodiment of the present invention, in order to ensure effective transmission of application data packets, a larger application data packet can be split and then sent in packets. The sending of the application data packet to the receiving end includes:
[0072] Obtaining the byte length of the application data packet;
[0073] Based on the byte length, determining whether to split the application data packet;
[0074] If yes, split the application data packet to obtain sub-data packets, and send the sub-data packets to the receiving end.
[0075] Specifically, the third-party system communication station and the DCS communication station use UDP (User Datagram Protocol) for communication. When the length of the application data packet exceeds 1024 bytes, the data is sent in packets. Each sub-packet is up to 1024 bytes. On the basis of the application data packet, the sub-packet adds a communication packet header, and the communication packet header contains the content in Table 2.
[0076] Table 2
[0077]
[0078] In an embodiment of the present invention, the sending end can package multiple different switch quantity change events into a data packet, each event has an independent time stamp, and then send the data packet periodically to the receiving end through a customized protocol, which facilitates the sending of a large number of switch quantity change events and improves transmission efficiency.
[0079] When the receiving end, i.e., the DCS system communication station, receives the application data packet, it can perform processing operations such as parsing, storing, and reading the application data packet. For details, see Figure 5, is a flow chart of a data processing method applied to a receiving end of a nuclear power plant provided by an embodiment of the present invention, wherein the receiving end mainly refers to a DCS system communication station, and the method may include the following steps:
[0080] S201, receiving an application data packet sent by a sending end.
[0081] The application data packet is a data packet obtained by the transmitting end after combining various target switch quantity position change events based on the target data packet structure, and the target switch quantity position change event is a switch quantity position change event constructed based on the target switch quantity position change structure;
[0082] S202: Parse the application data packet based on the target data packet structure to obtain various switch value change events.
[0083] S203. According to the target storage structure, each of the switch value change events is stored to obtain storage data.
[0084] The application data packet sent by the transmitter can be a whole data packet or a split sub-packet. If it is a whole data packet, the receiver can directly parse and store it after receiving it. Taking the case where the receiver receives a sub-packet as an example, the receiver receives the sub-packet, verifies the sub-packet, and restores the application data packet. Then, the application data packet is verified, the target switch position change event is extracted, and the switch position change event is stored. Among them, the packet header information is verified to confirm the correctness of the sub-packet. Specifically, it includes whether the station number and port number are correct, whether the sub-packet sequence number is continuous, whether the number of sub-packets is correct, whether the data segment CRC is correct, and whether the data header CRC is correct.
[0085] In the embodiment of the present invention, each switch quantity position change event is stored through a target storage structure, wherein the target storage structure is a ring storage structure, wherein the storing of each switch quantity position change event based on the target storage structure includes:
[0086] Obtaining the amount of valid data in the ring array corresponding to the ring storage structure;
[0087] Based on the amount of the valid data, determining whether the annular array is empty;
[0088] If yes, determining the tail array index of the ring array as the stored event number;
[0089] The switch value change event to be stored is stored in the storage unit pointed to by the event number, and the tail array index and the number of valid data are updated.
[0090] Correspondingly, the method further includes:
[0091] Based on the amount of valid data, determining whether the ring array is full;
[0092] If so, update the index of the first array and the number of valid data;
[0093] If not, determining the tail array index of the ring array as the stored event number;
[0094] The switch value change event to be stored is stored in the storage unit pointed to by the event number, and the tail array index and the number of valid data are updated.
[0095] See also Figure 6 , is a schematic diagram of a ring storage structure provided by an embodiment of the present invention. Each storage unit of the ring storage structure is a position change event. The DCS communication station extracts the position change events from the received application data packets in sequence and appends them to the end of the ring storage structure. The ring storage structure can store a maximum of 10,000 position change events. When the ring storage structure is full, the oldest data is overwritten. When reading from the ring storage area, always start reading from the head of the team. At the implementation level, the ring storage structure is defined as a structure array for storing events, and the control structure of the array is defined. The members of the control structure include the array subscript of the head element, the array subscript of the tail element, the number of events in the storage area, and the semaphore that controls multi-threaded exclusive access. When storing or reading the ring storage area, the software maintains the array subscripts and the number of events of the head and tail elements.
[0096] See also Figure 7 , a flowchart for storing a switch quantity change event provided by an embodiment of the present invention, including: if an event is stored, the number of valid data in the circular array is obtained; if the array is empty, the tail array index is used as the stored event number, the event is stored in the storage unit pointed to by the tail index, and the tail index is updated as follows: the tail index is increased by 1, the remainder is taken (array size), and the number of valid data in the array is increased by 1; if the array is not empty, it is determined whether the array is full, if so, the head index is updated as follows: the head index is increased by 1, the remainder is taken (array size), and the number of valid data in the array is reduced by 1; if the array is not full, the tail array index is used as the stored event number, the event is stored in the storage unit pointed to by the tail index, and the tail index is updated as follows: the tail index is increased by 1, the remainder is taken (array size), and the number of valid data in the array is increased by 1.
[0097] An event reading method is also provided in an embodiment of the present invention. In response to reading an event in a ring array corresponding to the ring storage structure, a switch quantity change event reading operation is performed using the head of the ring array as a reading starting point.
[0098] See also Figure 8, a flowchart of reading events from a ring storage area provided by an embodiment of the present invention, specifically includes: in response to reading an event, determining whether the array is empty, if not, taking out a data with the head index, and updating the head index to: the head index plus 1, and taking the remainder (array size).
[0099] In one embodiment of the present invention, a data transmission method between a receiving end and a corresponding server is also provided, including: in response to receiving a data acquisition request sent by a server, sending the stored data to the server based on a target communication protocol, wherein the target communication protocol includes a transport layer, a presentation layer and an application layer, the transport layer is used to transmit the stored data, the presentation layer is used to complete one or more of splitting, packaging, sending or response processing of data packets, and the protocol corresponding to the application layer includes a server request packet and a communication station response packet.
[0100] The communication links SNETA and SNETB between the communication station and the LEVEL2 server (see Figure 2 ) uses Gigabit Ethernet, full-duplex, and the communication protocol is implemented based on the UDP protocol. This communication protocol adds the presentation layer and application layer to the transport layer UDP protocol. Its corresponding relationship with the TCP / IP protocol model is as follows Fig. 9 As shown in the figure, this protocol is a request-response protocol. The LEVEL2 server initiates the request and the communication station responds to the request. For batch uploading of switch position changes, the LEVEL2 server periodically requests the communication station to upload. After receiving the request, the communication station reads its own ring storage area and uploads all switch position change events in the storage area. The presentation layer protocol mainly completes data unpacking, packaging, sending, and response processing, and realizes retransmission control after packet loss. The application layer protocol is divided into server request packets and communication station response packets.
[0101] The format of the server request packet is shown in Table 3.
[0102] Table 3
[0103]
[0104] The format of the communication station response packet is shown in Table 4.
[0105] Table 4
[0106]
[0107]
[0108] In the embodiment of the present invention, through the data processing method, the problem of transmitting a large number of historical switch quantity change events between the DCS system and the third-party system can be solved, and the problem of the DCS communication station storing the switch quantity change events can be solved. It also solves how to save the received numerous switch quantity change events for fast storage and query, and solves the problem of how the DCS communication station transmits different switch quantity change events to the DCS LEVEL2 server, so that the DCS LEVEL2 system can query, display the change events, and event alarm.
[0109] See also Fig.10 , is a schematic diagram of a structure of a data processing device applied to a sending end provided by an embodiment of the present invention, and the device may include:
[0110] An acquisition unit 301 is used to acquire at least one switch value change event to be transmitted;
[0111] The processing unit 302 is used to process each switch quantity change event based on the target switch quantity change structure to obtain at least one target switch quantity change event, wherein the target switch quantity change structure includes a point item identifier, a switch quantity change value and a change time;
[0112] A combining unit 303 is used to combine each of the target switch quantity change events based on a target data packet structure to obtain an application data packet, wherein the target data packet structure includes packet header information, a current value of the switch quantity, and a switch quantity change event set;
[0113] The sending unit 304 is used to send the application data packet to the receiving end.
[0114] Optionally, the sending unit is specifically configured to:
[0115] Based on a sending cycle, the application data packet is periodically sent to a receiving end.
[0116] In one implementation, the sending unit is specifically configured to:
[0117] Obtaining the byte length of the application data packet;
[0118] Based on the byte length, determining whether to split the application data packet;
[0119] If yes, split the application data packet to obtain sub-data packets, and send the sub-data packets to the receiving end.
[0120] Correspondingly, see Fig.11 , is a schematic diagram of a data processing device applied to a receiving end provided by an embodiment of the present invention, and the device may include:
[0121] The receiving unit 401 is used to receive an application data packet sent by a sending end, wherein the application data packet is a data packet obtained by the sending end after combining various target switch quantity change events based on a target data packet structure, and the target switch quantity change event is a switch quantity change event constructed based on a target switch quantity change structure;
[0122] A parsing unit 402, configured to parse the application data packet based on the target data packet structure to obtain each switch value change event;
[0123] The storage unit 403 is used to store each of the switch value change events according to the target storage structure to obtain storage data.
[0124] In one implementation, the target storage structure is a ring storage structure, wherein the storage unit is specifically used for:
[0125] Obtaining the amount of valid data in the ring array corresponding to the ring storage structure;
[0126] Based on the amount of the valid data, determining whether the annular array is empty;
[0127] If yes, determining the tail array index of the ring array as the stored event number;
[0128] The switch value change event to be stored is stored in the storage unit pointed to by the event number, and the tail array index and the number of valid data are updated.
[0129] Wherein, the storage reaction is also used for:
[0130] Based on the amount of valid data, determining whether the ring array is full;
[0131] If so, update the index of the first array and the number of valid data;
[0132] If not, determining the tail array index of the ring array as the stored event number;
[0133] The switch value change event to be stored is stored in the storage unit pointed to by the event number, and the tail array index and the number of valid data are updated.
[0134] In one embodiment, the device further comprises:
[0135] The reading unit is used for responding to reading the events in the ring array corresponding to the ring storage structure, and performing the switch quantity change event reading operation by taking the head of the ring array as the reading starting point.
[0136] Optionally, the device further comprises:
[0137] A transmission unit, used for sending the stored data to the server based on a target communication protocol in response to receiving a data acquisition request sent by the server, wherein the target communication protocol includes a transport layer, a presentation layer and an application layer, the transport layer is used to transmit the stored data, the presentation layer is used to complete one or more of the splitting, packaging, sending or response processing of the data packet, and the protocol corresponding to the application layer includes a server request packet and a communication station response packet.
[0138] The present invention provides a data processing device applied to a nuclear power plant, wherein a sending end can process each switch quantity change event based on a target switch quantity change structure to obtain at least one target switch quantity change event, and combine each of the target switch quantity change events based on a target data packet structure to obtain an application data packet. Upon receiving the application data packet, the receiving end can parse the data packet and store it based on a target storage structure, wherein the sending end can be a third-party system in a nuclear power plant, and the receiving end can be a DCS system of a nuclear power plant, which realizes combining switch quantity change events based on a target data packet structure and storing them based on a corresponding target storage structure, and can realize batch transmission of a large number of switch change events, thereby improving transmission efficiency and the convenience of data processing.
[0139] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0140] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data processing method applied to a nuclear power plant, characterized in that: Applied to the sending end, the method includes: Acquire at least one switch value change event to be transmitted; Processing each switch quantity change event based on a target switch quantity change structure to obtain at least one target switch quantity change event, wherein the target switch quantity change structure includes a point item identifier, a switch quantity change value, and a change time; Based on the target data packet structure, each of the target switch quantity change events is combined to obtain an application data packet, wherein the target data packet structure includes packet header information, the current value of the switch quantity and the switch quantity change event set; The application data packet is sent to a receiving end.
2. The method according to claim 1, characterized in that The step of sending the application data packet to a receiving end comprises: Based on a sending cycle, the application data packet is periodically sent to a receiving end.
3. The method according to claim 1, characterized in that The step of sending the application data packet to a receiving end comprises: Obtaining the byte length of the application data packet; Based on the byte length, determining whether to split the application data packet; If yes, split the application data packet to obtain sub-data packets, and send the sub-data packets to the receiving end.
4. A data processing method applied to a nuclear power plant, characterized in that: Applied to the receiving end, the method comprises: Receive an application data packet sent by a transmitting end, wherein the application data packet is a data packet obtained by the transmitting end after combining various target switch quantity position change events based on a target data packet structure, and the target switch quantity position change event is a switch quantity position change event constructed based on the target switch quantity position change structure; Parsing the application data packet based on the target data packet structure to obtain each switch value change event; Based on the target storage structure, each of the switch value change events is stored to obtain storage data; The target switch quantity position change structure includes a point item identifier, a switch quantity position change value and a position change time; The target data packet structure includes packet header information, current value of the switch quantity and switch quantity change event set; The target storage structure is a ring storage structure, wherein the storage of each switch value change event based on the target storage structure includes: Obtaining the amount of valid data in the ring array corresponding to the ring storage structure; Based on the amount of the valid data, determining whether the annular array is empty; If yes, determining the tail array index of the ring array as the stored event number; The switch value change event to be stored is stored in the storage unit pointed to by the event number, and the tail array index and the number of valid data are updated.
5. The method according to claim 4, characterized in that The method further comprises: Based on the amount of valid data, determining whether the ring array is full; If so, update the index of the first array and the number of valid data; If not, determining the tail array index of the ring array as the stored event number; The switch value change event to be stored is stored in the storage unit pointed to by the event number, and the tail array index and the number of valid data are updated.
6. The method according to claim 4, characterized in that The method further comprises: In response to reading an event in a ring array corresponding to the ring storage structure, a switch quantity change event reading operation is performed by taking the head of the ring array as a reading starting point.
7. The method according to claim 4, characterized in that The method further comprises: In response to receiving a data acquisition request sent by a server, the stored data is sent to the server based on a target communication protocol, wherein the target communication protocol includes a transport layer, a presentation layer and an application layer, the transport layer is used to transmit the stored data, the presentation layer is used to complete one or more of the splitting, assembly, sending or response processing of the data packet, and the protocol corresponding to the application layer includes a server request packet and a communication station response packet.
8. A data processing device used in a nuclear power plant, characterized in that: Applied to a transmitting end, the device comprises: An acquisition unit, used for acquiring at least one switch value change event to be transmitted; A processing unit, used for processing each switch quantity change event based on a target switch quantity change structure to obtain at least one target switch quantity change event, wherein the target switch quantity change structure includes a point item identifier, a switch quantity change value and a change time; A combining unit, used for combining each of the target switch quantity position change events based on a target data packet structure to obtain an application data packet, wherein the target data packet structure includes packet header information, a current value of the switch quantity, and a switch quantity position change event set; The sending unit is used to send the application data packet to the receiving end.
9. A data processing device used in a nuclear power plant, characterized in that: Applied to a receiving end, the device comprises: A receiving unit, configured to receive an application data packet sent by a transmitting end, wherein the application data packet is a data packet obtained by combining various target switch quantity position change events based on a target data packet structure, and the target switch quantity position change event is a switch quantity position change event constructed based on a target switch quantity position change structure; A parsing unit, used for parsing the application data packet based on the target data packet structure to obtain each switch value change event; A storage unit, used for storing each of the switch value change events based on a target storage structure to obtain storage data; The target switch quantity position change structure includes a point item identifier, a switch quantity position change value and a position change time; The target data packet structure includes packet header information, current value of the switch quantity and switch quantity change event set; The target storage structure is a ring storage structure, wherein the storage of each switch value change event based on the target storage structure includes: Obtaining the amount of valid data in the ring array corresponding to the ring storage structure; Based on the amount of the valid data, determining whether the annular array is empty; If yes, determining the tail array index of the ring array as the stored event number; The switch value change event to be stored is stored in the storage unit pointed to by the event number, and the tail array index and the number of valid data are updated.
Citation Information
Patent Citations
Switching value input and output batch management method under multi-task real-time operating system
CN112231082A
Data processing method, related device, equipment and storage medium
CN112506683A
Data processing method and device and storage medium
CN112737799A