Capacitance measurement and control instrument data processing method and device
By generating detailed event log records at the key nodes of the intelligent capacitor measuring and control instrument and using CRC and RS codes for verification, the problem of lack of traceability and susceptibility to electromagnetic interference in the data processing process of traditional measuring and control instruments is solved, effectively traceability of the data processing process and high reliability of data in complex environments are achieved.
Patent Information
- Application Number
- CN202510585062.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2045-05-08
AI Technical Summary
Traditional intelligent capacitor measuring and control instruments face the problems of lack of traceability in data processing, susceptibility to electromagnetic interference and resource constraints in high-frequency transient fault scenarios.
By automatically generating detailed event log records at the key nodes of the smart capacitor measuring and control instrument, including timestamps, event types, event descriptions and data verification information, the cyclic redundant verification code (CRC) and Reed-Solomon code (RS code) are used for double verification to ensure the integrity and reliability of the log data.
It realizes effective traceability of the data processing process, improves the integrity and reliability of data in complex electromagnetic environments, solves the problem of resource constraints, and improves operation and maintenance efficiency and fault handling capabilities.
Smart Images

Figure CN120104429A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of capacitance measurement and control instrument data processing, and in particular to a capacitance measurement and control instrument data processing method and device. Background Art
[0002] In the complex operating environment of modern smart substations, smart capacitor measurement and control instruments are key edge devices, and their data processing capabilities directly affect the safety and stability of the power grid. Especially when high-frequency transient faults occur, the measurement and control instruments need to quickly and reliably record and process relevant data for fault analysis and responsibility tracing. However, traditional smart capacitor measurement and control instruments face many challenges in dealing with such scenarios.
[0003] First, the data processing process of existing measurement and control instruments often lacks transparency. Once a failure occurs, it is difficult for operation and maintenance personnel to accurately trace the data processing details before and after the failure, which makes it difficult to analyze the cause of the failure and define responsibilities. In order to improve the reliability and maintainability of substation operation, a technical means that can effectively track the data processing process of measurement and control instruments is urgently needed.
[0004] Secondly, the electromagnetic environment inside the smart substation is extremely complex, and high-frequency electromagnetic interference is ubiquitous. These interferences can easily affect the reliability of data transmission and storage, resulting in data errors or loss. Especially during high-frequency transient faults, the electromagnetic environment is even worse, and the threat to data integrity is further aggravated. Therefore, how to ensure the reliability of data processing in a harsh electromagnetic environment has become an urgent problem to be solved.
[0005] Furthermore, the computing resources of edge-side smart electronic devices are usually limited. Complex logging mechanisms may over-consume the computing and storage resources of the device, affecting its normal data processing function and even reducing the real-time performance of data processing. How to achieve effective data processing process traceability on resource-constrained edge devices while avoiding excessive resource consumption is a key factor that must be considered when designing the logging function of the smart capacitor measurement and control instrument.
[0006] In addition, the current intelligent operation and maintenance level of substations still has room for improvement. When operating and maintenance personnel conduct fault analysis, they often lack refined data support and find it difficult to quickly locate the root cause of the fault. If a mechanism can be provided to record in detail the data processing process of the measurement and control instrument when a fault occurs, it will greatly improve the operation and maintenance efficiency and fault handling capabilities, and provide strong support for the intelligent operation and maintenance of substations.
[0007] Finally, existing data verification methods may not provide sufficient protection in high-frequency transient fault scenarios. Simple verification methods may not be able to effectively resist high-frequency electromagnetic interference, while overly complex verification methods will bring excessive resource overhead and time delay. Therefore, it is necessary to design a data verification mechanism that is resource-efficient and has strong anti-interference capabilities based on the characteristics of high-frequency transient faults in smart substations to ensure the traceability and reliability of the data processing process. Summary of the invention
[0008] The purpose of the present invention is to provide a capacitance measuring and controlling instrument data processing method and device, which solves the problems that the data processing process of traditional intelligent capacitor measuring and controlling instruments lacks traceability and is susceptible to electromagnetic interference, and faces resource constraints. Under the premise of ensuring the real-time performance of data processing, the data processing process can be effectively traced, and the integrity and reliability of the data in a complex electromagnetic environment can be improved.
[0009] In a first aspect, the present invention provides a capacitance measurement and control instrument data processing method, comprising the following steps: Obtain capacitor operation data; According to the capacitor operation data, key nodes of the data processing flow are monitored; the key nodes include a data collection start node, a filtering process completion node, and a fault judgment completion node; When the key node is monitored, a corresponding event log record is generated according to the preset log record level; the event log record includes a timestamp, an event type, an event description, and data verification information; the timestamp accuracy is in microseconds; the event type is used to identify the data processing stage; the event description is used to record the details of the processing steps; the data verification information includes a CRC checksum using a cyclic redundancy check, and different log record levels correspond to CRC checksums of different lengths; The event log records are stored in a local non-volatile memory in chronological order, and a standard communication interface is provided to support remote access and reading of the event log records, and to allow operation and maintenance personnel to remotely configure the log record level as required.
[0010] The capacitor measuring and controlling instrument data processing method provided by the present invention performs event log recording in the intelligent capacitor measuring and controlling instrument, and presets multiple log recording levels, such as "standard log", "enhanced log" and "simplified log". The event log recording module monitors the key nodes of the data processing flow. At each key node, the event log recording module automatically generates a log record containing a timestamp, event type, event description and data verification information according to the preset log recording level. Different log levels correspond to CRC check codes of different lengths. For example, the "enhanced log" level uses a longer CRC check code to improve data reliability, and the "simplified log" level uses a shorter CRC check code to reduce resource consumption. The "standard log" level uses a compromise CRC check code length. It meets the traceability requirements of the data processing process in high-frequency transient fault scenarios, realizes effective tracing of the data processing process, and improves the integrity and reliability of data in complex electromagnetic environments.
[0011] Furthermore, when the key node is monitored, the step of generating a corresponding event log record according to a preset log record level includes: A. Determine the current key nodes monitored and implement: A1. If it is the data collection start node, the preset phase-locked loop synchronization mechanism is started to calibrate the timestamp to ensure microsecond accuracy; A2. If the filtering process is completed at the node, the mean square error of the data before and after filtering is calculated, and when the mean square error exceeds the first preset threshold, an abnormal flag is added to the event type; A3. If it is a fault judgment completion node, the preset fault judgment algorithm is used to analyze the sensitivity of the input data to electromagnetic interference, and according to the analysis result, the input data whose sensitivity exceeds the second preset threshold is marked as a key parameter susceptible to interference in the event description; the input data is the data in the capacitor operation data that is input into the fault judgment algorithm; B. Select the CRC check code length according to the log record level; the log record level includes high, medium and low, the high log record level corresponds to the selection of 32-bit CRC check code, the medium log record level corresponds to the selection of 16-bit CRC check code, and the low log record level corresponds to the selection of 8-bit CRC check code; C. Obtain the event log record based on the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code.
[0012] By selecting CRC check codes of different lengths according to different log record levels, you can ensure data verification strength while taking into account resource consumption, thus achieving a balance between data reliability and resource utilization.
[0013] Further, according to the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code, the step of obtaining the event log record includes: Using a predefined binary format, a preliminary event log record is constructed by combining a calibrated timestamp, an event type with an exception flag, an event description with key parameters, and a selected CRC checksum. Based on the RS code, the preliminary event log record is subjected to anti-interference encoding to obtain a final event log record.
[0014] This dual check mechanism combines the error detection capability of the cyclic redundancy check code and the error correction capability of the RS code, which can more effectively deal with data interference problems in complex electromagnetic environments and improve the reliability of data processing.
[0015] Further, using a predefined binary format, by combining the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code, the steps of constructing a preliminary event log record include: Load the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters, and the selected CRC checksum into the corresponding data buffer respectively; According to the predefined binary format, in the order of timestamp, event type, event description, and CRC checksum, the data in each data buffer is read, the preset separator is inserted, and then written into the target storage area, thereby finally forming a preliminary event log record.
[0016] The log records constructed by this method have a clear structure and are easy to parse, providing strong support for subsequent log analysis and fault tracing.
[0017] Further, based on the RS code, the preliminary event log record is subjected to anti-interference encoding to obtain the final event log record, comprising: Determine the coding parameters of the RS code; the coding parameters include codeword length, information bit length and error correction capability coefficient; wherein the codeword length is determined according to the length of the preliminary event log record, the information bit length is determined according to the sum of the data lengths of the timestamp, event type and event description, and the error correction capability coefficient is calculated according to the codeword length and the information bit length; Generate a generating polynomial of the RS code according to the determined RS code encoding parameters; The timestamp, event type and event description in the preliminary event log record are regarded as information bits, and multiple zeros are filled after the information bits to form a data sequence to be encoded; Using the generator polynomial, RS encoding is performed on the data sequence to be encoded to obtain a plurality of check bits; the number of the check bits is the same as the number of zeros filled with the information bits; After all the check bits are appended to the information bits, the final event log record including the timestamp, event type, event description and check bits is formed.
[0018] In a second aspect, the present invention provides a capacitance measurement and control instrument data processing device, comprising: An acquisition module, used for acquiring capacitor operation data; A monitoring module, used to monitor key nodes of the data processing flow according to the capacitor operation data; the key nodes include a data collection start node, a filtering process completion node and a fault judgment completion node; A generation module is used to generate a corresponding event log record according to a preset log record level when the key node is monitored; the event log record includes a timestamp, an event type, an event description, and data verification information; the timestamp accuracy is in microseconds; the event type is used to identify the data processing stage; the event description is used to record the details of the processing steps; the data verification information includes a CRC checksum using a cyclic redundancy check, and different log record levels correspond to CRC checksums of different lengths; The storage module is used to store the event log records in a local non-volatile memory in chronological order, and provides a standard communication interface to support remote access and reading of the event log records, and allows operation and maintenance personnel to remotely configure the log record level according to needs.
[0019] The capacitor measuring and controlling instrument data processing device provided by the present invention records key events including detailed information and data integrity checks. The method provides a robust and traceable record for data processing within the capacitor controlling instrument, solving the problems of transparency, data reliability in complex electromagnetic environments, and resource constraints.
[0020] Further, the generation module is used to generate corresponding event log records according to a preset log record level when the key node is monitored, and executes: A. Determine the current key nodes monitored and implement: A1. If it is the data collection start node, the preset phase-locked loop synchronization mechanism is started to calibrate the timestamp to ensure microsecond accuracy; A2. If the filtering process is completed at the node, the mean square error of the data before and after filtering is calculated, and when the mean square error exceeds the first preset threshold, an abnormal flag is added to the event type; A3. If it is a fault judgment completion node, the preset fault judgment algorithm is used to analyze the sensitivity of the input data to electromagnetic interference, and according to the analysis result, the input data whose sensitivity exceeds the second preset threshold is marked as a key parameter susceptible to interference in the event description; the input data is the data in the capacitor operation data that is input into the fault judgment algorithm; B. Select the CRC check code length according to the log record level; the log record level includes high, medium and low, the high log record level corresponds to the selection of 32-bit CRC check code, the medium log record level corresponds to the selection of 16-bit CRC check code, and the low log record level corresponds to the selection of 8-bit CRC check code; C. Obtain the event log record based on the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code.
[0021] Further, the generating module is used to execute when obtaining the event log record according to the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code: Using a predefined binary format, a preliminary event log record is constructed by combining a calibrated timestamp, an event type with an exception flag, an event description with key parameters, and a selected CRC checksum. Based on the RS code, the preliminary event log record is subjected to anti-interference encoding to obtain a final event log record.
[0022] Further, the generation module is executed when it is used to construct a preliminary event log record using a predefined binary format by combining a calibrated timestamp, an event type including an abnormal flag, an event description including key parameters, and a selected CRC checksum: Load the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters, and the selected CRC checksum into the corresponding data buffer respectively; According to the predefined binary format, in the order of timestamp, event type, event description, and CRC checksum, the data in each data buffer is read, the preset separator is inserted, and then written into the target storage area, thereby finally forming a preliminary event log record.
[0023] Further, the generating module is used to perform anti-interference encoding on the preliminary event log record based on the RS code to obtain the final event log record when executing: Determine the coding parameters of the RS code; the coding parameters include codeword length, information bit length and error correction capability coefficient; wherein the codeword length is determined according to the length of the preliminary event log record, the information bit length is determined according to the sum of the data lengths of the timestamp, event type and event description, and the error correction capability coefficient is calculated according to the codeword length and the information bit length; Generate a generating polynomial of the RS code according to the determined RS code encoding parameters; The timestamp, event type and event description in the preliminary event log record are regarded as information bits, and multiple zeros are filled after the information bits to form a data sequence to be encoded; Using the generator polynomial, RS encoding is performed on the data sequence to be encoded to obtain a plurality of check bits; the number of the check bits is the same as the number of zeros filled with the information bits; After all the check bits are appended to the information bits, the final event log record including the timestamp, event type, event description and check bits is formed.
[0024] As can be seen from the above, the data processing method of the capacitor measuring and controlling instrument provided by the present invention automatically generates detailed event logs at the key nodes of the intelligent capacitor measuring and controlling instrument, completely records all aspects of data processing, provides reliable data basis for fault analysis, responsibility tracing and compliance auditing, and significantly improves the credibility of the operation of the intelligent substation. The event log recording process is designed as a lightweight operation, which occupies less resources and has little impact on the normal data processing process. The microsecond timestamp ensures the time accuracy of the event record and meets the real-time requirements of rapid processing of high-frequency transient faults. In addition, by introducing data verification information (CRC check code) in the log record, the ability of the log data to resist electromagnetic interference is effectively improved, and the integrity and reliability of the log data are guaranteed. Even in the complex electromagnetic environment of the substation, the accuracy of the log record can be ensured. In addition, through the hierarchical log recording mechanism, the data verification strength can be flexibly adjusted according to the needs, and a balance can be achieved between data reliability and resource consumption. Finally, the event log recording method fully considers the resource-limited characteristics of the edge-side intelligent electronic device in design, and the module deployment is simple and the resource consumption is controllable. By selecting the appropriate log recording level, while ensuring data traceability, resource consumption can be minimized to adapt to the resource constraints of the edge-side device.
[0025] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by implementing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A flow chart of a capacitance measurement and control instrument data processing method provided in an embodiment of the present invention.
[0027] Figure 2 A schematic diagram of the structure of a capacitance measurement and control instrument data processing device provided in an embodiment of the present invention.
[0028] Description of labels: 100, acquisition module; 200, monitoring module; 300, generation module; 400, storage module. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.
[0030] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0031] Reference Figure 1 The present invention provides a capacitance measuring and controlling instrument data processing method, comprising the following steps: Obtain capacitor operation data; According to the capacitor operation data, the key nodes of the data processing flow are monitored; the key nodes include the data collection start node, the filtering process completion node and the fault judgment completion node; When a key node is monitored, a corresponding event log record is generated according to the preset log record level; the event log record contains a timestamp, event type, event description, and data verification information; the timestamp accuracy is microseconds; the event type is used to identify the data processing stage; the event description is used to record the details of the processing steps; the data verification information includes a CRC checksum using a cyclic redundancy check, and different log record levels correspond to CRC checksums of different lengths; The event log records are stored in local non-volatile memory in chronological order, and a standard communication interface is provided to support remote access and reading of event log records, and allow operation and maintenance personnel to remotely configure the logging level according to needs.
[0032] The core of this method is the generation of event logs at key nodes. Acquiring capacitor operating data is the initial step to provide data input for subsequent processing and monitoring. This can be achieved through sensors connected to the capacitor, which periodically send data readings to the control system. Monitoring key nodes refers to specific points in the data processing process where monitoring data collection begins, filtering processing is completed, and fault judgment is completed. These nodes represent important stages in the data processing process. Node monitoring is implemented by inserting flags or triggers at specified locations in the data processing software. When the program executes to these points, the monitoring mechanism is activated. When a key node is monitored, an event log is generated according to the preset log level. The log content includes: timestamp, which is used to record the exact time when the event occurred. Microsecond accuracy is crucial for high-frequency transient fault analysis. High-precision real-time clocks, such as phase-locked loop synchronization mechanisms, can provide microsecond timestamps; event type, which is used to identify the data processing stage. The event type can be represented by a digital code or a descriptive string for log classification and screening; event description, which provides detailed information about the processing steps to improve process transparency. The event description can be dynamically generated based on the event context and contains relevant parameters or intermediate results; CRC checksum, data verification information, using cyclic redundancy check. Different log levels correspond to different CRC lengths to balance reliability and resource usage. The CRC checksum is calculated based on the log data before the log data is stored. The CRC code length is, for example, 8 bits, 16 bits, or 32 bits, which is selected according to the preset log level. The event log is stored in non-volatile memory in chronological order to ensure persistence. Non-volatile memory, such as flash memory, ensures that data is not lost in the event of power failure, and provides a standard communication interface for remote access and reading. Standard communication interfaces such as Ethernet or serial ports use Modbus or TCP / IP protocols for remote access. Operation and maintenance personnel can remotely adjust the log level as needed. This remote configuration is achieved through a network interface, allowing operation and maintenance personnel to send commands to change the log level settings.
[0033] Specifically, this data processing method aims to improve the transparency and reliability of capacitor controllers, especially in scenarios with complex electromagnetic environments. First, the capacitor operation data is obtained. Then, the predefined key nodes in the data processing process are monitored, including the start of data acquisition, the completion of filtering, and the completion of fault judgment. These nodes are selected because they represent important stages of data processing. When a key node is detected, an event log is automatically generated. The event log fully records all aspects of data processing, providing a reliable data basis for fault analysis, responsibility tracing, and compliance auditing, significantly improving the credibility of smart substation operation, and the event logging process is designed as a lightweight operation with low resource consumption and minimal impact on the normal data processing process. The log content depends on the preset log level, such as "standard log", "enhanced log", and "simplified log". Each log entry contains a timestamp with microsecond accuracy to ensure the accuracy of time-based event tracking, which is crucial for analyzing fast transient faults and meets the real-time requirements for fast processing of high-frequency transient faults. The event type clearly identifies the stage of data processing and provides context for the log. The event description provides detailed information about the specific processing steps performed at the node, increasing the transparency of the data processing process. In addition, by introducing data verification information (CRC checksum) in the log record, the ability of the log data to resist electromagnetic interference is effectively improved, the integrity and reliability of the log data are guaranteed, and the accuracy of the log record can be ensured even in the complex electromagnetic environment of the substation. Moreover, through the hierarchical logging mechanism, the data verification strength can be flexibly adjusted according to the needs, and a balance is achieved between data reliability and resource consumption. Higher log levels use longer CRC codes for higher reliability, while lower levels use shorter codes to save resources. The generated event logs are stored in non-volatile memory in chronological order to ensure log persistence and can be saved even in the event of power failure. A standard communication interface is provided to enable maintenance personnel to remotely access these logs for diagnosis and analysis. In addition, the log level can be configured remotely, allowing operators to adjust the level of detail of the log record according to current needs and resource availability. This dynamic adjustment capability ensures that sufficient log information is provided when needed without unnecessarily burdening the system during normal operation. The event logging method fully considers the resource-constrained characteristics of edge-side intelligent electronic devices in design, and the module deployment is simple and the resource consumption is controllable. By selecting the appropriate logging level, it is possible to minimize resource consumption and adapt to the resource constraints of edge devices while ensuring data traceability. By recording key events with detailed information and data integrity checks, this method provides a robust and traceable record of data processing within the capacitor controller, addressing the issues of transparency, data reliability in complex electromagnetic environments, and resource constraints.
[0034] In some specific embodiments, it is considered that the logging system is configured with three levels: "low", "medium" and "high". When the data acquisition process starts, the "data acquisition starts" node is triggered. If the log level is set to "medium", an event log is generated. This log includes a timestamp obtained from the PLL synchronized real-time clock, the event type is set to "data acquisition starts", an event description such as "data acquisition of capacitor bank A is started", and a 16-bit CRC checksum calculated on the timestamp, event type and event description data. This log entry is then appended to the event log file stored in the flash memory. Subsequently, if the filtering process is completed and the "filtering completed" node is triggered. If the log level is still "medium", another log entry is created. This entry contains a new timestamp, event type "filtering completed", description such as "moving average filter applied, standard deviation before filtering: 2.5, after filtering: 0.5", and another 16-bit CRC checksum. This entry is also stored in the flash memory, chronologically after the previous entry. If a fault is detected in the fault judgment stage and the "fault judgment completed" node is reached, and the log level is "high", a more detailed log is generated. This log will include a timestamp, event type "fault determination complete", detailed event description such as "overvoltage fault detected, voltage reading: 1.2kV, threshold: 1.1kV, input data sensitivity to EMI: high (parameters: voltage, current)", and a 32-bit CRC checksum for enhanced data integrity. When the log level is set to "high", this detailed log and longer CRC provide maximum information and reliability for critical events. Throughout the process, remote operators can use the standard Modbus TCP interface to read the stored log or change the log level to "low" to reduce redundancy during normal operation, or change back to "high" for detailed diagnosis during troubleshooting.
[0035] In some embodiments, when a key node is monitored, the step of generating a corresponding event log record according to a preset log record level includes: A. Determine the current key nodes monitored and implement: A1. If it is the data collection start node, the preset phase-locked loop synchronization mechanism is started to calibrate the timestamp to ensure microsecond accuracy; A2. If the filtering process is completed at the node, the mean square error of the data before and after filtering is calculated, and when the mean square error exceeds the first preset threshold, an abnormal flag is added to the event type; A3. If it is a fault judgment completion node, the preset fault judgment algorithm is used to analyze the sensitivity of the input data to electromagnetic interference, and according to the analysis result, the input data whose sensitivity exceeds the second preset threshold is marked as a key parameter susceptible to interference in the event description; the input data is the data in the capacitor operation data that is input into the fault judgment algorithm; B. Select the CRC checksum length according to the log record level; the log record levels include high, medium and low. The high log record level corresponds to a 32-bit CRC checksum, the medium log record level corresponds to a 16-bit CRC checksum, and the low log record level corresponds to an 8-bit CRC checksum; C. Obtain the event log record based on the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code.
[0036] In step A, for the data collection start node, the phase-locked loop synchronization mechanism is started to calibrate the timestamp, and the timestamp accuracy reaches the microsecond level; for the filtering processing completion node, the mean square error of the data before and after filtering is statistically calculated, and the mean square error is compared with the first preset threshold. When the mean square error exceeds the first preset threshold, an abnormal flag is added to the event type; for the fault judgment completion node, the preset fault judgment algorithm is used to analyze the sensitivity of the input data to electromagnetic interference. The analysis result is used to determine whether the sensitivity of the input data exceeds the second preset threshold. If exceeded, the input data whose sensitivity exceeds the second preset threshold is marked as a key parameter susceptible to interference in the event description.
[0037] In step B, the log record level is used as the basis for selecting the CRC check code length. The log record level is divided into three levels: high, medium and low. The high log record level corresponds to a 32-bit CRC check code, the medium log record level corresponds to a 16-bit CRC check code, and the low log record level corresponds to an 8-bit CRC check code.
[0038] In step C, the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code are combined to finally form an event log record.
[0039] Specifically, in view of the problem that electromagnetic interference causes reduced traceability of the data processing process in the high-frequency transient fault scenario of the smart substation, the event log record generation method proposed in this application generates detailed event log records at the key nodes of the data processing process, thereby enhancing the traceability of the data processing process. At the beginning of data acquisition, the phase-locked loop synchronization mechanism is started to ensure the microsecond accuracy of the timestamp and provide an accurate time reference for subsequent data analysis. After the filtering process is completed, the data anomalies that may be introduced by the filtering process can be effectively detected by calculating the mean square error and comparing the threshold, and the anomalies are recorded in the event log, which helps to timely discover and solve the problems in the data preprocessing stage. When the fault judgment is completed, the sensitivity of the input data to electromagnetic interference is analyzed, and the sensitive parameters are marked in the event description to provide reference information on the impact of electromagnetic interference for fault analysis. In addition, by selecting CRC check codes of different lengths according to different log record levels, it is possible to balance data verification strength while taking into account resource consumption and achieve a balance between data reliability and resource utilization. The event log record finally generated contains key information such as timestamp, event type, event description and CRC checksum, providing comprehensive and reliable data support for operation and maintenance personnel to conduct fault analysis and responsibility tracing.
[0040] In some specific embodiments, during the data processing of the capacitance measuring and controlling instrument, when the data acquisition start node is detected, the phase-locked loop synchronization mechanism is immediately started, the system time is calibrated at the microsecond level, and an event log record containing an accurate timestamp is generated. The event type is set to "data acquisition start", and the event description may include information such as "start data acquisition", and the corresponding CRC check code length is selected according to the preset log record level. When the filtering processing completion node is detected, the system calculates the mean square error of the data before and after filtering. If the mean square error exceeds the preset first threshold, the "abnormal" flag is added to the event type. For example, the event type can be set to "filtering completed-abnormal", and the event description may include information such as "mean square error exceeds threshold" and the specific mean square error value, and the CRC check code length is selected according to the log record level. When the fault judgment completion node is detected, the fault judgment algorithm analyzes the sensitivity of the input data to electromagnetic interference. If it is found that the sensitivity of some input data exceeds the second preset threshold, these data are marked as "critical parameters susceptible to interference" in the event description. For example, the event description can contain information such as "parameter X and parameter Y are critical parameters susceptible to interference", and the event type can be set to "fault judgment completed", and the CRC checksum length can be selected according to the log record level. Finally, these event log records containing timestamps, event types, event descriptions, and CRC checksums of corresponding lengths are stored in local non-volatile memory in chronological order and can be remotely accessed and read through standard communication interfaces.
[0041] In some embodiments, the step of obtaining the event log record according to the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code includes: Using a predefined binary format, a preliminary event log record is constructed by combining a calibrated timestamp, an event type with an exception flag, an event description with key parameters, and a selected CRC checksum. Based on RS code, the preliminary event log record is encoded with anti-interference to obtain the final event log record.
[0042] For constructing preliminary event log records, a binary format can be predefined, which specifies the order and data type of timestamp, event type, event description, and cyclic redundancy check code in the data structure. For example, the timestamp can be defined as a 64-bit unsigned integer, the event type can be defined as an 8-bit enumeration type, the event description can be defined as a variable-length string, and the length of the cyclic redundancy check code is determined according to the log record level, which can be 8 bits, 16 bits, or 32 bits. When combining this information, they can be arranged in the order of timestamp, event type, event description, and cyclic redundancy check code, and written to a pre-allocated data buffer. In order to distinguish different data fields, a preset delimiter, such as a specific byte sequence, can be inserted between the fields so that the data of each field can be accurately identified and extracted when the log record is subsequently parsed.
[0043] Furthermore, after obtaining the preliminary event log record, in order to enhance the data anti-interference ability, the Reed-Solomon code (RS code) is introduced for encoding. Specifically, the encoding parameters of the RS code need to be determined first, including the codeword length, information bit length and error correction coefficient. The codeword length can be determined according to the length of the preliminary event log record, and the information bit length depends on the sum of the data lengths of the timestamp, event type and event description. The error correction coefficient is calculated from the codeword length and the information bit length, which determines the number of errors that the RS code can correct. After determining the encoding parameters, it is necessary to generate the generator polynomial of the RS code, which is usually based on the Galois field for mathematical operations. The encoding process is to regard the timestamp, event type and event description in the preliminary event log record as information bits, and fill zeros after the information bits to form the data sequence to be encoded. Then, the data sequence is RS-encoded using the generator polynomial, and a certain number of check bits are obtained through a linear feedback shift register and modulo 2 division operation. The number of these check bits is the same as the number of zeros filled. Finally, all check bits are appended to the information bits to form the final event log record containing timestamp, event type, event description and check bits.
[0044] Specifically, by combining the various components of the event log record in a predefined binary format, structured data integration is achieved, which is convenient for subsequent data processing and storage. The introduction of RS code for anti-interference coding provides a higher level of data protection based on the cyclic redundancy check code. The cyclic redundancy check code is mainly used to detect errors that occur during data transmission or storage, while the RS code can not only detect errors, but also correct errors within a certain range. As a result, even in an environment with harsh electromagnetic interference, the final event log record has stronger anti-interference capabilities, which can effectively reduce the bit error rate and ensure the integrity and accuracy of the event log record. This dual verification mechanism combines the error detection capability of the cyclic redundancy check code and the error correction capability of the RS code, which can more effectively deal with data interference problems in complex electromagnetic environments and improve the reliability of data processing.
[0045] In some specific implementations, it is assumed that in a predefined binary format, the timestamp occupies 8 bytes, the event type occupies 1 byte, the event description length is variable, the maximum occupies 255 bytes, and the cyclic redundancy check code selects 16 bits, occupying 2 bytes. When the filtering process is completed, the event type is marked as 0x02, the event description is recorded as "the mean square error after filtering exceeds the threshold", the calibrated timestamp is the current microsecond timestamp, and the 16-bit cyclic redundancy check code is calculated. These data are combined in a predefined order to form a preliminary event log record. Further, RS (255, 239) code is selected for anti-interference coding, in which the codeword length is 255 bytes and the information bit length is 239 bytes, which can correct up to 8 bytes of errors. The preliminary event log record is used as the information bit, filled with 16 bytes of zero, RS encoding is performed, and 16 bytes of check bits are generated. After being attached to the information bit, the final event log record is obtained. In this way, the event log record can still maintain high reliability and integrity in a harsh electromagnetic environment.
[0046] In some embodiments, the steps of constructing a preliminary event log record using a predefined binary format by combining a calibrated timestamp, an event type including an abnormal flag, an event description including key parameters, and a selected CRC checksum include: Load the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters, and the selected CRC checksum into the corresponding data buffer respectively; According to the predefined binary format, in the order of timestamp, event type, event description, and CRC checksum, the data in each data buffer is read, the preset separator is inserted, and then written into the target storage area, thereby finally forming a preliminary event log record.
[0047] For the construction process of preliminary event log records, structured and efficient data assembly is achieved. The log information components such as timestamp, event type, event description and CRC checksum are loaded into their own independent data buffers. This data block management method facilitates subsequent data combination and improves data processing efficiency and maintainability. A predefined binary format is adopted, and the timestamp, event type, event description and CRC checksum are arranged in a fixed order. During the data reading process, data is read from each data buffer and a preset separator is inserted between adjacent data blocks. The separator is used to clearly divide different data fields in the final binary data stream, which is crucial for subsequent data parsing and extraction. The complete data stream with separators is written to the target storage area, thereby forming a preliminary event log record. Through methods such as data buffer, predefined format, fixed order and separator, a structured, standardized and easy-to-parse preliminary event log record construction method is achieved, laying the foundation for subsequent anti-interference coding and effective use of log data. The data buffer is used for data block management to improve efficiency; the predefined format and fixed order ensure the structuring and consistency of log records; the separator is used to clearly divide the data fields to facilitate subsequent parsing.
[0048] Specifically, for the construction of preliminary event log records, a predefined binary format is used to ensure the standardization of the log data structure. The key information, such as timestamp, event type, event description and CRC checksum, are arranged in a predetermined order, such as timestamp first, followed by event type, event description and finally CRC checksum. This fixed order makes the log records predictable and facilitates the subsequent data parsing. During the data combination process, each component, namely timestamp, event type, event description and CRC checksum, is first loaded into its own data buffer. The data buffer can be understood as a reserved storage area in the memory for temporarily storing the data fragments to be processed. By using the data buffer, the management of each data fragment becomes more independent and efficient. After the data is loaded, the data is read from each data buffer in a predefined binary format and a fixed order. A preset delimiter is inserted between reading adjacent data blocks. The delimiter is used to mark the boundaries of different data fields in a continuous binary data stream. For example, a specific byte sequence, such as "0xFF 0xFE", can be used as a delimiter. Finally, the complete data stream with delimiters is written to the target storage area, which can be a non-volatile storage medium such as a flash memory or a hard disk. Thus, the preliminary event log record is constructed. The log record constructed by this method has a clear structure and is easy to parse, which provides strong support for subsequent log analysis and fault tracing.
[0049] In some specific embodiments, for the data processing of the capacitance measuring and controlling instrument, the construction process of the preliminary event log record can be implemented as follows. First, it is assumed that the timestamp is a 64-bit integer data, the event type is an 8-bit enumeration type, the event description is a string with a maximum length of 256 bytes, and the CRC check code is a 16-bit integer data. For these four parts of data, four data buffers are allocated in the memory respectively: a timestamp buffer, an event type buffer, an event description buffer, and a CRC check code buffer. When it is necessary to construct an event log record, the calibrated timestamp data is written to the timestamp buffer, the event type data is written to the event type buffer, the event description string is written to the event description buffer, and the calculated CRC check code is written to the CRC check code buffer. The predefined binary format is set as: timestamp (8 bytes) + delimiter (2 bytes) + event type (1 byte) + delimiter (2 bytes) + event description (variable length, maximum 256 bytes) + delimiter (2 bytes) + CRC check code (2 bytes). The delimiter uses the byte sequence "0xFF 0xFE". According to this format, the data is read from each buffer in turn and the delimiter is inserted. For example, first read 8 bytes of data from the timestamp buffer, then insert "0xFF 0xFE", then read 1 byte of data from the event type buffer, then insert "0xFF 0xFE", and so on, until the data in the CRC checksum buffer is read and the last delimiter is inserted. Finally, the binary data stream formed is written to a pre-allocated target storage area, such as a flash memory area. This flash memory area is used to store event log records. Through the above steps, a structured preliminary event log record is constructed, which provides a data basis for subsequent anti-interference coding and remote access. With the data buffer, predefined format and delimiter, the structuring and parsing efficiency of the log record are guaranteed.
[0050] In some embodiments, the steps of performing anti-interference encoding on the preliminary event log record based on the RS code to obtain the final event log record include: Determine the coding parameters of the RS code; the coding parameters include the codeword length, information bit length and error correction capability coefficient; wherein the codeword length is determined according to the length of the preliminary event log record, the information bit length is determined according to the sum of the data lengths of the timestamp, event type and event description, and the error correction capability coefficient is calculated according to the following formula: ;in, is the error correction capability coefficient, is the codeword length, , is the order of the Galois Field, is the information bit length; Generate a generating polynomial of the RS code according to the determined RS code encoding parameters; Treat the timestamp, event type, and event description in the preliminary event log record as information bits and fill in the information bits zeros, forming the data sequence to be encoded; Using the generating polynomial, the data sequence to be encoded is RS encoded to obtain The number of check bits is the same as the number of zeros filled with the information bits; After all check bits are appended to the information bits, the final event log record containing timestamp, event type, event description and check bits is formed.
[0051] Determine the encoding parameters, which lays the foundation for subsequent RS encoding and ensures that the RS code can be configured according to the actual situation of the event log record. The codeword length is determined according to the length of the preliminary event log record to ensure that the RS code can handle event log records of various lengths; the information bit length is determined according to the sum of the data lengths of the timestamp, event type and event description, and the effective data range of the RS code is clarified; the error correction capability coefficient is calculated based on the codeword length and the information bit length, providing a theoretical basis for the error correction capability of the RS code. Generate the generator polynomial of the RS code, which is the core step of RS encoding. The generator polynomial is the mathematical basis of RS encoding, which determines the encoding and decoding characteristics of the RS code. The timestamp, event type and event description in the preliminary event log record are regarded as information bits, and multiple zeros are filled after the information bits to form the data sequence to be encoded. This is the data preparation stage of RS encoding, ensuring that the RS code can protect the key information in the event log record. Using the generator polynomial, the data sequence to be encoded is RS encoded to obtain multiple check bits, which is the key step of RS encoding. Through RS encoding, the original information bits are converted into codewords containing check bits, and the check bits are used for subsequent error detection and correction. The number of check bits is the same as the number of zeros filled with information bits, ensuring the error correction capability of the RS code. After all check bits are attached to the information bits, a final event log record containing a timestamp, event type, event description, and check bits is formed. The final event log record contains the original event information and the check information for anti-interference, thereby improving the reliability of event log records in complex electromagnetic environments.
[0052] Specifically, by determining the coding parameters such as codeword length, information bit length, and error correction coefficient, the RS code can be flexibly configured for preliminary event log records of different lengths. Generator polynomials, as the mathematical basis of RS coding, provide theoretical support for subsequent encoding and decoding processes. Timestamps, event types, and event descriptions are protected as information bits to ensure that key information in event log records is not easily lost or damaged in harsh electromagnetic environments. The RS coding process uses generator polynomials to process the data sequence to be encoded to generate check bits for error detection and correction. The addition of check bits enhances the anti-interference ability of event log records and reduces the probability of data errors during transmission or storage. The final event log record, because it contains check information, can maintain high reliability and integrity even in an electromagnetic interference environment, ensuring the traceability of the data processing process. As a result, in resource-constrained edge devices and complex electromagnetic environments, the anti-interference coding of RS codes can be efficiently and reliably implemented, reducing the situation where data confusion caused by electromagnetic interference causes a high bit error rate.
[0053] In some specific implementations, assuming that the length of the preliminary event log record is 255 bytes, of which the timestamp occupies 8 bytes, the event type occupies 2 bytes, and the event description occupies 200 bytes, the information bit length is 210 bytes. The codeword length is determined to be 255 bytes, and the error correction capability coefficient is calculated by the codeword length and the information bit length. According to the determined encoding parameters, the generator polynomial of the RS (255, 210) code is generated. The timestamp, event type and event description are regarded as information bits, and 45 zero bytes are filled after the information bits to form a 255-byte data sequence to be encoded. Using the generated RS code generator polynomial, the data sequence to be encoded is RS encoded to obtain 45 check bytes. After these 45 check bytes are attached to the 210-byte information bits, a final event log record of 255 bytes is formed. The final event log record contains a timestamp, an event type, an event description and a 45-byte RS check code, which improves the reliability of the data in a complex electromagnetic environment.
[0054] In some embodiments, the step of generating a generator polynomial of the RS code according to the determined RS code encoding parameters includes: Initialize the Galois field according to the determined RS code encoding parameters; Generate the generating polynomial of RS code based on Galois Field.
[0055] In this embodiment, initializing the Galois Field can be implemented as follows: first, according to the RS code encoding parameters, the order of the Galois Field is determined, and the order is usually a power of 2, such as 2 to the 8th power, that is, 256. Then, an irreducible polynomial on the binary field is selected, and the order of the irreducible polynomial is the same as the determined power. For example, when the order is 256, an irreducible polynomial of order 8 can be selected. The selection of irreducible polynomials is pre-set and can be selected according to application requirements and computing resources. Subsequently, based on the selected irreducible polynomial, the elements and operation rules of the Galois Field are constructed, including addition and multiplication operations. The generating polynomial for generating the RS code can be implemented as follows: after completing the initialization of the Galois Field, according to the error correction capability coefficient of the RS code, the roots of the generating polynomial are determined. The roots of the generating polynomial are elements in the Galois Field, and continuous power elements of the Galois Field are usually selected as roots. For example, assuming the error correction capability coefficient is , you can choose of Second power, of Second, until of The power is the root, where It is the original element of the Galois Field. is the preset offset. Thus, the generating polynomial can be obtained by multiplying the linear polynomials with these roots as roots. The polynomial multiplication is performed in the Galois field, ensuring that the coefficients of the generating polynomial are also elements in the Galois field.
[0056] Specifically, based on the Galois field, the generating polynomial of the RS code is generated by the following steps: D1. Select the primitive polynomial , the primitive polynomial is a polynomial of a specified order (for example, m order) and satisfies the Galois field All elements on can be represented by the roots of the primitive polynomial; D2. Based on the primitive polynomial, determine the continuous roots (i.e. the above , … ), the root is calculated by the primitive elements of the Galois Field and the error correction capability coefficient; D3. Based on the determination of continuous roots, the generating polynomial is obtained, which is specifically expressed as: ; in, For about The generating polynomial of is a formal variable, is the primitive element of the Galois Field, that is, the root of the primitive polynomial, is the preset offset, is the error correction capability coefficient.
[0057] It should be noted that in the generating polynomial of the RS code, It is a formal variable. It has no specific value itself, but is used as a placeholder in the polynomial to represent the different orders of the polynomial. In the RS encoding process, the coefficients in the polynomial are the actual values involved in the operation, and these coefficients are taken from the Galois field.
[0058] When calculating the generating polynomial, the above polynomial needs to be expanded to obtain: ;in, , , … are the coefficients of the polynomial, and they are all elements in the Galois Field.
[0059] In the RS encoding process, the data sequence to be encoded is represented as an information polynomial, and then the information polynomial is divided by the generating polynomial, and the remainder obtained is the check bit. It is still just a formal variable; what actually participates in the calculation are the coefficients of the polynomial.
[0060] Specifically, the steps of generating the generating polynomial of the RS code are to solve the problem of how to accurately and efficiently obtain the generating polynomial. By first initializing the Galois field, a mathematical basis is provided for the subsequent generating polynomial, ensuring that all operations are performed within a predefined finite field, thereby ensuring the mathematical correctness of the RS encoding. Subsequently, based on the Galois field, by selecting appropriate roots and multiplying the polynomials, a generating polynomial that meets the RS code encoding requirements is finally obtained. This step-by-step approach makes the process of generating polynomials clearer and more standardized, and improves the reliability of the generating polynomials. Accurate and effective generating polynomials provide the necessary technical guarantee for the subsequent RS encoding links, thereby improving the anti-interference ability of event log recording.
[0061] In some specific implementations, for example, for an RS code with an error correction coefficient of 8, a Galois field of order 8 is first initialized. The process of initializing the Galois Field is: select an irreducible polynomial (In this polynomial, The highest power of is 8, with a coefficient of 1. The coefficients of the 4th, 3rd, and 2nd powers of x are 1. The coefficient of the constant term is 1. The coefficients of the remaining terms, namely the 7th, 6th, 5th, and 1st powers of x, are 0 and are not explicitly written in the polynomial. Based on this polynomial, a finite field of 256 elements is constructed, and the rules for addition and multiplication operations in the field are determined. Then, assuming the offset is 0, the roots of the generating polynomial are determined to be , ,…, The generating polynomial is calculated by Get. Polynomial multiplication in The final result is a 16-order generating polynomial. Thus, the process of generating polynomials is concretized and can be directly used in the subsequent RS encoding process to provide anti-interference capability for data verification information.
[0062] In some embodiments, the step of performing RS encoding on a data sequence to be encoded using a generator polynomial to obtain a plurality of check bits includes: Inputting the generating polynomial and the data sequence to be encoded into a linear feedback shift register, and performing a modulo-2 division operation to obtain a remainder sequence; the linear feedback shift register is implemented based on a Galois field, and its initial state is set to all zeros; The remainder sequence is bit-reversed to obtain multiple check bits.
[0063] The linear feedback shift register is configured to operate based on the Galois field, which ensures the correctness of the mathematical basis of RS encoding. The selection and configuration of the Galois field is completed according to the predetermined RS code encoding parameters. The generator polynomial and the data sequence to be encoded are provided as input to the linear feedback shift register. The initial state of the linear feedback shift register is set to all zeros, which ensures the deterministic starting state of the encoding process. The modulo 2 division operation is performed in the linear feedback shift register to produce a remainder sequence. This remainder sequence directly reflects the check information of the RS encoding. In order to adapt to a specific RS code standard or optimize the hardware implementation, the remainder sequence is then bit-reversed to obtain the final multiple check bits.
[0064] Specifically, in the RS encoding process, the generator polynomial and the data sequence to be encoded are first loaded into the linear feedback shift register. The register and feedback path inside the linear feedback shift register are configured according to the operation rules of the Galois field. When the data sequence is shifted into the linear feedback shift register bit by bit, the register simultaneously performs a modulo 2 division operation. The operation result, i.e., the remainder sequence, is output after all data bits are processed. As a preferred embodiment, the bit reversal operation is performed after the remainder sequence is output to generate a check bit that meets the requirements of a specific RS code format. For example, in a specific implementation of the linear feedback shift register, an XOR gate and a shift register unit can be used to construct the XOR gate, and the connection mode of the XOR gate and the number of shift register units are determined by the generator polynomial. The data sequence to be encoded can be input into the linear feedback shift register in a serial or parallel manner.
[0065] In some specific implementations, consider an example of RS (255, 239) encoding applied to a capacitance measurement and control instrument. The codeword length is set to 255 bytes, and the information bit length is 239 bytes, thereby obtaining a 16-byte check bit. The generating polynomial is based on the Galois field Generate. The linear feedback shift register consists of 16 8-bit registers and several XOR gates. The specific connection method of the XOR gates is determined by the coefficients of the generating polynomial. The 239 bytes of data to be encoded are serially input into the linear feedback shift register byte by byte. After all data input is completed, the 16-byte remainder sequence stored in the linear feedback shift register is bit-reversed and output as the RS-encoded check bit. After being attached to the original information bit, the final event log record containing the check information is formed. Through this RS encoding process, the anti-interference ability of the event log record is enhanced, ensuring the reliability of data transmission in complex electromagnetic environments.
[0066] Please refer to Figure 2 , Figure 2 A capacitance measuring and controlling instrument data processing device in some embodiments of the present invention is integrated in a back-end control device in the form of a computer program, and includes: An acquisition module 100 is used to acquire capacitor operation data; The monitoring module 200 is used to monitor the key nodes of the data processing flow according to the capacitor operation data; the key nodes include the data collection start node, the filtering process completion node and the fault judgment completion node; The generating module 300 is used to generate corresponding event log records according to the preset log record level when the key node is monitored; the event log record includes a timestamp, an event type, an event description and data verification information; the timestamp accuracy is microsecond level; the event type is used to identify the data processing stage; the event description is used to record the details of the processing steps; the data verification information includes a CRC checksum using a cyclic redundancy check, and different log record levels correspond to CRC checksums of different lengths; The storage module 400 is used to store event log records in a local non-volatile memory in chronological order, and provides a standard communication interface to support remote access and reading of event log records, and allows operation and maintenance personnel to remotely configure the log record level according to requirements.
[0067] In some embodiments, the generation module 300 is used to generate corresponding event log records according to a preset log record level when a key node is monitored, and executes: A. Determine the current key nodes monitored and implement: A1. If it is the data collection start node, the preset phase-locked loop synchronization mechanism is started to calibrate the timestamp to ensure microsecond accuracy; A2. If the filtering process is completed at the node, the mean square error of the data before and after filtering is calculated, and when the mean square error exceeds the first preset threshold, an abnormal flag is added to the event type; A3. If it is a fault judgment completion node, the preset fault judgment algorithm is used to analyze the sensitivity of the input data to electromagnetic interference, and according to the analysis result, the input data whose sensitivity exceeds the second preset threshold is marked as a key parameter susceptible to interference in the event description; the input data is the data in the capacitor operation data that is input into the fault judgment algorithm; B. Select the CRC checksum length according to the log record level; the log record levels include high, medium and low. The high log record level corresponds to a 32-bit CRC checksum, the medium log record level corresponds to a 16-bit CRC checksum, and the low log record level corresponds to an 8-bit CRC checksum; C. Obtain the event log record based on the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code.
[0068] In some embodiments, the generation module 300 is used to obtain the event log record according to the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code, and executes: Using a predefined binary format, a preliminary event log record is constructed by combining a calibrated timestamp, an event type with an exception flag, an event description with key parameters, and a selected CRC checksum. Based on RS code, the preliminary event log record is encoded with anti-interference to obtain the final event log record.
[0069] In some embodiments, the generation module 300 is executed when used to construct a preliminary event log record using a predefined binary format by combining a calibrated timestamp, an event type including an abnormal flag, an event description including key parameters, and a selected CRC checksum: Load the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters, and the selected CRC checksum into the corresponding data buffer respectively; According to the predefined binary format, in the order of timestamp, event type, event description, and CRC checksum, the data in each data buffer is read, the preset separator is inserted, and then written into the target storage area, thereby finally forming a preliminary event log record.
[0070] In some embodiments, the generating module 300 performs the following steps when performing anti-interference encoding on the preliminary event log record based on the RS code to obtain the final event log record: Determine the coding parameters of the RS code; the coding parameters include codeword length, information bit length and error correction capability coefficient; wherein the codeword length is determined according to the length of the preliminary event log record, the information bit length is determined according to the sum of the data lengths of the timestamp, event type and event description, and the error correction capability coefficient is calculated according to the codeword length and the information bit length; Generate a generating polynomial of the RS code according to the determined RS code encoding parameters; The timestamp, event type and event description in the preliminary event log record are regarded as information bits, and multiple zeros are filled after the information bits to form a data sequence to be encoded; Using the generating polynomial, the data sequence to be encoded is RS-encoded to obtain multiple check bits; the number of check bits is the same as the number of zeros filled with the information bits; After all check bits are appended to the information bits, the final event log record containing timestamp, event type, event description and check bits is formed.
[0071] In some embodiments, the generation module 300 performs the following when used to generate a generator polynomial of the RS code according to the determined RS code encoding parameters: Initialize the Galois field according to the determined RS code encoding parameters; Generate the generating polynomial of RS code based on Galois Field.
[0072] In some embodiments, the generating module 300 performs the following when performing RS encoding on a data sequence to be encoded using a generating polynomial to obtain a plurality of check bits: Inputting the generating polynomial and the data sequence to be encoded into a linear feedback shift register, and performing a modulo-2 division operation to obtain a remainder sequence; the linear feedback shift register is implemented based on a Galois field, and its initial state is set to all zeros; The remainder sequence is bit-reversed to obtain multiple check bits.
[0073] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0074] The above description is only an embodiment of the present invention and is not intended to limit the protection scope of the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A capacitance measuring and controlling instrument data processing method, characterized in that: The following steps are involved: Obtain capacitor operation data; Monitoring key nodes of the data processing flow according to the capacitor operation data; The key nodes include a data collection start node, a filtering process completion node, and a fault judgment completion node; When the key node is monitored, a corresponding event log record is generated according to a preset log record level; the event log record includes a timestamp, event type, event description, and data verification information; The timestamp accuracy is in microseconds; the event type is used to identify the data processing stage; the event description is used to record the details of the processing steps; the data verification information includes a CRC checksum using a cyclic redundancy check, and different log record levels correspond to CRC checksums of different lengths; The event log records are stored in a local non-volatile memory in chronological order, and a standard communication interface is provided to support remote access and reading of the event log records, and to allow operation and maintenance personnel to remotely configure the log record level as required.
2. The capacitance measuring and controlling instrument data processing method according to claim 1, characterized in that: When the key node is monitored, the steps of generating a corresponding event log record according to a preset log record level include: A. Determine the current key nodes monitored and implement: A1. If it is the data collection start node, the preset phase-locked loop synchronization mechanism is started to calibrate the timestamp to ensure microsecond accuracy; A2. If the filtering process is completed at the node, the mean square error of the data before and after filtering is calculated, and when the mean square error exceeds the first preset threshold, an abnormal flag is added to the event type; A3. If it is a fault judgment completion node, the preset fault judgment algorithm is used to analyze the sensitivity of the input data to electromagnetic interference, and according to the analysis result, the input data whose sensitivity exceeds the second preset threshold is marked as a key parameter susceptible to interference in the event description; the input data is the data in the capacitor operation data that is input into the fault judgment algorithm; B. Select the CRC check code length according to the log record level; the log record level includes high, medium and low, the high log record level corresponds to the selection of 32-bit CRC check code, the medium log record level corresponds to the selection of 16-bit CRC check code, and the low log record level corresponds to the selection of 8-bit CRC check code; C. Obtain the event log record based on the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code.
3. The capacitance measuring and controlling instrument data processing method according to claim 2, characterized in that: The step of obtaining the event log record according to the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code comprises: Using a predefined binary format, a preliminary event log record is constructed by combining a calibrated timestamp, an event type with an exception flag, an event description with key parameters, and a selected CRC checksum. Based on the RS code, the preliminary event log record is subjected to anti-interference encoding to obtain a final event log record.
4. The capacitance measuring and controlling instrument data processing method according to claim 3, characterized in that: The steps to construct a preliminary event log record using a predefined binary format by combining a calibrated timestamp, an event type with an exception flag, an event description with key parameters, and a selected CRC checksum include: Load the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters, and the selected CRC checksum into the corresponding data buffer respectively; According to the predefined binary format, in the order of timestamp, event type, event description, and CRC checksum, the data in each data buffer is read, the preset separator is inserted, and then written into the target storage area, thereby finally forming a preliminary event log record.
5. The capacitance measuring and controlling instrument data processing method according to claim 3, characterized in that: The steps of performing anti-interference encoding on the preliminary event log record based on the RS code to obtain the final event log record include: Determine the coding parameters of the RS code; the coding parameters include codeword length, information bit length and error correction capability coefficient; wherein the codeword length is determined according to the length of the preliminary event log record, the information bit length is determined according to the sum of the data lengths of the timestamp, event type and event description, and the error correction capability coefficient is calculated according to the codeword length and the information bit length; Generate a generating polynomial of the RS code according to the determined RS code encoding parameters; The timestamp, event type and event description in the preliminary event log record are regarded as information bits, and multiple zeros are filled after the information bits to form a data sequence to be encoded; Using the generator polynomial, RS encoding is performed on the data sequence to be encoded to obtain a plurality of check bits; the number of the check bits is the same as the number of zeros filled with the information bits; After all the check bits are appended to the information bits, the final event log record including the timestamp, event type, event description and check bits is formed.
6. A capacitance measuring and controlling instrument data processing device, characterized in that: include: An acquisition module, used for acquiring capacitor operation data; A monitoring module, used to monitor key nodes of a data processing flow according to the capacitor operation data; The key nodes include a data collection start node, a filtering process completion node, and a fault judgment completion node; A generation module, used to generate a corresponding event log record according to a preset log record level when the key node is monitored; the event log record includes a timestamp, event type, event description and data verification information; The timestamp accuracy is in microseconds; the event type is used to identify the data processing stage; the event description is used to record the details of the processing steps; the data verification information includes a CRC checksum using a cyclic redundancy check, and different log record levels correspond to CRC checksums of different lengths; The storage module is used to store the event log records in a local non-volatile memory in chronological order, and provides a standard communication interface to support remote access and reading of the event log records, and allows operation and maintenance personnel to remotely configure the log record level according to needs.
7. The capacitance measuring and controlling instrument data processing device according to claim 6, characterized in that: The generation module is used to generate corresponding event log records according to the preset log record level when the key node is monitored: A. Determine the current key nodes monitored and implement: A1. If it is the data collection start node, the preset phase-locked loop synchronization mechanism is started to calibrate the timestamp to ensure microsecond accuracy; A2. If the filtering process is completed at the node, the mean square error of the data before and after filtering is calculated, and when the mean square error exceeds the first preset threshold, an abnormal flag is added to the event type; A3. If it is a fault judgment completion node, the preset fault judgment algorithm is used to analyze the sensitivity of the input data to electromagnetic interference, and according to the analysis result, the input data whose sensitivity exceeds the second preset threshold is marked as a key parameter susceptible to interference in the event description; the input data is the data in the capacitor operation data that is input into the fault judgment algorithm; B. Select the CRC check code length according to the log record level; the log record level includes high, medium and low, the high log record level corresponds to the selection of 32-bit CRC check code, the medium log record level corresponds to the selection of 16-bit CRC check code, and the low log record level corresponds to the selection of 8-bit CRC check code; C. Obtain the event log record based on the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code.
8. The capacitance measuring and controlling instrument data processing device according to claim 7, characterized in that: The generation module is executed when obtaining the event log record according to the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters and the selected CRC check code: Using a predefined binary format, a preliminary event log record is constructed by combining a calibrated timestamp, an event type with an exception flag, an event description with key parameters, and a selected CRC checksum. Based on the RS code, the preliminary event log record is subjected to anti-interference encoding to obtain a final event log record.
9. The capacitance measuring and controlling instrument data processing device according to claim 8, characterized in that: The generation module is executed when it is used to construct a preliminary event log record using a predefined binary format by combining a calibrated timestamp, an event type with anomaly flags, an event description with key parameters, and a selected CRC checksum: Load the calibrated timestamp, the event type including the abnormal flag, the event description including the key parameters, and the selected CRC checksum into the corresponding data buffer respectively; According to the predefined binary format, in the order of timestamp, event type, event description, and CRC checksum, the data in each data buffer is read, the preset separator is inserted, and then written into the target storage area, thereby finally forming a preliminary event log record.
10. The capacitance measuring and controlling instrument data processing device according to claim 8, characterized in that: The generation module is used to perform anti-interference encoding on the preliminary event log record based on the RS code to obtain the final event log record when executing: Determine the coding parameters of the RS code; the coding parameters include codeword length, information bit length and error correction capability coefficient; wherein the codeword length is determined according to the length of the preliminary event log record, the information bit length is determined according to the sum of the data lengths of the timestamp, event type and event description, and the error correction capability coefficient is calculated according to the codeword length and the information bit length; Generate a generating polynomial of the RS code according to the determined RS code encoding parameters; The timestamp, event type and event description in the preliminary event log record are regarded as information bits, and multiple zeros are filled after the information bits to form a data sequence to be encoded; Using the generator polynomial, RS encoding is performed on the data sequence to be encoded to obtain a plurality of check bits; the number of the check bits is the same as the number of zeros filled with the information bits; After all the check bits are appended to the information bits, the final event log record including the timestamp, event type, event description and check bits is formed.
Citation Information
Patent Citations
Dynamic backtracking method for data processing
CN107562768A
Real-time log control system and method, cloud computing system and server
CN108038049A
System and method for failure management using distributed execution traces
CN110574012A
Intelligent instrument operation log monitoring method and device, equipment and medium
CN119512859A
Industrial equipment log data processing method and device, equipment and medium
CN119689922A