Method, system and equipment for interchanging hardware modules of universal protection measurement and control device and medium
By actively reporting metadata, matching drivers, and standardizing data through hardware modules, plug-and-play functionality and functional recovery of the protection and control device hardware modules are achieved, solving the problem of non-interchangeability of modules and improving operation and maintenance efficiency and system stability.
Patent Information
- Application Number
- CN202511579851.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-31
- Publication Date
- 2026-01-09
AI Technical Summary
The hardware modules of existing protection and control devices lack universality, resulting in modules that cannot be interchanged, low operation and maintenance efficiency, and long research and development and testing cycles due to component iterations, leading to high costs.
By having the new hardware module actively report metadata, the configuration management service performs driver matching and loading, the resource configuration manager allocates system resources, and the driver performs initial configuration, the data is standardized and then published to the real-time data bus, thus realizing plug-and-play functionality and functional recovery of the hardware module.
It enables hot-swapping and interchange of hardware modules of different models and versions within the same device, shortening the R&D and verification cycle, reducing operation and maintenance complexity and costs, and improving system stability and data consistency.
Smart Images

Figure CN121301023A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of substation secondary equipment, and particularly relates to a hardware module interchanging method, system, device and medium of a general protection and measurement and control device. BACKGROUND
[0002] With the development of power systems and the popularization of smart substations, higher requirements are put forward for the safety, reliability and operation and maintenance efficiency of secondary equipment (such as protection and measurement and control devices). At present, it has become an inevitable trend to use domestic self-chip as the core of safe and controllable protection and measurement and control devices. However, in the process of self-innovation, there is a sharp contradiction between the high-speed iteration of domestic components and the long period of traditional research and development. Each time the core component is upgraded or replaced, it may lead to the re-adaptation and comprehensive testing of device hardware design, driving software and even application software, which is time-consuming, long-period and high-cost, and seriously restricts the development of technology and the upgrading of equipment.
[0003] The existing protection and measurement and control devices usually adopt a tight coupling design, and there is a high degree of dependency between hardware and software, system platform and application function. The hardware modules (such as acquisition board and main CPU board) of the device do not have universality, and modules of different models, different versions or even different manufacturers cannot be interchanged. If a module fails or needs to be upgraded in the field, the whole device often needs to be replaced or professional personnel need to carry special tools and software to carry out complex on-site debugging and program burning, which is low in operation and maintenance efficiency and requires high skills of personnel.
[0004] Therefore, an innovative device architecture and method are needed, which can realize the generalization and modularization of the hardware of the protection and measurement and control device, achieve plug-and-play and universal interchanging of the hardware modules, and thus fundamentally solve the above-mentioned contradiction and improve the maintainability, expandability of the equipment and the operation efficiency of the whole system. SUMMARY
[0005] In view of the above-mentioned existing problems, the present application is proposed. Therefore, the present application provides a hardware module interchanging method, system, device and medium of a general protection and measurement and control device to solve the above-mentioned problems.
[0006] To solve the above-mentioned technical problems, the present application provides the following technical solutions: In a first aspect, the present application provides a hardware module interchanging method of a general protection and measurement and control device, comprising: When a new hardware module is inserted into a physical slot of the protection and measurement and control device, the new hardware module actively reports metadata to a main processing unit of the device; A configuration management service performs driving matching search in a general driving library based on the obtained metadata, and dynamically loads a corresponding driving program for the new hardware module; The resource configuration manager allocates system resources required for the new hardware module to run and initializes the new hardware module through the driver program; Based on the initialization configuration, raw data generated by the new hardware module is read, and the raw data is converted into standardized engineering value data in combination with the parameters of the new hardware module itself and the configuration parameters, and is published to a real-time data bus; The standardized engineering value data is subscribed and obtained from the real-time data bus, the application logic of the new hardware module is executed, and the automatic recovery of the device function is performed.
[0007] As a preferred scheme of the hardware module interchanging method of the universal protection measurement and control device, wherein the new hardware module actively reports metadata to the main processing unit of the device includes: The local management chip is driven through the bottom layer bus and continuously monitors the slot state change, and when detecting that a new device is inserted, initiates a reading operation; The identity recognition chip of the new hardware module reports the pre-stored metadata in the module to the connected local intelligent management chip to perform data collection.
[0008] As a preferred scheme of the hardware module interchanging method of the universal protection measurement and control device, wherein matching and loading the driver program includes: The configuration management service matches the driver according to the module identification code and the module type in the metadata, loads the optimal driver if a completely matched driver is found, and attempts to load a general compatible driver of the same type if a completely matched driver is not found; The beneficial effect of the preferred scheme is that when the hardware module is upgraded, only the corresponding driver needs to be developed or adapted, greatly shortening the research and verification period caused by the iteration of components.
[0009] As a preferred scheme of the hardware module interchanging method of the universal protection measurement and control device, wherein the new hardware module is allocated system resources required for running, and the new hardware module is initialized through the driver program, including: The loaded driver program applies for system resources required for module work to the resource configuration manager, and the system resources include memory address space, interrupt request number, and bus address; The new hardware module is parameterized through the initialization function of the driver program, and the module state is updated.
[0010] As a preferred scheme of the hardware module interchanging method of the universal protection measurement and control device, wherein the raw data is converted into standardized engineering value data, including: reading raw sampling values from a memory buffer, data standardization processing the raw sampling values, and publishing the standardized data to a system real-time data bus; The preferred embodiment of the present application enhances data consistency and accuracy by eliminating data deviations caused by hardware differences through a data standardization processing procedure.
[0011] As a preferred embodiment of the hardware module interchanging method of the universal protection measurement and control device, the data standardization processing is represented as: wherein, represents the standardized engineering value, represents the raw data value read from the hardware module, represents the offset parameter for eliminating zero error, represents the gain coefficient parameter for correcting proportional error, represents the transformer ratio parameter.
[0012] As a preferred embodiment of the hardware module interchanging method of the universal protection measurement and control device, the automatic recovery of device functions includes: Based on the standardized engineering value data, the protection algorithm calculates the data effective value, compares it with the set value, and if the effective value is greater than the set value, a control command is issued through a delay judgment to perform a control action.
[0013] In a second aspect, the present application provides a hardware module interchanging system of a universal protection measurement and control device, comprising: A detection module is configured to actively report metadata to the main processing unit of the device when a new hardware module is inserted into the physical slot of the protection measurement and control device. A matching loading module is configured to perform drive matching search in the universal drive library based on the obtained metadata, and dynamically load the corresponding drive program for the new hardware module. An allocation module is configured to allocate the system resources required for the operation of the new hardware module by the resource configuration manager, and initialize and configure the new hardware module through the drive program. A data processing module is configured to read the raw data generated by the new hardware module based on the initialization configuration, convert the raw data into standardized engineering value data in combination with the self parameters and configuration parameters of the new hardware module, and publish the standardized engineering value data to the real-time data bus. An output module is configured to subscribe to and obtain the standardized engineering value data from the real-time data bus, execute the application logic of the new hardware module, and automatically recover the device functions.
[0014] In a third aspect, the present application provides a computer device, comprising: a memory and a processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions, which realize the steps of the hardware module interchanging method of the universalized protection measurement and control device.
[0015] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer executable instructions, which realize the steps of the hardware module interchanging method of the universalized protection measurement and control device when executed by a processor.
[0016] Compared with the prior art, the present application has the following beneficial effects: the present application can realize hot plug and interchanging of hardware modules of different models and versions in the same device, greatly reducing the complexity and cost of spare parts management and on-site operation and maintenance; when the hardware module is upgraded, only the corresponding driver needs to be developed or adapted, greatly shortening the research and development and verification period caused by iteration of components; the device function can be quickly restored through simple module replacement operation, reducing the fault outage time, and the unified driver interface and resource management also improve the stability and reliability of system operation. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor.
[0018] Figure 1 The overall flowchart of the hardware module interchanging method of the universalized protection measurement and control device according to an embodiment of the present application. DETAILED DESCRIPTION
[0019] In order to make the above-mentioned purposes, features and advantages of the present application more apparent and easy to understand, the specific embodiments of the present application will be described in detail below with reference to the drawings in the specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the protection scope of the present application.
[0020] REFERENCE Figure 1 For an embodiment of the present application, a hardware module interchanging method of a universalized protection measurement and control device is provided, comprising: S101, when a new hardware module is inserted into the physical slot of the protection measurement and control device, the new hardware module actively reports metadata to the main processing unit of the device; S102, the configuration management service performs driving matching search in the general driving library based on the acquired metadata, and dynamically loads the corresponding driving program for the new hardware module; S103, the resource configuration manager allocates the system resources required for the new hardware module to run, and initializes and configures the new hardware module through the driving program; S104, based on the initialization configuration, the original data generated by the new hardware module is read, and the original data is converted into standardized engineering value data in combination with the parameters of the new hardware module itself and the configuration parameters, and is published to the real-time data bus; S105, the standardized engineering value data is subscribed and acquired from the real-time data bus, the application logic of the new hardware module is executed, and the automatic recovery of the device function is performed.
[0021] It should be noted that the core target of the application is to realize the "general exchange" of the hardware of the protection measurement and control device, that is, when a hardware module (such as a CPU module, an analog quantity acquisition module, an input / output module) of the device fails or needs to be upgraded, the operation and maintenance personnel can directly pull out the old module and insert the new module in the case of uninterrupted power supply or short-time power failure. The device can automatically identify the new module, load the corresponding driving, reconfigure the resources, and seamlessly restore the application function, without manual complex software configuration or program burning.
[0022] In a preferred embodiment, the new hardware module actively reports metadata to the main processing unit of the device, which includes: The local management chip drives the bottom bus continuously to monitor the state change of the slot, and initiates a reading operation when detecting that a new device is inserted; The insertion action triggers the identity recognition chip of the new hardware module to report the pre-stored metadata of the module to the connected local intelligent management chip to perform data acquisition.
[0023] Specifically, the operation and maintenance personnel insert a new hardware module into the idle slot of the device. After the module is inserted, the power supply, clock and data link layer signal of the backplane bus (such as PCIe or customized high-speed bus) are turned on. The insertion action triggers the identity recognition chip (such as EEPROM or chip internal fixed storage area) on the module to report the pre-stored metadata (Metadata) to the local intelligent management chip (such as FPGA or microcontroller) connected thereto.
[0024] The metadata includes a module identification code, a module type, a manufacturer code, a hardware version number, a firmware version number, and a capability list. The module identification code is a globally unique module identification code. The module type can be an analog input AI, etc. The capability list includes data information such as support of 16 channels, a sampling rate of 4 kHz, an analog-to-digital converter (ADC) precision of 16 bits, etc.
[0025] The local management chip is driven by a bottom layer bus, continuously polls or listens to slot state changes, and initiates a reading operation when a new device is detected to be inserted, reads the above metadata, and temporarily stores the metadata in a shared memory area of a device main CPU module, so as to realize digital collection of hardware identity.
[0026] In a preferred embodiment, matching and loading the driver program include: The configuration management service matches the module identification code and the module type in the metadata, loads an optimal driver if a completely matched driver is found, and attempts to load a general compatible driver of the same type if a completely matched driver is not found.
[0027] Specifically, the step is used to realize module registration and driver matching, and is processed by a configuration management service running on a main CPU. The configuration management service is a software public component, is responsible for automatic discovery, registration, driver matching, and state management of hardware modules, and runs on a main processing unit as a system core service. The configuration management service continuously listens to hardware state registers in a shared memory, i.e., slot state flag bits or interrupt signals. These registers are updated by a bottom layer bus driver. When a new hardware module is inserted, the backboard bus triggers a state change, for example, sets a "new device detection" flag bit. The configuration management service detects the change through a polling or event-driven mechanism. When it is detected that metadata of a new module arrives, the service registers the module identification code, the module type, and the slot number Slot ID to an internal hardware resource table, and marks the module state as "uninitialized".
[0028] Further, the service matches and looks up in the preset general driver library according to the module identification code and the module type. The driver library is a database containing all supporting module driver files. The combination key of "manufacturer ID + model ID" is used for accurate matching. If a completely matched driver is found, the optimal driver is loaded. If a completely matched driver is not found but a driver of the same type (the module types are the same) is found, the general compatible driver is loaded and a warning log is issued, prompting that the driver may not be optimal. In the non-optimal case, the system loads the general compatible driver to ensure the basic function to run, but records the warning information to inform the operation and maintenance personnel. In this case, the module may not be able to exert all the performance or characteristics, and the operation and maintenance personnel need to update the driver library or replace the module subsequently. The matched driver file (a set of function interfaces) is dynamically loaded into the hardware abstraction layer of the system. In the hardware resource table, the state of the new module is updated to "driver ready". This step completes the identification of the hardware identity and the automatic pairing of the software driver.
[0029] In an optional embodiment, the driver matching can also be securely matched and loaded through digital signature authentication. A security authentication mechanism is introduced. When the driver is published, the private key is used to digitally sign the driver file. The trusted root certificate is preset in the system. After the configuration management service finds the candidate driver according to the metadata, the digital signature of the driver file is verified using the preset public key certificate first. If the verification is passed, the driver source is trusted and has not been tampered with, and then the driver loading is completed.
[0030] In another optional embodiment, the driver matching can also be matched through driver containerization. The driver program is converted into a lightweight container and communicates with the main system through a standardized abstract interface. The metadata of the hardware module contains not only the identification code but also the image ID or link of the driver container. The container image information is obtained by parsing the metadata. If the image does not exist, it is downloaded from the specified image warehouse.
[0031] In a preferred embodiment, the system resources required for the new hardware module are allocated, and the new hardware module is initialized and configured through the driver program, including: The loaded driver program applies for the system resources required for the module work to the resource configuration manager. The system resources include memory address space, interrupt request number, and bus address. The parameters of the new hardware module are set through the initialization function of the driver program, and the module state is updated.
[0032] Specifically, the loaded driver applies to the resource configuration manager for system resources required for the module to work normally, including memory mapping, interrupt request, and address configuration. Among them, a fixed memory address space is allocated for the sampling data buffer of the module, and the allocation rule is based on a pre-defined resource mapping table, which dynamically allocates according to the module type and slot position; for example, an analog quantity acquisition module is usually allocated a continuous memory block, the size of which is determined by the number of module channels and the sampling depth, and the rule ensures that the resources are conflict-free and aligned with the bus bandwidth; an interrupt number (IRQ) is allocated for the module to notify the CPU when the sampling is completed or an exception occurs; at the same time, a bus address is configured for the on-board register of the module.
[0033] Further, the driver calls a specific initialization function, which is a standard routine in the driver program, to achieve parameter setting by writing into the configuration register of the module. It can achieve dynamic loading and configuration without the need for system restart or manual intervention. The parameters are set by writing into the configuration register, such as setting the sampling rate, range, filter parameters, etc. The set data and values come from the capability list in the module metadata and the system configuration parameters. For example, the sampling rate is read from the system configuration library according to the maximum value supported by the module and the application requirement (such as the sampling rate required by the protection algorithm), and the range and filter parameters are automatically set according to the factory calibration data of the module. The signal of initialization success is returned to the configuration management service, and then the state of the module in the hardware resource table is updated to "ready". This step allocates necessary software running resources for the hardware module and makes it enter the working state.
[0034] In a preferred embodiment, converting the raw data into standardized engineering value data includes: reading the raw sampling value from the memory buffer, performing data standardization processing on the raw sampling value, and publishing the standardized data to the real-time data bus of the system.
[0035] In a preferred embodiment, the data standardization processing is represented as: wherein, represents the standardized engineering value, represents the raw data value read from the hardware module; represents an offset parameter for eliminating zero error, which is determined by calibration experiment and stored in the identity recognition chip or special storage unit, such as measuring the ADC output value under zero input condition and calculating the average value as Offset for eliminating hardware zero error; represents a gain coefficient parameter for correcting proportional error, which is obtained from the module calibration data by measuring the ADC output by applying a standard signal source and calculating the linear regression coefficient as Gain for correcting signal proportional error; represents the transformer ratio parameter, from the system configuration library of the device (the library is decoupled from the hardware module, and is configured in advance by the user according to the field current transformer / potential transformer (Current Transformer / Potential Transformer) parameter, which ensures that even if the AI module is replaced, the final engineering value is only determined by the external transformer and is irrelevant to the module itself.
[0036] Specifically, the module starts working, converts the analog signal into digital quantity through the ADC chip, and writes the original sampling value into the memory buffer area allocated in step S103 periodically (every sampling period). The original sampling value refers to the unprocessed digital quantity directly read from the ADC, which is usually in the form of an integer, such as a 16-bit signed integer, representing the instantaneous value of the analog signal. The original sampling value RawData is read from the fixed memory buffer area, assuming that the value of a certain channel read is X raw , X raw is converted into an engineering value X eng with a standard physical unit (such as kV, A) through a standardization processing formula. The standardized data is published to the real-time data bus (such as DDS, shared memory message queue, etc.) of the system, and finally an engineering value data stream with no hardware, standardization, and physical unit is output. This step realizes the decoupling of data, so that the upper layer application no longer cares about the difference between the underlying hardware.
[0037] In an optional embodiment, the data standardization processing can use a pre-calibrated lookup table for non-linear mapping. Each module is calibrated at multiple points, the corresponding relationship between the input standard signal and the output original value is recorded, a mapping table from the original value to the engineering value is constructed, and stored in the configuration library of the module. At runtime, the original value is converted into the engineering value by lookup table and interpolation (such as linear interpolation, spline interpolation).
[0038] In another optional embodiment, the data standardization processing can also be standardized based on digital filtering and frequency domain processing. The original sampling sequence is processed by a digital filter, and then Fourier transform is performed to extract the fundamental component or specific harmonic, and finally the effective value, phase, frequency, etc. are calculated.
[0039] In a preferred embodiment, the automatic recovery of device functions includes: The effective value of the data is calculated by the protection algorithm based on the standardized engineering value data, and compared with the set value. If the effective value is greater than the set value, a control instruction is issued through a delay judgment to execute a control action.
[0040] Specifically, the user can automatically subscribe to the current channel data of interest in the real-time data bus, that is, the standardized engineering value data in S104. By executing its inherent protection algorithm, comparison is made with the set value, wherein the protection algorithm can be the effective value of physical quantities such as current, voltage, power, and harmonic, the current effective value is calculated based on the standardized engineering value of the current channel, the voltage effective value is calculated based on the standardized engineering value of the voltage channel, the power is calculated by the product of current and voltage, and the set value is derived from the system protection setting library, which is pre-configured in the system configuration library by the user according to the power grid operation demand.
[0041] The formula for calculating the current effective value in the protection algorithm is represented as: wherein, represents the current effective value, N represents the total number of sampling points in a calculation period, and i(k) represents the current instantaneous value of the kth sampling point.
[0042] When the calculated effective value result is greater than the set value, a control instruction is issued to the backward "DO" module after delay judgment, the delay judgment is realized by using a timer or a counter, in overcurrent protection, the delay judgment is based on inverse time limit or fixed time limit characteristics, the fault time is accumulated by the timer to ensure the accuracy of action; the DO module refers to the control module that is opened, which is used to output digital control signals such as tripping, closing, alarming, locking and the like, for example, in overcurrent protection, a tripping instruction is sent when the current exceeds the set value and the delay time is satisfied, in under-voltage protection, an alarm instruction is sent when the voltage is lower than the set value, and the execution is based on standardized data.
[0043] It should be noted that finally the application can generate fault recording data (record the standardized current and voltage waveform), issue correct tripping signals, drive the circuit breaker to open through the DO module which has also been standardized configured, the protection measurement and control function of the device is completely restored after replacing the hardware module, the design goal of "hardware general exchange" is realized, and during the whole process, the operation and maintenance personnel do not need to intervene in the software process.
[0044] In summary, the application clearly shows how to convert specific hardware modules into abstract and standardized data supply resources through four key links of metadata automatic reporting, intelligent matching driving, resource dynamic allocation, and data standardization processing, so that the upper layer application and the bottom layer hardware are completely decoupled, thereby realizing the true hardware general exchange, greatly improving the operation efficiency, maintainability and reliability of the secondary equipment, and providing a solid technical foundation for building a flexible station-side secondary system.
[0045] The application has the following remarkable beneficial effects: Hardware universal exchange and plug-and-play are realized, different models and versions of hardware modules can realize hot plugging and exchange in the same device through standardized metadata description, automatic driving matching and loading mechanism, which greatly reduces the complexity and cost of spare parts management and on-site operation; The development and test cycle is shortened, the hardware and application are decoupled in the architecture design, the application software is developed based on the unified standardized data interface, and the upper application software does not need to be modified and retested when the hardware module is upgraded, which greatly shortens the development and verification period caused by the iteration of components; The maintainability and reliability of the device are improved, the device function can be quickly restored through simple module replacement operation, the fault outage time is reduced, and the unified driving interface and resource management also improve the stability and reliability of system operation; The data consistency and accuracy are enhanced, the data deviation caused by hardware difference is eliminated through data standardization processing flow, and the data collected by different modules has consistent accuracy and reliability, providing high-quality data basis.
[0046] The above is a schematic scheme of the hardware module exchange method of the universal protection and measurement and control device. It should be noted that the technical scheme of the hardware module exchange system of the universal protection and measurement and control device belongs to the same concept as the technical scheme of the hardware module exchange method of the universal protection and measurement and control device described above. The technical scheme of the hardware module exchange system of the universal protection and measurement and control device in this embodiment is not described in detail. Please refer to the description of the technical scheme of the hardware module exchange method of the universal protection and measurement and control device.
[0047] The embodiment provides a hardware module exchange system of a universal protection and measurement and control device, which comprises: The detection module is used for actively reporting metadata to the main processing unit of the device when a new hardware module is inserted into the physical slot of the protection and measurement and control device; The matching and loading module is used for the configuration management service to perform driving matching and searching in the universal driving library based on the obtained metadata, and dynamically loading the corresponding driving program for the new hardware module; The allocation module is used for the resource configuration manager to allocate the system resources required for the new hardware module to run, and to initialize and configure the new hardware module through the driving program; The data processing module is used for reading the original data generated by the new hardware module based on the initialization configuration, and converting the original data into standardized engineering value data in combination with the parameters of the new hardware module itself and the configuration parameters, and publishing the standardized engineering value data to the real-time data bus; An output module is configured to subscribe to and acquire standardized engineering value data from the real-time data bus, execute application logic of the new hardware module, and automatically restore the device function.
[0048] The system further comprises: One or more pluggable hardware modules, each of which is provided with an identity recognition chip for storing metadata, and the pluggable hardware module comprises one or more of a CPU module, an analog quantity acquisition module, an incoming quantity acquisition module, and an outgoing quantity control module; A main processing unit is configured to run a configuration management service, a resource configuration manager, a data preprocessing service, and the like; A general-purpose driver library is configured to store driver programs supporting all hardware modules; A real-time data bus is configured to transmit standardized engineering value data; A backplane bus is configured to connect the pluggable hardware module and the main processing unit and provide a power supply and a data transmission channel.
[0049] The embodiment also provides a computer device suitable for the interchange of hardware modules of the general-purpose protection and measurement and control device, comprising: A memory and a processor; the memory is configured to store computer executable instructions, and the processor is configured to execute the computer executable instructions to implement the hardware module interchange method of the general-purpose protection and measurement and control device.
[0050] The embodiment also provides a storage medium having a computer program stored thereon, and the program is executed by a processor to implement the hardware module interchange method of the general-purpose protection and measurement and control device.
[0051] The storage medium proposed in the embodiment and the hardware module interchange method of the general-purpose protection and measurement and control device proposed in the above embodiment belong to the same inventive concept, and the technical details not described in the embodiment can be referred to the above embodiment, and the embodiment has the same beneficial effects as the above embodiment.
[0052] From the above description of the embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software and necessary universal hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a floppy disk, a read-only memory (ROM), a random access memory (RAM), a FLASH memory, a hard disk, or an optical disc, and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods of various embodiments of the present application.
[0053] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present application but not limit the present application, and although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or replaced equivalently without departing from the spirit and scope of the technical solutions of the present application, and all of them should be covered in the scope of the claims of the present application.
Claims
1. A method for generalizing the interchange of hardware modules of a telemetry device for protection, characterized in that, The method comprises the steps of: When a new hardware module is inserted into a physical slot of a protection monitoring device, the new hardware module actively reports metadata to a main processing unit of the device; Based on the obtained metadata, a configuration management service performs driver matching search in a general driver library and dynamically loads a corresponding driver program for the new hardware module; A resource configuration manager allocates system resources required for the operation of the new hardware module and performs initialization configuration of the new hardware module through the driver program; Based on the initialization configuration, raw data generated by the new hardware module is read, and the raw data is converted into standardized engineering value data in combination with parameters of the new hardware module and configuration parameters, and the standardized engineering value data is published to a real-time data bus; The standardized engineering value data is subscribed and obtained from the real-time data bus, and application logic of the new hardware module is executed to automatically restore device functions.
2. The method for interchanging hardware modules of a generalized protection and control device according to claim 1, characterized in that, The new hardware module actively reports metadata to the main processing unit of the device, which comprises the steps of: A local management chip continuously monitors slot state changes through a bottom bus driver, and initiates a reading operation when detecting that a new device is inserted; The insertion action triggers an identity recognition chip of the new hardware module to report pre-stored metadata in the module to a connected local intelligent management chip for data collection.
3. The method of claim 1, wherein the hardware module is a hardware module of a telemetry device. Matching and loading the driver program comprises the steps of: The configuration management service performs driver matching according to the module identification code and the module type in the metadata, loads an optimal driver if a completely matched driver is found, and attempts to load a general compatible driver of the same type if a completely matched driver is not found.
4. The method of claim 3, wherein the hardware module is a hardware module of a telemetry device. Allocating system resources required for the operation of the new hardware module and performing initialization configuration of the new hardware module through the driver program comprises the steps of: The loaded driver program applies for system resources required for the operation of the module to a resource configuration manager, and the system resources include memory address space, interrupt request number, and bus address; The initialization function of the driver program is used to set parameters of the new hardware module and update the module state.
5. The method of claim 1, wherein the hardware module is a hardware module of a telemetry device. Converting the raw data into standardized engineering value data comprises the steps of: Raw sampling values are read from a memory buffer, data standardization processing is performed on the raw sampling values, and the standardized data is published to a real-time data bus of the system.
6. The method of claim 5, wherein the hardware module is a hardware module of a telemetry device. The data standardization processing is represented as: wherein, represents a normalized engineering value, represents an original data value read from a hardware module, represents an offset parameter for eliminating a zero error, represents a gain coefficient parameter for correcting a proportional error, represents a transformer ratio parameter.
7. The method of claim 5, wherein the hardware module is a hardware module of a telemetry device. The automatic restoration of device functions comprises the steps of: Based on the standardized engineering value data, a data effective value is calculated through a protection algorithm, and the data effective value is compared with a set value, and if the data effective value is greater than the set value, a control instruction is issued through delay judgment, and a control action is performed.
8. A hardware module interchange system for generalizing protection of a hardware module of a measuring and control device, which applies the hardware module interchange method for generalizing protection of a hardware module of a measuring and control device according to any one of claims 1 to 7, characterized by, The method comprises the steps of: A detection module is configured to actively report metadata to a main processing unit of the device when a new hardware module is inserted into a physical slot of a protection monitoring device; A matching and loading module is configured to perform driver matching search in a general driver library based on the obtained metadata and dynamically load a corresponding driver program for the new hardware module; An allocation module is configured to allocate system resources required for the operation of the new hardware module and perform initialization configuration of the new hardware module through the driver program; A data processing module is configured to read raw data generated by the new hardware module based on the initialization configuration, convert the raw data into standardized engineering value data by combining the new hardware module's own parameters and configuration parameters, and publish the standardized engineering value data to a real-time data bus. An output module is configured to subscribe to and acquire the standardized engineering value data from the real-time data bus, execute the application logic of the new hardware module, and automatically restore the device function.
9. A computer device, comprising: Comprise: a memory and a processor; the memory is configured to store computer executable instructions, and the processor is configured to execute the computer executable instructions, and the computer executable instructions, when executed by the processor, implement the steps of the hardware module interchanging method of the universal protection measurement and control device according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The memory has stored computer executable instructions, and the computer executable instructions, when executed by the processor, implement the steps of the hardware module interchanging method of the universal protection measurement and control device according to any one of claims 1 to 7.