CN111586082A - Data acquisition method and device, computer equipment and readable storage medium - Google Patents

Data acquisition method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN111586082A
CN111586082A CN201910122864.3A CN201910122864A CN111586082A CN 111586082 A CN111586082 A CN 111586082A CN 201910122864 A CN201910122864 A CN 201910122864A CN 111586082 A CN111586082 A CN 111586082A
Authority
CN
China
Prior art keywords
data
data acquisition
landslide
collector
monitoring
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
CN201910122864.3A
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.)
Shenzhen M2micro Co ltd
Original Assignee
Shenzhen M2micro 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 Shenzhen M2micro Co ltd filed Critical Shenzhen M2micro Co ltd
Priority to CN201910122864.3A priority Critical patent/CN111586082A/en
Publication of CN111586082A publication Critical patent/CN111586082A/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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)

Abstract

The invention is suitable for the technical field of geological disaster monitoring, and provides a data acquisition method, a device, computer equipment and a readable storage medium, wherein the method is applied to a first data acquisition unit and comprises the following steps: monitoring the acquisition condition of the current landslide data by at least one second data acquisition unit with which a data acquisition takeover relation is pre-established; and when the second data collector is judged to have abnormal data collection according to the monitoring result, taking over the data collection task of the second data collector, collecting and reporting the current landslide data. The method is applied to the first data acquisition unit, and can take over the current data acquisition task when abnormal conditions occur in landslide data acquisition, so that the stability and continuity of landslide data acquisition work are ensured, and the efficiency and effect of landslide monitoring are ensured.

Description

Data acquisition method and device, computer equipment and readable storage medium
Technical Field
The invention belongs to the technical field of geological disaster monitoring, and particularly relates to a data acquisition method, a data acquisition device, computer equipment and a readable storage medium.
Background
Landslide is a geological disaster that can cause significant loss to people's lives and properties. The landslide is caused by a plurality of reasons, for example, the landslide is caused by excessive water absorption of soil caused by heavy rain, the landslide is caused by earthquake, the landslide is caused by collapse of a coal mine goaf, the landslide is caused by influence of large-scale engineering construction on the landslide, and the like. In order to reduce the loss caused by landslide, a remote monitoring means is usually adopted to monitor the safety condition of the mountain, so that first-hand data can be timely obtained to reasonably evaluate the current condition and analyze possible development trends, abnormal signs are found, the early warning level is analyzed and early warning is carried out, the abnormal influence range is estimated, opinions are formed to be used as a decision reference for local governments, and appropriate maintenance measures are made.
The remote monitoring has good requirements on the stability of monitoring equipment arranged on a mountain, and the monitoring equipment is required to be capable of continuously feeding back monitoring data. However, since the mountain is wide in distribution region, the mountain is generally steep in mountain road, and even there is no road when going up a mountain or going down a mountain, if the monitoring device cannot work stably, the post-maintenance is a big problem. For example, driving or walking to the location of each monitoring device for device inspection requires a great deal of manpower, material resources and financial resources. Moreover, the monitoring equipment is generally arranged on the mountain, is in an open environment for a long time, and is easily damaged and failed due to unexpected reasons such as weather, so that the monitoring work is interrupted, and the monitoring effect and efficiency of mountain safety are affected.
Disclosure of Invention
The embodiment of the invention provides a data acquisition method, and aims to solve the problem that in the prior art, when data acquisition work of equipment such as a data acquisition unit arranged in a mountain is unstable and discontinuous due to equipment faults and the like, the effect and efficiency of landslide monitoring work cannot be guaranteed.
The embodiment of the invention is realized in such a way that a data acquisition method is applied to a first data acquisition unit, and comprises the following steps:
monitoring the acquisition condition of the current landslide data by at least one second data acquisition unit with which a data acquisition takeover relation is pre-established;
and when the second data collector is judged to have abnormal data collection according to the monitoring result, taking over the data collection task of the second data collector, collecting and reporting the current landslide data.
An embodiment of the present invention further provides a data acquisition apparatus, including:
the monitoring unit is used for monitoring the acquisition condition of the current landslide data by at least one second data acquisition unit which is in a data acquisition takeover relation with the monitoring unit in advance; and
and the data acquisition task takeover unit is used for taking over the data acquisition task of the second data acquisition device when judging that the data acquisition of the second data acquisition device is abnormal according to the monitoring result, acquiring the current landslide data and reporting the data.
The embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the data acquisition method.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the processor is enabled to execute the steps of the data acquisition method.
The data acquisition method provided by the embodiment of the invention is applied to a first data acquisition device, monitors the acquisition condition of the current landslide data by at least one second data acquisition device which is in a data acquisition takeover relation with the first data acquisition device in advance, immediately takes over the data acquisition task of the second data acquisition device when the second data acquisition device is judged to have data acquisition abnormity according to the monitoring result, acquires and reports the current landslide data, namely, the plurality of data acquisition devices alternately work, can ensure the timeliness, stability and continuity of data acquisition, and well solves the problem that the data acquisition work is unstable and discontinuous due to equipment faults and other reasons, so that the effect and efficiency of the landslide monitoring work cannot be ensured.
Drawings
FIG. 1 is a schematic diagram of an application environment for implementing a data acquisition method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an implementation of a data acquisition method according to a first embodiment of the present invention;
FIG. 3 is a flow chart of an implementation of a data acquisition method according to a second embodiment of the present invention;
FIG. 4 is a flow chart of an implementation of a data acquisition method according to a third embodiment of the present invention;
FIG. 5 is a flow chart of an implementation of a data acquisition method according to a fourth embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a data acquisition device according to an embodiment of the present invention;
fig. 7 is a diagram illustrating the result of a data acquisition device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another. For example, a first data collector may be referred to as a second data collector, and similarly, a second data collector may be referred to as a first data collector, without departing from the scope of the present application.
The data acquisition method provided by the embodiment of the invention is applied to the first data acquisition unit, and can take over the current data acquisition task when abnormal conditions occur in landslide data acquisition, so that the stability and continuity of landslide data acquisition work are ensured, and the efficiency and effect of landslide monitoring are ensured.
Fig. 1 is a schematic diagram illustrating an application environment of an embodiment of the present invention, and for convenience of description, only the contents related to the embodiment of the present invention are shown in the diagram, which is detailed as follows:
the sensor 11 comprises a stay wire displacement meter, an osmometer, an inclinometer or a rain gauge and the like which are arranged in the monitored mountain body and used for measuring various index data of the monitored mountain body, such as mountain body crack width data of the monitored mountain body measured by the stay wire displacement meter and water pressure or osmotic pressure of pores in the monitored mountain body measured by the osmometer; observing the horizontal displacement data inside the soil body of the monitored mountain by the inclinometer; the rain gauge measures the precipitation of the monitored mountain within a certain period of time.
The first data collector 12 and the second data collector 13 are in communication connection with the sensor 11 through a communication interface, read the measurement data of the sensor 11 according to a preset data collection period, upload the data to the server 14 through the wireless gateway, simultaneously judge whether the current measurement data exceeds a preset threshold value, and immediately report the current measurement data to the server 14 if the current measurement data exceeds the threshold value and reaches a preset reporting period.
The first data collector 12 and the second data collector are both connected with the sensor 11 through a communication interface, the first data collector 12 and the second data collector 13 are connected through a communication interface, but communication links between the first data collector 12 and the server 14, the second data collector 13 and the server 14 are independent of each other.
And the wireless gateway 15 is connected with the first data collector 12, the second data collector 13 and the server 14 in a wireless mode, and is used as a data transmission medium for the server 14 and the first data collector 12 and the second data collector 13.
And the server 14 is used for receiving the landslide data uploaded by the first data collector 12 or the second data collector 13, analyzing the data according to the landslide data, monitoring the landslide condition in real time, and giving an alarm in time when the landslide abnormal condition occurs, so that relevant departments can take countermeasures according to the alarm condition, and economic loss or casualties caused by the landslide are reduced.
In an application environment of the embodiment of the present invention, there may be only one or multiple second data collectors 13, and the second data collectors need to be equipped according to actual situations, which is not limited specifically.
Fig. 2 is a flowchart illustrating an implementation of a data acquisition method according to a first embodiment of the present invention, and as shown in fig. 1, the data acquisition method is applied to a first data acquisition device, and includes the following steps:
in step S101, monitoring a collecting condition of the current landslide data by at least one second data collector with which a data collecting takeover relationship is pre-established.
In step S102, when it is determined that the second data collector has data collection abnormality according to the monitoring result, the data collection task of the second data collector is taken over, and the current landslide data is collected and reported.
In the exemplary embodiment of the present invention, for example, a second data collector is provided, the first data collector and the second data collector are two data collectors with the same hardware, the two data collectors are respectively connected to a measurement sensor provided on a mountain, and communication links between the first data collector and the server, the second data collector, and the server are independent of each other; meanwhile, the first data collector and the second data collector are connected and communicated through a communication interface, such as a UART (universal asynchronous receiver/transmitter), an SPI (serial peripheral interface) or an IIC (inter-Integrated Circuit), and according to a pre-established data taking-over relation, when the second data collector is in a data collection working state and the first data collector is in a dormant state, when the first data collector monitors and judges that the second data collector has data collection abnormity, a data collection task of the second data collector is taken over, current landslide data is collected and reported to the server, so that the server can analyze the data according to the received landslide data and timely make corresponding countermeasures when the abnormity is judged, economic loss and the like caused by landslide are reduced, and the safety of people is guaranteed.
The data acquisition method provided by the embodiment of the invention is applied to a first data acquisition device, monitors the acquisition condition of the current landslide data by at least one second data acquisition device which is in a data acquisition takeover relation with the first data acquisition device in advance, immediately takes over the data acquisition task of the second data acquisition device when the second data acquisition device is judged to have data acquisition abnormity according to the monitoring result, acquires and reports the current landslide data, namely, the plurality of data acquisition devices alternately work, can ensure the timeliness, stability and continuity of data acquisition, and well solves the problem that the data acquisition work is unstable and discontinuous due to equipment faults and other reasons, so that the effect and efficiency of the landslide monitoring work cannot be ensured.
Fig. 3 is a flowchart of an implementation of a data acquisition method according to a second embodiment of the present invention, and as shown in fig. 2, this embodiment is substantially the same as the first embodiment, except that: the step S101 specifically includes a step S201.
In step S201, monitoring a collecting and reporting status of measurement data of one or any combination of a bracing wire displacement meter, an osmometer, an inclinometer, or a rain gauge arranged in a monitored mountain by at least one second data collector with which a data collecting and taking-over relationship is pre-established.
In the exemplary embodiment, a stay wire displacement meter, an osmometer, an inclinometer or a rain gauge arranged in a monitored mountain is respectively connected with a first data collector and a second data collector through communication interfaces (for example, RS485 interfaces), the first data collector and the second data collector are powered on at the same time, the second data collector is used for reading measurement data in the stay wire displacement meter, the osmometer, the inclinometer or the rain gauge in real time and uploading the measurement data to a server through a wireless network, for example, the stay wire displacement meter is used for reading displacement data generated by measuring cracks of the current mountain; reading an osmometer to measure the water pressure or osmotic pressure of the pores in the current mountain; reading the horizontal displacement data of the interior of the current mountain soil observed by an inclinometer; reading rainfall, and the like of the monitored mountain body measured by a rain gauge within a certain period of time; and at the moment, the first data acquisition unit is in a dormant state, and monitors the data acquisition state of the second data acquisition unit in real time.
It is understood that the second data collector can be set as one, two, three, etc., and the specific number can be determined according to actual situations, but considering the installation cost, energy consumption, etc. of the device, it is preferable to set one second data collector.
Fig. 4 is a flowchart of an implementation of a data acquisition method according to a third embodiment of the present invention, and as shown in fig. 3, this embodiment is substantially the same as the first embodiment, except that: the step S102 specifically includes a step S301.
In step S301, when it is determined that the second data collector does not perform data collection reporting in the preset period according to the monitoring result, the data collection task of the second data collector is taken over, and the current landslide data is collected and reported.
In the exemplary embodiment, the data collection task may be to collect measurement data of the sensor disposed in the monitored mountain once in a preset period (e.g., within 5 seconds, 30 seconds, etc.) and report the measurement data to the server.
In the exemplary embodiment, the first data collector monitors the data collection period and the reporting period of the second data collector in real time, and when the second data collector is monitored not to upload the landslide data in the preset data collection period and the reporting period, it is determined that the second data collector is abnormal in data collection currently, and the second data collector takes over the data collection task of the second data collector immediately, so as to continue to collect and report the current landslide data, thereby avoiding the situation that a background cannot obtain effective landslide data timely to accurately analyze and monitor the landslide situation of the current mountain due to discontinuous and unstable data collection reporting caused by equipment failure of the second data collector and other reasons.
Fig. 5 is a flowchart of an implementation of a data acquisition method according to a fourth embodiment of the present invention, and as shown in fig. 4, this embodiment is substantially the same as the first embodiment, except that step S103 is further included after step S101.
In step S103, the current collection status of the landslide data is sent to the second data collector, so that the second data collector can know the data collection status thereof.
In this exemplary embodiment, after the first data collector takes over the data collection task of the second data collector, the landslide data of the current mountain is collected and reported to the server, and meanwhile, the current landslide data collection status is sent to the second data collector, at this time, the working states of the first data collector and the second data collector are just exchanged, that is, at the beginning, the second data collector firstly collects and reports the landslide data of the current mountain, the first data collector is in a dormant state, and the first data collector monitors the data collection status of the second data collector in real time, when it is determined that the data collection of the second data collector is abnormal according to the monitoring result, the second data collector is in a dormant state, and the data collection status of the landslide data of the current mountain is monitored by the first data collector in reverse. By the alternate data acquisition method, timeliness, stability and continuity of data acquisition can be guaranteed, and the problem that the effect and efficiency of landslide monitoring work cannot be guaranteed due to unstable and discontinuous data acquisition work caused by equipment faults and the like of equipment such as a data acquisition unit and the like is well solved.
Fig. 6 is a schematic structural diagram of a data acquisition apparatus according to an embodiment of the present invention, and for convenience of description, only a part related to this embodiment is shown in the drawing, and as shown in fig. 6, the data acquisition apparatus 600 is applied to a first data acquisition device, and includes: a listening unit 601 and a data collection task takeover unit 602.
The monitoring unit 601 is configured to monitor a collecting condition of the current landslide data by at least one second data collector with which a data collection takeover relationship is pre-established.
And a data acquisition task takeover unit 602, configured to take over a data acquisition task of the second data acquisition device when it is determined that data acquisition of the second data acquisition device is abnormal according to the monitoring result, acquire current landslide data, and report the data.
In the exemplary embodiment of the present invention, for example, a second data collector is provided, the first data collector and the second data collector are two data collectors with the same hardware, the two data collectors are respectively connected to a measurement sensor provided on a mountain, and communication links between the first data collector and the server, the second data collector, and the server are independent of each other; meanwhile, the first data collector and the second data collector are connected and communicated through a communication interface, such as a UART (universal asynchronous receiver/transmitter), an SPI (serial peripheral interface) or an IIC (inter-Integrated Circuit), and according to a pre-established data taking-over relation, when the second data collector is in a data collection working state and the first data collector is in a dormant state, when the first data collector monitors and judges that the second data collector has data collection abnormity, a data collection task of the second data collector is taken over, current landslide data is collected and reported to the server, so that the server can analyze the data according to the received landslide data and timely make corresponding countermeasures when the abnormity is judged, economic loss and the like caused by landslide are reduced, and the safety of people is guaranteed.
The data acquisition device provided by the embodiment of the invention is applied to a first data acquisition device, monitors the acquisition condition of the current landslide data by at least one second data acquisition device which is in a data acquisition takeover relation with the first data acquisition device in advance, immediately takes over the data acquisition task of the second data acquisition device when the second data acquisition device is judged to have data acquisition abnormity according to the monitoring result, acquires and reports the current landslide data, namely, the plurality of data acquisition devices alternately work, can ensure the timeliness, stability and continuity of data acquisition, and well solves the problem that the data acquisition work is unstable and discontinuous due to equipment faults and other reasons, so that the effect and efficiency of the landslide monitoring work cannot be ensured.
As an embodiment of the present invention, the monitoring unit 601 is specifically configured to: monitoring the acquisition and reporting condition of the measurement data of one or any combination of a stay wire displacement meter, an osmometer, an inclinometer or a rain gauge arranged in the monitored mountain by at least one second data acquisition unit which is in a data acquisition takeover relation with the second data acquisition unit in advance.
In the exemplary embodiment, a stay wire displacement meter, an osmometer, an inclinometer or a rain gauge arranged in a monitored mountain is respectively connected with a first data collector and a second data collector through communication interfaces (for example, RS485 interfaces), the first data collector and the second data collector are powered on at the same time, the second data collector is used for reading measurement data in the stay wire displacement meter, the osmometer, the inclinometer or the rain gauge in real time and uploading the measurement data to a server through a wireless network, for example, the stay wire displacement meter is used for reading displacement data generated by measuring cracks of the current mountain; reading an osmometer to measure the water pressure or osmotic pressure of the pores in the current mountain; reading the horizontal displacement data of the interior of the current mountain soil observed by an inclinometer; reading rainfall, and the like of the monitored mountain body measured by a rain gauge within a certain period of time; and at the moment, the first data acquisition unit is in a dormant state, and monitors the data acquisition state of the second data acquisition unit in real time.
It is understood that the second data collector can be set as one, two, three, etc., and the specific number can be determined according to actual situations, but considering the installation cost, energy consumption, etc. of the device, it is preferable to set one second data collector.
As another embodiment of the present invention, the data collection task taking over unit 602 is specifically configured to: and when the second data collector is judged not to collect and report data in a preset period according to the monitoring result, taking over the data collection task of the second data collector, collecting and reporting the current landslide data.
In the exemplary embodiment, the data collection task may be to collect measurement data of the sensor disposed in the monitored mountain once in a preset period (e.g., within 5 seconds, 30 seconds, etc.) and report the measurement data to the server.
In the exemplary embodiment, the first data collector monitors the data collection period and the reporting period of the second data collector in real time, and when the second data collector is monitored not to upload the landslide data in the preset data collection period and the reporting period, it is determined that the second data collector is abnormal in data collection currently, and the second data collector takes over the data collection task of the second data collector immediately, so as to continue to collect and report the current landslide data, thereby avoiding the situation that a background cannot obtain effective landslide data timely to accurately analyze and monitor the landslide situation of the current mountain due to discontinuous and unstable data collection reporting caused by equipment failure of the second data collector and other reasons.
Fig. 7 is a schematic structural diagram of a data acquisition apparatus according to another embodiment of the present invention, and for convenience of description, only the relevant parts to this embodiment are shown in the diagram, and as shown in fig. 7, the data acquisition apparatus 600 further includes a data acquisition status sending unit 603.
The data collecting status sending unit 603 is configured to send the current collecting status of the landslide data to the second data collector, so that the second data collector can obtain the data collecting status.
In this exemplary embodiment, after the first data collector takes over the data collection task of the second data collector, the landslide data of the current mountain is collected and reported to the server, and meanwhile, the current landslide data collection status is sent to the second data collector, at this time, the working states of the first data collector and the second data collector are just exchanged, that is, at the beginning, the second data collector firstly collects and reports the landslide data of the current mountain, the first data collector is in a dormant state, and the first data collector monitors the data collection status of the second data collector in real time, when it is determined that the data collection of the second data collector is abnormal according to the monitoring result, the second data collector is in a dormant state, and the data collection status of the landslide data of the current mountain is monitored by the first data collector in reverse. By the alternate data acquisition method, timeliness, stability and continuity of data acquisition can be guaranteed, and the problem that the effect and efficiency of landslide monitoring work cannot be guaranteed due to unstable and discontinuous data acquisition work caused by equipment faults and the like of equipment such as a data acquisition unit and the like is well solved.
In order to further explain the practical application scenario of the data acquisition method of the present invention, the following examples are given for detailed description:
the first data collector 12 and the second data collector 13 are powered on, and the second data collector 13 performs normal data collection and data reporting states, at this time, the first data collector 12 enters a sleep state, a communication interface (such as a UART port) monitors the data collection state of the second data collector 13 in the sleep process, during the sleep period, the first data collector 12 does not read the measurement data of the sensor 11, and only when it is determined that the second data collector 13 has data collection abnormality, and takes over the data collection task of the second data collector 13, the measurement data of the sensor 11 is read and uploaded to the server.
If the first data collector 12 does not monitor the data collection status of the second data collector 13 within a preset time in the hibernation process, it means that the second data collector has been abnormally shut down and needs to take over its data collection task.
If the second data collector 13 enters the dormant state due to a fault (non-stop fault), monitoring the data collection state of the first data collector 12 through the communication interface, and taking over the data collection task of the first data collector 12 when the abnormal data collection condition of the first data collector 12 is judged according to the monitoring result, collecting and reporting the landslide data of the current mountain, otherwise, continuously keeping the dormant state.
Illustratively, the data task takeover principle of the first data collector 12 and the second data collector 13 is as follows:
1) after the power is on, the second data collector can work completely and normally without switching data tasks.
2) After the power is on, the second data collector cannot work normally completely, the first data collector can work normally completely, and then the data collection task is switched to the first data collector to be executed and is not switched to the second data collector any more.
3) The second data collector can not work normally and the first data collector can not work normally. The second data collector switches the data collection task to the first data collector, and the first data collector is switched back to the second data collector after finding that the first data collector can not work normally completely. If the second data collector can not work normally, the first data collector is switched to, and if the second data collector can work normally, the first data collector is not switched to.
Under the condition that neither the first data collector nor the second data collector can work normally, the first data collector and the second data collector can be switched periodically and circularly, and the aim of doing so is to try to determine whether any one of the first data collector and the second data collector has the possibility of recovery. If one side can work normally, the switching is stopped, and the normal side takes over the work.
The above mentioned abnormal conditions of the equipment include unreadable sensor data, no communication between the equipment and the server, low power of the equipment, shutdown of the equipment due to faults, etc.
The following describes in detail the data acquisition task takeover switching process triggered by the wireless communication module failure in the second data acquisition device as an example:
a) the second data collector works normally and reads and reports the sensor data normally.
b) The first data collector sleeps, monitors the second data collector information, and starts a message monitoring timeout timer T (used for judging whether the second data collector periodically sends the messages).
c) The second data collector periodically sends a message to the first data collector to tell the first data collector that the second data collector is in a normal state.
d) The first data collector receives the message, triggers and wakes up, judges that the second data collector is in a normal state, resets the message monitoring timeout timer T and restarts, sends a response message to the second data collector, and then enters the dormancy again.
e) When the second data collector fails, the data cannot be sent to the server and cannot be received by the server, and when the second data collector finds a fault, a fault state message is sent to the first data collector to indicate that the first data collector needs to take over the work.
f) The first data collector receives the message, triggers and wakes up, judges the second data collector is in fault and needs to take over the work, stops the message monitoring overtime timer T, sends a response message to the second data collector, and then enters a working state of normally reading and reporting the sensor data.
g) The second data collector receives the response message, determines that work has been taken over, goes to sleep, listens for the first data collector message, and starts a message listening timeout timer T1.
h) The first data collector periodically sends a message to the second data collector to tell the second data collector that the first data collector is in a normal state.
i) And the second data collector receives the message, triggers and wakes up, judges that the first data collector is in a normal state, clears the message monitoring timeout timer T1 and restarts, sends a response message to the first data collector, and then enters the dormancy again.
j) Repeating the steps c) and d).
The embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the data acquisition method described in the above embodiment.
The embodiment of the invention also provides a computer-readable storage medium, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the dynamic data acquisition method when executing the computer program.
Illustratively, a computer program can be partitioned into one or more modules, which are stored in memory and executed by a processor to implement the present invention. One or more of the modules may be a sequence of computer program instruction segments for describing the execution of a computer program in a computer device that is capable of performing certain functions. For example, the computer program may be divided into the steps of the data acquisition method provided by the above-mentioned various method embodiments to be executed in a computer device.
Those skilled in the art will appreciate that the above description of a computer apparatus is by way of example only and is not intended to be limiting of computer apparatus, and that the apparatus may include more or less components than those described, or some of the components may be combined, or different components may be included, such as input output devices, network access devices, buses, etc.
The Processor 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. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is the control center of the computer apparatus and connects the various parts of the overall user terminal using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The modules/units integrated by the computer device may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. 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.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. The data collection method of claim 1, applied to a first data collector, comprising:
monitoring the acquisition condition of the current landslide data by at least one second data acquisition unit with which a data acquisition takeover relation is pre-established;
and when the second data collector is judged to have abnormal data collection according to the monitoring result, taking over the data collection task of the second data collector, collecting and reporting the current landslide data.
2. The data acquisition method according to claim 1, wherein the step of monitoring the acquisition status of the current landslide data by at least one second data acquisition device with which a data acquisition takeover relationship is pre-established specifically comprises:
monitoring the acquisition and reporting condition of the measurement data of one or any combination of a stay wire displacement meter, an osmometer, an inclinometer or a rain gauge arranged in the monitored mountain by at least one second data acquisition unit which is in a data acquisition takeover relation with the second data acquisition unit in advance.
3. The data acquisition method of claim 1, wherein when it is determined that the second data acquisition device is abnormal in data acquisition according to the monitoring result, the step of taking over a data acquisition task of the second data acquisition device, acquiring current landslide data, and reporting includes:
and when judging that the second data collector does not carry out data collection reporting in a preset period according to the monitoring result, taking over the data collection task of the second data collector, collecting and reporting the current landslide data.
4. The data acquisition method of claim 1, wherein after the step of taking over the data acquisition task of the second data acquisition device, acquiring the current landslide data and reporting when it is determined that the second data acquisition device is abnormal according to the monitoring result, the method further comprises:
and sending the current landslide data acquisition state to the second data acquisition device so that the second data acquisition device can acquire the data acquisition state.
5. A data acquisition device, applied to a first data acquisition device, comprising:
the monitoring unit is used for monitoring the acquisition condition of the current landslide data by at least one second data acquisition unit which is in a data acquisition takeover relation with the monitoring unit in advance; and
and the data acquisition task takeover unit is used for taking over the data acquisition task of the second data acquisition device when judging that the data acquisition of the second data acquisition device is abnormal according to the monitoring result, acquiring the current landslide data and reporting the data.
6. The data acquisition device of claim 5, wherein the listening unit is specifically configured to:
monitoring the acquisition and reporting condition of the measurement data of one or any combination of a stay wire displacement meter, an osmometer, an inclinometer or a rain gauge arranged in the monitored mountain by at least one second data acquisition unit which is in a data acquisition takeover relation with the second data acquisition unit in advance.
7. The data acquisition unit of claim 5, wherein the data acquisition task takeover unit is specifically configured to:
and when judging that the second data collector does not carry out data collection reporting in a preset period according to the monitoring result, taking over the data collection task of the second data collector, collecting and reporting the current landslide data.
8. The data acquisition device as set forth in claim 5, wherein the device further comprises:
and the data acquisition state sending unit is used for sending the current acquisition state of the landslide data to the second data acquisition unit so that the second data acquisition unit can acquire the data acquisition state of the second data acquisition unit.
9. A computer arrangement, characterized by a memory and a processor, in which a computer program is stored which, when being executed by the processor, causes the processor to carry out the steps of the data acquisition method as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, causes the processor to carry out the steps of the data acquisition method as claimed in any one of claims 1 to 4.
CN201910122864.3A 2019-02-18 2019-02-18 Data acquisition method and device, computer equipment and readable storage medium Pending CN111586082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910122864.3A CN111586082A (en) 2019-02-18 2019-02-18 Data acquisition method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910122864.3A CN111586082A (en) 2019-02-18 2019-02-18 Data acquisition method and device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111586082A true CN111586082A (en) 2020-08-25

Family

ID=72111044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910122864.3A Pending CN111586082A (en) 2019-02-18 2019-02-18 Data acquisition method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111586082A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698989A (en) * 2020-12-31 2021-04-23 科华恒盛股份有限公司 Dual-computer mutual backup method and system of data acquisition system

Citations (5)

* 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
CN102750804A (en) * 2011-04-22 2012-10-24 江西西菱轨道交通技术发展有限公司 Early warning system and early warning method for railway landslide hazard
CN206237424U (en) * 2016-12-15 2017-06-09 淮南矿业(集团)有限责任公司 A kind of Dual-Computer Hot-Standby System for monitoring central station
CN107065640A (en) * 2016-12-31 2017-08-18 广州新科佳都科技有限公司 Information gathering redundant system based on multiplex data bus
CN108270593A (en) * 2016-12-30 2018-07-10 北京中科晶上科技股份有限公司 A kind of two-node cluster hot backup method and system

Patent Citations (5)

* 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
CN102750804A (en) * 2011-04-22 2012-10-24 江西西菱轨道交通技术发展有限公司 Early warning system and early warning method for railway landslide hazard
CN206237424U (en) * 2016-12-15 2017-06-09 淮南矿业(集团)有限责任公司 A kind of Dual-Computer Hot-Standby System for monitoring central station
CN108270593A (en) * 2016-12-30 2018-07-10 北京中科晶上科技股份有限公司 A kind of two-node cluster hot backup method and system
CN107065640A (en) * 2016-12-31 2017-08-18 广州新科佳都科技有限公司 Information gathering redundant system based on multiplex data bus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698989A (en) * 2020-12-31 2021-04-23 科华恒盛股份有限公司 Dual-computer mutual backup method and system of data acquisition system
CN112698989B (en) * 2020-12-31 2024-01-02 科华恒盛股份有限公司 Dual-computer mutual backup method and system of data acquisition system

Similar Documents

Publication Publication Date Title
CN105156903A (en) Fluid pipe monitoring and managing system
CN103558559A (en) System and method for monitoring state of charge of wireless sensor
CN204178533U (en) Remote intelligent monitoring instrument
CN107645552B (en) A kind of supply equipment monitoring system
CN111813590B (en) Method and device for diagnosing abnormal reset of main control module and main control module
CN202677594U (en) Watt-hour meter collector capable of initiatively reporting incidents
CN204965689U (en) Mountain torrents calamity monitoring collection system of reliable operation
CN111586082A (en) Data acquisition method and device, computer equipment and readable storage medium
CN113032218B (en) Server fault detection method, system and computer readable storage medium
CN104485991A (en) Optical module fault automatic alarm method and system
CN114664494B (en) Distributed temperature measurement intelligent cable
CN105839673A (en) Monitorable intelligent manhole cover system
CN105739459A (en) Subway track water detection alarm system
CN105139604A (en) Sensor roof rectangular array arrangement and transmission mode
CN213365303U (en) Intelligent inclination angle detection control circuit based on NB-IoT
CN210488276U (en) Track interval ponding detection alarm device
CN203151558U (en) River water quality monitoring system based on Internet of things
CN205091903U (en) Wireless data transmission device
CN203165173U (en) Intelligent centralized meter reading and self-inspection unit
CN114545802A (en) Intelligent inclination angle detection control circuit based on NB-IoT
CN115394053B (en) Cable pit ambient gas monitoring alarm device
CN215929253U (en) Water supply network leakage monitoring system
CN204104060U (en) Based on the video operational system of IO collection plate
CN213781204U (en) Mine environment monitoring system based on wireless sensor network
CN203717312U (en) Remote monitoring system for photovoltaic water pump

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200825