CN110049112A - A kind of fire cistern liquid level detection system and method - Google Patents

A kind of fire cistern liquid level detection system and method Download PDF

Info

Publication number
CN110049112A
CN110049112A CN201910239557.3A CN201910239557A CN110049112A CN 110049112 A CN110049112 A CN 110049112A CN 201910239557 A CN201910239557 A CN 201910239557A CN 110049112 A CN110049112 A CN 110049112A
Authority
CN
China
Prior art keywords
electrically connected
liquid level
mcu
resistance
chip
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
CN201910239557.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.)
Guangzhou Youplus Intelligent Technology Co Ltd
Original Assignee
Guangzhou Youplus Intelligent 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 Guangzhou Youplus Intelligent Technology Co Ltd filed Critical Guangzhou Youplus Intelligent Technology Co Ltd
Priority to CN201910239557.3A priority Critical patent/CN110049112A/en
Publication of CN110049112A publication Critical patent/CN110049112A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements
    • 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
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Fluid Mechanics (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The present invention relates to fire-fighting internet of things field, it is proposed a kind of fire cistern liquid level detection system, including liquid level sensor, MCU, communication module, wherein MCU carries out data transmission with liquid level sensor, the output end of MCU and the input terminal of communication module connect, and fire cistern liquid level detection system is powered using external connection battery.The present invention also proposes a kind of fire cistern liquid-level detecting method, using above-mentioned fire cistern liquid level detection system, comprising the following steps: system electrification enters low-power consumption mode after MCU, communication module initialization;MCU timing wake-up and the fire cistern liquid level data that current time is obtained by liquid level sensor are upload the data in Cloud Server if liquid level data is higher than alarming value, and then MCU and communication module enter low-power consumption mode;If it is not, then judging whether the time interval uploaded apart from last time is greater than ten minutes, if then uploading the data in Cloud Server, otherwise MCU and communication module enter low-power consumption mode.

Description

A kind of fire cistern liquid level detection system and method
Technical field
The present invention relates to fire-fighting internet of things field, more particularly, to a kind of fire cistern liquid level detection system and Method.
Background technique
In order to guarantee that fire demand water is enough under emergency case, the need to the fire cistern in fire fighting water system are needed Water is detected, to avoid since water shortage leads to the fire-fighting work for influencing fire department in fire cistern.Fire water Pond is generally located on skyscraper, generallys use artificial detection to the water level detecting of fire cistern at present, therefore fire cistern Water level detecting need of work take a substantial amount of time with the resources such as manpower, and once detection work do not carry out in time, Huo Zhejian It surveys work to slip, by the security of the lives and property of crisis people.
Summary of the invention
The present invention is to overcome detect etc. at least to the water level of fire cistern in time described in the above-mentioned prior art A kind of defect provides a kind of fire cistern liquid level detection system.
In order to solve the above technical problems, technical scheme is as follows:
A kind of fire cistern liquid level detection system, including liquid level sensor, for obtain and handle liquid level sensor detection The MCU of obtained liquid level data, the liquid level data for handling completion are reported to the communication module of Cloud Server, wherein MCU Carry out data transmission with liquid level sensor, the output end of MCU and the input terminal of communication module connect, and fire cistern level sensing System is powered using external connection battery.
In the specific use process, after fire cistern liquid level detection system powers on, MCU is initialized, MCU configuration and liquid After the communication protocol of level sensor, Cloud Server is connected to by communication module, completes starting work;MCU timing wake-up is simultaneously led to The liquid level data for communicating with liquid level sensor and obtaining current time is crossed, it is pre- that MCU judges whether the liquid level data at current time exceeds If alarming value, if so, MCU is reported to the liquid level data at current time in Cloud Server by communication module, then into Enter low-power consumption mode;If it is not, then first judging whether the time interval for reporting liquid level data apart from last time is greater than 10min, if then MCU enters back into low-power consumption mode after the liquid level data at current time is reported to Cloud Server platform, and otherwise MCU is directly entered low Power consumption mode.
In the technical program, MCU carries out data transmission with liquid level sensor, make MCU and communication module can integrated installation exist Building interior darkness position, effectively avoids direct sunlight from leading to system failure;Fire cistern liquid level detection system is by external connection battery It is powered, can reduce overall cost and reduces overall volume, it is easier for installation;In fire cistern liquid level detection system MCU and communication module are set as timing wake-up work, and low-power consumption mode is entered when not needing work, whole system is effectively reduced Power consumption, extend battery;Fire cistern liquid level detection system realizes the real-time measurement of fire cistern liquid level, passes through The liquid level data that communication module timing will test is reported to Cloud Server, or when liquid level data is lower than preset alarming value The liquid level data that will test is reported in Cloud Server, and staff can be by transferring the liquid periodically updated in Cloud Server Position data, realize the real-time detection of fire cistern liquid level condition, avoid the level sensing work without carrying out fire cistern in time Lead to the security of the lives and property for jeopardizing people.
Preferably, communication module is NB-IoT module communication circuit, and wherein NB-IoT module communication circuit includes NB-IoT Module chip U3, antenna, SIM card holder and the SIM card being arranged in SIM card holder;NB-IoT module chip U3 passes through antennal interface J1 is connect with antenna, and NB-IoT module chip U3 is electrically connected by usim card interface with the SIM card being arranged in SIM card holder.This In preferred embodiment, selects the NB-IoT module communication circuit of low-power consumption as communication module, the outside gimmick data of MCU are effectively reduced When required consumption communication power consumption.
Preferably, NB-IoT module communication circuit further includes Chip-R R20, R22, R23, wherein NB-IoT module chip The end USIM_RESET of U3 is electrically connected by Chip-R R20 with the end RST of SIM card, the USIM_ of NB-IoT module chip U3 The end CLK is electrically connected by Chip-R R22 with the end CLK of SIM card, and the end USIM_DATA of NB-IoT module chip U3 passes through patch Sheet resistance R23 is electrically connected with the end I/O of SIM card.Chip-R R20, R22, R23 in this preferred embodiment is antistatic for improving Discharge performance.
Preferably, NB-IoT module communication circuit further includes TVS diode U4, patch capacitor C25, C26, C27, wherein pasting One end of sheet resistance R20, R22, R23 are electrically connected with NB-IoT module chip U3 respectively, and Chip-R R20, R22, R23's is another End is electrically connected with TVS diode U4 respectively;The other end of Chip-R R20 is electrically connected with one end of patch capacitor C25, patch electricity Hold the other end ground connection of C25;The other end of Chip-R R22 is electrically connected with one end of patch capacitor C26, patch capacitor C26's Other end ground connection;The other end of Chip-R R23 is electrically connected with one end of patch capacitor C27, another termination of patch capacitor C27 Ground.Diode in this preferred embodiment uses TVS diode, electrostatic can be effectively performed to NB-IoT module communication circuit and put Electricity protection;Patch capacitor C25, C26, C27 improve the stability of circuit for being filtered to electric signal.
Preferably, device further includes boot-strap circuit, wake-up circuit and reset circuit;
The boot-strap circuit includes triode Q1, patch capacitor C21, Chip-R R13 and R15, wherein the MCU_ of MCU The end PWR is electrically connected with one end of resistance R13, and the other end of resistance R13 is electrically connected with the base stage of triode Q1, the collection of triode Q1 Electrode is electrically connected with the end NB_PWR of NB-IoT module chip U3, the emitter ground connection of triode Q1;The other end of resistance R13 with One end of resistance R15 is electrically connected, the other end ground connection of resistance R15;The end NB_PWR of NB-IoT module chip U3 is with capacitor C21's One end electrical connection, the other end ground connection of capacitor C21;
The wake-up circuit includes triode Q2, patch capacitor C22, Chip-R R14, R16, R17, R18, wherein MCU In the end MCU_PWR be electrically connected with one end of resistance R16, the other end of resistance R16 is electrically connected with the base stage of triode Q2, three-level The emitter of pipe Q2 is electrically connected with the end NB_WAKEUP of NB-IoT module chip U3;The NB_WAKEUP of NB-IoT module chip U3 End is electrically connected with one end of capacitor C22, the other end ground connection of capacitor C22;The emitter of triode Q2 and one end electricity of resistance R18 Connection, the other end ground connection of resistance R18;The other end of resistance R16 is electrically connected with one end of resistance R17, the other end of resistance R17 Ground connection;The collector of triode Q2 is electrically connected with one end of resistance R14, the other end of resistance R14 and the output end of external connection battery Electrical connection;
The reset circuit includes triode Q3, patch capacitor C24, Chip-R R21, R24, wherein the MCU_ in MCU The end RST is electrically connected with one end of resistance R21, and the other end of resistance R21 is electrically connected with the base stage of triode Q3, the hair of triode Q3 Emitter grounding;The other end of resistance R21 is electrically connected with one end of resistance R24, the other end ground connection of resistance R24;Triode Q3's Collector is electrically connected with the end NB_RST of NB-IoT module chip U3, the end NB_RST of NB-IoT module chip U3 and capacitor C24 One end electrical connection, capacitor C24 the other end ground connection.
In this preferred embodiment, when the end MCU_PWR is high level, the end NB_PWR of NB-IoT module chip U3 is led with GND Logical, when NB_PWR was in the low level duration greater than 1.2 seconds, NB-IoT module chip U3 completes booting work;Work as MCU_ When the end WAKEUP is high level, triode Q2 conducting, the end NB_WAKEUP is high level at this time, when the end NB_WAKEUP is in high electricity When the flat duration is greater than 1 second, NB-IoT module chip U3 wakes up from low-power consumption mode, into normal operating conditions;When When the end MCU_RST is high level, the end NB_RST of triode Q3 conducting, NB-IoT module chip U3 is low level, works as NB_RST In when being greater than 1 second the low level duration, NB-IoT module chip U3 executes reset work at end.
Preferably, communication module is provided with 485 wireline interfaces, and it is serial total by 485 to be used for the MCU when wireless signal is weaker Line standard carries out data communication to Cloud Server.
Preferably, device further includes power supply stabilization circuit, the input terminal of power supply stabilization circuit and the output end of external connection battery Electrical connection, the power supply stabilization circuit include low pressure difference linearity voltage stabilizing chip U2, capacitor C3, C4, C5, wherein voltage stabilizing chip U2 Input terminal is electrically connected as the input terminal of power supply stabilization circuit with the output end of external connection battery, the output end of voltage stabilizing chip U2 with The feeder ear of MCU is electrically connected, and the output end of voltage stabilizing chip U2 is electrically connected with the feeder ear of communication module;The input of voltage stabilizing chip U2 End is electrically connected with one end of capacitor C3, the other end ground connection of capacitor C3;The output end of voltage stabilizing chip U2 and one end electricity of capacitor C4 Connection, the other end ground connection of capacitor C4;The output end of voltage stabilizing chip U2 is electrically connected with one end of capacitor C5, the other end of capacitor C5 Ground connection.It in this preferred embodiment, is acquired and steady pressure treatment, is passed through using the power supply that power supply stabilization circuit exports external connection battery Low pressure difference linearity voltage stabilizing chip U2 is converted to suitable for voltage used in MCU and communication module, then passes through voltage stabilizing chip U2 two Patch capacitor C3, C4, the C5 at end are filtered, and finally obtain stable direct current output.
Preferably, liquid level detection device further includes LCD liquid crystal display screen, and the LCD of the LCD liquid crystal display screen and MCU drive Moved end electrical connection, MCU show current level sensor liquid level data detected by driving LCD liquid crystal display screen.
Preferably, liquid level detection device further includes function button module, and function button module is connect with MCU, function button Module includes Chip-R R10, R11, R12, patch capacitor C16, C17, C18, touch-switch S2, S3, S4, wherein resistance R10 One end be electrically connected with external connection battery, the other end of resistance R10 is electrically connected with the end KEY1 in MCU;The other end of resistance R10 with One end of capacitor C16 is electrically connected, the other end ground connection of capacitor C16;The other end of resistance R10 is electrically connected with one end of switch S2, The other end of switch S2 is grounded;
One end of resistance R11 is electrically connected with external connection battery, and the other end of resistance R11 is electrically connected with the end KEY2 in MCU;Electricity The other end of resistance R11 is electrically connected with one end of capacitor C17, the other end ground connection of capacitor C17;The other end and switch of resistance R11 One end of S3 is electrically connected, the other end ground connection of switch S3;
One end of resistance R12 is electrically connected with external connection battery, and the other end of resistance R12 is electrically connected with the end KEY3 in MCU;Electricity The other end of resistance R12 is electrically connected with one end of capacitor C18, the other end ground connection of capacitor C18;The other end and switch of resistance R12 One end of S4 is electrically connected, the other end ground connection of switch S4.
In this preferred embodiment, MCU is judged whether there is by the level height variation of each key circuit in detection key module Actuation of keys.
The present invention also proposes a kind of fire cistern liquid-level detecting method, using above-mentioned fire cistern liquid level detection system, packet Include following steps:
S1: fire cistern liquid level detection system powers on, and MCU is initialized and completed to match with the communication protocol of liquid level sensor It sets, communication module, which is initialized and registered, is connected to Cloud Server, and then MCU and communication module enter low-power consumption mode;
S2:MCU timing wake-up, then sends detection signal to liquid level sensor, and liquid level sensor disappears current time Anti- pond liquid level data are sent in MCU by IIC communication and carry out processing analysis:
If the fire cistern liquid level data at current time is higher than preset alarming value, MCU controls communication module and wakes up, communication After the fire cistern liquid level data at current time is reported Cloud Server by module, MCU and communication module enter low-power consumption mode;
If the fire cistern liquid level data at current time is normal, MCU judges to report fire cistern liquid level data apart from last time Time interval whether be greater than 10min, if so, MCU control communication module wakes up, communication module is by the fire water at current time After pit level data report Cloud Server, MCU and communication module enter low-power consumption mode;If it is not, then MCU enters low-power consumption mould Formula.
Compared with prior art, the beneficial effect of technical solution of the present invention is: capableing of the fire-fighting at timing acquisition current time Pond liquid level data, and upload in Cloud Server, staff is long-range by calling the liquid level data in Cloud Server to realize Monitoring, effectively avoiding working not in time because of fire cistern water level detecting causes to influence people's safety of life and property;Pass through timing The design of wake-up system reduces the power consumption of system entirety, effectively extends the service life of battery, and be suitable for various complexity Use environment.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the fire cistern liquid level detection system of the present embodiment.
Fig. 2 is the pinouts of the MCU of the present embodiment.
Fig. 3 is the circuit diagram of the NB-IoT module communication circuit of the present embodiment.
Fig. 4 is the circuit diagram that the MCU of the present embodiment controls booting, the wake-up, reset of NB-IoT mould group.
Fig. 5 is the circuit diagram of the power supply stabilization circuit of the present embodiment.
Fig. 6 is the fire cistern liquid-level detecting method flow chart of the present embodiment.
Fig. 7 is the LCD liquid crystal display screen and function button module circuit diagram of the present embodiment.
Specific embodiment
The attached figures are only used for illustrative purposes and cannot be understood as limitating the patent;
In order to better illustrate this embodiment, the certain components of attached drawing have omission, zoom in or out, and do not represent actual product Size;
To those skilled in the art, it is to be understood that certain known features and its explanation, which may be omitted, in attached drawing 's.
The following further describes the technical solution of the present invention with reference to the accompanying drawings and examples.
Embodiment 1
As shown in Figure 1, the structural schematic diagram of the fire cistern liquid level detection system for the present embodiment.
A kind of fire cistern liquid level detection device of the present embodiment includes liquid level sensor 1, MCU2, communication module 3, external Battery 4, wherein MCU2 carries out data transmission with liquid level sensor 1, and the output end of MCU2 is connect with the input terminal of communication module 3.
MCU2 in the present embodiment uses STM32 super low-power consumption microcontroller chip STM32L053R8T6, is mainly used for obtaining The liquid level data that liquid level sensor 1 detects is taken and handled, and liquid level data is reported to by cloud service by communication module 3 In device 5.
As shown in Fig. 2, the pinouts of the MCU2 for the present embodiment.
In the present embodiment, MCU2 carries out IIC with liquid level sensor 1 by the port P1 and communicates the acquisition detection of liquid level sensor 1 Liquid level data.
Communication module 3 in the present embodiment is NB-IoT module communication circuit, as shown in figure 3, being the NB- of the present embodiment The circuit diagram of IoT module communication circuit.
Wherein NB-IoT module communication circuit includes NB-IoT module chip U3, antenna, SIM card holder and setting in SIM card SIM card on seat, NB-IoT module chip U3 are connect by antennal interface J1 with antenna, and NB-IoT module chip U3 passes through USIM Card interface is electrically connected with the SIM card being arranged in SIM card holder.
NB-IoT module communication circuit further include Chip-R R20, R22, R23, TVS diode U4, patch capacitor C25, C26, C27, wherein the end USIM_RESET of NB-IoT module chip U3 is electrically connected with one end of Chip-R R20, Chip-R The other end of R20 is electrically connected with the end RST of SIM card;The end USIM_CLK of NB-IoT module chip U3 and the one of Chip-R R22 End electrical connection, the other end of Chip-R R22 are electrically connected with the end CLK of SIM card;The USIM_DATA of NB-IoT module chip U3 End is electrically connected with one end of Chip-R R23, and the other end of Chip-R R23 is electrically connected with the end I/O of SIM card;
The other end of Chip-R R20 is electrically connected with the end K3 of TVS diode U4, the other end and TVS of Chip-R R22 The end K5 of diode U4 is electrically connected, and the other end of Chip-R R23 is electrically connected with the end K1 of TVS diode U4;
The other end of Chip-R R20 is electrically connected with one end of patch capacitor C25, the other end ground connection of patch capacitor C25; The other end of Chip-R R22 is electrically connected with one end of patch capacitor C26, the other end ground connection of patch capacitor C26;Chip-R The other end of R23 is electrically connected with one end of patch capacitor C27, the other end ground connection of patch capacitor C27.
In the present embodiment, fire cistern liquid level detection device further includes boot-strap circuit, wake-up circuit and reset circuit.Such as figure It is the circuit diagram of the boot-strap circuit of the present embodiment, wake-up circuit and reset circuit shown in 4.
Wherein, boot-strap circuit includes NPN triode Q1, patch capacitor C21, Chip-R R13 and R15, wherein described The end MCU_PWR of MCU2 is electrically connected with one end of resistance R13, and the other end of resistance R13 is electrically connected with the base stage of triode Q1, and three The collector of pole pipe Q1 is electrically connected with the end NB_PWR of NB-IoT module chip U3, the emitter ground connection of triode Q1;Resistance R13 The other end be electrically connected with one end of resistance R15, the end NB_PWR of the other end of resistance R15 ground connection NB-IoT module chip U3 with One end of capacitor C21 is electrically connected, the other end ground connection of capacitor C21;
Wake-up circuit includes NPN triode Q2, patch capacitor C22, Chip-R R14, R16, R17, R18, wherein described The end MCU_PWR of MCU2 is electrically connected with one end of resistance R16, and the other end of resistance R16 is electrically connected with the base stage of triode Q2, and three The emitter of grade pipe Q2 is electrically connected with the end NB_WAKEUP of NB-IoT module chip U3;The NB_ of NB-IoT module chip U3 The end WAKEUP is electrically connected with one end of capacitor C22, the other end ground connection of capacitor C22;The emitter of triode Q2 is with resistance R18's One end electrical connection, the other end ground connection of resistance R18;The other end of resistance R16 is electrically connected with one end of resistance R17, resistance R17's Other end ground connection;The collector of triode Q2 is electrically connected with one end of resistance R14, the other end and the external connection battery 4 of resistance R14 Output end electrical connection;
Reset circuit includes NPN triode Q3, patch capacitor C24, Chip-R R21, R24, wherein the MCU_RST of MCU2 End is electrically connected with one end of resistance R21, and the other end of resistance R21 is electrically connected with the base stage of triode Q3, the transmitting of triode Q3 Pole ground connection;The other end of resistance R21 is electrically connected with one end of resistance R24, the other end ground connection of resistance R24;The collection of triode Q3 Electrode is electrically connected with the end NB_RST of NB-IoT module chip U3, and the end NB_RST of NB-IoT module chip U3 is with capacitor C24's One end electrical connection, the other end ground connection of capacitor C24.
When the end MCU_PWR is high level, the end NB_PWR of NB-IoT module chip U3 is connected with GND, at NB_PWR It is greater than 1.2 seconds in the low level duration, NB-IoT module chip U3 completes booting work;When the end MCU_WAKEUP is high electricity Usually, triode Q2 is connected, and the end NB_WAKEUP is high level at this time, big when the duration that the end NB_WAKEUP is in high level When 1 second, NB-IoT module chip U3 wakes up from low-power consumption mode, into normal operating conditions;When the end MCU_RST is high electricity Usually, triode Q3 is connected, and the end NB_RST of NB-IoT module chip U3 is low level, holds when the end NB_RST is in low level When the continuous time is greater than 1 second, NB-IoT module chip U3, which is executed, resets work.
In the present embodiment, communication module 3 is additionally provided with 485 wireline interfaces, for when wireless signal is weaker MCU2 pass through 485 serial bus standards carry out data communication to Cloud Server 5.
In the present embodiment, fire cistern liquid level detection device device further includes power supply stabilization circuit, as shown in figure 5, for this The circuit diagram of the power supply stabilization circuit of embodiment.
Power supply stabilization circuit in the present embodiment includes low pressure difference linearity voltage stabilizing chip U2, capacitor C3, C4, C5, wherein surely The input terminal of pressure chip U2 is electrically connected as the input terminal of power supply stabilization circuit with the output end of external connection battery, voltage stabilizing chip U2's Output end is electrically connected with the feeder ear of MCU2, and the feeder ear of the output end and NB-IoT module chip U3 of voltage stabilizing chip U2 is electrically connected It connects;The input terminal of voltage stabilizing chip U2 is electrically connected with one end of capacitor C3, the other end ground connection of capacitor C3;The output of voltage stabilizing chip U2 End is electrically connected with one end of capacitor C4, the other end ground connection of capacitor C4;The output end of voltage stabilizing chip U2 and one end electricity of capacitor C5 Connection, the other end ground connection of capacitor C5.
Chip model used by low pressure difference linearity voltage stabilizing chip U2 in the present embodiment is XC6206P302MR.
The voltage of external connection battery 4 in the present embodiment is 3.6V.
In the specific implementation process, first fire water pit level detection system is powered on, MCU2 initialization, MCU2 configuration and liquid The IIC communication protocol of level sensor 1, MCU2 establish connection by NB-IoT module communication circuit and Cloud Server 5, that is, complete to disappear Anti- pond liquid level detection system starts work;It wakes up within MCU2 every 10 seconds and by communicate with liquid level sensor 1, acquisition current time The liquid level data of fire cistern, MCU2 judge whether the liquid level data of current time fire cistern exceeds preset alarming value, if It is that then MCU2 is reported to the liquid level data of current time fire cistern in Cloud Server 5 by NB-IoT module communication circuit, Subsequently into low-power consumption mode;If it is not, then first judge whether the time interval that liquid level data was reported apart from last time is greater than 10min, If so, MCU2 enters back into low-power consumption mode after the liquid level data of current time fire cistern is reported to 5 platform of Cloud Server, Otherwise MCU2 is directly entered low-power consumption mode.
The fire cistern liquid level detection system of the present embodiment realizes the real-time measurement of fire cistern liquid level, will test to obtain Liquid level data timing be reported to Cloud Server 5, or the liquid level that will test when liquid level data is lower than preset alarming value Data are reported in Cloud Server 5, and staff can be by transferring the liquid level data periodically updated in Cloud Server 5, and realization disappears The real-time detection of anti-pond liquid level situation, to avoid because causing to jeopardize without the level sensing work for carrying out fire cistern in time The security of the lives and property of people.
The present embodiment further relates to a kind of fire cistern liquid-level detecting method, using above-mentioned fire cistern liquid level detection system. As shown in fig. 6, being the flow chart of the present embodiment fire cistern liquid-level detecting method.
The fire cistern liquid-level detecting method of the present embodiment the following steps are included:
S1: fire cistern liquid level detection system powers on, and MCU2 is initialized and completed the IIC communication protocols with liquid level sensor 1 View configuration, communication module 3, which is initialized and registered, is connected to Cloud Server 5, and then MCU2 and communication module 3 enter low-power consumption mould Formula;
Then S2:MCU2 timing wake-up sends detection signal to liquid level sensor 1, liquid level sensor 1 is by current time Fire cistern liquid level data is sent in MCU2 by IIC communication and carries out processing analysis:
If the fire cistern liquid level data at current time is higher than preset alarming value, MCU2 controls communication module 3 and wakes up, and leads to After the fire cistern liquid level data at current time is reported Cloud Server 5 by letter module 3, MCU2 and communication module 3 enter low-power consumption Mode;
If the fire cistern liquid level data at current time is normal, MCU2 judges to report fire cistern liquid level data apart from last time Time interval whether be greater than 10min, if so, MCU2 control communication module 3 wakes up, communication module 3 disappears current time After anti-pond liquid level data report Cloud Server 5, MCU2 and communication module 3 enter low-power consumption mode;If it is not, then MCU2 enter it is low Power consumption mode.
In the present embodiment, using the STM32L053R8T6 microcontroller chip of low-power consumption as MCU2, and called out using timing Awake standby mode works, while liquid level sensor 1 only needs to spend Millisecond other time that can obtain in the operational mode The liquid level data of the fire cistern at current time is taken, and all modules in system reenter low-power consumption mould after completing work Formula waits timing wake-up next time, so that the power consumption of entire circuit system be effectively reduced, can provide using external connection battery entire The electricity consumption of system, while can effectively extend the service life of battery.
The present embodiment also uses NB-IoT module communication circuit as the communication module of the present embodiment, therefore liquid level sensor Firmware updating program is not needed, it is only necessary to which the Internet of Things network interface card for replacing operator can intervene the service network of corresponding operator, i.e., The liquid level data for the fire cistern that can be will acquire is sent to unified IoT platform, then is pushed in Cloud Server 5 by IoT platform, It efficiently solves the problems, such as that construction field signal is poor, and can in time upload to the liquid level data of fire cistern in Cloud Server 5 It is monitored for staff, effectively preventing working not in time because of fire cistern water level detecting leads to influence people's life and property peace Entirely.
Embodiment 2
A kind of fire cistern liquid level detection system of the present embodiment is additionally arranged LCD liquid crystal display on the basis of embodiment 1 Screen, wherein the LCD driving end of the input terminal with MCU2 of LCD liquid crystal display screen is electrically connected.
The function button module that the present embodiment is added is electrically connected with the end KEY1, KEY2, KEY3 of MCU2.
As shown in fig. 7, being the LCD liquid crystal display screen and function button module circuit diagram of the present embodiment.
LCD liquid crystal display screen in the present embodiment uses the LCD liquid crystal display of 13 sections of 4COM, since the present embodiment uses STM32L053R8T6 carries LCD driving function as MCU2, the inside STM32L053R8T6, i.e. MCU2 can be connected by the end LCD1 Drive LCD liquid crystal display screen.
Function button module in the present embodiment includes Chip-R R10, R11, R12, patch capacitor C16, C17, C18, Touch-switch S2, S3, S4, wherein one end of resistance R10 is electrically connected with external connection battery 4, in the other end and MCU2 of resistance R10 The electrical connection of the end KEY1;The other end of resistance R10 is electrically connected with one end of capacitor C16, the other end ground connection of capacitor C16;Resistance R10 The other end be electrically connected with one end of switch S2, the other end of switch S2 ground connection;
One end of resistance R11 is electrically connected with external connection battery 4, and the other end of resistance R11 is electrically connected with the end KEY2 in MCU2; The other end of resistance R11 is electrically connected with one end of capacitor C17, the other end ground connection of capacitor C17;The other end of resistance R11 with open Close one end electrical connection of S3, the other end ground connection of switch S3;
One end of resistance R12 is electrically connected with external connection battery 4, and the other end of resistance R12 is electrically connected with the end KEY3 in MCU2; The other end of resistance R12 is electrically connected with one end of capacitor C18, the other end ground connection of capacitor C18;The other end of resistance R12 with open Close one end electrical connection of S4, the other end ground connection of switch S4.
In the specific implementation process, touch-switch S2, S3, S4 is defaulted as the state of bouncing, at this time the end KEY1, KEY2, KEY3 For high level, when touch-switch S2, S3, S4 are closed, i.e., key is pressed, and the corresponding end KEY1, KEY2, KEY3 is electric from height at this time Flat turn is changed to low level, and MCU2 is by the height variation of the detection end KEY1, KEY2, KEY3 level to determine whether there is key dynamic Make.Assuming that switch S2 presses key pressing, the end KEY1 is converted to low level from high level at this time, and MCU2 detects the level hair at the end KEY1 Variation has been given birth to, has judged that there is actuation of keys at the end KEY1.
MCU2 timing wake-up, MCU2 are obtained the fire cistern liquid level data at current time by liquid level sensor 1, then led to The fire cistern liquid level data at current time is carried out real-time display by LCD liquid crystal display screen of overdriving, and when no external key is grasped When making, LCD liquid crystal display screen remains closed state.
The MCU2 of the present embodiment is used cooperatively with the LCD liquid crystal display screen and function button module added, when there is key The liquid level data of LCD liquid crystal display screen starting and display button operation content and the last fire cistern obtained when operation.
The same or similar label correspond to the same or similar components;
The terms describing the positional relationship in the drawings are only for illustration, should not be understood as the limitation to this patent;
Obviously, the above embodiment of the present invention be only to clearly illustrate example of the present invention, and not be pair The restriction of embodiments of the present invention.For those of ordinary skill in the art, may be used also on the basis of the above description To make other variations or changes in different ways.There is no necessity and possibility to exhaust all the enbodiments.It is all this Made any modifications, equivalent replacements, and improvements etc., should be included in the claims in the present invention within the spirit and principle of invention Protection scope within.

Claims (10)

1. a kind of fire cistern liquid level detection system, it is characterised in that: passed including liquid level sensor, for obtaining and handling liquid level The MCU for the liquid level data that sensor detects, the communication module for the liquid level data for completing processing to be reported to Cloud Server, Wherein the MCU carries out data transmission with liquid level sensor, and the output end of the MCU and the input terminal of communication module connect, institute Fire cistern liquid level detection system is stated to be powered using external connection battery.
2. fire cistern liquid level detection system according to claim 1, it is characterised in that: the communication module is NB-IoT Module communication circuit, wherein the NB-IoT module communication circuit includes NB-IoT module chip U3, antenna, SIM card holder and sets Set the SIM card in SIM card holder;The NB-IoT module chip U3 is connect by antennal interface J1 with antenna, the NB-IoT Module chip U3 is electrically connected by usim card interface with the SIM card being arranged in SIM card holder.
3. fire cistern liquid level detection system according to claim 2, it is characterised in that: the NB-IoT mould group communication electricity Road further includes Chip-R R20, R22, R23, and wherein the end USIM_RESET of NB-IoT module chip U3 passes through Chip-R R20 It is electrically connected with the end RST of SIM card, the end USIM_CLK of the NB-IoT module chip U3 passes through Chip-R R22 and SIM card The end USIM_DATA of the electrical connection of the end CLK, the NB-IoT module chip U3 passes through the end I/O of Chip-R R23 and SIM card electricity Connection.
4. fire cistern liquid level detection system according to claim 3, it is characterised in that: the NB-IoT mould group communication electricity Road further includes TVS diode U4, patch capacitor C25, C26, C27, one end of described Chip-R R20, R22, R23 respectively with NB-IoT module chip U3 electrical connection, the other end of Chip-R R20, R22, R23 are electrically connected with TVS diode U4 respectively;Institute The other end for stating Chip-R R20 is electrically connected with one end of patch capacitor C25, the other end ground connection of patch capacitor C25;The patch The other end of sheet resistance R22 is electrically connected with one end of patch capacitor C26, the other end ground connection of patch capacitor C26;The patch electricity The other end of resistance R23 is electrically connected with one end of patch capacitor C27, the other end ground connection of patch capacitor C27.
5. fire cistern liquid level detection system according to claim 2, it is characterised in that: the system also includes booting electricity Road, wake-up circuit and reset circuit;
The boot-strap circuit includes triode Q1, patch capacitor C21, Chip-R R13 and R15, wherein the MCU_ of the MCU The end PWR is electrically connected with one end of resistance R13, and the other end of resistance R13 is electrically connected with the base stage of triode Q1, the collection of triode Q1 Electrode is electrically connected with the end NB_PWR of NB-IoT module chip U3, the emitter ground connection of triode Q1;The resistance R13's is another End is electrically connected with one end of resistance R15, the other end ground connection of resistance R15;The end NB_PWR of the NB-IoT module chip U3 with One end of capacitor C21 is electrically connected, the other end ground connection of capacitor C21;
The wake-up circuit includes triode Q2, patch capacitor C22, Chip-R R14, R16, R17, R18, wherein the MCU The end MCU_PWR be electrically connected with one end of resistance R16, the other end of resistance R16 is electrically connected with the base stage of triode Q2, triode The emitter of Q2 is electrically connected with the end NB_WAKEUP of NB-IoT module chip U3;The NB_ of the NB-IoT module chip U3 The end WAKEUP is electrically connected with one end of capacitor C22, the other end ground connection of capacitor C22;The emitter and resistance of the triode Q2 One end of R18 is electrically connected, the other end ground connection of resistance R18;The other end of the resistance R16 is electrically connected with one end of resistance R17, The other end of resistance R17 is grounded;The collector of the triode Q2 is electrically connected with one end of resistance R14, the other end of resistance R14 It is electrically connected with the output end of external connection battery;
The reset circuit includes triode Q3, patch capacitor C24, Chip-R R21, R24, wherein the MCU_RST of the MCU End is electrically connected with one end of resistance R21, and the other end of resistance R21 is electrically connected with the base stage of triode Q3, the transmitting of triode Q3 Pole ground connection;The other end of resistance R21 is electrically connected with one end of resistance R24, the other end ground connection of resistance R24;The collection of triode Q3 Electrode is electrically connected with the end NB_RST of NB-IoT module chip U3, and the end NB_RST of NB-IoT module chip U3 is with capacitor C24's One end electrical connection, the other end ground connection of capacitor C24.
6. fire cistern liquid level detection system according to claim 1, it is characterised in that: the communication module is provided with 485 wireline interfaces are used for the MCU when wireless signal is weaker and pass through 485 serial bus standards to Cloud Server progress data communication.
7. described in any item fire cistern liquid level detection systems according to claim 1~6, it is characterised in that: the system is also Including power supply stabilization circuit, the input terminal of the power supply stabilization circuit is electrically connected with the output end of external connection battery;The power supply is steady Volt circuit includes low pressure difference linearity voltage stabilizing chip U2, capacitor C3, C4, C5, wherein the input terminal of the voltage stabilizing chip U2 is as electricity The input terminal of source voltage regulator circuit is electrically connected with the output end of external connection battery, the power supply of the output end and MCU of the voltage stabilizing chip U2 End electrical connection, the output end of the voltage stabilizing chip U2 are electrically connected with the feeder ear of communication module;The input of the voltage stabilizing chip U2 End is electrically connected with one end of capacitor C3, the other end ground connection of capacitor C3;The output end of the voltage stabilizing chip U2 and the one of capacitor C4 End electrical connection, the other end ground connection of capacitor C4;The output end of the voltage stabilizing chip U2 is electrically connected with one end of capacitor C5, capacitor C5 The other end ground connection.
8. fire cistern liquid level detection system according to claim 7, it is characterised in that: the system also includes LCD liquid Crystal display screen, the LCD liquid crystal display screen are electrically connected with the LCD of MCU driving end.
9. fire cistern liquid level detection system according to claim 7, it is characterised in that: the system also includes functions to press Key module, the function button module are electrically connected with MCU, and the function button module includes Chip-R R10, R11, R12, patch Chip capacitor C16, C17, C18, touch-switch S2, S3, S4, wherein one end of the resistance R10 is electrically connected with external connection battery, resistance The other end of R10 is electrically connected with the end KEY1 in MCU;The other end of the resistance R10 is electrically connected with one end of capacitor C16, electricity Hold the other end ground connection of C16;The other end of the resistance R10 is electrically connected with one end of switch S2, the other end ground connection of switch S2;
One end of the resistance R11 is electrically connected with external connection battery, and the other end of resistance R11 is electrically connected with the end KEY2 in MCU;Institute The other end for stating resistance R11 is electrically connected with one end of capacitor C17, the other end ground connection of capacitor C17;The resistance R11's is another End is electrically connected with one end of switch S3, the other end ground connection of switch S3;
One end of the resistance R12 is electrically connected with external connection battery, and the other end of resistance R12 is electrically connected with the end KEY3 in MCU;Institute The other end for stating resistance R12 is electrically connected with one end of capacitor C18, the other end ground connection of capacitor C18;The resistance R12's is another End is electrically connected with one end of switch S4, the other end ground connection of switch S4.
10. a kind of fire cistern liquid-level detecting method, which comprises the following steps:
S1: fire cistern liquid level detection system powers on, and MCU is initialized and completed to configure with the communication protocol of liquid level sensor, leads to Believe module initialization and register and be connected to Cloud Server, then MCU and communication module enter low-power consumption mode;
Then S2:MCU timing wake-up sends detection signal to liquid level sensor, liquid level sensor is by the fire water at current time Pit level data are sent in MCU by IIC communication and carry out processing analysis: if the fire cistern liquid level data at current time is higher than Preset alarming value, MCU control communication module and wake up, and the fire cistern liquid level data at current time is reported cloud to take by communication module It is engaged in after device, MCU and communication module enter low-power consumption mode;If the fire cistern liquid level data at current time is normal, MCU judge away from Reported whether the time interval of fire cistern liquid level data is greater than 10min from last time, if so, MCU control communication module wakes up, After the fire cistern liquid level data at current time is reported Cloud Server by communication module, MCU and communication module enter low-power consumption mould Formula;If it is not, then MCU enters low-power consumption mode.
CN201910239557.3A 2019-03-27 2019-03-27 A kind of fire cistern liquid level detection system and method Pending CN110049112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910239557.3A CN110049112A (en) 2019-03-27 2019-03-27 A kind of fire cistern liquid level detection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910239557.3A CN110049112A (en) 2019-03-27 2019-03-27 A kind of fire cistern liquid level detection system and method

Publications (1)

Publication Number Publication Date
CN110049112A true CN110049112A (en) 2019-07-23

Family

ID=67275386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910239557.3A Pending CN110049112A (en) 2019-03-27 2019-03-27 A kind of fire cistern liquid level detection system and method

Country Status (1)

Country Link
CN (1) CN110049112A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130317659A1 (en) * 2011-09-06 2013-11-28 Stevens Water Monitoring Systems, Inc. Distributed low-power wireless monitoring
CN105334842A (en) * 2015-09-30 2016-02-17 苏州富米信息技术有限公司 Cloud of things online monitoring general platform system
US20170003736A1 (en) * 2015-06-30 2017-01-05 Google Inc. Systems and methods for efficiently communicating between low-power devices
CN206281554U (en) * 2016-12-24 2017-06-27 宁夏电通物联网科技股份有限公司 Fire cistern liquid level gathers active radio sensing device
CN107422677A (en) * 2017-09-11 2017-12-01 杭州钛比科技有限公司 A kind of direct water dispenser control system based on NB IoT
CN108682137A (en) * 2018-06-04 2018-10-19 杨凌天海智慧水电科技有限公司 Water resource remote supervision system based on NB-IoT
CN208043110U (en) * 2018-02-02 2018-11-02 长春欣程科技有限公司 Fire protection sensor data acquisition device based on NB-IoT
CN209731295U (en) * 2019-03-27 2019-12-03 广州优优加智能科技有限公司 A kind of fire cistern liquid level detection device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130317659A1 (en) * 2011-09-06 2013-11-28 Stevens Water Monitoring Systems, Inc. Distributed low-power wireless monitoring
US20170003736A1 (en) * 2015-06-30 2017-01-05 Google Inc. Systems and methods for efficiently communicating between low-power devices
CN105334842A (en) * 2015-09-30 2016-02-17 苏州富米信息技术有限公司 Cloud of things online monitoring general platform system
CN206281554U (en) * 2016-12-24 2017-06-27 宁夏电通物联网科技股份有限公司 Fire cistern liquid level gathers active radio sensing device
CN107422677A (en) * 2017-09-11 2017-12-01 杭州钛比科技有限公司 A kind of direct water dispenser control system based on NB IoT
CN208043110U (en) * 2018-02-02 2018-11-02 长春欣程科技有限公司 Fire protection sensor data acquisition device based on NB-IoT
CN108682137A (en) * 2018-06-04 2018-10-19 杨凌天海智慧水电科技有限公司 Water resource remote supervision system based on NB-IoT
CN209731295U (en) * 2019-03-27 2019-12-03 广州优优加智能科技有限公司 A kind of fire cistern liquid level detection device

Similar Documents

Publication Publication Date Title
CN213243599U (en) BMS low-power consumption dormancy power supply control and awakening circuit
CN206818848U (en) A kind of solar storage battery remote online monitoring device of radio network technique
CN206740889U (en) Electrical equipment supportability tester
CN109377732A (en) Water logging detector based on WiFi scheme
CN201417180Y (en) Temperature and humidity detection alarm
CN203861830U (en) Wireless pressure alarm system for fire extinction steel cylinder
CN112235742A (en) Gas meter with NB-IoT communication module embedded with program and data processing method
CN209731295U (en) A kind of fire cistern liquid level detection device
CN109374075A (en) Matrix form NB-IoT remote transmission intelligent water meter
CN105404214B (en) A kind of solar energy aerator intelligence control system and method
CN110049112A (en) A kind of fire cistern liquid level detection system and method
CN209103519U (en) A kind of universal telemetering terminal equipment
CN210131289U (en) Fire-fighting pipeline pressure detection device and system
CN204600440U (en) A kind of apparatus for testing body temperature and system
CN214843454U (en) Intelligent lithium electric flowmeter remote transmission equipment
CN109471043A (en) A kind of storage batteries of transformer substation group on-Line Monitor Device based on LTE mechanics of communication
CN205210161U (en) Optical fiber temperature fault indicator
CN212304097U (en) Intelligent power line plug
CN210574260U (en) Wireless leakage detection equipment and system
CN209979045U (en) WiFi intelligence pad of weighing
CN208888611U (en) A kind of super low-power consumption control system based on wireless bidirectional communication
CN208903108U (en) Remote monitoring system based on matrix form NB-IoT intellectual water meter
CN202758231U (en) Monitoring system for power environment in machine room
CN208968610U (en) Matrix form NB-IoT remote transmission intelligent water meter
CN203334810U (en) Electronic key of electromagnetic lock

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