An industrial equipment log data processing method, device, equipment and medium
By abbreviating and encoding industrial equipment log data and processing it asynchronously in batches, the problems of slow data loading and interface lag were solved, improving data processing efficiency and user interface responsiveness, and ensuring information readability and real-time monitoring of equipment status.
Patent Information
- Application Number
- CN202411616816.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-11-13
AI Technical Summary
Existing methods for processing industrial equipment log data suffer from slow data loading and interface lag when dealing with large amounts of data, impacting system performance and user experience. This is especially problematic in real-time monitoring scenarios, where it can lead to the omission of critical information and misjudgments.
The system uses predefined encoding rules to convert runtime status information into abbreviated encoding, and combines it with timestamps and unique sequence numbers to generate log records. Log records are loaded asynchronously and processed in batches, and status information is displayed in batches on the user interface through predefined decoding rules.
It significantly improves database storage efficiency and data retrieval speed, avoids interface lag, optimizes user experience, ensures the readability and usability of information, and enhances the accuracy and efficiency of equipment operation and maintenance and fault diagnosis.
Smart Images

Figure CN119689922B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of log data processing, and more particularly, to an industrial equipment log data processing method, device, equipment and medium. BACKGROUND
[0002] With the rapid development of industrial automation and intelligent manufacturing technology, the operation state monitoring and data management of industrial equipment have become the key link to ensure production efficiency and equipment reliability. Industrial equipment generates a large amount of operation state information during long-term operation, which records every operation and state change of the equipment. This information is of great significance for equipment maintenance, fault diagnosis and production optimization. In order to effectively manage and analyze these massive data, log recording is usually used to store and process the operation state information of the equipment, so as to realize the tracing and analysis of the historical state of the equipment.
[0003] However, when the historical log records stored in the database are too many, the existing log data processing method exposes obvious shortcomings. Due to the large amount of log data, it often takes a long time to read these data, resulting in slow data loading. This delay not only affects the overall performance of the system, but also increases the user waiting time, reducing user satisfaction. In addition, the interface will appear to be stuck when refreshing a large amount of data at a time, which seriously affects the user's operation experience and work efficiency. Especially for industrial scenarios that need to monitor the state of the equipment in real time, this sticking and delay problem is more prominent, which may lead to the omission and misjudgment of critical 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, by increasing the hardware configuration of the database server to improve the data reading speed, but this will significantly increase the cost and complexity of the system. In addition, some methods use data paging technology, but when dealing with a large number of log records, the paging mechanism still cannot completely solve the problem of slow data loading and interface sticking. 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 response performance of the user interface under the premise of ensuring data integrity and accuracy, to meet the needs of modern industrial equipment management. SUMMARY
[0005] The present application provides an industrial equipment log data processing method, device, equipment and medium to overcome the technical problems existing in the prior art.
[0006] To solve the above technical problems, the technical solutions of the present application are as follows:
[0007] An industrial equipment log data processing method, comprising the following steps:
[0008] acquiring running state information from an industrial device;
[0009] converting the running state information into an abbreviated code according to a predefined encoding rule;
[0010] combining the abbreviated code with a timestamp and a unique serial number to generate a log record;
[0011] storing the log record into a preset database;
[0012] loading a first predetermined number of the first several log records from the preset database into a memory, and simultaneously starting an independent thread in the background to read the remaining log records from the preset database other than the first predetermined number of the first several log records;
[0013] parsing the first predetermined number of the first several log records into initial running state information according to a predefined decoding rule, and displaying the parsed initial running state information in a user interface in batches in chronological order, the number of the initial running state information in each batch being a second predetermined number;
[0014] reading the remaining log records and loading all the remaining log records into the memory, and parsing all the remaining log records into subsequent running state information according to the predefined decoding rule;
[0015] after the initial running state information is displayed in the user interface, displaying the parsed subsequent running state information in the user interface in batches in chronological order, the number of the subsequent running state information in each batch being the second predetermined number.
[0016] Further, the step of acquiring running state information from an industrial device comprises:
[0017] connecting with the industrial device through a network cable, a serial interface or a PCIE expansion card communication mode to acquire the running state information of the industrial device in real time, the running state information including the current operating state and parameter values of the industrial device, the parameter values including a low-multiple recognition result score, a high-multiple recognition result score and an alignment time consumption.
[0018] Further, the step of converting the running state information into an abbreviated code according to a predefined encoding rule comprises:
[0019] after acquiring the running state information of the industrial device, pre-processing the running state information to extract key information therefrom, wherein the pre-processing includes removing redundant information and extracting key information from the running state information;
[0020] According to a predefined mapping table, the text description in the running state information is converted into a corresponding English abbreviation;
[0021] The English abbreviation is combined with a corresponding parameter value to form an abbreviation code in the form of a string; wherein the parameter value includes a low-multiple recognition result score, a high-multiple recognition result score, and alignment time consumption.
[0022] Further, the step of combining the abbreviation code with a timestamp and a unique sequence number to generate a log record comprises:
[0023] The generation time of the running state information corresponding to each abbreviation code is obtained and converted into a timestamp format;
[0024] A unique sequence number based on time sequence is assigned to each abbreviation code to ensure the uniqueness and traceability of the running state information corresponding to each abbreviation code.
[0025] Further, during the storage of the log record into a preset database, a storage operation is recorded to generate a storage log;
[0026] The storage log is used to record the storage time, data volume, and storage state of each data storage.
[0027] Further, after the running state information is converted into an abbreviation code, the converted abbreviation code is checked, and the checking step comprises:
[0028] The converted abbreviation code is subjected to integrity checking, and the integrity checking is performed by calculating the checksum of the abbreviation code to determine whether data loss occurs during the conversion process;
[0029] An unverified flag is added to the abbreviation code in which data loss occurs, the unverified flag is a Boolean value or a preset confirmation code, and is used to identify that the abbreviation code has not passed the verification.
[0030] Further, the log record stored in the preset database is subjected to encryption processing, and the encryption processing step comprises:
[0031] An encryption key is generated, the generated encryption key is combined with the log record, and each data unit of the log record is subjected to encryption operation one by one to generate encrypted ciphertext data;
[0032] After the encryption is completed, the encrypted ciphertext data is stored in the preset database together with the index information of the encryption key;
[0033] The ciphertext data is read from the preset database, and the decryption processing step of the ciphertext data comprises:
[0034] obtaining a corresponding encryption key according to the index information of the stored encryption key;
[0035] performing reverse operation on the cipher data based on the encryption key, recovering the original content of each data unit one by one, and reconstructing the log record before encryption.
[0036] An industrial equipment log data processing device, comprising:
[0037] an acquisition module configured to acquire operation state information from an industrial equipment;
[0038] an encoding module configured to convert the operation state information into an abbreviated code according to a predefined encoding rule;
[0039] a log generation module configured to combine the abbreviated code with a timestamp and a unique serial number to generate a log record;
[0040] a storage module configured to store the log record into a preset database;
[0041] a reading module configured to load a first predetermined number of front log records into a memory, and simultaneously start a separate thread in the background to read remaining log records from the preset database;
[0042] an analysis module configured to analyze the first predetermined number of front log records into initial operation state information according to a predefined decoding rule; the analysis module is further configured to analyze all the remaining log records into subsequent operation state information according to the predefined decoding rule after the reading module reads all the remaining log records and loads them into the memory;
[0043] a display module configured to display the initial operation state information in batches in a user interface in chronological order, and the number of the initial operation state information in each batch is a second predetermined number; the display module is further configured to display the subsequent operation state information in batches in the user interface in chronological order after the initial operation state information is displayed in the user interface, and the number of the subsequent operation state information in each batch is the second predetermined number.
[0044] An electronic device, comprising 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 when executing the computer program.
[0045] 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 is caused to perform the steps of the industrial equipment log data processing method described above.
[0046] Compared with the prior art, the beneficial effects of the technical scheme of the present application include the following aspects:
[0047] Firstly, the present application converts the running state information of the industrial equipment into an abbreviated code through a predefined encoding rule, significantly reducing the storage and transmission volume of the log data; this encoding 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 large volume of log data;
[0048] Secondly, the present application adopts an asynchronous loading and batch processing mechanism, which loads the first predetermined number of log records into the memory when reading the log records, and simultaneously reads the remaining log records in the background; this method avoids the user interface from freezing during the data loading process, ensuring the smoothness and response speed of the user interface; in addition, the batch parsing and display of log records further optimize the user experience, enabling a large amount of data to be gradually presented without affecting the system performance;
[0049] Finally, the present application parses the log records through a predefined decoding rule and displays the initial and subsequent running state 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 a more intuitive and orderly information display method for users, which helps to quickly identify and analyze the changes in equipment state, and improves the accuracy and efficiency of equipment operation and fault diagnosis. BRIEF DESCRIPTION OF DRAWINGS
[0050] In order to more clearly illustrate the technical schemes in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0051] Figure 1 is a flowchart of an industrial equipment log data processing method provided in an embodiment of the present application;
[0052] Figure 2 is a system block diagram of an industrial equipment log data processing device provided in an embodiment of the present application;
[0053] Figure 3is a schematic diagram of an internal structure of an electronic device provided in an embodiment of the present application;
[0054] The figure is marked as follows: 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 application will be described in greater detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it is understood that the present application can be embodied in various forms and should not be limited by the embodiments set forth herein.
[0056] Embodiment 1:
[0057] As shown in the drawings, the present application provides a technical solution: Figure 1
[0058] An industrial equipment log data processing method, comprising the following steps:
[0059] Acquiring running state information from an industrial equipment;
[0060] Converting the running state information into an abbreviation code according to a predefined encoding rule;
[0061] Combining the abbreviation code with a timestamp and a unique serial number to generate a log record;
[0062] Storing the log record into a preset database;
[0063] Loading a first predetermined number of the first several log records into the memory from the preset database, while starting an independent thread in the background to read the remaining log records from the preset database, except for the first predetermined number of the first several log records;
[0064] According to a predefined decoding rule, parsing the first predetermined number of the first several log records into initial running state information, and displaying the parsed initial running state information in the user interface in batches in chronological order, the number of initial running state information in each batch being a second predetermined number;
[0065] Reading the remaining log records and loading all the remaining log records into the memory, and parsing all the remaining log records into subsequent running state information according to a predefined decoding rule;
[0066] After the initial running state information is displayed on the user interface, the parsed subsequent running state information is displayed on the user interface in batches in chronological order, the number of subsequent running state information in each batch being a second predetermined number.
[0067] In this embodiment, the operating status information of the industrial equipment is converted into an abbreviated code through a predefined encoding rule, significantly reducing the storage and transmission volume of the log data; this encoding mechanism effectively improves the storage efficiency and data reading speed of the database, reduces the consumption of system resources, thereby alleviating the slow loading problem caused by the large volume of log data; an asynchronous loading and batch processing mechanism is also adopted, when reading the log records, the first predetermined number of the first several log records are loaded into the memory, and at the same time, the remaining log records are read in the background; this method avoids the user interface from freezing during the data loading process, ensuring the smoothness and response speed of the user interface; in addition, the batch parsing and display of the log records further optimize the user experience, enabling a large amount of data to be gradually presented without affecting the system performance; the log records are parsed through a predefined decoding rule, and the initial and subsequent operating status information is displayed in batches, ensuring the readability and practicality of the data; this mechanism not only improves the processing efficiency of the log data, but also provides a more intuitive and orderly information display method for the user, which helps to quickly identify and analyze the device state changes, improving the accuracy and efficiency of device operation and fault diagnosis.
[0068] Embodiment 2:
[0069] On the basis of embodiment 1, the step of obtaining the operating status information from the industrial equipment comprises:
[0070] Connect with the industrial equipment through the communication mode of network cable, serial interface or PCIE expansion card, and obtain the operating status information of the industrial equipment in real time, the operating status information includes the current operating state and parameter value of the industrial equipment, the parameter value includes low times identification result score, high times identification result score and alignment time consumption.
[0071] Further, the first predetermined number is 2000, and the second predetermined number is 20.
[0072] Further, the step of converting the operating status information into an abbreviated code according to a predefined encoding rule comprises:
[0073] After obtaining the operating status information of the industrial equipment, the operating status information is preprocessed to extract the key information therein; wherein the preprocessing includes removing the redundant information in the operating status information and extracting the key information;
[0074] According to a predefined mapping table, the text description in the operating status information is converted into the corresponding English abbreviation;
[0075] The English abbreviation is combined with a corresponding parameter value to form an abbreviation code in the form of a string; wherein the parameter value includes a low-magnification recognition result score, a high-magnification recognition result score, and alignment time consumption.
[0076] Further, the step of combining the abbreviation code with a timestamp and a unique sequence number to generate a log record comprises:
[0077] The generation time of the running state information corresponding to each abbreviation code is obtained and converted into a timestamp format;
[0078] A unique sequence number based on time series is assigned to each abbreviation code to ensure the uniqueness and traceability of the running state information corresponding to each abbreviation code.
[0079] Further, during the storage of the log record into the preset database, a storage operation is recorded to generate a storage log;
[0080] The storage log is used to record the storage time, data volume, and storage state of each data storage.
[0081] Further, after the running state information is converted into an abbreviation code, the converted abbreviation code is checked, and the checking step comprises:
[0082] The converted abbreviation code is subjected to integrity checking, and the integrity checking is performed by calculating the checksum of the abbreviation code to determine whether data loss occurs during the conversion process;
[0083] An unverified flag is added to the abbreviation code in which data loss occurs, the unverified flag is a Boolean value or a preset confirmation code, and is used to identify that the abbreviation code has not passed the verification.
[0084] Further, the log record stored in the preset database is subjected to encryption processing, and the encryption processing step comprises:
[0085] An encryption key is generated, the generated encryption key is combined with the log record, and each data unit of the log record is subjected to encryption operation one by one to generate encrypted ciphertext data;
[0086] After the encryption is completed, the encrypted ciphertext data is stored in the preset database together with the index information of the encryption key;
[0087] The ciphertext data is read from the preset database, and the decryption processing step of the ciphertext data comprises:
[0088] The corresponding encryption key is obtained according to the stored index information of the encryption key;
[0089] The cipher text data is reversely operated based on the encryption key, the original content of each data unit is recovered one by one, and the log record before encryption is reconstructed.
[0090] Embodiment 3:
[0091] As Figure 2 shown, the present application provides a technical solution:
[0092] An industrial equipment log data processing device, comprising:
[0093] An acquisition module 1 for acquiring running state information from an industrial equipment;
[0094] An encoding module 2 for converting the running state information into an abbreviated code according to a predefined encoding rule;
[0095] A log generation module 3 for combining the abbreviated code with a timestamp and a unique serial number to generate a log record;
[0096] A storage module 4 for storing the log record into a preset database;
[0097] A reading module 5 for loading a first predetermined number of the first several log records into memory from the preset database, and simultaneously starting an independent thread in the background to read the remaining log records from the preset database, except for the first predetermined number of the first several logs;
[0098] An analysis module 6 for analyzing the first predetermined number of the first several log records into initial running state information according to a predefined decoding rule; the analysis module is also used for analyzing all the remaining log records into subsequent running state information according to a predefined decoding rule after the reading module reads the remaining log records and loads all the remaining log records into memory;
[0099] A display module 7 for displaying the analyzed initial running state information in batches in chronological order on a user interface, and the number of the initial running state information in each batch is a second predetermined number; the display module is also used for displaying the analyzed subsequent running state information in batches in chronological order on a user interface after the initial running state information is displayed on the user interface, and the number of the subsequent running state information in each batch is a second predetermined number.
[0100] In this embodiment, the whole industrial equipment log data processing device can be divided into three parts, which are main control part, log recording part and log display part. The main control part can control the operation of the equipment and obtain the current state, parameters and the like of the equipment. The main control part sends the data to be recorded to the log recording part in a pre-set format. The log recording part saves the log record in the database. When the log display part is opened, the data in the database is read, the log in the database is displayed on the interface, and the log can be parsed, searched and the like.
[0101] Specifically, the main control part runs on the industrial computer of the Windows system. The industrial computer is connected with peripheral hardware through a network cable, a serial port, a PCIE expansion card and the like. The main control part collects the state 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 group of numbers according to pre-set rules. For example, "alignment is completed, low-magnification identification result score is 90, high-magnification identification result score is 95, alignment time consumption is 20 seconds, alignment execution is successful" is converted into "ALI, 90, 95, 20, OK" (in the form of English abbreviations and numbers). The main control part uses the FindWindow function to search for the handle of the log recording part, and sends the converted parameters to the log recording part through the message mechanism. The log recording part adds a time stamp and a serial number in front of 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 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 numbers to be displayed are modified 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 re-flushed.
[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 started thread, which reduces the reading time. After all the content is read, part of the read data in the memory is replaced. When the logs are displayed on the interface, only 20 logs are refreshed and displayed on the interface, and the serial numbers from the start to the end are recorded. When the display content is changed by scrolling the mouse, the modification is performed by changing the serial numbers. In general, when the number of records in the database is large, it takes a long time to read and display completely. The device only reads the latest 2000 records, which reduces the reading time. When the records are displayed on the interface, only 20 records to be displayed are refreshed, which reduces the refresh time of the interface.
[0103] Embodiment 4:
[0104] The application provides a technical solution:
[0105] An electronic device, comprising 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 when executing the computer program.
[0106] Specifically, as shown in the figure, Figure 3 The electronic device comprises a processor, a memory, a network interface, a display screen and an input device connected through a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device comprises 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 operating system and the computer program in the non-volatile storage medium to run. The network interface of the electronic device is used to communicate with external terminals through network connection. The computer program is executed by the processor to implement an industrial equipment log data processing method. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen. The input device of the electronic device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell 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 only a block diagram of part of the 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 can comprise more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0107] Embodiment 5:
[0108] The application provides a technical solution:
[0109] A computer readable storage medium stores a computer program executable by an electronic device, which, when running on the electronic device, causes the electronic device to perform the steps of the industrial equipment log data processing method. The computer readable storage medium can be included in the electronic device described in the above embodiments, or can exist separately and not be assembled into the electronic device.
[0110] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. The described embodiments of the device are merely exemplary, and the division of the units is merely a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0111] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments.
[0112] In addition, each functional unit in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically as a separate unit, or two or more units can be integrated into one unit.
[0113] Although the example embodiments have been described with reference to the accompanying drawings, it is to be understood that the example embodiments are only exemplary and are not intended to limit the scope of the present application. Those of ordinary skill in the art can make various changes and modifications without departing from the scope and spirit of the present application. All such changes and modifications are intended to be included within the scope of the present application as claimed in the appended claims.
[0114] Similarly, it should be appreciated that, for brevity and clarity of the present application, and to help the understanding of one or more of the various aspects of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description of the application. However, this should not be interpreted as reflecting an intention that the application requires more features than are explicitly recited in each claim. Rather, inventive aspects lie in the combinations of features as recited in the respective claims. Thus, the claims are hereby expressly incorporated into this detailed description, with each claim acting as a separate embodiment of the application. The application illustratively disclosed herein suitably can be practiced in the absence of any element(s) not specifically disclosed herein.
[0115] Furthermore, those skilled in the art will recognize that, while the above description makes reference to particular embodiments, the application can be practiced with alternative embodiments as well. The application can be practiced with other features, structures, aspects, etc. that are not expressly discussed above. The scope of the application is not to be limited by considering only the specified embodiments. Numerous specific aspects, alternatives, and embodiments of the application will readily occur to those skilled in the art. The applications in its broader aspects is therefore not limited to the specific details, representative apparatus, and illustrative examples shown and described. Various advantages of the application will be readily appreciated as the same becomes better understood by reference to the following detailed description, when considered in connection with the accompanying drawings wherein:
[0116] It is to be understood that the above description is intended to be illustrative and not restrictive. Many other embodiments will be apparent to those of skill in the art upon reading the above description. The scope of the application should, therefore, be determined not with reference to the above description, but should instead be determined with reference to the appended claims, along with their full scope of equivalents. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word comprising and variations of it, such as comprising or include, should not be interpreted as closed or limiting, but as meaning one or more, for example. The words based on should not be interpreted as closed or limiting, but as meaning based, at least in part, on.
Claims
1. An industrial device log data processing method characterized by comprising: The method comprises the following steps: obtaining running state information from an industrial device; converting the running state information into abbreviated codes according to a predefined encoding rule; combining the abbreviated codes with a timestamp and a unique serial number to generate log records; storing the log records into a preset database; loading a first predetermined number of the log records from the front of the preset database into the memory, and simultaneously starting a separate thread in the background to read the remaining log records from the preset database; parsing the first predetermined number of the log records into initial running state information according to a predefined decoding rule, and displaying the parsed initial running state information in batches in chronological order on a user interface, with the number of initial running state information in each batch being a second predetermined number; reading the remaining log records and loading all the remaining log records into the memory, and parsing all the remaining log records into subsequent running state information according to a predefined decoding rule; after the initial running state information is displayed on the user interface, displaying the parsed subsequent running state information in batches in chronological order on the user interface, with the number of subsequent running state information in each batch being a second predetermined number.
2. The industrial device log data processing method according to claim 1, characterized by, The step of obtaining running state information from an industrial device comprises: establishing a connection with the industrial device through a network cable, a serial interface, or a PCIE expansion card communication mode to obtain the running state information of the industrial device in real time, wherein the running state information includes the current operating state and parameter values of the industrial device, and the parameter values include low-multiple recognition result scores, high-multiple recognition result scores, and alignment time consumption.
3. The industrial device log data processing method according to claim 1, characterized by, The step of converting the running state information into abbreviated codes according to a predefined encoding rule comprises: after obtaining the running state information of the industrial device, preprocessing the running state information to extract key information therefrom, wherein the preprocessing includes removing redundant information and extracting key information from the running state information; converting text descriptions in the running state information into corresponding English abbreviations according to a predefined mapping table; combining the English abbreviations with corresponding parameter values to form abbreviated codes in the form of strings, wherein the parameter values include low-multiple recognition result scores, high-multiple recognition result scores, and alignment time consumption.
4. The industrial device log data processing method according to claim 1, characterized by, The step of combining the abbreviated codes with a timestamp and a unique serial number to generate log records comprises: obtaining the generation time of the running state information corresponding to each abbreviated code and converting it into a timestamp format; assigning a unique serial number based on the time sequence to each abbreviated code to ensure the uniqueness and traceability of the running state information corresponding to each abbreviated code.
5. The industrial device log data processing method according to claim 1, characterized by, During the process of storing the log records into a preset database, record the storage operation to generate a storage log; The storage log is used to record the storage time, data volume, and storage state of each data storage.
6. The industrial device log data processing method according to claim 1, characterized by, After the operation state information is converted into the abbreviation code, the converted abbreviation code is checked, and the checking step comprises: The integrity of the converted abbreviation code is checked by calculating the checksum of the abbreviation code to determine whether data loss occurs in the conversion process; An unverified flag is added to the abbreviation code in which data loss occurs, and the unverified flag is a Boolean value or a preset confirmation code, which is used to identify that the abbreviation code is not verified.
7. The industrial device log data processing method according to claim 1, characterized by, The log record stored in the preset database is encrypted, and the encryption step comprises: An encryption key is generated, the generated encryption key is combined with the log record, and each data unit of the log record is encrypted one by one to generate encrypted ciphertext data; After encryption is completed, the encrypted ciphertext data is stored in the preset database together with the index information of the encryption key; The ciphertext data is read from the preset database, and the decryption step of the ciphertext data comprises: According to the stored index information of the encryption key, the corresponding encryption key is obtained; Based on the encryption key, the ciphertext data is reversely operated, and the original content of each data unit is recovered one by one to reconstruct the log record before encryption.
8. An industrial device log data processing apparatus characterized by comprising: The industrial equipment log data processing device comprises: An acquisition module for acquiring operation state information from an industrial equipment; An encoding module for converting the operation state information into an abbreviation code according to a predefined encoding rule; A log generation module for combining the abbreviation code with a timestamp and a unique serial number to generate a log record; A storage module for storing the log record in a preset database; A reading module for loading the first predetermined number of front log records into the memory, and simultaneously starting an independent thread in the background to read the remaining log records from the preset database; An analysis module for analyzing the first predetermined number of front log records into initial operation state information according to a predefined decoding rule; the analysis module is also used to analyze all the remaining log records into subsequent operation state information according to a predefined decoding rule after the reading module reads the remaining log records and loads all the remaining log records into the memory; A display module for displaying the analyzed initial operation state information in batches in the order of priority on the user interface, and the number of initial operation state information in each batch is a second predetermined number; the display module is also used to display the analyzed subsequent operation state information in batches in the order of priority on the user interface after the initial operation state information is displayed on the user interface, and the number of subsequent operation state information in each batch is a second predetermined number.
9. An electronic device, comprising: The electronic device comprises a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and wherein the processor implements the steps of the industrial equipment log data processing method according to 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 capable of being executed by an electronic device, and when the computer program runs on the electronic device, the computer program causes the electronic device to execute the steps of the industrial equipment 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
Method and apparatus for storing and retrieving data
US7849257B1