Relay-based data storage management method and system

Through the strategic data storage and real-time monitoring of the system controller, the problems of relay wear and data loss are solved, efficient and reliable data management is achieved, adapting to changes in business needs, and extending the service life of the system.

CN120469641APending Publication Date: 2025-08-12SHENZHEN ZHONGJIAN HENGFENG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510581057.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-07
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

In the prior art, repeated opening and closing of relays leads to mechanical wear, shortening service life, and it is difficult to adjust data storage and reading strategies according to changes in actual business needs, which easily leads to data loss or reading errors.

Method used

Through the system controller, combined with data characteristics and system status based on preset strategies, flexibly selects storage locations, monitors the status of relays and storage devices in real time, rationally selects solid-state or electromagnetic relays, periodically maintains and detects, and adjusts strategies in a timely manner to adapt to changes in business needs.

Benefits of technology

It improves the efficiency and reliability of data storage and reading, extends the service life of the relay, reduces the risk of failure, and ensures data continuity and efficient operation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120469641A_ABST
    Figure CN120469641A_ABST
Patent Text Reader

Abstract

The invention provides a relay-based data storage management method and system, and relates to the technical field of data storage. The relay-based data storage management system comprises a system initialization module, the system initialization module is connected with a daily operation module, a maintenance and detection module and an optimization and upgrade module, and the daily operation module is connected with a data storage operation controller and a data reading operation controller. The maintenance and detection module is connected with regular cleaning and maintenance, performance parameter control and fault processing and replacement, and the optimization and upgrade module is connected with strategy optimization and technology upgrade. The storage position is judged according to the preset strategy in combination with the data characteristics and the system state, the storage requirements of different types of data can be flexibly met, a solid-state relay or an electromagnetic relay is reasonably selected according to different scenes, the system requirements are met from the source, and the fault risk caused by improper relay type selection is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data storage, and in particular to a data storage management method and system based on relays. Background Art

[0002] A relay is an electrical switch that controls a larger current or voltage by using a smaller current. A relay typically consists of an electromagnet and a movable contact. When the electromagnet is energized, it generates a magnetic field that attracts the contacts, thereby changing the circuit's connection state (for example, from open to closed or vice versa). Relays are widely used in various electrical control systems for functions such as remote control and automatic control. Relay-based data storage utilizes the switching characteristics of relays to store data. Specifically, each relay can represent a binary bit: the closed state represents "1" and the open state represents "0." By controlling the switching state of the relays, data can be stored and retrieved. For example, a system composed of multiple relays can store multiple binary bits, thus implementing simple data storage.

[0003] In traditional data storage systems, the frequent use of conventional relays can easily lead to mechanical wear from the repeated opening and closing of contacts, significantly shortening the relay's lifespan. Furthermore, some existing systems lack effective response mechanisms when encountering relay failures or storage device anomalies, which can easily lead to data loss or read errors. Previously, once some data storage management systems were built, their data storage and read strategies were fixed, making them difficult to adjust to changing business needs. Summary of the Invention

[0004] (1) Technical problems solved In response to the shortcomings of the existing technology, the present invention provides a data storage management method and system based on relays, which solves the problems of mechanical wear caused by repeated opening and closing of relays, which reduces the service life, easily leads to data loss or reading errors, and is difficult to adjust according to changes in actual business needs.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: a data storage management method based on relays, specifically comprising the following steps: S1. System startup preparation The system is initialized upon power-on, the controller performs a self-test, and initializes the status of the control port connected to the relay. Then, it begins to read the system operating status information saved at the last shutdown from the storage device, including the data storage location and the cumulative number of on and off times of the relay; S2. Receive external data storage instructions The system receives instructions from other host computers or other data sources through network interfaces, serial ports, and other data input channels. The instructions include the characteristics of the data to be stored and the storage requirements. S3. Storage strategy analysis and decision-making The system controller determines the data storage location based on the preset data storage strategy algorithm, combined with the received data characteristics and current system status information. If it is high-priority real-time data, the primary storage device with fast response speed is preferred. If it is regular backup data and the current primary storage load is low, it can still be stored in the primary storage. Otherwise, the backup storage device is selected. At the same time, the available capacity information of the storage device is queried. If the available capacity of the target storage device is lower than the set threshold, an early warning is triggered and consideration is given to whether data cleanup or switching the storage target is needed. S4. Relay control signal generation and transmission After determining the storage location, the controller generates a control signal for the corresponding relay based on the corresponding relationship between the storage device and the relay. Before sending the signal, it is first sent to the buffer module of the control circuit. The buffer module has a built-in timer with a delay time set to 30 milliseconds. During this period, the controller continuously monitors the system status to ensure that there are no interference factors affecting the relay operation. After the delay ends, the control signal is amplified by the drive circuit to meet the driving voltage and current requirements of the relay coil and drive the corresponding relay to operate. For electromagnetic relays, the drive circuit gradually increases the driving voltage according to the software startup curve; S5. Storage process monitoring and feedback After the relay is closed, the system starts the data writing process to the storage device and starts the monitoring thread at the same time. The detection thread obtains the status feedback signal of the relay in real time and sends a query command to the storage device every 5 seconds to obtain the working status of the storage device; S6. Receive data read request The system also receives read requests from the outside through various input interfaces, and the requests contain the identifier of the data to be read; S7. Data source location and selection The controller determines the best data source for reading based on factors such as the current online status of the storage device, data integrity, and the load of the last read. If the primary storage device is normal and the data is recently and frequently accessed, it will be read from the primary storage first. If the primary storage device fails or the data only has a complete copy in the backup storage, the backup storage device will be selected. S8. Relay control signal triggers the establishment of reading channel After determining the data source, the controller generates a control signal for the relay connected to that data source. For solid-state relays, the control signal is directly sent to the drive circuit through the buffer module with a delay of 20 milliseconds, quickly closing the relay and establishing a data reading channel. For electromagnetic relays, during the buffer module delay, the controller gradually increases the drive voltage according to the soft-start parameters. S9. Reading process assurance and exception handling After data reading begins, the monitoring thread tracks the relay status and the storage device's reading performance indicators in real time, including reading speed and data accuracy. If a reading error is found, such as data verification failure or reading interruption, the reading operation is immediately suspended, the error details are recorded, and the read command is first tried to be resent. If it still fails after multiple attempts, the relay status is checked for abnormalities. If there is a problem, the backup relay or backup storage channel is switched to continue the reading operation, and a fault alarm is sent to the system administrator. S10. Real-time monitoring and logging of system operation status The system controller continuously monitors the working status of each relay, including the cumulative number of on and off times, the current on and off status, and the action time parameters, and compares them with the preset normal threshold range. At the same time, it monitors various performance indicators of the storage device, including storage capacity utilization, read and write rate change trends, and temperature, to promptly identify potential problems and keep detailed records of key events during system operation, including the start time, end time, operation results, relay status change events of each data storage and reading operation, as well as system maintenance and optimization operation records.

[0006] A relay-based data storage management system includes a system initialization module connected to a daily operation module, a maintenance and detection module, and an optimization and upgrade module; The daily operation module is connected to the data storage operation control and data reading operation control, the maintenance and detection module is connected to regular cleaning and maintenance, performance parameter control and fault processing and replacement, and the optimization and upgrade module is connected to strategy optimization and technology upgrade; The daily operation module includes system startup, the system startup is connected with controller self-test and port initialization, the controller self-test and port initialization are connected with reading the last operation status, the reading of the last operation status is connected with whether the storage instruction is received, the whether the storage instruction is received is connected with whether the storage instruction is received, the whether the storage instruction is received is connected with system operation status monitoring, the system operation status monitoring is connected with log recording, and the log recording is connected with system continuous operation.

[0007] Preferably, whether the storage instruction is received is connected to receiving the storage instruction, the receiving the storage instruction is connected to the storage strategy decision, the storage strategy decision is connected to the relay control signal processing, the relay control signal processing is connected to the storage process monitoring feedback, and the storage process monitoring feedback is connected to the continuous operation of the system.

[0008] Preferably, whether the storage instruction is received is connected with receiving the read instruction, the receiving the read instruction is connected with the data source positioning selection, the data source positioning selection is connected with the relay control reading channel establishment, the relay control reading channel establishment is connected with the reading process monitoring feedback, and the reading process monitoring feedback is connected to the continuous operation of the system. Beneficial effects

[0009] The present invention provides a data storage management method and system based on relays, which has the following beneficial effects: The present invention provides a relay-based data storage management method and system. During the data storage operation process, the system controller determines the storage location based on a preset strategy combined with data characteristics and system status, allowing for flexible response to storage requirements for different types of data. For example, for high-priority real-time data, a fast-responding primary storage device is prioritized, which not only meets the real-time requirements of the data but also optimizes storage resource allocation and improves storage efficiency. Furthermore, the data reading process also locates the data source based on various status factors of the storage device, ensuring that data is retrieved from the most appropriate location and reducing reading delays. Furthermore, during both the storage and reading processes, the status of the relays and storage devices is monitored in real time. Once an anomaly is detected, immediate adjustment measures can be taken to ensure smooth operation and improve the data processing efficiency of the overall system.

[0010] The present invention provides a data storage management method and system based on relays. In the relay selection stage of this system, factors such as switching frequency, load current, and voltage requirements are comprehensively considered. Solid-state relays or electromagnetic relays are reasonably selected for different scenarios, and the system requirements are adapted from the source to reduce the risk of failure caused by improper relay selection. Specifically, solid-state relays are selected in scenarios with frequent switching, which avoids contact wear caused by frequent operation of electromagnetic relays and improves the long-term operation reliability of the system. When abnormal relay performance parameters or failure are detected, the system can quickly switch to a backup storage device or channel to ensure data storage continuity and avoid data loss. The faulty relay can be analyzed, repaired or replaced in time to quickly restore the system to normal.

[0011] The present invention provides a relay-based data storage management method and system. This system establishes a periodic maintenance and servicing mechanism to ensure that professional technicians perform maintenance operations on the relays according to established cycles. This mechanism covers the removal of contact impurities, inspection of appearance and physical damage, etc., effectively preventing poor contact problems caused by dust, oil, etc., thereby extending the service life of the relays and reducing the system failure rate. In addition, the system tests relay performance parameters quarterly. By accurately measuring key parameters such as contact resistance, coil resistance, and inductance, it promptly detects and warns of potential problems, allowing necessary remedial measures to be taken before failures occur. This makes system maintenance more proactive and preventative. At the same time, the system regularly reviews and optimizes data storage management strategies. Based on the relay's on-off frequency data and actual operating requirements, it rationally adjusts the storage and backup cycles and strategies to reduce unnecessary relay operations and minimize equipment losses. In addition, the system is committed to adapting to the ever-changing data business needs and meeting these needs by improving system performance. This system closely monitors the latest developments in technology, is able to promptly assess the applicability of new technologies and equipment to existing systems, and introduce upgrades when appropriate to maintain the system's advanced nature and ensure that technology does not lag behind actual needs due to obsolescence. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 It is a schematic diagram of the overall system flow of the present invention; Figure 2 Schematic diagram of the system flow of the daily operation module of the present invention.

[0013] Among them, 1. System initialization module; 2. Daily operation module; 3. Maintenance and detection module; 4. Optimization and upgrade module; 5. Data storage operation control; 6. Data reading operation control; 7. Regular cleaning and maintenance; 8. Performance parameter control; 9. Fault handling and replacement; 10. Strategy optimization; 11. Technology upgrade. DETAILED DESCRIPTION

[0014] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0015] like Figure 1 and 2As shown, an embodiment of the present invention provides a relay-based data storage management system, including a system initialization module 1, the system initialization module 1 is connected to a daily operation module 2, a maintenance and detection module 3 and an optimization and upgrade module 4; the daily operation module 2 is connected to a data storage operation control 5 and a data reading operation control 6, the maintenance and detection module 3 is connected to regular cleaning and maintenance 7, performance parameter control 8 and fault handling and replacement 9, and the optimization and upgrade module 4 is connected to a strategy optimization 10 and a technical upgrade 11; the daily operation module 2 includes system startup, the system startup is connected to a controller self-test and port initialization, the controller self-test and port initialization are connected to read the last operation status, the reading of the last operation status is connected to whether a storage instruction is received, whether a storage instruction is received is connected to whether a storage instruction is received, whether a storage instruction is received is connected to system operation status monitoring, the system operation status monitoring is connected to log recording, and the log recording is connected to system continuous operation.

[0016] Whether the storage instruction is received is connected with receiving storage instructions, receiving storage instructions is connected with storage strategy decision, storage strategy decision is connected with relay control signal processing, relay control signal processing is connected with storage process monitoring feedback, storage process monitoring feedback is connected to system continuous operation, whether the storage instruction is received is connected with receiving read instructions, receiving read instructions is connected with data source positioning selection, data source positioning selection is connected with relay control reading channel establishment, relay control reading channel establishment is connected with reading process monitoring feedback, and reading process monitoring feedback is connected to system continuous operation.

[0017] Specifically, in the above specific embodiment, the data storage management system control system process based on the relay specifically includes: 1. System startup preparation The system is powered on and initialized. The controller performs self-tests to ensure that its modules are operating normally. At the same time, it initializes the status of the control ports connected to the relays to put them in the default safe state (for example, all relays are initially disconnected).

[0018] Read the system operation status information saved at the last shutdown from the storage device, including the data storage location, the cumulative on and off times of each relay, etc., to provide a reference for subsequent decision-making.

[0019] 2. Data Storage Operation Control Process Receive external data storage instructions The system receives instructions from the host computer or other data sources through the network interface, serial port or other data input channels. The instructions contain the data characteristics to be stored (such as data type, priority, etc.) and storage requirements (such as real-time storage, timed storage, etc.).

[0020] Storage strategy analysis and decision-making The system controller determines the data storage location based on a pre-set data storage strategy algorithm, combined with the received data characteristics and current system status information. For example, if the data is high-priority real-time data, the primary storage device with a fast response time is preferred. If the data is regular backup data and the current primary storage load is low, it can be stored in the primary storage; otherwise, the backup storage device is selected.

[0021] At the same time, query the available capacity information of the storage device. If the available capacity of the target storage device is lower than the set threshold, trigger an early warning and consider whether data cleanup or switching the storage target is necessary.

[0022] Relay control signal generation and transmission After determining the storage location, the controller generates a control signal for the corresponding relay based on the corresponding relationship between the storage device and the relay.

[0023] Before the signal is transmitted, it is first fed into the control circuit's buffer module. The buffer module has a built-in timer with a set delay of 30 milliseconds (adjustable based on the relay's actual response characteristics). During this time, the controller continuously monitors the system status to ensure that no interference factors can affect relay operation.

[0024] After the delay, the control signal is amplified by the driver circuit to meet the drive voltage and current requirements of the relay coil, driving the corresponding relay. For electromagnetic relays, the driver circuit must also gradually increase the drive voltage according to the soft-start curve to achieve a slow closing of the contacts and prevent sudden high current surges.

[0025] Stored process monitoring and feedback After the relay is closed, the system starts the data writing process to the storage device and starts the monitoring thread at the same time.

[0026] The monitoring thread obtains the status feedback signal of the relay in real time (such as monitoring the contact closure status through auxiliary contacts or sensors) to ensure that the relay is closed normally and there is no abnormal jitter or disconnection.

[0027] At regular intervals (e.g., 5 seconds), the system sends status query commands to the storage device to obtain its operating status, including write speed and whether there are write errors. If an anomaly is detected, data writing is immediately suspended, the error information is recorded, and the system performs the error handling according to the pre-set error handling process, such as attempting to rewrite or switching storage devices.

[0028] 3. Data Reading Operation Control Flow Receive data read request The system also receives external read requests through various input interfaces. The requests contain the identifier of the data to be read (such as file name, data time period, etc.).

[0029] Data source location and selection The controller determines the optimal data source for reading data based on factors such as the current storage device's online status, data integrity, and the load during the last read. For example, if the primary storage device is functioning normally and the data is frequently accessed recently, the primary storage device is prioritized for reading. If the primary storage device fails or the data is only fully available on the backup storage device, the backup storage device is selected.

[0030] Relay control signal triggers the establishment of reading channel After determining the data source, the controller generates a control signal for the relay connected to the data source.

[0031] For solid-state relays, the control signal is sent directly through the buffer module (delayed 20 milliseconds to ensure system stability) and the drive circuit, quickly closing the relay and establishing a data reading channel. For electromagnetic relays, during the buffer module delay, the controller gradually increases the drive voltage according to the soft-start parameters to ensure smooth closure of the relay contacts and prevent inrush current from interfering with the channel.

[0032] Reading process assurance and exception handling After data reading begins, the monitoring thread tracks the relay status and storage device reading performance indicators in real time, such as reading speed and data accuracy.

[0033] If a read error is detected, such as a data verification failure or read interruption, the read operation is immediately suspended and the error details are recorded. The system first attempts to resend the read command. If failure occurs after multiple attempts, the system checks the relay status for abnormalities (e.g., loose contacts causing poor contact). If so, the system switches to a backup relay (if configured) or backup storage channel and continues the read operation. A fault alarm is also sent to the system administrator.

[0034] 4. Real-time monitoring and logging of system operation status Condition Monitoring The system controller continuously monitors the operating status of each relay, including parameters such as the cumulative number of on-off cycles, current on / off status, and actuation time, comparing these parameters with pre-set normal thresholds. For example, if a relay's cumulative on-off cycles approach its mechanical lifespan, an early warning alert indicates that it may need to be replaced.

[0035] At the same time, monitor various performance indicators of storage devices, such as storage capacity utilization, read and write rate change trends, temperature, etc., to detect potential problems in a timely manner.

[0036] Logging Keep detailed records of key events during system operation, including the start time, end time, and operation results (success or failure and reasons) of each data storage and reading operation, relay state change events (such as on-off switching time, fault occurrence time, etc.), and system maintenance and optimization operation records.

[0037] Log information is stored in chronological order and regularly backed up to independent storage media for reference during subsequent troubleshooting, performance analysis, and system optimization.

[0038] Through the above rigorous control system process, the role of relays in the data storage management system can be fully utilized to ensure efficient and stable data storage and reading, and improve the reliability and availability of the entire system.

[0039] The detailed management method of the system of the present invention is as follows: S1. System startup preparation The system is initialized upon power-on, the controller performs a self-test, and initializes the status of the control port connected to the relay. Then, it begins to read the system operating status information saved at the last shutdown from the storage device, including the data storage location and the cumulative number of on and off times of the relay; S2. Receive external data storage instructions The system receives instructions from other host computers or other data sources through network interfaces, serial ports, and other data input channels. The instructions include the characteristics of the data to be stored and the storage requirements. S3. Storage strategy analysis and decision-making The system controller determines the data storage location based on the preset data storage strategy algorithm, combined with the received data characteristics and current system status information. If it is high-priority real-time data, the primary storage device with fast response speed is preferred. If it is regular backup data and the current primary storage load is low, it can still be stored in the primary storage. Otherwise, the backup storage device is selected. At the same time, the available capacity information of the storage device is queried. If the available capacity of the target storage device is lower than the set threshold, an early warning is triggered and consideration is given to whether data cleanup or switching the storage target is needed. S4. Relay control signal generation and transmission After determining the storage location, the controller generates a control signal for the corresponding relay based on the corresponding relationship between the storage device and the relay. Before sending the signal, it is first sent to the buffer module of the control circuit. The buffer module has a built-in timer with a delay time set to 30 milliseconds. During this period, the controller continuously monitors the system status to ensure that there are no interference factors affecting the relay operation. After the delay ends, the control signal is amplified by the drive circuit to meet the driving voltage and current requirements of the relay coil and drive the corresponding relay to operate. For electromagnetic relays, the drive circuit gradually increases the driving voltage according to the software startup curve; S5. Storage process monitoring and feedback After the relay is closed, the system starts the data writing process to the storage device and starts the monitoring thread at the same time. The detection thread obtains the status feedback signal of the relay in real time and sends a query command to the storage device every 5 seconds to obtain the working status of the storage device; S6. Receive data read request The system also receives read requests from the outside through various input interfaces, and the requests contain the identifier of the data to be read; S7. Data source location and selection The controller determines the best data source for reading based on factors such as the current online status of the storage device, data integrity, and the load of the last read. If the primary storage device is normal and the data is recently and frequently accessed, it will be read from the primary storage first. If the primary storage device fails or the data only has a complete copy in the backup storage, the backup storage device will be selected. S8. Relay control signal triggers the establishment of reading channel After determining the data source, the controller generates a control signal for the relay connected to that data source. For solid-state relays, the control signal is directly sent to the drive circuit through the buffer module with a delay of 20 milliseconds, quickly closing the relay and establishing a data reading channel. For electromagnetic relays, during the buffer module delay, the controller gradually increases the drive voltage according to the soft-start parameters. S9. Reading process assurance and exception handling After data reading begins, the monitoring thread tracks the relay status and the storage device's reading performance indicators in real time, including reading speed and data accuracy. If a reading error is found, such as data verification failure or reading interruption, the reading operation is immediately suspended, the error details are recorded, and the read command is first tried to be resent. If it still fails after multiple attempts, the relay status is checked for abnormalities. If there is a problem, the backup relay or backup storage channel is switched to continue the reading operation, and a fault alarm is sent to the system administrator. S10. Real-time monitoring and logging of system operation status The system controller continuously monitors the working status of each relay, including the cumulative number of on and off times, the current on and off status, and the action time parameters, and compares them with the preset normal threshold range. At the same time, it monitors various performance indicators of the storage device, including storage capacity utilization, read and write rate change trends, and temperature, to promptly identify potential problems and keep detailed records of key events during system operation, including the start time, end time, operation results, relay status change events of each data storage and reading operation, as well as system maintenance and optimization operation records.

[0040] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.

Claims

1. A data storage management method based on relays, characterized in that: The specific steps include: S1. System startup preparation The system is initialized upon power-on, the controller performs a self-test, and initializes the status of the control port connected to the relay. Then, it begins to read the system operating status information saved at the last shutdown from the storage device, including the data storage location and the cumulative number of on and off times of the relay; S2. Receive external data storage instructions The system receives instructions from other host computers or other data sources through network interfaces, serial ports, and other data input channels. The instructions include the characteristics of the data to be stored and the storage requirements. S3. Storage strategy analysis and decision-making The system controller determines the data storage location based on the preset data storage strategy algorithm, combined with the received data characteristics and current system status information. If it is high-priority real-time data, the primary storage device with fast response speed is preferred. If it is regular backup data and the current primary storage load is low, it can still be stored in the primary storage. Otherwise, the backup storage device is selected. At the same time, the available capacity information of the storage device is queried. If the available capacity of the target storage device is lower than the set threshold, an early warning is triggered and consideration is given to whether data cleanup or switching the storage target is needed. S4. Relay control signal generation and transmission After determining the storage location, the controller generates a control signal for the corresponding relay based on the corresponding relationship between the storage device and the relay. Before sending the signal, it is first sent to the buffer module of the control circuit. The buffer module has a built-in timer with a delay time set to 30 milliseconds. During this period, the controller continuously monitors the system status to ensure that there are no interference factors affecting the relay operation. After the delay ends, the control signal is amplified by the drive circuit to meet the driving voltage and current requirements of the relay coil and drive the corresponding relay to operate. For electromagnetic relays, the drive circuit gradually increases the driving voltage according to the software startup curve; S5. Storage process monitoring and feedback After the relay is closed, the system starts the data writing process to the storage device and starts the monitoring thread at the same time. The detection thread obtains the status feedback signal of the relay in real time and sends a query command to the storage device every 5 seconds to obtain the working status of the storage device; S6. Receive data read request The system also receives read requests from the outside through various input interfaces, and the requests contain the identifier of the data to be read; S7. Data source location and selection The controller determines the best data source for reading based on factors such as the current online status of the storage device, data integrity, and the load of the last read. If the primary storage device is normal and the data is recently and frequently accessed, it will be read from the primary storage first. If the primary storage device fails or the data only has a complete copy in the backup storage, the backup storage device will be selected. S8. Relay control signal triggers the establishment of reading channel After determining the data source, the controller generates a control signal for the relay connected to that data source. For solid-state relays, the control signal is directly sent to the drive circuit through the buffer module with a delay of 20 milliseconds, quickly closing the relay and establishing a data reading channel. For electromagnetic relays, during the buffer module delay, the controller gradually increases the drive voltage according to the soft-start parameters. S9. Reading process assurance and exception handling After data reading begins, the monitoring thread tracks the relay status and the storage device's reading performance indicators in real time, including reading speed and data accuracy. If a reading error is found, such as data verification failure or reading interruption, the reading operation is immediately suspended, the error details are recorded, and the read command is first tried to be resent. If it still fails after multiple attempts, the relay status is checked for abnormalities. If there is a problem, the backup relay or backup storage channel is switched to continue the reading operation, and a fault alarm is sent to the system administrator. S10. Real-time monitoring and logging of system operation status The system controller continuously monitors the working status of each relay, including the cumulative number of on and off times, the current on and off status, and the action time parameters, and compares them with the preset normal threshold range. At the same time, it monitors various performance indicators of the storage device, including storage capacity utilization, read and write rate change trends, and temperature, to promptly identify potential problems and keep detailed records of key events during system operation, including the start time, end time, operation results, relay status change events of each data storage and reading operation, as well as system maintenance and optimization operation records.

2. A data storage management system based on a relay, comprising a system initialization module (1), characterized in that: The system initialization module (1) is connected to the daily operation module (2), the maintenance and detection module (3) and the optimization and upgrade module (4); The daily operation module (2) is connected to the data storage operation control (5) and the data reading operation control (6), the maintenance and detection module (3) is connected to the regular cleaning and maintenance (7), the performance parameter control (8) and the fault processing and replacement (9), and the optimization and upgrade module (4) is connected to the strategy optimization (10) and the technology upgrade (11); The daily operation module (2) includes system startup, the system startup is connected with controller self-check and port initialization, the controller self-check and port initialization are connected with reading the last operation status, the reading of the last operation status is connected with whether a storage instruction is received, the whether a storage instruction is received is connected with whether a storage instruction is received, the whether a storage instruction is received is connected with system operation status monitoring, the system operation status monitoring is connected with log recording, and the log recording is connected with system continuous operation.

3. A data storage management system based on relays according to claim 2, characterized in that: Whether the storage instruction is received is connected to receiving the storage instruction, the receiving storage instruction is connected to the storage strategy decision, the storage strategy decision is connected to the relay control signal processing, the relay control signal processing is connected to the storage process monitoring feedback, and the storage process monitoring feedback is connected to the continuous operation of the system.

4. The data storage management system based on relays according to claim 2, characterized in that: Whether the storage instruction is received is connected to receiving the read instruction, the receiving the read instruction is connected to the data source positioning selection, the data source positioning selection is connected to the relay control reading channel establishment, the relay control reading channel establishment is connected to the reading process monitoring feedback, and the reading process monitoring feedback is connected to the continuous operation of the system.