CN114640688A - Heterogeneous dual-redundancy equipment running state data storage device and access method - Google Patents

Heterogeneous dual-redundancy equipment running state data storage device and access method Download PDF

Info

Publication number
CN114640688A
CN114640688A CN202210289886.0A CN202210289886A CN114640688A CN 114640688 A CN114640688 A CN 114640688A CN 202210289886 A CN202210289886 A CN 202210289886A CN 114640688 A CN114640688 A CN 114640688A
Authority
CN
China
Prior art keywords
data
storage
processor
chip
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210289886.0A
Other languages
Chinese (zh)
Inventor
刘杰
蒲永材
梅勇
谭晟吉
邵德立
尹得智
邹佳鑫
张雄林
王文俊
柏森洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China South Industries Group Automation Research Institute
Original Assignee
China South Industries Group Automation Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China South Industries Group Automation Research Institute filed Critical China South Industries Group Automation Research Institute
Priority to CN202210289886.0A priority Critical patent/CN114640688A/en
Publication of CN114640688A publication Critical patent/CN114640688A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The invention discloses a heterogeneous dual-redundancy equipment running state data storage device and an access method, wherein the data storage device comprises a first storage unit and a second storage unit, and the first storage unit and the second storage unit adopt different hardware systems and different software systems; the first storage unit and the second storage unit store the same equipment running state data, wherein the second storage unit is used as a redundant structure of the first storage unit. The storage unit of the invention adopts completely different hardware schemes and different software schemes to realize the effective storage of the running state information data of certain control equipment. The data storage device adopts a dual-redundancy design, and utilizes two storage units with the same function to finish the effective storage of the running state information data of certain control equipment, and the dual-redundancy design ensures that the data storage device has higher reliability.

Description

Heterogeneous dual-redundancy equipment running state data storage device and access method
Technical Field
The invention relates to the technical field of data storage, in particular to a heterogeneous dual-redundancy equipment running state data storage device and an access method.
Background
A certain control equipment system is complex, and if a fault occurs, fault positioning cannot be quickly realized, so that the equipment maintenance time is prolonged. Therefore, there is a need for an apparatus operating status information data storage apparatus, which can continuously and reliably store the operating status information data generated by the control apparatus, and when the apparatus fails, can rapidly read the operating status information data to locate and maintain the failure.
At present, a certain heterogeneous data storage system provides a heterogeneous storage mechanism for data by adopting a plurality of storage units combined by different software and hardware systems, divides acquired data into a plurality of data segments, and hashes the data segments to be stored in different storage units, so that the safety of the data is improved. Fig. 1 is a schematic structural diagram of the memory system.
The heterogeneous data storage system in fig. 1 divides data into a plurality of data segments, and different data segments are stored in different storage units, so that the security of the data is improved. However, when the data storage system fails, data will be lost or erroneous, and the reliability of the system is low.
Disclosure of Invention
The technical problem to be solved by the invention is that the existing heterogeneous data storage system divides data into a plurality of data segments, different data segments are stored in different storage units, when the data storage system fails, the data will be lost or wrong, and the reliability of the system is lower.
The invention aims to provide a heterogeneous dual-redundancy equipment operation state data storage device, which is used for storing operation state information data generated in the operation process of equipment and providing effective data support for fault diagnosis and maintenance of the equipment. The storage device adopts a heterogeneous dual-redundancy data storage device consisting of dual processors and dual memories, realizes the storage of the running state information data of certain control equipment, and can read the data through an external interface. The storage device can continuously and reliably store the running state information data of certain equipment, and the time for fault diagnosis and maintenance of the equipment can be greatly reduced. The storage device adopts a heterogeneous dual-redundancy design, so that the reliability of the system is greatly improved.
The invention is realized by the following technical scheme:
in a first aspect, the invention provides a data storage device for an operation state of heterogeneous dual-redundancy equipment, which comprises a first storage unit and a second storage unit, wherein the first storage unit and the second storage unit adopt different hardware systems and different software systems; the first storage unit and the second storage unit store the same equipment running state data, wherein the second storage unit is used as a redundant structure of the first storage unit.
The working principle is as follows: data are divided into a plurality of data segments based on the existing heterogeneous data storage system, different data segments are stored in different storage units, when the data storage system fails, the data are lost or wrong, and the reliability of the system is low.
Therefore, aiming at the requirements of the data storage device of the equipment running state on the durability and the reliability of data storage, the invention designs the data storage device of the running state of heterogeneous dual-redundancy equipment, the structural schematic diagram of the invention is shown in fig. 2, the invention adopts the design of heterogeneous dual-redundancy, all data are respectively stored in different storage units, when a certain storage unit fails, the other storage unit can still finish the storage of the running state information data, and the reliability of the system is greatly improved. Specifically, the method comprises the following steps: the data storage device of the invention consists of two storage units, wherein the storage units consist of different hardware systems and different software systems; the process data are processed and then stored in different storage units respectively. The storage unit in the data storage device adopts completely different hardware schemes (different processors and different memories) and different software schemes to realize effective storage of the running state information data of a certain control device. The data storage device adopts a dual-redundancy design, and utilizes two storage units with the same function to finish the effective storage of the running state information data of certain control equipment, so that the data storage device has higher reliability. In addition, the upper computer can access the data through a corresponding interface.
The invention is used for storing the running state information data of a certain control device during running, providing data support for fault location and maintenance of the device and reducing the maintenance time.
Further, the first storage unit comprises a first hardware system and a first software system;
the first hardware system comprises a first data acquisition interface, a first processor, a first storage chip and a first Ethernet interface chip; the first data acquisition interface is unidirectionally connected with the first processor, the first processor is bidirectionally connected with the first storage chip, and the first processor is bidirectionally connected with the first Ethernet interface chip through the first network interface controller; the first hardware system acquires state information data of each device in the running process of certain control device through a first data acquisition interface, and sends the acquired state information data of the devices to a first processor through the first data acquisition interface, and the first processor stores the state information data of the devices into a first storage chip according to a preset file format; and realizing the network transmission of the equipment state information data through the first Ethernet interface chip.
Furthermore, the first processor is an ARM processor, and the first memory chip is an EMMC memory card;
the first data acquisition interface is in communication connection with the first processor through an MODBUS protocol; the first processor is in communication connection with the first memory chip through an SDMMC interface; the first processor is connected with the first Ethernet interface chip through the first network interface controller.
Further, the execution process of the first software system for data storage is as follows:
step A, acquiring process data of a certain device through a first data acquisition interface;
step B, transmitting the acquired equipment process data to a first processor through an MODBUS protocol;
and step C, the first processor establishes a process, checks and processes the received equipment process data, and stores the processed equipment process data into the first storage chip according to a preset file format through the SDMMC interface.
Further, step C specifically includes:
checking whether timestamp information of each frame of data in the equipment process data is legal or not according to the equipment process data, and starting an error processing process if the timestamp information of each frame of data in the equipment process data is illegal; if the file name is legal, updating the preset file name according to the timestamp;
judging whether the first storage chip is idle, and if the first storage chip is not idle, continuing to wait until the first storage chip is idle; in the process of waiting for idleness, judging whether waiting time is overtime at all times, and if the waiting time is overtime, starting an error processing process; if the waiting time is not overtime, returning to continuously judge whether the first storage chip is idle or not; if the first storage chip is idle, writing each frame of data into the first storage chip according to a preset file format;
when each frame of data is written into the first storage chip, judging whether the writing is successful, and if the writing is not successful, starting an error processing process; if the writing is successful, carrying out re-checking operation after the writing is finished;
after the data is written in, re-reading the data and checking whether the matching of the written data is successful, if the matching is unsuccessful, starting an error processing process; if the matching is successful, the ACK information is returned through the serial port;
and deleting the process and ending.
Further, the second storage unit comprises a second hardware system and a second software system;
the second hardware system comprises a second data acquisition interface, a second processor, a second storage chip and a second Ethernet interface chip; the second data acquisition interface is unidirectionally connected with a second processor, the second processor is bidirectionally connected with a second storage chip, and the second processor is bidirectionally connected with a second Ethernet interface chip through a second network interface controller; the second hardware system acquires state information data of each device in the running process of certain control device through a second data acquisition interface, and sends the acquired state information data of the devices to a second processor through the second data acquisition interface, and the second processor checks the data and stores the state information data of the devices into a second storage chip according to a preset file format; and the network transmission of the equipment state information data is realized through the second Ethernet interface chip.
Further, the second processor is an FPGA processor, and the second memory chip is an SSD hard disk;
the second data acquisition interface is in communication connection with the second processor through an MODBUS protocol; the second processor is in communication connection with the second storage chip through a PCIE interface and an NVMe protocol; and the second processor is connected with the second Ethernet interface chip through the second network interface controller.
Further, the execution process of the second software system for data storage is as follows:
acquiring process data of certain equipment through a second data acquisition interface;
transmitting the acquired equipment process data to a second processor through an MODBUS protocol;
the second processor checks and processes the received device process data, and comprises the following steps:
according to the equipment process data, whether the timestamp information of each frame of data in the equipment process data is legal or not is verified, and if the timestamp information is illegal, an error processing process is started; if the file name is legal, updating the preset file name according to the timestamp;
judging whether the second storage chip is idle, and if the second storage chip is not idle, continuing to wait until the second storage chip is idle; in the process of waiting for idleness, carrying out waiting overtime judgment at all times, and if the waiting overtime exists, starting an error processing process; if the waiting time is not overtime, returning to continuously judge whether the second storage chip is idle or not; if the second storage chip is idle, the first processor writes each frame of data into the second storage chip through the PCIE interface according to a preset file format;
when each frame of data is written into the second storage chip, judging whether the writing is successful, and if the writing is not successful, starting an error processing process; if the writing is successful, carrying out re-checking operation after the writing is finished;
after the data is written in, re-reading the data and checking whether the matching of the written data is successful, if the matching is unsuccessful, starting an error processing process; and if the matching is successful, returning ACK information through the serial port.
Further, the preset file format is stored as TXT format storage device process data.
In a second aspect, the present invention further provides a data access method for a data storage device in an operating state of heterogeneous dual redundant devices, where the data access method includes:
acquiring a data reading request sent by an upper computer;
receiving a data reading request sent by an upper computer through an Ethernet interface, and checking the validity of a network instruction;
calculating the physical storage position of the data to be accessed according to the data reading request;
and returning the data corresponding to the physical storage position to the upper computer through the Ethernet.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. aiming at the requirements of the data storage device in the running state of the equipment on the durability and the reliability of data storage, the invention adopts the heterogeneous dual redundancy design to store all data into different storage units respectively, and when a certain storage unit fails, the other storage unit can still finish the storage of the running state information data, thereby greatly improving the reliability of the system.
2. The data storage device of the invention consists of two storage units, wherein the storage units consist of different hardware systems and different software systems; the process data are processed and then stored in different storage units respectively. The storage unit in the data storage device adopts completely different hardware schemes (different processors and different memories) and different software schemes to realize effective storage of the running state information data of a certain control device. The data storage device adopts a dual-redundancy design, and utilizes two storage units with the same function to finish the effective storage of the running state information data of certain control equipment, so that the data storage device has higher reliability.
3. The invention is used for storing the running state information data of a certain control device during running, providing data support for fault location and maintenance of the device and reducing the maintenance time.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a schematic diagram of a prior art memory system.
Fig. 2 is a schematic structural diagram of a data storage apparatus for operating states of heterogeneous dual redundant devices according to the present invention.
Fig. 3 is a schematic structural diagram of a first hardware system of an operation status data storage apparatus for heterogeneous dual redundant devices according to the present invention.
Fig. 4 is a schematic structural diagram of a second hardware system of the data storage apparatus for operating statuses of heterogeneous dual redundant devices according to the present invention.
Fig. 5 is a flowchart of a data storage task of a first software system of a data storage device for operating states of heterogeneous dual redundant devices according to the present invention.
Fig. 6 is a data storage flow chart of a second software system of the data storage device for the operation states of heterogeneous dual redundant devices according to the present invention.
Fig. 7 is a flowchart of a data access method of a data storage device in an operating state of heterogeneous dual redundant devices according to the present invention.
Fig. 8 is a flowchart illustrating a process of checking validity and verification of a network command in a data access method of a data storage device in an operating state of a heterogeneous dual redundant device according to the present invention.
Detailed Description
Hereinafter, the term "comprising" or "may include" used in various embodiments of the present invention indicates the presence of the invented function, operation or element, and does not limit the addition of one or more functions, operations or elements. Furthermore, the terms "comprises," "comprising," "has," "having," "includes," "including," "has," "having," "including," "contains," "containing," "involving," or any combination thereof, as used in various embodiments of the present invention, are intended to cover only particular features, integers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the presence of or adding to one or more other features, integers, steps, operations, elements, components, or combinations of the foregoing.
In various embodiments of the invention, the expression "or" at least one of a or/and B "includes any or all combinations of the words listed simultaneously. For example, the expression "a or B" or "at least one of a or/and B" may include a, may include B, or may include both a and B.
Expressions (such as "first", "second", and the like) used in various embodiments of the present invention may modify various constituent elements in various embodiments, but may not limit the respective constituent elements. For example, the above description does not limit the order and/or importance of the elements described. The foregoing description is for the purpose of distinguishing one element from another. For example, the first user device and the second user device indicate different user devices, although both are user devices. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of various embodiments of the present invention.
It should be noted that: if it is described that one constituent element is "connected" to another constituent element, the first constituent element may be directly connected to the second constituent element, and a third constituent element may be "connected" between the first constituent element and the second constituent element. In contrast, when one constituent element is "directly connected" to another constituent element, it is understood that there is no third constituent element between the first constituent element and the second constituent element.
The terminology used in the various embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the various embodiments of the invention. As used herein, the singular forms are intended to include the plural forms as well, unless the context clearly indicates otherwise. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
Example 1
As shown in fig. 2 to fig. 6, the data storage device for the operating state of heterogeneous dual redundant devices according to the present invention includes, as shown in fig. 2, a first storage unit and a second storage unit, where the first storage unit and the second storage unit employ different hardware systems and different software systems; the first storage unit and the second storage unit store the same equipment running state data, wherein the second storage unit is used as a redundant structure of the first storage unit. In addition, the upper computer can access the data through a corresponding interface.
In this embodiment, the first storage unit includes a first hardware system and a first software system; the second storage unit comprises a second hardware system and a second software system; the first hardware system is different from the second hardware system, and different software systems are correspondingly arranged on different hardware systems, that is, the first software system is also different from the second software system. This ensures that data is stored quickly and reliably is a critical function of the data storage system.
In this embodiment, a schematic structural diagram of a first hardware system is shown in fig. 3, where the first hardware system includes a first data obtaining interface, a first processor, a first memory chip, and a first ethernet interface chip; the first data acquisition interface is unidirectionally connected with the first processor, the first processor is bidirectionally connected with the first storage chip, and the first processor is bidirectionally connected with the first Ethernet interface chip through the first network interface controller;
in this embodiment, the first processor is an ARM processor, and the first memory chip is an EMMC memory card; the first data acquisition interface is in communication connection with the first processor through an MODBUS protocol; the first processor is in communication connection with the first memory chip through an SDMMC interface; the first processor is connected with the first Ethernet interface chip through the first network interface controller.
The first hardware system acquires state information data of each device in the running process of certain control device through a first data acquisition interface, the acquired state information data of the devices are sent to an ARM processor through an MODBUS communication protocol, the ARM processor performs CRC on the data to judge whether the data are correct and effective, and then the state information data of the devices are stored into an EMMC storage card through an SDMMC interface according to a preset file format; and the network transmission of the equipment state information data is realized through the first Ethernet interface chip, namely, the upper computer can access the data in the EMMC storage card through the first Ethernet interface chip. The system creates a file through timestamp information in the data, the file format is txt format, and the file name is year, month, day, and hour, so that the file is convenient to retrieve and check.
In this embodiment, a schematic structural diagram of a second hardware system is shown in fig. 4, where the second hardware system includes a second data obtaining interface, a second processor, a second storage chip, and a second ethernet interface chip; the second data acquisition interface is unidirectionally connected with a second processor, the second processor is bidirectionally connected with a second storage chip, and the second processor is bidirectionally connected with a second Ethernet interface chip through a second network interface controller;
the second processor is an FPGA processor, and the second storage chip is an SSD hard disk; the second data acquisition interface is in communication connection with the second processor through an MODBUS protocol; the second processor is in communication connection with the second storage chip through a PCIE interface and NVMe protocol; and the second processor is connected with the second Ethernet interface chip through the second network interface controller.
In this embodiment, the second hardware system obtains state information data of each device in an operation process of a certain control device through the second data obtaining interface, sends the obtained state information data of the device to the FPGA processor through an MODBUS communication protocol, the FPGA processor performs CRC check on the data, and then stores the state information data of the device into the SSD hard disk according to a preset file format through a PCIE interface and an NVMe protocol; and network transmission of the equipment state information data is realized through the second Ethernet interface chip, namely the upper computer can access the data in the SSD hard disk through the second Ethernet interface chip. The system creates a file through timestamp information in the data, the file format is txt format, and the file name is year, month, day, and hour, so that the file is convenient to retrieve and check.
In this embodiment, the first software system adopts a real-time operating system, a FreeRTOS, whose kernel does not have a file system, and a file management system FATFS, which is highly efficient, has low resource occupancy rate and is designed for a small embedded system, is added in the design to simplify the programming flow and improve the development efficiency.
The data storage task needs to check the timestamp information of each frame of data and only stores legal data. After the data is written in, the controller rereads the data again to be matched with the written data, and whether ACK information which is stored successfully is returned or an error processing process is opened is determined according to a matching result.
The data storage task flow of the first software system is shown in fig. 5. Specifically, the method comprises the following steps: the execution process of the first software system for data storage comprises the following steps:
step A, acquiring process data of a certain device through a first data acquisition interface;
step B, transmitting the acquired equipment process data to a first processor through an MODBUS protocol;
and step C, the first processor creates a process, checks and processes the received device process data, and stores the processed device process data into the first storage chip according to a preset file format through the SDMMC interface.
Specifically, step C specifically includes:
according to the equipment process data, whether the timestamp information of each frame of data in the equipment process data is legal or not is verified, and if the timestamp information is illegal, an error processing process is started; if the file name is legal, updating the preset file name according to the timestamp;
judging whether the first storage chip is idle, and if the first storage chip is not idle, continuing to wait until the first storage chip is idle; in the process of waiting for idleness, carrying out waiting overtime judgment at all times, and if the waiting overtime exists, starting an error processing process; if the waiting time is not overtime, returning to continuously judge whether the first storage chip is idle or not; if the first storage chip is idle, writing each frame of data into the first storage chip according to a preset file format;
when each frame of data is written into the first storage chip, judging whether the writing is successful, and if the writing is not successful, starting an error processing process; if the writing is successful, carrying out re-checking operation after the writing is finished;
after the data is written in, re-reading the data and checking whether the matching of the written data is successful, if the matching is unsuccessful, starting an error processing process; if the matching is successful, the ACK information is returned through the serial port;
and deleting the process and ending.
The data storage flow of the second software system is shown in fig. 6. The second software system is applied to the second hardware system. And the second hardware system realizes the read-write control of the NVMe SSD by using an FPGA mode, receives data by adopting an MODBUS communication protocol, and stores the data into the SSD after CRC verification.
The execution process of the second software system for data storage is as follows:
acquiring process data of certain equipment through a second data acquisition interface;
transmitting the acquired equipment process data to a second processor through an MODBUS protocol;
the second processor checks and processes the received device process data, and comprises the following steps:
according to the equipment process data, whether the timestamp information of each frame of data in the equipment process data is legal or not is verified, and if the timestamp information is illegal, an error processing process is started; if the file name is legal, updating the preset file name according to the timestamp;
judging whether the second storage chip is idle, and if the second storage chip is not idle, continuing to wait until the second storage chip is idle; in the process of waiting for idleness, carrying out waiting overtime judgment at all times, and if the waiting overtime exists, starting an error processing process; if the waiting time is not overtime, returning to continuously judge whether the second storage chip is idle or not; if the second storage chip is idle, the first processor writes each frame of data into the second storage chip through the PCIE interface according to a preset file format;
when each frame of data is written into the second storage chip, judging whether the writing is successful, and if the writing is not successful, starting an error processing process; if the writing is successful, carrying out re-checking operation after the writing is finished;
after the data is written in, re-reading the data and checking whether the matching of the written data is successful, if the matching is unsuccessful, starting an error processing process; and if the matching is successful, returning the ACK information through the serial port.
In this embodiment, the preset file format is stored as TXT format storage device process data.
The working principle is as follows: based on the existing heterogeneous data storage system, data is divided into a plurality of data segments, different data segments are stored in different storage units, when the data storage system fails, the data will be lost or wrong, and the reliability of the system is low.
Therefore, aiming at the requirements of the data storage device of the equipment running state on the durability and the reliability of data storage, the invention designs the data storage device of the running state of heterogeneous dual-redundancy equipment, the structural schematic diagram of the invention is shown in fig. 2, the invention adopts the design of heterogeneous dual-redundancy, all data are respectively stored in different storage units, when a certain storage unit fails, the other storage unit can still finish the storage of the running state information data, and the reliability of the system is greatly improved. Specifically, the method comprises the following steps: the data storage device of the invention consists of two storage units, wherein the storage units consist of different hardware systems and different software systems; the process data are processed and then stored in different storage units respectively. The storage unit in the data storage device adopts completely different hardware schemes (different processors and different memories) and different software schemes to realize effective storage of the running state information data of a certain control device. The data storage device adopts a dual-redundancy design, and utilizes two storage units with the same function to finish the effective storage of the running state information data of certain control equipment, so that the data storage device has higher reliability. In addition, the upper computer can access the data through a corresponding interface.
The invention is used for storing the running state information data of a certain control device during running, providing data support for fault location and maintenance of the device and reducing the maintenance time.
Example 2
As shown in fig. 7 and fig. 8, the present embodiment is different from embodiment 1 in that the present embodiment provides a data access method for a data storage apparatus in an operating state of a heterogeneous dual redundant device in embodiment 1, where the data access method includes:
acquiring a data reading request sent by an upper computer;
receiving a data reading request sent by an upper computer through an Ethernet interface, and checking the validity of a network instruction;
calculating the physical storage position of the data to be accessed according to the data reading request;
and returning the data corresponding to the physical storage position to the upper computer through the Ethernet.
Fig. 7 and fig. 8 are schematic diagrams of implementation flows of data access according to the present invention. The process flow for checking the validity and verification of network instructions is given in fig. 8 and may be performed according to the logic of fig. 8.
The data storage device provided by the invention can quickly read the data in the memory through the Ethernet interface, has an important role in fault location and maintenance of certain control equipment, greatly reduces the equipment maintenance time and saves the maintenance cost.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A data storage device for the running state of heterogeneous dual-redundancy equipment is characterized by comprising a first storage unit and a second storage unit, wherein the first storage unit and the second storage unit adopt different hardware systems and different software systems; the first storage unit and the second storage unit store the same equipment running state data, wherein the second storage unit is used as a redundant structure of the first storage unit.
2. The data storage device for the operation state of the heterogeneous dual redundant equipment according to claim 1, wherein the first storage unit comprises a first hardware system and a first software system;
the first hardware system comprises a first data acquisition interface, a first processor, a first storage chip and a first Ethernet interface chip; the first data acquisition interface is unidirectionally connected with a first processor, the first processor is bidirectionally connected with a first storage chip, and the first processor is bidirectionally connected with a first Ethernet interface chip through a first network interface controller; the first hardware system acquires state information data of each device in the running process of certain control device through a first data acquisition interface, and sends the acquired state information data of the devices to a first processor through the first data acquisition interface, and the first processor stores the state information data of the devices into a first storage chip according to a preset file format; and realizing the network transmission of the equipment state information data through the first Ethernet interface chip.
3. The apparatus of claim 2, wherein the first processor is an ARM processor, and the first memory chip is an EMMC memory card;
the first data acquisition interface is in communication connection with the first processor through an MODBUS protocol; the first processor is in communication connection with the first memory chip through an SDMMC interface; the first processor is connected with the first Ethernet interface chip through the first network interface controller.
4. The data storage device for the operating states of the heterogeneous dual redundant devices according to claim 2, wherein the execution process of the first software system for data storage is as follows:
step A, acquiring equipment process data through a first data acquisition interface;
step B, transmitting the acquired equipment process data to a first processor through an MODBUS protocol;
and step C, the first processor creates a process, checks and processes the received device process data, and stores the processed device process data into the first storage chip according to a preset file format through the SDMMC interface.
5. The apparatus for storing operation state data of a heterogeneous dual redundant device according to claim 4, wherein step C specifically includes:
checking whether timestamp information of each frame of data in the equipment process data is legal or not according to the equipment process data, and starting an error processing process if the timestamp information of each frame of data in the equipment process data is illegal; if the file name is legal, updating the preset file name according to the timestamp;
judging whether the first storage chip is idle, and if the first storage chip is not idle, continuing to wait until the first storage chip is idle; in the process of waiting for idleness, carrying out waiting overtime judgment at all times, and if the waiting overtime exists, starting an error processing process; if the waiting time is not overtime, returning to continuously judge whether the first storage chip is idle or not; if the first storage chip is idle, writing each frame of data into the first storage chip according to a preset file format;
when each frame of data is written into the first storage chip, judging whether the writing is successful, and if the writing is not successful, starting an error processing process; if the writing is successful, carrying out re-checking operation after the writing is finished;
after the data is written in, re-reading the data and checking whether the matching of the written data is successful, if the matching is unsuccessful, starting an error processing process; if the matching is successful, the ACK information is returned through the serial port;
and deleting the process and ending.
6. The data storage device for the operation state of the heterogeneous dual redundant equipment according to claim 1, wherein the second storage unit comprises a second hardware system and a second software system;
the second hardware system comprises a second data acquisition interface, a second processor, a second storage chip and a second Ethernet interface chip; the second data acquisition interface is unidirectionally connected with the second processor, the second processor is bidirectionally connected with the second storage chip, and the second processor is bidirectionally connected with the second Ethernet interface chip through the second network interface controller; the second hardware system acquires state information data of each device in the running process of certain control device through a second data acquisition interface, sends the acquired state information data of the devices to a second processor through the second data acquisition interface, and the second processor checks the data and stores the state information data of the devices into a second storage chip according to a preset file format; and the network transmission of the equipment state information data is realized through the second Ethernet interface chip.
7. The data storage device of claim 6, wherein the second processor is an FPGA processor, and the second memory chip is an SSD hard disk;
the second data acquisition interface is in communication connection with the second processor through an MODBUS protocol; the second processor is in communication connection with the second storage chip through a PCIE interface and NVMe protocol; and the second processor is connected with the second Ethernet interface chip through the second network interface controller.
8. The data storage device for the operation states of the heterogeneous dual-redundancy equipment according to claim 6, wherein the execution process of the second software system for data storage is as follows:
acquiring device process data through a second data acquisition interface;
transmitting the acquired equipment process data to a second processor through an MODBUS protocol;
the second processor checks and processes the received device process data, and comprises the following steps:
according to the equipment process data, whether the timestamp information of each frame of data in the equipment process data is legal or not is verified, and if the timestamp information is illegal, an error processing process is started; if the file name is legal, updating the preset file name according to the timestamp;
judging whether the second storage chip is idle, and if the second storage chip is not idle, continuing to wait until the second storage chip is idle; in the process of waiting for idleness, carrying out waiting overtime judgment at all times, and if the waiting overtime exists, starting an error processing process; if the waiting time is not overtime, returning to continuously judge whether the second storage chip is idle or not; if the second storage chip is idle, the first processor writes each frame of data into the second storage chip through the PCIE interface according to a preset file format;
when each frame of data is written into the second storage chip, judging whether the writing is successful, and if the writing is not successful, starting an error processing process; if the writing is successful, carrying out re-checking operation after the writing is finished;
after the data is written in, re-reading the data and checking whether the matching of the written data is successful, if the matching is unsuccessful, starting an error processing process; and if the matching is successful, returning the ACK information through the serial port.
9. The apparatus according to claim 4 or 8, wherein the predetermined file format is stored as TXT format storage device process data.
10. The data access method of the heterogeneous dual redundant device operation state data storage apparatus according to any one of claims 1 to 9, wherein the data access method comprises:
acquiring a data reading request sent by an upper computer;
receiving a data reading request sent by an upper computer through an Ethernet interface, and checking the validity of a network instruction;
calculating the physical storage position of the data to be accessed according to the data reading request;
and returning the data corresponding to the physical storage position to the upper computer through the Ethernet.
CN202210289886.0A 2022-03-23 2022-03-23 Heterogeneous dual-redundancy equipment running state data storage device and access method Pending CN114640688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210289886.0A CN114640688A (en) 2022-03-23 2022-03-23 Heterogeneous dual-redundancy equipment running state data storage device and access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210289886.0A CN114640688A (en) 2022-03-23 2022-03-23 Heterogeneous dual-redundancy equipment running state data storage device and access method

Publications (1)

Publication Number Publication Date
CN114640688A true CN114640688A (en) 2022-06-17

Family

ID=81950025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210289886.0A Pending CN114640688A (en) 2022-03-23 2022-03-23 Heterogeneous dual-redundancy equipment running state data storage device and access method

Country Status (1)

Country Link
CN (1) CN114640688A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120017043A1 (en) * 2010-07-07 2012-01-19 Nexenta Systems, Inc. Method and system for heterogeneous data volume
CN103150128A (en) * 2013-03-25 2013-06-12 中国人民解放军国防科学技术大学 Implementation method of solid state drive (SSD) and disk-based reliable mixed storage system
CN107678697A (en) * 2017-10-24 2018-02-09 江苏都万电子科技有限公司 A kind of asymmetric backup storage method of data and memory
US20180260136A1 (en) * 2017-03-07 2018-09-13 Samsung Electronics Co., Ltd. SSD with heterogeneous NVM types
CN112559395A (en) * 2020-12-18 2021-03-26 国电南瑞科技股份有限公司 Relay protection device and method based on dual-Soc storage system exception handling mechanism

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120017043A1 (en) * 2010-07-07 2012-01-19 Nexenta Systems, Inc. Method and system for heterogeneous data volume
CN103150128A (en) * 2013-03-25 2013-06-12 中国人民解放军国防科学技术大学 Implementation method of solid state drive (SSD) and disk-based reliable mixed storage system
US20180260136A1 (en) * 2017-03-07 2018-09-13 Samsung Electronics Co., Ltd. SSD with heterogeneous NVM types
CN107678697A (en) * 2017-10-24 2018-02-09 江苏都万电子科技有限公司 A kind of asymmetric backup storage method of data and memory
CN112559395A (en) * 2020-12-18 2021-03-26 国电南瑞科技股份有限公司 Relay protection device and method based on dual-Soc storage system exception handling mechanism

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙梧雨等: "国产大容量芯片的数据记录系统设计", 单片机与嵌入式系统应用, pages 59 - 62 *

Similar Documents

Publication Publication Date Title
US8943358B2 (en) Storage system, apparatus, and method for failure recovery during unsuccessful rebuild process
US6523140B1 (en) Computer system error recovery and fault isolation
US7650467B2 (en) Coordination of multiprocessor operations with shared resources
US7363546B2 (en) Latent fault detector
US20060107129A1 (en) Method and computer program product for marking errors in BIOS on a RAID controller
US20020144193A1 (en) Method and system for fault isolation methodology for I/O unrecoverable, uncorrectable error
US6820213B1 (en) Fault-tolerant computer system with voter delay buffer
US20060206680A1 (en) File control apparatus
JP2006259869A (en) Multiprocessor system
US11314594B2 (en) Method, device and computer program product for recovering data
US7143206B2 (en) Method for controlling data transfer unit having channel control unit, storage device control unit, and DMA processor
US20100023814A1 (en) Handling of clustered media errors in raid environment
US20190317861A1 (en) High availability state machine and recovery
CN112650612A (en) Memory fault positioning method and device
JP2012133456A (en) Storage device and control method of storage device
US9740423B2 (en) Computer system
CN114640688A (en) Heterogeneous dual-redundancy equipment running state data storage device and access method
CN111061591B (en) System and method for implementing data integrity check based on memory integrity check controller
US7934067B2 (en) Data update history storage apparatus and data update history storage method
JP2001007893A (en) Information processing system and fault processing system used for it
US20050204185A1 (en) Detecting and identifying data loss
CN109343986B (en) Method and computer system for processing memory failure
CN112346922B (en) Server device and communication protocol method thereof
US11294751B2 (en) Storage apparatus, dump data management method, and dump data management program
US9135110B2 (en) Method and device for enhancing the reliability of a multiprocessor system by hybrid checkpointing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination