Industrial equipment log data processing method and device, equipment and medium

By converting the operating status information of industrial equipment into abbreviation encoding and adopting asynchronous loading and batch processing mechanisms, the problems of slow data loading and interface lag in industrial equipment log data processing are solved, and data processing efficiency and user experience are improved.

CN119689922AActive Publication Date: 2025-03-25CETC BEIJING ELECTRONICS EQUIP

Patent Information

Application Number
CN202411616816.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-03-25
Estimated Expiration
2044-11-13

AI Technical Summary

Technical Problem

When processing large amounts of industrial equipment log data, the prior art causes slow data loading and user interface to stutter, affecting system performance and user experience.

Method used

The operating status information of industrial equipment is converted into abbreviated encoding through predefined encoding rules, and log records are generated in combination with timestamps and unique serial numbers. The mechanism of asynchronous loading and batch processing is adopted. First, several log records are loaded, and the remaining log records are loaded in the background, parsing and displaying them in batches.

Benefits of technology

It significantly reduces the storage and transmission of log data, improves the storage efficiency and data reading speed of the database, avoids user interface lag, and improves data loading speed and user interface response performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119689922A_ABST
    Figure CN119689922A_ABST
Patent Text Reader

Abstract

The invention discloses an industrial equipment log data processing method and device, equipment and a medium, belongs to the technical field of log data processing, and aims to solve the problems of slow loading and interface jamming caused by excessive historical log records in the prior art. According to the method, equipment operation state information is coded and compressed through a predefined coding rule, the data storage and transmission amount is reduced, and efficient reading and displaying of log records are achieved by adopting an asynchronous loading and batch processing mechanism. The log records with the initial set number are loaded at first, remaining data are continuously read in the background, and the jamming phenomenon of a user interface is avoided. And meanwhile, the log record is analyzed through a predefined decoding rule, and the operation state of the equipment is displayed in batches, so that the readability and the processing efficiency of the data are improved. According to the method, the management and application level of log data is effectively improved, powerful support is provided for operation and maintenance and fault diagnosis of industrial equipment, and the method has high practical value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of log data processing, and more specifically, to an industrial equipment log data processing method, device, equipment and medium. Background Art

[0002] With the rapid development of industrial automation and intelligent manufacturing technology, the operation status monitoring and data management of industrial equipment have become key links to ensure production efficiency and equipment reliability. Industrial equipment will generate a large amount of operation status information during long-term operation. This information records every operation and state change of the equipment, which is of great significance for equipment maintenance, fault diagnosis and production optimization. In order to effectively manage and analyze these massive data, log records are usually used to store and process the operation status information of the equipment, so as to trace and analyze the historical status of the equipment.

[0003] However, when there are too many historical log records stored in the database, the existing log data processing methods expose obvious deficiencies. Due to the large amount of log data, it often takes a long time to read this data, resulting in slow data loading. This delay not only affects the overall performance of the system, but also increases the waiting time for users and reduces user satisfaction. In addition, when the interface refreshes a large amount of data at a time, it will become stuck due to the heavy processing burden, which seriously affects the user's operating experience and work efficiency. Especially for industrial scenarios that require real-time monitoring of equipment status, this kind of stuck and delay problem is more prominent, which may lead to the omission and misjudgment of key information.

[0004] In order to solve the above problems, some optimization measures have been tried in the prior art, but the effect is limited. For example, the data reading speed is increased by increasing the hardware configuration of the database server, but this will significantly increase the cost and complexity of the system. In addition, some methods use data paging technology, but when processing a large number of log records, the paging mechanism still cannot completely solve the problems of slow data loading and interface jamming. Therefore, there is an urgent need for a more efficient and optimized industrial equipment log data processing method that can significantly improve the data loading speed and the responsiveness of the user interface while ensuring data integrity and accuracy, so as to meet the needs of modern industrial equipment management. Summary of the invention

[0005] In order to overcome the technical problems existing in the above prior art, the present invention provides an industrial equipment log data processing method, device, equipment and medium.

[0006] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0007] A method for processing industrial equipment log data comprises the following steps:

[0008] Obtain operating status information from industrial equipment;

[0009] According to a predefined coding rule, the operation status information is converted into an abbreviated code;

[0010] Combining the abbreviated code with a timestamp and a unique sequence number to generate a log record;

[0011] Storing the log records in a preset database;

[0012] Reading a first predetermined number of the first several log records from the preset database and loading them into the memory, and simultaneously starting an independent thread in the background to read the remaining log records except the first predetermined number of the first several log records from the preset database;

[0013] According to a predefined decoding rule, the first predetermined number of the log records are parsed into initial operation status information, and the parsed initial operation status information is displayed in batches on the user interface in a sequential order, and the number of the initial operation status information in each batch is a second predetermined number;

[0014] Read the remaining log records and load all the remaining log records into the memory, and parse all the remaining log records into subsequent running status information according to a predefined decoding rule;

[0015] After the initial operation status information is displayed on the user interface, the subsequent operation status information that has been parsed is displayed on the user interface in batches in chronological order, and the number of the subsequent operation status information in each batch is a second predetermined number.

[0016] Further, the step of obtaining the operating status information from the industrial equipment includes:

[0017] Establish a connection with the industrial equipment through a network cable, serial interface or PCIE expansion card to obtain the operating status information of the industrial equipment in real time. The operating status information includes the current operating status and parameter values ​​of the industrial equipment. The parameter values ​​include the low-magnification recognition result score, the high-magnification recognition result score and the alignment time.

[0018] Further, the step of converting the running status information into an abbreviated code according to a predefined coding rule includes:

[0019] After obtaining the operating status information of the industrial equipment, preprocessing the operating status information to extract key information therein; wherein the preprocessing includes removing redundant information from the operating status information and extracting key information;

[0020] According to a predefined mapping table, convert the text description in the running status information into corresponding English abbreviations;

[0021] The English abbreviation is combined with the corresponding parameter value to form an abbreviation code in the form of a character string; wherein the parameter value includes a low-magnification recognition result score, a high-magnification recognition result score and alignment time.

[0022] Further, the step of combining the abbreviated code with the timestamp and the unique serial number to generate a log record includes:

[0023] Obtaining the generation time of the running status information corresponding to each of the abbreviated codes, and converting it into a timestamp format;

[0024] A unique serial number based on a time series is allocated to each of the abbreviated codes to ensure the uniqueness and traceability of the operating status information corresponding to each of the abbreviated codes.

[0025] Furthermore, in the process of storing the log records in the preset database, the storage operation is recorded to generate a storage log;

[0026] The storage log is used to record the storage time, data volume and storage status of each data storage.

[0027] Further, after the operation status information is converted into the abbreviated code, the abbreviated code obtained by the conversion is verified, and the verification step includes:

[0028] Performing an integrity check on the abbreviated code obtained by conversion, wherein the integrity check determines whether data loss occurs during the conversion process by calculating a checksum of the abbreviated code;

[0029] A flag indicating that the abbreviation code has not been verified is added to the abbreviation code where data loss occurs. The flag indicating that the abbreviation code has not been verified is a Boolean value or a preset confirmation code, which is used to indicate that the abbreviation code has not been verified.

[0030] Further, the log records stored in the preset database are encrypted, and the encryption step includes:

[0031] Generate an encryption key, combine the generated encryption key with the log record, perform encryption operation on each data unit of the log record one by one, and generate encrypted ciphertext data;

[0032] After the encryption is completed, the encrypted ciphertext data is stored together with the index information of the encryption key in the preset database;

[0033] The steps of reading the ciphertext data from the preset database and decrypting the ciphertext data include:

[0034] Obtaining a corresponding encryption key according to the index information of the stored encryption key;

[0035] Based on the encryption key, the ciphertext data is reversely operated to restore the original content of each data unit one by one, and the log record before encryption is reconstructed.

[0036] An industrial equipment log data processing device, the industrial equipment log data processing device comprising:

[0037] An acquisition module, used to acquire operation status information from industrial equipment;

[0038] An encoding module, used for converting the operation status information into an abbreviated code according to a predefined encoding rule;

[0039] A log generation module, used to combine the abbreviated code with a timestamp and a unique sequence number to generate a log record;

[0040] A storage module, used for storing the log records in a preset database;

[0041] A reading module is used to read the first predetermined number of the log records from the preset database and load them into the memory, and at the same time start an independent thread in the background to read the remaining log records except the first predetermined number of the log records from the preset database;

[0042] A parsing module, configured to parse the first predetermined number of the first plurality of log records into initial operation status information according to a predefined decoding rule; the parsing module is further configured to parse all the remaining log records into subsequent operation status information according to the predefined decoding rule after the reading module has finished reading the remaining log records and loaded all the remaining log records into a memory;

[0043] The display module is used to display the initial running status information that has been parsed in batches on the user interface in a sequence of precedence, and the number of the initial running status information in each batch is a second predetermined number; the display module is also used to display the subsequent running status information that has been parsed in batches on the user interface in a sequence of precedence after the initial running status information is displayed on the user interface, and the number of the subsequent running status information in each batch is the second predetermined number.

[0044] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the aforementioned industrial equipment log data processing method when executing the computer program.

[0045] A computer-readable storage medium stores a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the aforementioned industrial equipment log data processing method.

[0046] Compared with the prior art, the beneficial effects of the technical solution of the present invention include the following aspects:

[0047] First, the present invention converts the operating status information of industrial equipment into abbreviated codes through predefined coding rules, which significantly reduces the storage and transmission volume of log data; this coding mechanism effectively improves the storage efficiency and data reading speed of the database, reduces the consumption of system resources, and thus alleviates the problem of slow loading caused by the huge amount of log data;

[0048] Secondly, the present invention adopts the mechanism of asynchronous loading and batch processing. When reading log records, the first predetermined number of log records are first loaded into the memory, and the remaining log records are read in the background at the same time. This method avoids the freezing of the user interface while waiting for data to be loaded, and ensures the smoothness and response speed of the user interface. In addition, the batch parsing and display of log records further optimizes the user experience, so that a large amount of data can be gradually presented without affecting the system performance.

[0049] Finally, the present invention parses log records through predefined decoding rules, and displays the initial and subsequent operating status information in batches, ensuring the readability and practicality of the data; this mechanism not only improves the processing efficiency of log data, but also provides users with a more intuitive and orderly information display method, which helps to quickly identify and analyze changes in equipment status, and improves the accuracy and efficiency of equipment operation and maintenance and fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 is a flow chart of an industrial equipment log data processing method provided in one embodiment of the present application;

[0052] Figure 2 is a system block diagram of an industrial equipment log data processing device provided in one embodiment of the present application;

[0053] Figure 3is a schematic diagram of the internal structure of an electronic device provided in one embodiment of the present application;

[0054] Description of the marks in the figure: 1. Acquisition module; 2. Encoding module; 3. Log generation module; 4. Storage module; 5. Reading module; 6. Parsing module; 7. Display module. DETAILED DESCRIPTION

[0055] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0056] Embodiment 1:

[0057] like Figure 1 As shown, the present invention provides a technical solution:

[0058] A method for processing industrial equipment log data comprises the following steps:

[0059] Obtain operating status information from industrial equipment;

[0060] According to a predefined coding rule, the operation status information is converted into an abbreviated code;

[0061] Combining the abbreviated code with a timestamp and a unique sequence number to generate a log record;

[0062] Storing the log records in a preset database;

[0063] Reading a first predetermined number of the first several log records from the preset database and loading them into the memory, and simultaneously starting an independent thread in the background to read the remaining log records except the first predetermined number of the first several log records from the preset database;

[0064] According to a predefined decoding rule, the first predetermined number of the log records are parsed into initial operation status information, and the parsed initial operation status information is displayed in batches on the user interface in a sequential order, and the number of the initial operation status information in each batch is a second predetermined number;

[0065] Read the remaining log records and load all the remaining log records into the memory, and parse all the remaining log records into subsequent running status information according to a predefined decoding rule;

[0066] After the initial operation status information is displayed on the user interface, the subsequent operation status information that has been parsed is displayed on the user interface in batches in chronological order, and the number of the subsequent operation status information in each batch is a second predetermined number.

[0067] In this embodiment, the operation status information of the industrial equipment is converted into abbreviated codes through predefined coding rules, which significantly reduces the storage and transmission volume of log data; this coding mechanism effectively improves the storage efficiency and data reading speed of the database, reduces the consumption of system resources, and thus alleviates the slow loading problem caused by the huge amount of log data; an asynchronous loading and batch processing mechanism is also adopted. When reading log records, the first predetermined number of log records are first loaded into the memory, and the remaining log records are read in the background at the same time; this method avoids the freezing phenomenon of the user interface while waiting for data to be loaded, and ensures the smoothness and response speed of the user interface; in addition, the batch parsing and display of log records further optimizes the user experience, so that a large amount of data can be gradually presented without affecting the system performance; the log records are parsed through predefined decoding rules, and the initial and subsequent operation status information are displayed in batches, ensuring the readability and practicality of the data; this mechanism not only improves the processing efficiency of log data, but also provides users with a more intuitive and orderly information display method, which helps to quickly identify and analyze equipment status changes, and improves the accuracy and efficiency of equipment operation and maintenance and fault diagnosis.

[0068] Embodiment 2:

[0069] Based on Example 1, the step of obtaining the operating status information from the industrial equipment includes:

[0070] Establish a connection with the industrial equipment through a network cable, serial interface or PCIE expansion card to obtain the operating status information of the industrial equipment in real time. The operating status information includes the current operating status and parameter values ​​of the industrial equipment. The parameter values ​​include the low-magnification recognition result score, the high-magnification recognition result score and the alignment time.

[0071] Furthermore, the first predetermined quantity is 2000, and the second predetermined quantity is 20.

[0072] Furthermore, the step of converting the running status information into an abbreviated code according to a predefined coding rule includes:

[0073] After obtaining the operating status information of the industrial equipment, preprocessing the operating status information to extract key information therein; wherein the preprocessing includes removing redundant information from the operating status information and extracting key information;

[0074] According to a predefined mapping table, convert the text description in the running status information into corresponding English abbreviations;

[0075] The English abbreviation is combined with the corresponding parameter value to form an abbreviation code in the form of a character string; wherein the parameter value includes a low-magnification recognition result score, a high-magnification recognition result score and alignment time.

[0076] Further, the step of combining the abbreviated code with the timestamp and the unique serial number to generate a log record includes:

[0077] Obtaining the generation time of the running status information corresponding to each of the abbreviated codes, and converting it into a timestamp format;

[0078] A unique serial number based on a time series is allocated to each of the abbreviated codes to ensure the uniqueness and traceability of the operating status information corresponding to each of the abbreviated codes.

[0079] Furthermore, in the process of storing the log records in the preset database, the storage operation is recorded to generate a storage log;

[0080] The storage log is used to record the storage time, data volume and storage status of each data storage.

[0081] Further, after the operation status information is converted into the abbreviated code, the abbreviated code obtained by the conversion is verified, and the verification step includes:

[0082] Performing an integrity check on the abbreviated code obtained by conversion, wherein the integrity check determines whether data loss occurs during the conversion process by calculating a checksum of the abbreviated code;

[0083] A flag indicating that the abbreviation code has not been verified is added to the abbreviation code where data loss occurs. The flag indicating that the abbreviation code has not been verified is a Boolean value or a preset confirmation code, which is used to indicate that the abbreviation code has not been verified.

[0084] Further, the log records stored in the preset database are encrypted, and the encryption step includes:

[0085] Generate an encryption key, combine the generated encryption key with the log record, perform encryption operation on each data unit of the log record one by one, and generate encrypted ciphertext data;

[0086] After the encryption is completed, the encrypted ciphertext data together with the index information of the encryption key are stored in the preset database;

[0087] The steps of reading the ciphertext data from the preset database and decrypting the ciphertext data include:

[0088] Obtaining a corresponding encryption key according to the index information of the stored encryption key;

[0089] Based on the encryption key, the ciphertext data is reversely operated to restore the original content of each data unit one by one, and the log record before encryption is reconstructed.

[0090] Embodiment 3:

[0091] like Figure 2 As shown, the present invention provides a technical solution:

[0092] An industrial equipment log data processing device, the industrial equipment log data processing device comprising:

[0093] Acquisition module 1, used to acquire operation status information from industrial equipment;

[0094] Coding module 2, used for converting the running status information into an abbreviated code according to a predefined coding rule;

[0095] A log generation module 3, used to combine the abbreviated code with a timestamp and a unique serial number to generate a log record;

[0096] Storage module 4, used for storing the log records in a preset database;

[0097] A reading module 5 is used to read the first predetermined number of the log records from the preset database and load them into the memory, and at the same time start an independent thread in the background to read the remaining log records except the first predetermined number of the log records from the preset database;

[0098] The parsing module 6 is used to parse the first predetermined number of the log records into initial operation status information according to the predefined decoding rules; the parsing module is also used to parse all the remaining log records into subsequent operation status information according to the predefined decoding rules after the reading module has read the remaining log records and loaded all the remaining log records into the memory;

[0099] The display module 7 is used to display the initial operating status information that has been parsed in batches on the user interface in a sequence of precedence, and the number of the initial operating status information in each batch is a second predetermined number; the display module is also used to display the subsequent operating status information that has been parsed in batches on the user interface in a sequence of precedence after the initial operating status information has been displayed on the user interface, and the number of the subsequent operating status information in each batch is the second predetermined number.

[0100] In this embodiment, the entire industrial equipment log data processing device can actually be divided into three parts, namely, the main control part, the log recording part, and the log display part; the main control part can control the operation of the equipment and obtain the current status, parameters, etc. of the equipment; the main control part sends the data to be recorded in a pre-set format to the log recording part, and the log recording part saves the log records in the database; when the log display part is opened, the data in the database is read, the logs in the database are displayed on the interface, and the logs can be parsed, retrieved, and other operations can be performed on the logs.

[0101] Specifically, the main control part runs on an industrial computer with Windows system, and the industrial computer is connected to peripheral hardware through network cables, serial ports, PCIE expansion cards, etc. The main control part collects the status information and parameters of the equipment through communication with other components. After the collection is completed, the information to be recorded is converted into English abbreviations and a set of numbers according to pre-set rules; for example, "Alignment completed, low-magnification recognition result score 90, high-magnification recognition result score 95, alignment takes 20 seconds, and alignment is successful" is converted into "ALI, 90, 95, 20, OK" (in the form of English abbreviations plus numbers); the main control part uses the FindWindow function to retrieve the handle of the log recording part, and sends it to the message machine through the message machine. The converted parameters are sent to the log recording part; the log recording part adds a timestamp and a serial number before the received content, and then saves it to the database; when the log display part is opened, the first 2000 records are loaded from the database, and the records are parsed into corresponding complete information according to the pre-set rules; after the first 2000 records are loaded, the records are displayed on the log display part, and a thread is started in the background to load the remaining log records; it is set to display only 20 records on the screen each time, and the serial numbers from the start to the end are recorded; when the scroll bar of the display interface is scrolled, the serial number to be displayed is modified accordingly according to the position of the scroll bar or the number of times the mouse wheel is scrolled, the records to be displayed are re-read from the memory, and the display interface is refreshed.

[0102] In this embodiment, the information to be recorded is saved as abbreviations, which reduces the total amount of data to be read; when the log display part is opened, only the first 2000 logs are read from the database, and the remaining content is read in a newly opened thread, which reduces the reading time; after all the content is read, the part of the read data in the memory is replaced; when the log is displayed on the interface, only 20 logs are refreshed and displayed to the interface, and the sequence numbers from the start to the end are recorded; when the mouse is rolled to change the displayed content, it is modified by changing the sequence number. In general, when there are many records in the database, it takes a long time to display them after reading them completely. This device only reads the latest 2000 records, which reduces the time consumption of reading; when the records are displayed on the interface, only the 20 records that need to be displayed are refreshed, which reduces the time consumption of interface refresh.

[0103] Embodiment 4:

[0104] The present invention provides a technical solution:

[0105] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the aforementioned industrial equipment log data processing method when executing the computer program.

[0106] Specifically, Figure 3 As shown, the electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for processing industrial equipment log data is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc. Those skilled in the art can understand that Figure 3 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0107] Embodiment 5:

[0108] The present invention provides a technical solution:

[0109] A computer-readable storage medium stores a computer program executable by an electronic device, and when the computer program is run on the electronic device, the electronic device executes the steps of the aforementioned industrial equipment log data processing method. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0110] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0111] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0112] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0113] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application to this. Those of ordinary skill in the art may make various changes and modifications therein without departing from the scope and spirit of the present application. All these changes and modifications are intended to be included within the scope of the present application as required by the appended claims.

[0114] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various application aspects, in the description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present application should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the corresponding claims, the application point is that the corresponding technical problem can be solved with less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.

[0115] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

[0116] It should be noted that the above embodiments illustrate rather than limit the present application, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be construed as a limitation to the claims. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

Claims

1. A method for processing industrial equipment log data, characterized in that: The following steps are involved: Obtain operating status information from industrial equipment; According to a predefined coding rule, the operation status information is converted into an abbreviated code; Combining the abbreviated code with a timestamp and a unique sequence number to generate a log record; Storing the log records in a preset database; Reading a first predetermined number of the first several log records from the preset database and loading them into the memory, and simultaneously starting an independent thread in the background to read the remaining log records except the first predetermined number of the first several log records from the preset database; According to a predefined decoding rule, the first predetermined number of the log records are parsed into initial operation status information, and the parsed initial operation status information is displayed in batches on the user interface in a sequential order, and the number of the initial operation status information in each batch is a second predetermined number; Read the remaining log records and load all the remaining log records into the memory, and parse all the remaining log records into subsequent running status information according to a predefined decoding rule; After the initial operation status information is displayed on the user interface, the subsequent operation status information that has been parsed is displayed on the user interface in batches in chronological order, and the number of the subsequent operation status information in each batch is a second predetermined number.

2. The industrial equipment log data processing method according to claim 1, characterized in that: The step of obtaining the operating status information from the industrial equipment comprises: Establish a connection with the industrial equipment through a network cable, serial interface or PCIE expansion card to obtain the operating status information of the industrial equipment in real time. The operating status information includes the current operating status and parameter values ​​of the industrial equipment. The parameter values ​​include the low-magnification recognition result score, the high-magnification recognition result score and the alignment time.

3. The industrial equipment log data processing method according to claim 1, characterized in that: The step of converting the running status information into an abbreviated code according to a predefined coding rule comprises: After obtaining the operating status information of the industrial equipment, preprocessing the operating status information to extract key information therein; wherein the preprocessing includes removing redundant information from the operating status information and extracting key information; According to a predefined mapping table, convert the text description in the running status information into corresponding English abbreviations; The English abbreviation is combined with the corresponding parameter value to form an abbreviation code in the form of a character string; wherein the parameter value includes a low-magnification recognition result score, a high-magnification recognition result score and alignment time.

4. The industrial equipment log data processing method according to claim 1, characterized in that: The step of combining the abbreviated code with the timestamp and the unique serial number to generate a log record comprises: Obtaining the generation time of the running status information corresponding to each of the abbreviated codes, and converting it into a timestamp format; A unique serial number based on a time series is allocated to each of the abbreviated codes to ensure the uniqueness and traceability of the operating status information corresponding to each of the abbreviated codes.

5. The industrial equipment log data processing method according to claim 1, characterized in that: In the process of storing the log records in the preset database, the storage operation is recorded to generate a storage log; The storage log is used to record the storage time, data volume and storage status of each data storage.

6. The industrial equipment log data processing method according to claim 1, characterized in that: After the operation status information is converted into the abbreviated code, the abbreviated code obtained by the conversion is verified, and the verification step includes: Performing an integrity check on the abbreviated code obtained by conversion, wherein the integrity check determines whether data loss occurs during the conversion process by calculating a checksum of the abbreviated code; A flag indicating that the abbreviation code has not been verified is added to the abbreviation code where data loss occurs. The flag indicating that the abbreviation code has not been verified is a Boolean value or a preset confirmation code, which is used to indicate that the abbreviation code has not been verified.

7. The industrial equipment log data processing method according to claim 1, characterized in that: The log records stored in the preset database are encrypted, and the encryption process includes: Generate an encryption key, combine the generated encryption key with the log record, perform encryption operation on each data unit of the log record one by one, and generate encrypted ciphertext data; After the encryption is completed, the encrypted ciphertext data is stored together with the index information of the encryption key in the preset database; The steps of reading the ciphertext data from the preset database and decrypting the ciphertext data include: Obtaining a corresponding encryption key according to the index information of the stored encryption key; Based on the encryption key, the ciphertext data is reversely operated to restore the original content of each data unit one by one, and the log record before encryption is reconstructed.

8. An industrial equipment log data processing device, characterized in that: The industrial equipment log data processing device comprises: An acquisition module, used to acquire operation status information from industrial equipment; An encoding module, used for converting the operation status information into an abbreviated code according to a predefined encoding rule; A log generation module, used to combine the abbreviated code with a timestamp and a unique sequence number to generate a log record; A storage module, used for storing the log records in a preset database; A reading module is used to read the first predetermined number of the log records from the preset database and load them into the memory, and at the same time start an independent thread in the background to read the remaining log records except the first predetermined number of the log records from the preset database; A parsing module, configured to parse the first predetermined number of the first plurality of log records into initial operation status information according to a predefined decoding rule; the parsing module is further configured to parse all the remaining log records into subsequent operation status information according to the predefined decoding rule after the reading module has finished reading the remaining log records and loaded all the remaining log records into a memory; The display module is used to display the initial running status information that has been parsed in batches on the user interface in a sequence of precedence, and the number of the initial running status information in each batch is a second predetermined number; the display module is also used to display the subsequent running status information that has been parsed in batches on the user interface in a sequence of precedence after the initial running status information is displayed on the user interface, and the number of the subsequent running status information in each batch is the second predetermined number.

9. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the industrial equipment log data processing method described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of the industrial device log data processing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Analysis device, analysis method, and analysis program

    JP2022052002A

  • Methods for operating a log device

    US6021408A

  • Method and apparatus for storing and retrieving data

    US7849257B1

  • Image acquisition apparatus and image acquisition system

    WO2022062970A1

  • Map data loading method and apparatus, computer device, and storage medium

    WO2023207364A1

Cited By

  • Capacitance measurement and control instrument data processing method and device

    CN120104429A