Disclosure of Invention
In view of the above, the present invention provides a water conservancy monitoring device, a method and a system, so as to solve the problems of high power consumption, high product cost and high later-stage operation cost of a water conservancy monitoring scene in the current market.
The invention solves the technical problems by the following technical scheme:
the invention provides water conservancy monitoring equipment, which comprises a first controller, a second controller, a wireless communication module, a storage battery, a water conservancy sensor and a camera, wherein the first controller is connected with the second controller; the power consumption of the first controller is less than that of the second controller; wherein: the first controller is connected with the storage battery, the water conservancy sensor, the wireless communication module, the camera and the second controller; the second controller is connected with the camera and the wireless communication module.
Preferably, the hydraulic sensor at least comprises one of the following components: ultrasonic water level sensor, velocity of flow sensor, flow sensor.
Preferably, the first controller is connected with the wireless communication module through a serial port, and the second controller is connected with the wireless communication module through a USB.
Preferably, the storage battery is a solar storage battery, and the wireless communication module is a 4G module.
Preferably, the first controller is STM32F108 and the second controller is HI 3536C.
A second embodiment of the present invention provides a water conservancy monitoring method, including:
the first controller detects the voltage of the storage battery;
when the voltage detected by the first controller is higher than the sum of the early warning value and the reserved value, the second controller and the camera are controlled to be started, the collected water conservancy data from the water conservancy sensor are sent to the second controller, and the second controller receives the water conservancy data and the video data from the camera and sends the video data to the cloud platform;
when the voltage detected by the first controller is lower than the early warning value, the second controller is controlled to be closed, and the collected water conservancy data from the water conservancy sensor are sent to the cloud platform.
Preferably, the water conservancy monitoring method further includes: when the voltage detected by the first controller is higher than the sum of the early warning value and the reserved value, the first controller sends an instruction to the wireless communication module, so that the wireless communication module forbids serial port dialing and starts USB dialing.
Preferably, the water conservancy monitoring method further includes, when the voltage detected by the first controller is lower than the warning value:
when the water conservancy sensor triggers an alarm, the first controller sends water conservancy data of the water conservancy sensor triggering the alarm to the second controller, the first controller controls the second controller to be started and the camera to be started, and the second controller reports the water conservancy data collected by the water conservancy sensor and the image data collected by the camera to the cloud platform.
Preferably, the water conservancy monitoring method further includes, when the voltage detected by the first controller is lower than the warning value:
and after the first controller controls the second controller to be started and finishes the report of the water conservancy data to the cloud platform, the first controller controls the second controller and the camera to be closed.
The third embodiment of the invention provides a water conservancy monitoring system which comprises a cloud platform and water conservancy monitoring equipment, wherein the water conservancy monitoring equipment and the cloud platform perform data transmission through a wireless communication module.
According to the water conservancy monitoring equipment, the water conservancy monitoring method and the water conservancy monitoring system, the first controller detects the voltage of the storage battery, when the voltage of the storage battery is sufficient, the water conservancy sensor collects water conservancy data, the second controller and the camera are started, the camera shoots water conservancy videos and collected images, and the second controller sends the water conservancy data collected by the water conservancy sensor and the video data shot by the camera to the cloud platform; when battery voltage is not enough, the second controller with the camera is closed, by first controller will the water conservancy data transmission that water conservancy sensor gathered gives cloud platform, and when water conservancy sensor triggers the warning, the second controller with the camera is temporarily opened, video data is shot to the camera, the second controller will the water conservancy data that water conservancy sensor gathered with the video data transmission that the camera was shot gives cloud platform, after sending and finishing, close the second controller with the camera, in order to maintain the duration of a journey ability of battery. Because the second controller consumption is higher, like this under the not enough condition of battery voltage, also can start the consumption temporarily higher the second controller, the real-time water conservancy circumstances of control guarantees that water conservancy managers can be real-time and accurately handle water conservancy emergency.
In addition, the embodiment of the invention uses one wireless communication module to simultaneously butt joint the first controller and the second controller, and controls the connection of the wireless communication module with the first controller and the second controller, so that the first controller and the second controller can both communicate with the outside through the wireless communication module, thereby effectively saving the cost investment.
Detailed Description
The technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiment of the present invention:
the preferred embodiment of the invention provides water conservancy monitoring equipment, which comprises a first controller 10, a second controller 20, a wireless communication module 30, a storage battery 40, a water conservancy sensor 50 and a camera 60; the first controller 10 consumes less power than the second controller 20; wherein: the first controller 10 is connected with the storage battery 40, the water conservancy sensor 50, the wireless communication module 30, the camera 60 and the second controller 20; the second controller 20 is connected to the camera 60 and the wireless communication module 30.
In this embodiment, the hydraulic sensor 50 at least includes one of the following: ultrasonic water level sensor, velocity of flow sensor, flow sensor. For example, the ultrasonic water level sensor may be an EAU type, and may have a split type structure, and the collected water level data may be transmitted to the first controller 10 through a serial port. The ultrasonic sensor is arranged above the water surface, and no shielding object is allowed below the sensor. The flow sensor may be a DPL-LS10 model, which is a doppler flow sensor that is interfaced to the first controller 10 via a serial port. Typically, after the flow rate sensor is installed, the flow rate can be calculated accordingly based on the flow rate.
The water conservancy sensor 50 is generally installed in places such as reservoirs, riverways and the like where real-time management is inconvenient in the field, and is used for collecting water levels, water flow rates and flow rates of the places. The water conservancy sensor 50 has an alarm function, and transmits an alarm signal to the first controller 10 when the collected water level, flow rate and flow rate reach warning values.
In this embodiment, the first controller 10 is connected to the wireless communication module 30 through a serial port, and the second controller 20 is connected to the wireless communication module 30 through a USB. In which situation the wireless communication module 30 works, depending on the voltage of the storage battery 40 collected by the first controller 10, if the voltage of the storage battery 40 collected by the first controller 10 is lower than an early warning value, the first controller 10 and the wireless communication module 30 cooperate to transmit the water conservancy data collected by the water conservancy sensor 50 to a cloud platform; if the voltage of the storage battery 40 collected by the first controller 10 is higher than the sum of the early warning value and the reserved value, the first controller 10 sends the collected water conservancy data to the second controller 20, and the second controller 20 cooperates with the wireless communication module 30 to transmit the water conservancy data collected by the water conservancy sensor 50 to the cloud platform. In the embodiment, one wireless communication module 30 is used to simultaneously dock the first controller 10 and the second controller 20, and the first controller 10 and the second controller 20 can both communicate with the outside through the wireless communication module 30 by controlling the connection between the wireless communication module 30 and the first controller 10 and the second controller 20, so that the cost investment is effectively saved.
In a preferred embodiment, the warning value may be set according to the voltage of the battery 40 that can bear the power requirement after the second controller 20 is turned on and the power requirement after the camera 60 is turned on. That is, after the camera 60 is turned on, the video and the picture can be normally taken; after the first controller 10 controls the wireless communication module 30 to start USB dialing, the second controller 20 can normally transmit the water conservancy data collected by the water conservancy sensor 50 and the video and image data shot by the camera 60, which are transmitted by the first controller 10, to the cloud platform without data loss or damage.
In this embodiment, the storage battery 40 is a solar storage battery, and the solar storage battery specifically can be a lead-acid maintenance-free storage battery or a colloid storage battery, which has maintenance-free characteristics and less environmental pollution, and is particularly suitable for unattended places.
In this embodiment, the wireless communication module 30 may be a 4G module, and specifically may be a SIM7600 module. When the first controller 10 sends a serial port dialing instruction, the serial port dialing of the wireless communication module 30 is started, the USB dialing is closed, and at the moment, the first controller 10 sends the water conservancy data acquired by the water conservancy sensor 50 to the cloud platform; when the first controller 10 sends a USB dialing instruction, the wireless communication module 30 starts USB dialing and closes serial port dialing, and at this time, the second controller 20 sends the water conservancy data collected by the water conservancy sensor 50 and the video data collected by the camera 60 to the cloud platform.
It should be understood that, in other embodiments of the present invention, the wireless communication module 30 may also be a 2G module, a 3G module, a 5G module, etc., which are all within the protection scope of the present invention.
In the present embodiment, the first controller 10 may be an STM32F108, and the second controller 20 may be an HI 3536C. Of course, it should be understood that in other embodiments of the present invention, different models may be selected according to actual needs, and these schemes are within the protection scope of the present invention.
As shown in fig. 2, the working principle of the water conservancy monitoring device of the embodiment is detailed as follows:
in this embodiment, when the first controller 10 (corresponding to the low power consumption CPU in fig. 2) is driven by the solar battery with sufficient voltage, the first controller 10 is started, the first controller 10 collects the voltage of the solar battery through the voltage ADC, and the second controller 20 (corresponding to the high power consumption CPU in fig. 2) and the camera 60 are in an off state.
When the voltage detected by the first controller 10 is higher than the sum of the warning value and the reserved value, the first controller 10 controls the second controller 20 through a General-purpose input/output (GPIO) pin, and when the GPIO pin of the second controller 20 receives a high level (here, the second controller 20 is turned on and set to a high level, and the turn-off is set to a low level), the second controller 20 is turned on; the first controller 10 is connected with the camera 60 through a relay, when the voltage detected by the first controller 10 is higher than the sum of the early warning value and the reserved value, the relay is closed, and the camera 60 is powered on to collect video data. Meanwhile, the first controller 10 sends an instruction to the wireless communication module 30 (corresponding to the module in fig. 2), and the wireless communication module 30 prohibits serial port dialing and starts USB dialing, so that the first controller 10 gives up transmitting the water conservancy data (corresponding to the water conservancy sensor data in fig. 2) collected by the water conservancy sensor to the cloud platform. At this moment, the first controller 10 sends the water conservancy data collected by the water conservancy sensor 50 to the second controller 20 through a serial port, the second controller 20 and the camera 60 are started, the camera 60 shoots videos and images, the second controller 20 dials the wireless communication module 30 through a USB port, and then sends the water conservancy data collected by the water conservancy sensor 50 and the video data collected by the camera 60 to a cloud platform.
When the voltage detected by the first controller 10 is lower than the warning value, the GPIO pin of the second controller 20 receives a low level, and the second controller 20 is turned off; meanwhile, the relay connected with the camera 60 is disconnected, and the power supply of the camera 60 is turned off. At this time, the wireless communication module 30 resets, serial dialing is started, and the first controller 10 sends the water conservancy data acquired by the water conservancy sensor 50 to the cloud platform.
In this embodiment, when the voltage that first controller 10 detected is less than the early warning value, if hydraulic sensor 50 triggers the warning, first controller 10 control second controller 20 opens and camera 60 opens, then first controller 10 will hydraulic sensor 50 triggers the water conservancy data of warning and sends for second controller 20, camera 60 shoots video and image to current water conservancy condition, then by second controller 20 with the water conservancy data that hydraulic sensor 50 gathered and the video and the image data that camera 60 gathered send to the cloud platform.
In this embodiment, after the second controller 20 completes data transmission to the cloud platform, the first controller 10 receives a received signal (set to low level at this time) fed back from the cloud platform, and then both the second controller 20 and the camera 60 are turned off. Meanwhile, the first controller 10 sends an instruction to the wireless communication module 30 to prompt resetting, and starts serial dialing, and the first controller 10 sends acquired water conservancy data to the cloud platform.
The second embodiment of the present invention further provides a water conservancy monitoring method, as shown in fig. 3, including:
s101: the first controller 10 detects the voltage of the battery 40;
s102: when the voltage detected by the first controller 10 is higher than the sum of the early warning value and the reserved value, the first controller 10 controls the second controller 20 and the camera 60 to be started, and sends the collected water conservancy data from the water conservancy sensor 50 to the second controller 20, so that the second controller 20 sends the received water conservancy data and the video data from the camera 60 to a cloud platform;
s103: when the voltage detected by the first controller 10 is lower than an early warning value, the first controller 10 controls the second controller 20 and the camera 60 to be closed, and sends the collected water conservancy data from the water conservancy sensor 50 to a cloud platform.
In this embodiment, when the voltage detected by the first controller 10 is higher than the sum of the warning value and the reserved value, the first controller 10 sends an instruction to the wireless communication module 30, so that the wireless communication module 30 prohibits serial port dialing and starts USB dialing.
In this embodiment, when the voltage detected by the first controller 10 is lower than an early warning value, when the water conservancy sensor 50 triggers an alarm, the first controller 10 sends the water conservancy data that the water conservancy sensor 50 triggers the alarm to the second controller 20, and the first controller 10 controls the second controller 20 to be turned on and the camera 60 to be turned on, so that the second controller 20 reports the water conservancy data collected by the water conservancy sensor 50 and the image data collected by the camera 60 to a cloud platform.
In this embodiment, after the second controller 20 reports the water conservancy data acquired by the water conservancy sensor 50 and the image data acquired by the camera 60 to a cloud platform, the first controller 10 controls the second controller 20 and the camera 60 to be closed.
The third embodiment of the invention also provides a water conservancy monitoring system which comprises the water conservancy monitoring equipment and the cloud platform.
In this embodiment, the cloud platform may be a computer terminal, and the water conservancy monitoring equipment sends the water conservancy data collected by the water conservancy sensor 50 and the video data shot by the camera 60 to the cloud platform through the wireless communication module 30. At cloud platform terminal, water conservancy data and video data are presented to accessible display screen and corresponding audible and visual alarm system, and water conservancy managers can master the condition of water conservancy control in real time through water conservancy data and the video data that cloud platform received, when the water conservancy condition is critical, can in time make remedial measure, reduce the harm to the minimum.
It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.