CN112698989A - Dual-computer mutual backup method and system of data acquisition system - Google Patents

Dual-computer mutual backup method and system of data acquisition system Download PDF

Info

Publication number
CN112698989A
CN112698989A CN202011631801.XA CN202011631801A CN112698989A CN 112698989 A CN112698989 A CN 112698989A CN 202011631801 A CN202011631801 A CN 202011631801A CN 112698989 A CN112698989 A CN 112698989A
Authority
CN
China
Prior art keywords
data
acquisition module
acquisition
mode
target
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.)
Granted
Application number
CN202011631801.XA
Other languages
Chinese (zh)
Other versions
CN112698989B (en
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.)
Xiamen Kehua Hengsheng Co Ltd
Zhangzhou Kehua Technology Co Ltd
Original Assignee
Xiamen Kehua Hengsheng Co Ltd
Zhangzhou Kehua Technology Co Ltd
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 Xiamen Kehua Hengsheng Co Ltd, Zhangzhou Kehua Technology Co Ltd filed Critical Xiamen Kehua Hengsheng Co Ltd
Priority to CN202011631801.XA priority Critical patent/CN112698989B/en
Publication of CN112698989A publication Critical patent/CN112698989A/en
Application granted granted Critical
Publication of CN112698989B publication Critical patent/CN112698989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention is suitable for the technical field of monitoring, and provides a dual-computer mutual backup method and a system of a data acquisition system, wherein the method is applied to a first acquisition module of the data acquisition system and comprises the following steps: monitoring the target data of the second acquisition module in a monitoring mode; judging whether the second acquisition module is in an abnormal state or not according to the target data; if the second acquisition module is in an abnormal state, sending a first port switching signal to a data management system, sending a first mode switching signal to the second acquisition module, and switching the working mode from a monitoring mode to an acquisition mode. This application monitors the state of second collection module in real time through first collection module, can realize the principal and subordinate of first collection module and second collection module when second collection module is unusual to solve the problem that can't gather target operation equipment data after the collection equipment trouble, guarantee data center's safety and stability operation.

Description

Dual-computer mutual backup method and system of data acquisition system
Technical Field
The invention belongs to the technical field of monitoring, and particularly relates to a dual-computer mutual backup method and system of a data acquisition system.
Background
In order to maintain a safe, stable and orderly operating state, a huge power system must rely on a plurality of monitoring, controlling, detecting and communicating systems and devices, including terminal metering equipment and upstream centralized acquisition equipment. The data acquisition system is used as a bridge for connecting the upper data management system and the physical layer equipment, and plays a significant role in the whole system, and once the data acquisition module fails, the data management system cannot acquire the operating data of the target operating equipment.
Disclosure of Invention
In view of this, embodiments of the present invention provide a dual-computer mutual backup method and system for a data acquisition system, so as to solve the problem that data acquisition cannot be implemented after a data acquisition system fails in the prior art.
A first aspect of an embodiment of the present invention provides a dual-device mutual backup method for a data acquisition system, where the data acquisition system includes a first acquisition module and a second acquisition module; the method is applied to the first acquisition module and comprises the following steps:
monitoring the target data of the second acquisition module in a monitoring mode;
judging whether the second acquisition module is in an abnormal state or not according to the target data;
if the second acquisition module is in an abnormal state, sending a first port switching signal to a data management system, sending a first mode switching signal to the second acquisition module, and switching the working mode from a monitoring mode to an acquisition mode;
the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module; the first mode switching signal is used for instructing the second acquisition module to switch the working mode from the acquisition mode to the monitoring mode.
A second aspect of the embodiments of the present invention provides a dual-device mutual backup method for a data acquisition system, where the data acquisition system includes a first acquisition module and a second acquisition module, and the method is applied to the second acquisition module, and includes:
in the acquisition mode, acquiring data of target operation equipment as second acquisition data, and sending the second acquisition data to a data management system;
sending target data to the first acquisition module;
and if a first mode switching signal sent by the first acquisition module is monitored, switching the working mode from the acquisition mode to the monitoring mode.
A third aspect of an embodiment of the present invention provides a data acquisition system, including: the system comprises a first acquisition module and a second acquisition module;
the second acquisition module is used for acquiring data of target operation equipment as second acquisition data in an acquisition mode and sending the second acquisition data to the data management system; and sending the target data to the first acquisition module;
the first acquisition module is used for monitoring the target data of the second acquisition module in a monitoring mode; judging whether the second acquisition module is in an abnormal state or not according to the target data; if the second acquisition module is in an abnormal state, sending a first port switching signal to a data management system, sending a first mode switching signal to the second acquisition module, and switching the working mode from a monitoring mode to an acquisition mode; the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module;
the second acquisition module is further configured to switch the working mode from the acquisition mode to the monitoring mode if the first mode switching signal sent by the first acquisition module is monitored.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: in this embodiment, a first acquisition module of the data acquisition system monitors target data of a second acquisition module in a monitoring mode; judging whether the second acquisition module is in an abnormal state or not according to the target data; if the second acquisition module is in an abnormal state, sending a first port switching signal to a data management system, sending a first mode switching signal to the second acquisition module, and switching the working mode from a monitoring mode to an acquisition mode. In this embodiment, the state of the second acquisition module is monitored in real time through the first acquisition module, and the master-slave switching between the first acquisition module and the second acquisition module can be realized when the second acquisition module is abnormal, so that the problem that the data of the target operation equipment cannot be acquired after the acquisition equipment fails is solved, and the safe and stable operation of the data center is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a dual-computer mutual backup method of a data acquisition system according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a data monitoring system according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a dual-computer mutual-backup method of a data acquisition system according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device provided in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another data monitoring system according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
As shown in fig. 1, fig. 1 illustrates a flow of a dual-computer mutual standby method of a data acquisition system provided in this embodiment, where the data acquisition system includes a second acquisition module and a first acquisition module; the execution main body of the method is a first acquisition module, and the method is detailed as follows:
s101: monitoring the target data of the second acquisition module in a monitoring mode;
s102: judging whether the second acquisition module is in an abnormal state or not according to the target data;
s103: if the second acquisition module is in an abnormal state, sending a first port switching signal to a data management system, sending a first mode switching signal to the second acquisition module, and switching the working mode from a monitoring mode to an acquisition mode;
the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module; the first mode switching signal is used for instructing the second acquisition module to switch the working mode from the acquisition mode to the monitoring mode.
In the present embodiment, as shown in fig. 2, fig. 2 shows a structure of a data monitoring system, which includes: the data management system 100, the data acquisition system 200 and the target operation device 300, wherein the data acquisition system 200 comprises a first acquisition module 210 and a second acquisition module 220. The first collection module 210 and the second collection module 220 are in communication connection, the first collection module 210 and the second collection module 220 are further respectively connected with the data management system 100, and the first collection module 210 and the second collection module 220 are respectively connected with the corresponding target operation device 300. The data management system 100 may include, but is not limited to, a data center infrastructure management facility DCIM; the target operation device 300 may include, but is not limited to, a UPS (Uninterruptible Power System), an air conditioner, and a server.
In this embodiment, the hardware structures and software programs of the first acquisition module 210 and the second acquisition module 220 are all the same, and the same data transceiving functions can be realized. When the first acquisition module executes the monitoring mode, the first acquisition module works as a slave acquisition module, and meanwhile, the second acquisition module operates in the acquisition mode as a master acquisition module; when the first acquisition module executes the acquisition mode, the first acquisition module serves as a main acquisition module, and the second acquisition module serves as a slave acquisition module and operates in a monitoring mode.
In this embodiment, in the listening mode, the first collection module first sends a listening request to the second collection module, and receives target data returned by the second collection module based on the listening request. When it is determined that the second acquisition module 220 is abnormal according to the target data, the first acquisition module sends a first port switching signal to the data management system 100, and the data management system 100 converts the data acquisition port from the communication port corresponding to the second acquisition module to the communication port corresponding to the first acquisition module according to the first port switching signal. Optionally, if the data acquisition system 200 is in wireless communication connection with the data management system 100, the communication port corresponding to the first acquisition module is the communication address of the first acquisition module 210, and the communication port corresponding to the second acquisition module is the communication address of the second acquisition module 220. After completing the switching of the data acquisition ports, the data management system 100 sends a data request to the first acquisition module 210, and the first acquisition module acquires the data of the target operation device 300 in the acquisition mode and sends the data of the target operation device 300 to the data management system 100 when acquiring the data request.
On the other hand, when the first acquisition module determines that the second acquisition module is abnormal, the first acquisition module also sends a first mode switching signal to the second acquisition module so that the second acquisition module is switched from the acquisition mode to the monitoring mode.
As can be seen from the foregoing embodiments, in the present embodiment, the first acquisition module 210 monitors the target data of the second acquisition module 220 in real time, and when the second acquisition module 220 is abnormal, master-slave switching between the first acquisition module and the second acquisition module can be implemented, so that the problem that the data of the target operation device 300 cannot be acquired after the second acquisition module 220 fails is solved, and safe and stable operation of the data center is ensured.
In an embodiment, the target data includes operation data, and the specific implementation process of S102 in fig. 1 is as follows:
s201: calculating the health degree of the second acquisition module according to the operation data and a preset grading rule;
s202: and if the health degree is smaller than a preset health threshold value, judging that the second acquisition module is in an abnormal state. .
In this embodiment, the operation data includes a CPU utilization rate, a memory utilization rate, and at least one warning message. The method comprises the following steps:
and determining the CPU score, the memory score and the alarm score of the second acquisition module according to the CPU utilization rate, the memory utilization rate, the alarm information and a preset score rule of the second acquisition module, and performing weighted summation on the CPU score, the memory score and the alarm score to obtain the health degree of the second acquisition module.
Specifically, the preset scoring rules include a CPU scoring rule, a memory scoring rule, and an alarm scoring rule, and the CPU scoring rule is: and determining the CPU score according to the corresponding relation between the CPU utilization rate and the CPU score, wherein when the CPU utilization rate is less than or equal to a preset CPU threshold value, the CPU score is a preset maximum value corresponding to the CPU, and when the CPU utilization rate is greater than the preset CPU threshold value, the higher the CPU utilization rate is, the lower the CPU score is. The memory scoring rule is as follows: and determining a memory score according to the corresponding relation between the memory utilization rate and the memory score, wherein the memory score is a preset maximum value corresponding to the memory when the memory utilization rate is less than or equal to a preset memory threshold, and the memory score is lower when the memory utilization rate is higher than the preset memory threshold. The alarm scoring rule is as follows: and searching corresponding grade scores according to the alarm grades of the alarm information, and summing the grade scores corresponding to the alarm information to obtain the alarm scores. Further, the grade scores of the alarm information are all negative scores, and the higher the alarm grade is, the lower the grade score is.
It can be known from the foregoing embodiments that, in this embodiment, the operating state of the second acquisition module is determined by a method for calculating the health degree, and the second acquisition module can be switched to the first acquisition module to work in time when the second acquisition module is abnormal, so that the problem of data acquisition disconnection caused by switching to the first acquisition module after the second acquisition module has failed is avoided, and the continuity of data acquisition is ensured.
In an embodiment, the target data includes heartbeat data, and the specific implementation process of S102 includes:
s301: acquiring the interval of two adjacent heartbeat data;
s302: if N intervals with the duration being larger than the preset duration threshold value are monitored in the first preset time, the second acquisition module is judged to be in an abnormal state, and N is larger than or equal to 1.
In this embodiment, under a normal condition, the heartbeat data acquired by the first acquisition module is in a fixed period characteristic, and an interval between every two heartbeat data is basically kept constant. If it is monitored that N intervals with the duration being greater than the preset duration threshold exist within the first preset time, it is indicated that the heartbeat fluctuation of the second acquisition module is large, and therefore it can be determined that the second acquisition module is in an abnormal state.
Further, the implementation process of S102 may further include: and if the heartbeat data are not acquired within the second preset time, judging that the second acquisition module is in an abnormal state.
In an embodiment, before S102, the dual-computer mutual-backup method of the data acquisition system further includes:
s401: acquiring operation data in the first acquisition module, and judging whether the first acquisition module is in an abnormal state according to the operation data in the first acquisition module;
s402: if the first acquisition module is not in an abnormal state, executing the step of judging whether the second acquisition module is in the abnormal state according to the target data;
s403: and if the first acquisition module is in an abnormal state, stopping executing the monitoring mode and sending fault prompt information of the first acquisition module to the target terminal.
Specifically, the operation data inside the first acquisition module includes a CPU utilization rate, a memory utilization rate, and alarm information. The first acquisition module firstly needs to determine whether the first acquisition module is in a normal state before judging whether the second acquisition module is normal, through the process from S401 to S403, the first acquisition module can judge the state of the first acquisition module, continues to execute S102 after judging that the first acquisition module is normal, stops a monitoring mode when judging that the first acquisition module is abnormal, and controls the first acquisition module to restart. The first acquisition module acquires the internal operation data of the first acquisition module again after being restarted, if the first acquisition module is judged to be still in an abnormal state according to the internal operation data, the fault prompt information of the first acquisition module is sent to the target terminal, and a user can maintain the first acquisition module after looking up the fault prompt information through the target terminal. And the first acquisition module continues to execute the monitoring mode after the abnormity is eliminated.
In one embodiment, the target data includes second acquired data and heartbeat data, and S102 in fig. 1 further includes:
s501: acquiring data of target operation equipment, and taking the data of the target operation equipment as first acquired data;
s502: acquiring the interval of two adjacent heartbeat data;
s503: and if the second acquisition data is different from the first acquisition data corresponding to the same moment and N intervals with the duration being greater than a preset duration threshold value are monitored in a first preset time, judging that the second acquisition module is in an abnormal state, wherein N is greater than or equal to 1.
In this embodiment, the first acquisition module also acquires data of the target operating device in real time in the monitoring mode, but the first acquisition module does not upload data to the data management system after acquiring the data, but stores the data acquired in the current time period in the internal storage unit of the first acquisition module. The space of the storage unit in the first acquisition module is limited, and the data stored by the first acquisition module is only used for correcting the second acquisition data, so that the first acquisition data acquired in the current time period is deleted after the internal storage unit acquires the first acquisition data acquired in the next time period, and the continuous normal work of the storage unit in the first acquisition module is ensured.
Based on the above functions of the first acquisition module, if the first acquisition module has judged that the first acquisition module operates normally, the first acquisition data of the first acquisition module is used as a reference, and if the second acquisition data of the second acquisition module is different from the first acquisition data corresponding to the same moment, the acquisition function of the second acquisition module is abnormal. At this moment, in order to ensure the accuracy of the judgment, the first acquisition module can judge whether the second acquisition module is normal or not according to the result of the proofreading of the acquired data and the fluctuation condition of the heartbeat data.
Further, in order to ensure the accuracy of the judgment, the abnormality judgment process of the first acquisition module may further be: and judging the state of the second acquisition module according to any two or three of the three means of data collection proofreading, fluctuation judgment of heartbeat data of the second acquisition module and health degree judgment.
In one embodiment, the dual-computer mutual-backup method of the data acquisition system further includes:
s601: in the monitoring mode, acquiring data of target operation equipment as first acquisition data, and storing the first acquisition data acquired in the current time period;
s602: after entering an acquisition mode, if an interrupt data request signal sent by the data management system is monitored, first acquisition data after the data interrupt time is sent to the data management system according to the data interrupt time carried in the interrupt data request signal.
In this embodiment, the duration of the current time period may be set to be the total time of the N data acquisition cycles, the data interruption time is carried in the interruption data request signal, and the data interruption time is the time when the data management system has last acquired the data of the target operating device.
Specifically, the master-slave exchange of the acquisition modules can cause the data management system to be incapable of receiving the acquired data within a period of time, so that the first acquisition module can transmit the data acquired within the period of time after the second acquisition module stops transmitting the data to the data management system after receiving the interrupt data request signal by storing the first acquired data in the current period of time, and the completeness of the data received by the data management system is ensured without loss.
And in addition, after the first acquisition module enters the acquisition mode, stopping continuously storing the data in the storage unit.
In one embodiment, if the second acquisition module is in an abnormal state, the first acquisition module generates and sends the fault prompt information of the second acquisition module to the target terminal.
In this embodiment, the target terminal may be a data management system, or may be a terminal device of an operation and maintenance worker.
In an embodiment, as shown in fig. 3, fig. 3 shows an implementation flow of a dual-computer mutual-backup method of a data acquisition system provided in this embodiment, where the data acquisition system includes a first acquisition module and a second acquisition module, and the method is applied to the second acquisition module, and includes:
s701: in the acquisition mode, acquiring data of target operation equipment as second acquisition data, and sending the second acquisition data to a data management system;
s702: sending target data to the first acquisition module;
s703: and if a first mode switching signal sent by the first acquisition module is monitored, switching the working mode from the acquisition mode to the monitoring mode.
Specifically, the implementation process of S703 specifically includes:
if a first mode switching signal sent by the first acquisition module is monitored, stopping executing the acquisition mode;
and if the fault removal signal is monitored, starting to execute the monitoring mode.
In this embodiment, after stopping executing the acquisition mode, the second acquisition module may first restart itself, monitor its own operating data after restarting, determine whether to recover to normal according to the internal operating data, and if it is determined that it recovers to normal, generate a fault removal signal and start executing the monitoring mode; and if not, sending fault prompt information of the second acquisition module to the target terminal, repairing the second acquisition module by the user according to the fault prompt information sent by the second acquisition module or the fault prompt information of the second acquisition module sent by the first acquisition module, and inputting a fault removal signal after the second acquisition module is repaired.
In this embodiment, in order to avoid that the second acquisition module is directly paralyzed and cannot send the fault prompt signal, the first acquisition module sends the fault prompt information to the target terminal when the second acquisition module is in an abnormal state. When the first acquisition module and the second acquisition module both have the function of sending fault prompt information when the second acquisition module fails, if the second acquisition module can be recovered to be normal through self-starting, the second acquisition module needs to send fault cancellation information to the target terminal so that a user can know the current state of the second acquisition module.
In this embodiment, in the monitoring mode, the second acquisition module can compete with the first acquisition module for the role of the main acquisition module according to the operation data inside the second acquisition module and the operation data sent by the first acquisition module, in addition to executing the function of the monitoring mode.
Specifically, a second acquisition module acquires operation data inside the second acquisition module and operation data sent by the first acquisition module; calculating a second health degree according to the operation data in the second acquisition module, and calculating a first health degree according to the operation data of the first acquisition module; subtracting the first health degree from the second health degree to obtain a health degree difference value; if the health degree is greater than a preset health difference value, sending a second port switching signal to the data management system, sending a second mode switching signal to the first acquisition module, and switching the working mode from the monitoring mode to the acquisition mode; the second port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the first acquisition module to a communication port corresponding to the second acquisition module; the second mode switching signal is used for instructing the first acquisition module to switch the working mode from the acquisition mode to the monitoring mode.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
An embodiment of the present invention provides a data acquisition system, including: the system comprises a first acquisition module and a second acquisition module;
the first acquisition module is used for monitoring the target data of the second acquisition module in a monitoring mode; judging whether the second acquisition module is in an abnormal state or not according to the target data; if the second acquisition module is in an abnormal state, sending a first port switching signal to a data management system, sending a first mode switching signal to the second acquisition module, and switching the working mode from a monitoring mode to an acquisition mode; the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module;
the second acquisition module is used for acquiring data of the target operation equipment as second acquisition data in an acquisition mode and sending the second acquisition data to the data management system; and if a first mode switching signal sent by the first acquisition module is monitored, switching the working mode from the acquisition mode to the monitoring mode.
In one embodiment, as shown in fig. 5, fig. 5 shows a structure of another data monitoring system provided in an embodiment of the present invention, which includes:
a data management system 100, a data acquisition system 200 and a target operation device 300;
the data acquisition system 200 includes a first acquisition module 210 and a second acquisition module 220; the data management system 100 includes a first device 110 and a second device 120.
The first collecting module 210 is configured to monitor the target data of the second collecting module 220 in a monitoring mode; judging whether the second acquisition module 220 is in an abnormal state according to the target data; if the second acquisition module 220 is in an abnormal state, sending a first port switching signal to the first device 110 and the second device 120 of the data management system 100, sending a first mode switching signal to the second acquisition module 220, and switching the working mode from the monitoring mode to the acquisition mode;
the second collecting module 220 is configured to, in a collecting mode, obtain data of the target operating device 300 as second collected data, and send the second collected data to the first device 110 and the second device 120 of the data management system 100; if a first mode switching signal sent by the first acquisition module 210 is monitored, switching the working mode from the acquisition mode to the monitoring mode;
the second device 120 is configured to, in a working mode, obtain data sent by the first acquisition module 210/the second acquisition module 220, and use the data sent by the first acquisition module 210/the second acquisition module 220 as third acquisition data; processing the third acquired data by adopting a data processing program; and sending target data to the first device 110; when a first port switching signal is monitored, switching a data acquisition port from a communication port corresponding to the second acquisition module 220 to a communication port corresponding to the first acquisition module 210;
the first device 110 is configured to listen to the specified data of the second device 120 in a listening mode; judging whether the second device 120 is in an abnormal state according to the specified data; if the second device 120 is in an abnormal state, sending a third mode switching signal to the second device 120, and switching the operation mode from the monitoring mode to the working mode; when a first port switching signal is monitored, switching a data acquisition port from a communication port corresponding to the second acquisition module 220 to a communication port corresponding to the first acquisition module 210;
the second device 120 is further configured to switch the operation mode from the working mode to the monitoring mode if a third mode switching signal sent by the first device 110 is monitored.
Specifically, the first device 110 and the second device 120 implement master-slave mutual backup of the data management system 100, and the first acquisition module 210 and the second acquisition module 220 implement master-slave mutual backup of the data acquisition system 200, and since both the first device 110 and the second device 120 can acquire acquired data, when the first acquisition module 210 and the second acquisition module 220 are switched in mode, only the data acquisition ports of the first device 110 and the second device 120 need to be replaced at the same time. When the first collection module 210 and the second collection module 220 perform mode switching, the data collection ports of the first device 110 and the second device 120 need to be switched from the communication port corresponding to the second collection module 220 to the communication port corresponding to the first collection module 210.
In this embodiment, the designated data may include operation data and heartbeat data, and the first device 110 determines whether the second device 120 is in an abnormal state according to the operation data and/or the heartbeat data, which is similar to the determination processes in S201 to S202 and S301 to S302 in this embodiment.
As can be seen from the foregoing embodiments, the data monitoring system provided in this embodiment can ensure the integrity of data in the data monitoring process by using a dual-computer mutual backup method in both the data management system 100 and the data acquisition system 200, and further improve the security of the data center.
Fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. When the processor 40 executes the computer program 42, the steps in the dual-computer-backup method embodiment of each data acquisition system described above, such as the steps 101 to 103 shown in fig. 1, are implemented.
The computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 42 in the terminal device 4.
The terminal device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a terminal device 4 and does not constitute a limitation of terminal device 4 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A dual-computer mutual-backup method of a data acquisition system is characterized in that the data acquisition system comprises a first acquisition module and a second acquisition module; the method is applied to the first acquisition module and comprises the following steps:
monitoring the target data of the second acquisition module in a monitoring mode;
judging whether the second acquisition module is in an abnormal state or not according to the target data;
if the second acquisition module is in an abnormal state, sending a first port switching signal to a data management system, sending a first mode switching signal to the second acquisition module, and switching the working mode from a monitoring mode to an acquisition mode;
the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module; the first mode switching signal is used for instructing the second acquisition module to switch the working mode from the acquisition mode to the monitoring mode.
2. The dual-computer mutual-backup method of a data acquisition system as claimed in claim 1, wherein the target data comprises operational data; the judging whether the second acquisition module is in an abnormal state according to the target data comprises:
calculating the health degree of the second acquisition module according to the operation data and a preset grading rule;
and if the health degree is smaller than a preset health threshold value, judging that the second acquisition module is in an abnormal state.
3. The dual-computer mutual-backup method of a data acquisition system as claimed in claim 1, wherein the target data comprises heartbeat data; the judging whether the second acquisition module is in an abnormal state according to the target data comprises:
acquiring the interval of two adjacent heartbeat data;
if N intervals with the duration being larger than the preset duration threshold value are monitored in the first preset time, the second acquisition module is judged to be in an abnormal state, and N is larger than or equal to 1.
4. The dual-computer mutual-backup method of a data acquisition system according to claim 1, wherein before the determining whether the second acquisition module is in an abnormal state according to the target data, the method further comprises:
acquiring operation data in the first acquisition module, and judging whether the first acquisition module is in an abnormal state according to the operation data in the first acquisition module;
if the first acquisition module is not in an abnormal state, executing the step of judging whether the second acquisition module is in the abnormal state according to the target data;
and if the first acquisition module is in an abnormal state, stopping executing the monitoring mode and sending fault prompt information of the first acquisition module to the target terminal.
5. The dual-computer mutual-backup method of a data acquisition system according to claim 4, wherein the target data includes second acquisition data and heartbeat data, and the second acquisition data is data of a target operation device acquired by the second acquisition module;
the judging whether the second acquisition module is in an abnormal state according to the target data comprises:
acquiring data of target operation equipment, and taking the data of the target operation equipment as first acquired data;
acquiring the interval of two adjacent heartbeat data;
and if the second acquisition data is different from the first acquisition data corresponding to the same moment and N intervals with the duration being greater than a preset duration threshold value are monitored in a first preset time, judging that the second acquisition module is in an abnormal state, wherein N is greater than or equal to 1.
6. The method of claim 1, further comprising:
in the monitoring mode, acquiring data of target operation equipment as first acquisition data, and storing the first acquisition data acquired in the current time period;
after entering an acquisition mode, if an interrupt data request signal sent by the data management system is monitored, first acquisition data after the data interrupt time is sent to the data management system according to the data interrupt time carried in the interrupt data request signal.
7. The dual-computer mutual-backup method of a data acquisition system as claimed in claim 1, wherein after said if said second acquisition module is in an abnormal state, said method further comprises:
and generating and sending fault prompt information of the second acquisition module to the target terminal.
8. A dual-computer mutual-backup method of a data acquisition system is characterized in that the data acquisition system comprises a first acquisition module and a second acquisition module, and the method is applied to the second acquisition module and comprises the following steps:
in the acquisition mode, acquiring data of target operation equipment as second acquisition data, and sending the second acquisition data to a data management system;
sending target data to the first acquisition module;
and if a first mode switching signal sent by the first acquisition module is monitored, switching the working mode from the acquisition mode to the monitoring mode.
9. The method of claim 8, wherein switching the operation mode from the acquisition mode to the monitoring mode if a first mode switching signal sent by the first acquisition module is monitored comprises:
if a first mode switching signal sent by the first acquisition module is monitored, stopping executing the acquisition mode;
and if the fault removal signal is monitored, starting to execute the monitoring mode.
10. A data acquisition system, comprising: the system comprises a first acquisition module and a second acquisition module;
the second acquisition module is used for acquiring data of the target operation equipment as second acquisition data in an acquisition mode and sending the second acquisition data to the data management system; and sending the target data to the first acquisition module;
the first acquisition module is used for monitoring the target data of the second acquisition module in a monitoring mode; judging whether the second acquisition module is in an abnormal state or not according to the target data; if the second acquisition module is in an abnormal state, sending a first port switching signal to a data management system, sending a first mode switching signal to the second acquisition module, and switching the working mode from a monitoring mode to an acquisition mode; the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module;
the second acquisition module is further configured to switch the working mode from the acquisition mode to the monitoring mode if the first mode switching signal sent by the first acquisition module is monitored.
CN202011631801.XA 2020-12-31 2020-12-31 Dual-computer mutual backup method and system of data acquisition system Active CN112698989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011631801.XA CN112698989B (en) 2020-12-31 2020-12-31 Dual-computer mutual backup method and system of data acquisition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011631801.XA CN112698989B (en) 2020-12-31 2020-12-31 Dual-computer mutual backup method and system of data acquisition system

Publications (2)

Publication Number Publication Date
CN112698989A true CN112698989A (en) 2021-04-23
CN112698989B CN112698989B (en) 2024-01-02

Family

ID=75513565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011631801.XA Active CN112698989B (en) 2020-12-31 2020-12-31 Dual-computer mutual backup method and system of data acquisition system

Country Status (1)

Country Link
CN (1) CN112698989B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020569A (en) * 2021-11-02 2022-02-08 广州城建职业学院 Big data real-time monitoring system
CN115065589A (en) * 2022-06-06 2022-09-16 广州汇智通信技术有限公司 Data traffic acquisition disaster recovery backup processing method, device, equipment, system and medium
CN117311136A (en) * 2023-11-28 2023-12-29 中国船舶集团有限公司第七一九研究所 Dual-computer operation method and device based on interconnection heartbeat monitoring mechanism

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1715956A (en) * 2004-06-30 2006-01-04 上海神开科技工程有限公司 Double collecting machine system and it double collecting method for double machine hot back-up
CN101388567A (en) * 2007-09-13 2009-03-18 上海宝信软件股份有限公司 Electric apparatus monitoring method and system
US20110302140A1 (en) * 2010-06-04 2011-12-08 Commvault Systems, Inc. Failover systems and methods for performing backup operations
CN103257350A (en) * 2012-05-07 2013-08-21 中国交通通信信息中心 Double-computer duplex automatic switching method
CN104579774A (en) * 2014-12-31 2015-04-29 北京山石网科信息技术有限公司 Switching method and device for main control equipment
CN106655504A (en) * 2016-11-29 2017-05-10 国网河南省电力公司安阳供电公司 Safe and reliable data acquisition system
CN107872359A (en) * 2016-09-28 2018-04-03 华为数字技术(苏州)有限公司 Network health degree appraisal procedure, device and system
CN111490903A (en) * 2020-04-14 2020-08-04 广州汇智通信技术有限公司 Network data acquisition and processing method and device
CN111586082A (en) * 2019-02-18 2020-08-25 深圳市物联微电子有限公司 Data acquisition method and device, computer equipment and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1715956A (en) * 2004-06-30 2006-01-04 上海神开科技工程有限公司 Double collecting machine system and it double collecting method for double machine hot back-up
CN101388567A (en) * 2007-09-13 2009-03-18 上海宝信软件股份有限公司 Electric apparatus monitoring method and system
US20110302140A1 (en) * 2010-06-04 2011-12-08 Commvault Systems, Inc. Failover systems and methods for performing backup operations
CN103257350A (en) * 2012-05-07 2013-08-21 中国交通通信信息中心 Double-computer duplex automatic switching method
CN104579774A (en) * 2014-12-31 2015-04-29 北京山石网科信息技术有限公司 Switching method and device for main control equipment
CN107872359A (en) * 2016-09-28 2018-04-03 华为数字技术(苏州)有限公司 Network health degree appraisal procedure, device and system
CN106655504A (en) * 2016-11-29 2017-05-10 国网河南省电力公司安阳供电公司 Safe and reliable data acquisition system
CN111586082A (en) * 2019-02-18 2020-08-25 深圳市物联微电子有限公司 Data acquisition method and device, computer equipment and readable storage medium
CN111490903A (en) * 2020-04-14 2020-08-04 广州汇智通信技术有限公司 Network data acquisition and processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020569A (en) * 2021-11-02 2022-02-08 广州城建职业学院 Big data real-time monitoring system
CN115065589A (en) * 2022-06-06 2022-09-16 广州汇智通信技术有限公司 Data traffic acquisition disaster recovery backup processing method, device, equipment, system and medium
CN117311136A (en) * 2023-11-28 2023-12-29 中国船舶集团有限公司第七一九研究所 Dual-computer operation method and device based on interconnection heartbeat monitoring mechanism
CN117311136B (en) * 2023-11-28 2024-03-01 中国船舶集团有限公司第七一九研究所 Dual-computer operation method and device based on interconnection heartbeat monitoring mechanism

Also Published As

Publication number Publication date
CN112698989B (en) 2024-01-02

Similar Documents

Publication Publication Date Title
CN112698989B (en) Dual-computer mutual backup method and system of data acquisition system
CN112685236A (en) Dual-computer mutual backup method and system of data management system
CN113014634B (en) Cluster election processing method, device, equipment and storage medium
CN103425553B (en) Duplicated hot-standby system and method for detecting faults of duplicated hot-standby system
CN104050061A (en) Multi-main-control-panel redundant backup system based on PCIe bus
CN108446207B (en) Method, device and system for evaluating disaster tolerance capability of computer system
CN114827088A (en) Address assignment system, method, electronic device, storage medium, and program product
CN110224872B (en) Communication method, device and storage medium
WO2019129196A1 (en) Fault-tolerant control method, system and device for electric motor controller, and storage medium
CN105843336B (en) Cabinet and its firmware updating method with more cabinet management modules
CN116340058A (en) Master-slave switching method and device
CN110275120B (en) Power failure monitoring method and system applied to data center and terminal equipment
CN115292002A (en) Monitoring data acquisition device, method, terminal and storage medium
CN112564968B (en) Fault processing method, device and storage medium
CN114244638B (en) Multicast network communication method, device, equipment and medium
CN116208532A (en) Abnormality detection method, abnormality detection device, storage medium, and electronic apparatus
KR100684170B1 (en) Apparatus and method for dots(digital office time supply) clock switching and synchronous network process unit using the same
CN104503667A (en) MCGS-based integrated power supply monitoring human-computer interface configuration method
CN116401106A (en) Method, system and device for detecting power supply state of server
JP3457788B2 (en) Data collection system
JPH07321799A (en) Input output equipment management method
CN115550635A (en) Video shunting fault processing method and device, electronic equipment and storage medium
CN115580025A (en) Intelligent network monitoring operation and maintenance power module
CN115793829A (en) Intelligent monitoring system, method and device for PSU module and readable storage medium
CN117215871A (en) Data recovery method, system, equipment and medium

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
GR01 Patent grant
GR01 Patent grant