Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of water conservancy monitoring device, method and system, to solve current city
The problem that water conservancy monitoring scene power consumption is high on field, product cost is high, later period operation cost is high.
The present invention solves aforementioned technical problem by following technical proposals:
Present pre-ferred embodiments provide a kind of water conservancy monitoring device, including the first controller, second controller, wireless
Communication module, battery, water conservancy sensor, camera;The power consumption of first controller is less than the second controller;Its
In: first controller is connect with the battery, water conservancy sensor, wireless communication module, camera, second controller;
The second controller is connect with the camera, wireless communication module.
Preferably, the water conservancy sensor includes at least one of: ultrasonic water level sensor, flow-velocity sensing
Device, flow sensor.
Preferably, first controller is connect with the wireless communication module by serial ports, the second controller with
The wireless communication module passes through USB connection.
Preferably, the battery is solar storage battery, and the wireless communication module is 4G module.
Preferably, first controller is STM32F108, and the second controller is HI3536C.
Second embodiment of the invention provides a kind of water conservancy monitoring method, which comprises
The voltage of first controller detection battery;
When the voltage that the first controller detects is higher than the sum of early warning value and reserved value, controls second controller and take the photograph
As head unlatching, and the water conservancy data from water conservancy sensor of acquisition are sent to the second controller, by described second
Controller receives the water conservancy data and the video data from camera, and is sent to cloud platform;
It when the voltage that the first controller detects is lower than early warning value, controls the second controller and closes, and will acquisition
The water conservancy data from water conservancy sensor be sent to cloud platform.
Preferably, a kind of water conservancy monitoring method, further includes: be higher than early warning in the voltage detected when the first controller
When the sum of value and reserved value, the first controller sends a command to wireless communication module, to forbid going here and there by the wireless communication module
Mouth dialing, and open USB dialing.
Preferably, a kind of water conservancy monitoring method is also wrapped when the voltage detected when the first controller is lower than early warning value
It includes:
When water conservancy sensor-triggered alarm, water conservancy number that the first controller alarms the water conservancy sensor-triggered
According to second controller is sent to, the first controller controls the second controller unlatching and the camera is opened, by institute
Second controller is stated to report to the image data of water conservancy data and camera acquisition that the water conservancy sensor acquires
Cloud platform.
Preferably, a kind of water conservancy monitoring method is also wrapped when the voltage detected when the first controller is lower than early warning value
It includes:
The second controller is controlled in the first controller to open, and is completed the water conservancy data and is reported to after cloud platform,
First controller controls the second controller and the camera is closed.
Third embodiment of the invention provides a kind of water conservancy monitoring system, including cloud platform and a kind of monitoring of water conservancy are set
It is standby, wherein module carries out data transmission the water conservancy monitoring device by wireless communication with the cloud platform.
A kind of water conservancy monitoring device provided in an embodiment of the present invention, method and system are detected by first controller
The battery voltage, when the battery voltage abundance, the water conservancy sensor acquisition water conservancy data, described second
Controller and the camera are opened, the camera shooting water conservancy video and acquisition image, by the second controller by institute
The video data of the water conservancy data, camera shooting of stating the acquisition of water conservancy sensor is sent to cloud platform;When the battery
When undertension, the second controller and the camera are closed, and are sensed the water conservancy by first controller
The water conservancy data of device acquisition are sent to cloud platform, and when water conservancy sensor-triggered alarm, the second controller
It is temporarily opened with the camera, the camera shoots video data, and the second controller adopts the water conservancy sensor
The water conservancy data of collection and the video data of camera shooting are sent to cloud platform, after being sent, close described the
Two controllers and the camera, to maintain the cruising ability of the battery.Since the second controller power consumption is higher, this
Sample can also temporarily start the higher second controller of power consumption, in real time in the insufficient situation of the battery voltage
Water conservancy situation is monitored, guarantees that water conservancy management personnel can handle water conservancy emergency in real time and accurately.
In addition, the embodiment of the present invention docks the first controller and the second control using a wireless communication module simultaneously
Device, and by control wireless communication module and the first controller and second controller connection so that the first controller and
Second controller can be communicated by the wireless communication module with outside, and cost input is effectively saved.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description:
Present pre-ferred embodiments provide a kind of water conservancy monitoring device, including the first controller 10, second controller 20,
Wireless communication module 30, battery 40, water conservancy sensor 50, camera 60;The power consumption of first controller 10 is less than described
Second controller 20;Wherein: first controller 10 and the battery 40, water conservancy sensor 50, wireless communication module 30,
Camera 60, second controller 20 connect;The second controller 20 is connect with the camera 60, wireless communication module 30.
In the present embodiment, the water conservancy sensor 50 includes at least one of: ultrasonic water level sensor, stream
Fast sensor, flow sensor.For example, the ultrasonic water level sensor model can be EAU, split type structure can be used,
Its waterlevel data acquired can be sent to the first controller 10 by serial ports.The ultrasonic sensor is installed on above the water surface,
And shelter is not allow for below sensor.The flow sensor model can be DPL-LS10, this is a kind of doppler flow
Fast sensor can be connect using serial ports with the first controller 10 by interface conversion.Generally after flow sensor is installed, stream
Amount can accordingly be calculated according to flow velocity.
The water conservancy sensor 50 is generally mounted to the place that the fields such as reservoir, river are not easy to real-time management, for adopting
Collect the water level in these places, water flow velocity, flow.The water conservancy sensor 50 has warning function, when collected water level, stream
When speed, flow reach warning value, alarm signal can be transferred to the first controller 10.
In the present embodiment, first controller 10 is connect with the wireless communication module 30 by serial ports, and described
Two controllers 20 are connect with the wireless communication module 30 by USB.The wireless communication module 30 works in which kind of situation, takes
Certainly in the voltage of the battery 40 of first controller 10 acquisition, if first controller 10 is collected described
When the voltage of battery 40 is lower than early warning value, first controller 10 is cooperateed with the wireless communication module 30 by the water conservancy
The water conservancy data transmission that sensor 50 acquires is to cloud platform;If the collected battery 40 of the first controller 10
When voltage is higher than the sum of early warning value and reserved value, then the water conservancy data that first controller 10 can be acquired are sent to institute
Second controller 20 is stated, then cooperates with the wireless communication module 30 to adopt the water conservancy sensor 50 by the second controller 20
The water conservancy data transmission of collection is to cloud platform.The present embodiment docked simultaneously using wireless communication module 30 first controller 10 with
And second controller 20, and the connection by controlling wireless communication module 30 and the first controller 10 and second controller 20,
So that the first controller 10 and second controller 20 can be communicated by the wireless communication module 30 with outside, have
Effect saves cost input.
In a preferred embodiment, the foundation of the early warning value setting can be, and 40 voltage of battery can be held
Carry on a shoulder pole the power supply requirement after power supply requirement and the camera 60 after the second controller 20 is opened are opened.Namely
It says, after the camera 60 is opened, can normally carry out the shooting of video and picture;First controller 10 is controlling
It, can be by the second controller 20 normally by first controller after the wireless communication module 30USB dialing is opened
The video and image data that the water conservancy data of the 10 water conservancy sensor 50 acquisitions transmitted, the camera 60 are shot pass
It is defeated by the case where cloud platform is without loss of data or damage.
In the present embodiment, the battery 40 is solar storage battery, and lead specifically can be used in the solar storage battery
Sour maintenance-free battery and colloid storage battery, these two types of batteries have non-maintaining characteristic, and environmental pollution is also less, are particularly suitable for
Unattended place.
In the present embodiment, the wireless communication module 30 can be 4G module, specifically can be SIM7600 module.Work as institute
When stating the first controller 10 sending serial ports dial instruction, 30 serial ports of the wireless communication module dialing is opened, and USB dialing is closed,
The water conservancy data that the water conservancy sensor 50 acquires are sent to cloud platform by first controller 10 at this time;When described first
When controller 10 issues USB dial instruction, the wireless communication module 30USB dialing is opened, and serial ports dialing is closed, at this time by institute
Second controller 20 is stated by the water conservancy data that the water conservancy sensor 50 acquires and the video data transmitting that the camera 60 acquires
Give cloud platform.
It should be understood that in other embodiments of the invention, the wireless communication module 30 can also be 2G module,
3G module, 5G module etc., these schemes are within the scope of the present invention.
In the present embodiment, first controller 10 can be STM32F108, and the second controller 20 can be
HI3536C.However, it is to be understood that in other embodiments of the invention, can also choose according to actual needs different
Model, these schemes are within the scope of the present invention.
As shown in Fig. 2, the working principle of the water conservancy monitoring device of the present embodiment described below:
In the present embodiment, when solar storage battery has enough voltage to drive first controller 10 (in corresponding diagram 2
Low power consumption CPU) when, first controller 10 starts, and first controller 10 acquires solar energy by voltage ADC
The voltage of battery, the second controller 20 (the high power consumption CPU in corresponding diagram 2) and the camera 60 are to close shape at this time
State.
When the voltage that first controller 10 detects is higher than the sum of early warning value and reserved value, first controller
10 control second control by universal input and output (General-purpose input/output, GPIO) pin
Device 20 processed, when the GPIO pin of the second controller 20 receives a high level (here by the second controller 20
Unlatching is set as high level, and closing is set as low level), the second controller 20 is opened;First controller 10 passes through
Relay is connect with the camera 60, when the voltage that first controller 10 detects is higher than the sum of early warning value and reserved value
When, relay closure, 60 power supply of camera is connected, and the acquisition of video data is carried out.At the same time, first controller
10 issue instructions to the wireless communication module 30 (module in corresponding diagram 2), and the wireless communication module 30 forbids serial ports to dial
Number, USB dialing is opened, so first controller 10 is abandoned transmitting the water conservancy sensor water conservancy collected to cloud platform
Data (the water conservancy sensing data in corresponding diagram 2).First controller 10 acquires the water conservancy sensor 50 at this time
Water conservancy data are sent to the second controller 20 by serial ports, and the second controller 20 and the camera 60 are opened, institute
It states camera 60 and shoots video and image, the second controller 20 dials to the wireless communication module 30 by USB port, so
The water conservancy data that the water conservancy sensor 50 acquires and the video data that the camera 60 acquires are sent to cloud platform afterwards.
When the voltage that first controller 10 detects is lower than early warning value, the GPIO pin of the second controller 20
A low level is received, the second controller 20 is closed;The relay connecting simultaneously with the camera 60 disconnects, described
60 power supply of camera is closed.At this point, the wireless communication module 30 resets, serial ports dialing is opened, first controller 10 will
The water conservancy data that the water conservancy sensor 50 acquires are sent to cloud platform.
In the present embodiment, when the voltage detected when first controller 10 is lower than early warning value, if the water conservancy
The triggering alarm of sensor 50, first controller 10 controls the unlatching of second controller 20 and the camera 60 is opened
It opens, then the water conservancy data of the water conservancy sensor 50 triggering alarm are sent to second control by first controller 10
Device 20, the camera 60 shoot video and image to Civil Engineering situation, then by the second controller 20 by the water
The video and image data that the water conservancy data and the camera 60 that sharp sensor 50 acquires acquire are sent to cloud platform.
In the present embodiment, after completing data by the second controller 20 and being sent to cloud platform, first control
Device 10 processed receives the received signal (being set as low level at this time) from cloud platform feedback, then 20 He of second controller
The camera 60 is turned off.Meanwhile first controller 10 sends a command to the wireless communication module 30, prompts multiple
Position, and serial ports dialing is opened, the water conservancy data of acquisition are sent to cloud platform by first controller 10.
Second embodiment of the invention additionally provides a kind of water conservancy monitoring method, as shown in figure 3, comprising:
S101: first controller 10 detects the voltage of the battery 40;
S102: when the voltage that first controller 10 detects is higher than the sum of early warning value and reserved value, described first
Controller 10 controls the second controller 20 and the camera 60 is opened, and acquisition is come from the water conservancy sensor
50 water conservancy data are sent to the second controller 20, with the water conservancy data that will be received by the second controller 20
And the video data from the camera 60 is sent to cloud platform;
S103: when the voltage that first controller 10 detects is lower than early warning value, first controller 10 is controlled
The second controller 20 and the camera 60 are closed, and the water conservancy data from the water conservancy sensor 50 of acquisition are sent out
It send to cloud platform.
In the present embodiment, when the voltage that first controller 10 detects is higher than the sum of early warning value and reserved value,
First controller 10 sends a command to the wireless communication module 30, to forbid serial ports to dial by the wireless communication module 30
Number, and open USB dialing.
In the present embodiment, when the voltage detected when first controller 10 is lower than early warning value, when the water conservancy passes
The water conservancy data of the water conservancy sensor 50 triggering alarm are sent to described by the triggering alarm of sensor 50, first controller 10
Second controller 20, and first controller 10 controls the unlatching of second controller 20 and the camera 60 is opened
It opens, with acquired water conservancy data and the camera 60 that the water conservancy sensor 50 acquires by the second controller 20
Image data reports to cloud platform.
In the present embodiment, the water conservancy data acquired the water conservancy sensor 50 in the second controller 20 and institute
The image data for stating the acquisition of camera 60 reports to after cloud platform, and first controller 10 controls the second controller 20
And the camera 60 is closed.
Third embodiment of the invention additionally provides a kind of water conservancy monitoring system, including a kind of water conservancy monitoring device and institute
State cloud platform.
In the present embodiment, the cloud platform, can be terminal, and the water conservancy monitoring device passes through the channel radio
Believe module 30, the water conservancy data that the water conservancy sensor 50 acquires and the video data that the camera 60 is shot are sent to cloud
Platform.In cloud platform terminal, water conservancy data and video data can be presented by display screen and corresponding acoustooptic alarm system,
Water conservancy management personnel can grasp the case where water conservancy monitors by the received water conservancy data of cloud platform and video data in real time, when
Water conservancy in critical condition when, remedial measure can be made in time, damage is reduced to minimum.
Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.