Event sequence record processing method, device, equipment, medium and program product

By employing a dual-buffer design and independent thread priority processing, the problem of timely storage of sequential records of large amounts of information events is solved, ensuring the stability of industrial process control and the completeness of fault diagnosis.

CN121478828APending Publication Date: 2026-02-06NR ENG CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511628711.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-07
Publication Date
2026-02-06

AI Technical Summary

Technical Problem

Existing technologies struggle to store and upload large amounts of information to a host computer in a timely manner when dealing with sequential recording of events, leading to information loss and system resource consumption, which in turn affects the stability of industrial processes and the accuracy of fault diagnosis.

Method used

A dual-buffer design is adopted, with the first buffer storing critical information and the second buffer supplementing extended information. The critical information is stored and sent in a timely manner through independent thread priority processing.

Benefits of technology

It enables rapid and complete storage of critical information, avoids information loss, improves fault diagnosis support and industrial process stability, and reduces resource interference under high load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121478828A_ABST
    Figure CN121478828A_ABST
Patent Text Reader

Abstract

The invention discloses an event sequence record processing method, device and equipment, a medium and a program product, and belongs to the field of industrial process control. The problem that in the prior art, a large-information-amount event sequence record cannot be stored in time and uploaded to an upper computer is solved. The method comprises the following steps: receiving displacement information sent by a board card, supplementing first information, generating a first event sequence record comprising the displacement information and the first information, and storing the first event sequence record in a first cache region; extracting a first event sequence record from the first cache region, supplementing second information, generating a second event sequence record comprising the first event sequence record and the second information, and storing the second event sequence record in a second cache region; and extracting a second event sequence record from the second cache region, and distributing the second event sequence record to the upper computer. According to the method, the processing speed of event sequence recording can be greatly improved through the design of the double cache regions, the recording integrity is powerfully ensured, and data omission is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to a sequence of event recording processing method, device, equipment, medium and program product, and belongs to the field of industrial process control. BACKGROUND

[0002] In the field of industrial process control, the controller communicates with the board card below and the host computer above. The controller needs to monitor some important on-off signals in real time. When these on-off signals change position, the controller will first receive the signal channel number, current state value and position change time and other information sent by the board card, add auxiliary information related to the signal, form a sequence of event (SOE, Sequence Of Event), and send it to the host computer, so that when the field device fails, the host computer can know the accurate sequence and time of the related event, which is crucial for fault diagnosis and system analysis. Generally speaking, in order to enable the host computer to obtain as comprehensive information as possible, the sequence of event sent by the controller will add information such as textual description of the signal, KKS code, recording level, recording type, etc. The controller usually uses a single buffer area to process the sequence of event, that is, the controller receives the information sent by the board card, forms the sequence of event, and then stores it in the buffer area. When the subsequent sequence of event needs to be sent to the host computer, the sequence of event is extracted from the buffer area. Some controllers, in order to ensure the timeliness of processing, only contain a small amount of information in the sequence of event, which is not conducive to the fault diagnosis and system analysis of the host computer. Some controllers, in order to facilitate diagnosis, contain a wealth of information in the sequence of event, but when the field device fails seriously, a large number of on-off signals change position in a short period of time, and then a large amount of information of the sequence of event is generated and needs to be sent to the host computer. In the face of such a situation of instantaneous large amount of information of the sequence of event, the controller not only has difficulty in processing all the information in time, resulting in the loss of part of the sequence of event and the inability to ensure the integrity of the record, but also occupies a large amount of system resources due to the sharp increase in processing load, thereby interfering with the normal control task of the controller and seriously affecting the stable operation of the industrial process and the accuracy of fault diagnosis. SUMMARY

[0003] The purpose of the present application is to provide a sequence of event recording processing method, device, equipment, medium and program product, which stores key information and supplementary extended information in two buffer areas respectively, can meet the priority query requirements of the host computer event processing and can expand additional information requirements, and can overcome the problem that the prior art cannot store large amount of information of the sequence of event in time and send it to the host computer.

[0004] To solve the above technical problems, the present application is realized by the following technical scheme.

[0005] In a first aspect, the present application provides an event sequence record processing method, which is executed by a processor and comprises: acquiring displacement information sent by a board card, supplementing first information and generating a first event comprising the displacement information and the first information; recording a sequence of the first event and storing the first event sequence record into a first cache area; extracting the first event sequence record from the first cache area, supplementing second information and generating a second event comprising the first event sequence record and the second information; recording a sequence of the second event and storing the second event sequence record into a second cache area; extracting the second event sequence record from the second cache area and distributing it to a host computer.

[0006] Optionally, the board card comprises a switch input board card or a switch output board card, and the board card communicates with the processor to output the displacement information to the processor. The displacement information comprises a signal channel number, a current state value and a displacement time. The first information comprises necessary information required by the host computer for analyzing the event sequence record, and is at least one or any combination of a station number, a branch number, a module number, a channel number and a channel type. The second information comprises extended information required by the host computer for analyzing the event sequence record, and is at least one or any combination of a KKS code, a text description, a record item, a page number, an index in a page, a feature word, a record group, a record level, a record type.

[0007] Optionally, the first cache area and the second cache area both adopt a circular queue form to store the event sequence record.

[0008] Optionally, an upper limit of a storage capacity of the second cache area is higher than an upper limit of a storage capacity of the first cache area.

[0009] Optionally, the host computer is internally provided with software, and the software comprises at least one or any combination of analysis software and monitoring software, which is used for subsequent fault diagnosis and system analysis according to the second event sequence record distributed by the second cache area.

[0010] In a second aspect, the present application provides an event sequence record processing device, which comprises: an acquisition module, an extension module and a sending module; The acquisition module is used for acquiring displacement information sent by a board card, supplementing first information and generating a first event comprising the displacement information and the first information; recording a sequence of the first event and storing the first event sequence record into a first cache area. The extension module is configured to extract the first event sequence record from the first cache area, supplement the second information, and generate a second event comprising the first event sequence record and the second information; record the sequence of the second event and store the second event sequence record into the second cache area. The uploading module is configured to extract the second event sequence record from the second cache area and distribute to the upper computer.

[0011] Optionally, the acquisition module, the extension module and the uploading module respectively adopt three independent threads with different priorities to execute the associated tasks; wherein the execution priority of the acquisition module is higher than that of the extension module, and the execution priority of the extension module is higher than that of the uploading module.

[0012] In a third aspect, the present application provides a computer program product comprising a program or instructions, which when executed on a computer, causes the event sequence record processing method as described in the first aspect to be executed.

[0013] In a fourth aspect, the present application provides a non-transitory computer readable storage medium storing computer readable instructions, which when executed by at least one processor, causes the event sequence record processing method as described in the first aspect to be executed.

[0014] In a fifth aspect, the present application provides an electronic device comprising at least one non-transitory computer readable storage medium and at least one processor, wherein the non-transitory computer readable storage medium stores executable instructions, which when executed by the processor, causes the processor to execute the event sequence record processing method as described in the first aspect.

[0015] Compared with the prior art, the present application has the following beneficial effects: 1. By storing key information in the first cache area and supplementing and extending information in the second cache area, the priority query requirement of the upper computer event processing can be met, and the additional information requirement can also be met; compared with the prior art, the reasonable collocation of the double cache can overcome the problem that the prior art cannot store large amount of information event sequence records in time and upload them to the upper computer, and at the same time, the extended information required by the upper computer is enriched, which facilitates subsequent fault diagnosis and system analysis.

[0016] 2. The key information only covers a small amount of information such as signal channel number, current state value and displacement time, and is assigned a higher execution priority, which can greatly improve the processing speed of the event sequence record and effectively ensure the completeness of the record. At the same time, it can effectively avoid interference to other high-priority tasks under high load conditions, and ensure the core stability of the industrial process control.

[0017] 3、In summary, the reasonable collocation and cooperative work of the double buffer areas realize the complementary advantages in function: on the one hand, the key information of the event sequence record can be stored at an extremely fast speed, and any omission can be eliminated; on the other hand, the upper computer can be provided with rich and detailed extended information, and strong support can be provided for subsequent fault diagnosis and system analysis. On the basis of guaranteeing the stability of the industrial process control, the overall performance and practicability of the system are further improved. BRIEF DESCRIPTION OF DRAWINGS

[0018] Figure 1 Fig. 1 shows a flow chart of the event sequence record processing method of the embodiment; Figure 2 Fig. 2 shows a structure diagram of the event sequence record processing device of the embodiment; Figure 3 Fig. 3 shows a structure diagram of the event sequence record processing equipment of the embodiment. DETAILED DESCRIPTION

[0019] The application will be further described below in combination with the drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the application, and cannot be used to limit the protection scope of the application. EMBODIMENT

[0020] The embodiment provides an event sequence record processing method, the processing method is executed by a processor, and the processing method comprises the following steps: Step 1, receiving displacement information sent by a board card, supplementing first information, generating first event sequence record comprising the displacement information and the first information, and storing the first event sequence record into a first buffer area; Step 2, extracting the first event sequence record from the first buffer area, supplementing second information, generating second event sequence record comprising the first event sequence record and the second information, and storing the second event sequence record into a second buffer area; Step 3, extracting the second event sequence record from the second buffer area, and distributing the second event sequence record to upper computer software.

[0021] The embodiment has the advantages that Figure 1 As shown in the figure, the first buffer area is used to store key information, and the second buffer area is used to supplement extended information, which can meet the specific needs of the upper computer for event processing priority query, and can also expand to meet the additional information needs of the upper computer. The cooperative work of the double buffer areas effectively balances the efficiency and comprehensiveness of information processing, and provides strong support for the efficient operation of the upper computer.

[0022] In some possible embodiments, the board card communicates with the processor through a communication interface, the board card comprises a switching value input board card or a switching value output board card, and the board card communicates with the processor to output displacement information to the processor; The displacement information comprises a signal channel number, a current state value and a displacement time. The first information includes necessary information required by the host computer for analyzing the event sequence record, at least one of or any combination of station number, branch number, module number, channel number, and channel type; The second information includes extended information required by the host computer for analyzing the event sequence record, at least one of or any combination of KKS code, text description, record item, page number, in-page index, feature word, record group, record level, and record type.

[0023] In some possible embodiments, the first cache area and the second cache area both adopt a circular queue form to store the event sequence records. The first cache area in this embodiment adopts a circular queue to implement one queue element corresponding to one first event sequence record, and the upper limit of the first event sequence records that can be cached can be set and adjusted according to actual conditions. When the queue is full, the new record is directly discarded without covering the old record, which is used to ensure the integrity of the previous record. Under the same condition, the second cache area also adopts a circular queue to implement one queue element corresponding to one first event sequence record, and the upper limit of the second event sequence records that can be cached can be set and adjusted according to actual conditions. When the queue is full, the new record is directly discarded without covering the old record, which is used to ensure the integrity of the previous record.

[0024] In some possible embodiments, the upper limit of the storage capacity of the second cache area is higher than the upper limit of the storage capacity of the first cache area. The number of the first event sequence records extracted from the first cache area each time in this embodiment can be set and adjusted according to actual conditions. Similarly, the number of the second event sequence records extracted from the second cache area each time can also be set and adjusted according to actual conditions.

[0025] In some possible embodiments, the host computer software includes at least one of or any combination of analysis software and monitoring software, and can perform fault diagnosis and system analysis through the second event sequence records and the extended information distributed by the second cache area. Embodiment

[0026] The event sequence record processing device in this embodiment includes: Figure 2 as shown in the figure, which includes: an acquisition module, an extension module, and an uploading module; The acquisition module is used to acquire the displacement information uploaded by the board card, supplement the first information, and generate a first event including the displacement information and the first information; record the sequence of the first event and store the first event sequence record to the first cache area; The extension module is used to extract the first event sequence record from the first cache area, supplement the second information, and generate a second event including the first event sequence record and the second information; record the sequence of the second event and store the second event sequence record to the second cache area; The sending module is configured to extract the second event sequence record from the second cache area and distribute it to the host computer.

[0027] In some possible embodiments, the acquisition module, the extension module and the sending module are independently executed in threads of three different priorities, respectively, wherein the execution priority of the acquisition module is higher than that of the extension module, and the execution priority of the extension module is higher than that of the sending module. Specifically, there may be a case that a step with a higher priority is continuously executed for multiple times, and other steps cannot be executed during this period. Specifically, assuming that the acquisition module still receives new displacement information sent by the board after completing a task, the task will be executed again, instead of the task of the extension module. Therefore, the application can ensure that more critical information is processed preferentially. Embodiments

[0028] The embodiment provides a computer program product, comprising a program or instructions, which, when executed on a computer, cause an event sequence record processing method to be executed as follows, the method comprising: acquiring displacement information sent by a board, supplementing first information and generating a first event comprising the displacement information and the first information; recording the sequence of the first event and storing the first event sequence record into a first cache area; extracting the first event sequence record from the first cache area, supplementing second information and generating a second event comprising the first event sequence record and the second information; recording the sequence of the second event and storing the second event sequence record into a second cache area; extracting the second event sequence record from the second cache area and distributing it to a host computer. Embodiments

[0029] The embodiment provides a non-transitory computer-readable storage medium, which stores computer-readable instructions, when executed by at least one processor, cause an event sequence record processing method to be executed as follows, the method comprising: acquiring displacement information sent by a board, supplementing first information and generating a first event comprising the displacement information and the first information; recording the sequence of the first event and storing the first event sequence record into a first cache area; extracting the first event sequence record from the first cache area, supplementing second information and generating a second event comprising the first event sequence record and the second information; recording the sequence of the second event and storing the second event sequence record into a second cache area; extracting the second event sequence record from the second cache area and distributing it to a host computer. Embodiments

[0030] The embodiment provides an electronic device, such as Figure 3 As shown, comprising: at least one non-transitory computer readable storage medium and at least one processor, wherein the non-transitory computer readable storage medium stores executable instructions, the executable instructions are executed by the processor to make the processor execute the event sequence recording processing method as follows, the method comprises: Obtaining the displacement information sent by the board card, supplementing the first information and generating a first event comprising the displacement information and the first information; Recording the sequence of the first event and storing the first event sequence record into a first cache area; Extracting the first event sequence record from the first cache area, supplementing the second information and generating a second event comprising the first event sequence record and the second information; Recording the sequence of the second event and storing the second event sequence record into a second cache area; Extracting the second event sequence record from the second cache area and distributing to the upper computer.

[0031] In summary, the application stores key information in the first cache area and supplements and extends information in the second cache area, which can meet the priority query requirement of the upper computer event processing and the additional information requirement; compared with the prior art, the reasonable collocation of the double cache can overcome the problem that the prior art cannot store large information quantity event sequence records in time and send to the upper computer, and at the same time, the extended information required by the upper computer is enriched, which facilitates subsequent fault diagnosis and system analysis. The key information only covers a small amount of information such as signal channel number, current state value and displacement time, and is given a higher execution priority, which can greatly improve the processing speed of the event sequence record and effectively ensure the completeness of the record. At the same time, it can effectively avoid interference to other high-priority tasks under high load, and ensure the core stability of industrial process control.

[0032] Finally, the reasonable collocation and collaborative work of the double cache areas realize the complementary advantages in function: on the one hand, the key information of the event sequence record can be stored at a very fast speed, and any omission can be avoided; on the other hand, the upper computer can be provided with rich and detailed extended information, which can provide strong support for subsequent fault diagnosis and system analysis. On the basis of ensuring the stability of industrial process control, the design further improves the overall performance and practicability of the system.

[0033] Those skilled in the art will appreciate that embodiments of the present application can be readily used as software, hardware, or a combination of software and hardware. In a software embodiment, the methods can be tangibly embodied in a machine-readable storage medium having stored thereon instructions that can be used to program a computer to perform any of the methods. The software implementation can be initialized by loading and executing a set of instructions arranged to perform one of the methods into the computer's memory. Alternatively, hard-wired circuitry can be used in place of, or in combination with, software instructions. Thus, the

[0034] The present application is described in relation to flow diagrams and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It is understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagrams and / or block diagrams block or blocks. Figure 1 Figure 1

[0035] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flow diagrams and / or block diagrams block or blocks. Figure 1 Figure 1

[0036] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flow diagrams and / or block diagrams block or blocks. Figure 1 Figure 1

[0037] Embodiments of the present application have been described above in connection with the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative, and not restrictive, and many modifications can be made by those skilled in the art without departing from the spirit and scope of the present application, which are defined by the appended claims.​​​​​​

Claims

1. A method for processing sequential event recording, characterized in that, The processing method is executed by a processor and includes: Obtain the displacement information sent from the board, supplement the first information, and generate a first event including the displacement information and the first information; Record the order of the first events and store the order of the first events in the first buffer; Extract the first event sequence record from the first buffer, supplement it with second information, and generate a second event that includes the first event sequence record and the second information; Record the order of the second event and store the order of the second event in the second buffer; Extract the second event sequence record from the second buffer and distribute it to the host computer.

2. The event sequence recording processing method according to claim 1, characterized in that, The board includes a digital input board or a digital output board, and the board communicates with the processor to output position change information to the processor; The displacement information includes the signal channel number, the current status value, and the displacement time; The first information includes the necessary information required for the host computer to analyze the event sequence record, which is at least one or any combination of station number, branch number, module number, channel number, and channel type; The second information includes extended information required by the host computer to analyze the event sequence record, which is at least one or any combination of KKS encoding, text description, record item, page number, page index, feature word, record group, record level, and record type.

3. The event sequence recording processing method according to claim 1, characterized in that, The host computer has built-in software, which includes at least one or any combination of analysis software and monitoring software, for subsequent fault diagnosis and system analysis based on the second event sequence record issued by the second cache.

4. The event sequence recording processing method according to claim 1, characterized in that, Both the first and second buffers use a circular queue to store the sequential records of events.

5. The event sequence recording processing method according to claim 1, characterized in that, The storage capacity limit of the second cache is higher than that of the first cache.

6. An event sequence recording and processing device, characterized in that, include: Acquisition module, extension module, and upload module; The acquisition module is used to acquire the displacement information sent by the board, supplement the first information and generate a first event including the displacement information and the first information; record the order of the first event and store the first event order record in the first buffer area; The extended module is used to extract the first event sequence record from the first buffer, supplement the second information and generate a second event including the first event sequence record and the second information; record the order of the second event and store the second event sequence record in the second buffer; The upload module is used to extract the second event sequence record from the second buffer and distribute it to the host computer.

7. The event sequence recording and processing apparatus according to claim 7, characterized in that, The acquisition module, the extension module, and the upload module each use three independent threads with different priorities to execute their associated tasks; wherein, the execution priority of the acquisition module is higher than that of the extension module, and the execution priority of the extension module is higher than that of the upload module.

8. A computer program product comprising a program or instructions, characterized in that, When the program or instructions are executed on a computer, the event sequence recording processing method as described in claims 1-5 is executed.

9. A non-transitory computer-readable storage medium, characterized in that it stores... There are computer-readable instructions that, when executed by at least one processor, cause the event sequence recording processing method as described in claims 1-5 to be executed.

10. An electronic device, characterized in that, include: The invention includes at least one non-transitory computer-readable storage medium and at least one processor, wherein the non-transitory computer-readable storage medium stores executable instructions that, when executed by the processor, cause the processor to perform the event sequence recording processing method as described in claims 1-5.