CN110174179A - A kind of water quality monitoring system based on NB-IoT - Google Patents

A kind of water quality monitoring system based on NB-IoT Download PDF

Info

Publication number
CN110174179A
CN110174179A CN201910389911.0A CN201910389911A CN110174179A CN 110174179 A CN110174179 A CN 110174179A CN 201910389911 A CN201910389911 A CN 201910389911A CN 110174179 A CN110174179 A CN 110174179A
Authority
CN
China
Prior art keywords
module
iot
water quality
main control
monitoring system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910389911.0A
Other languages
Chinese (zh)
Other versions
CN110174179B (en
Inventor
张涛
孙硕
李水铭
韩家言
马楠楠
郭星宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Research Center Of Digital City Engineering
Jiangnan University
Original Assignee
Jiangnan University
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 Jiangnan University filed Critical Jiangnan University
Priority to CN201910389911.0A priority Critical patent/CN110174179B/en
Publication of CN110174179A publication Critical patent/CN110174179A/en
Application granted granted Critical
Publication of CN110174179B publication Critical patent/CN110174179B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K7/00Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements
    • G01K7/16Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements using resistive elements
    • G01K7/22Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements using resistive elements the element being a non-linear resistance, e.g. thermistor
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N27/00Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
    • G01N27/26Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating electrochemical variables; by using electrolysis or electrophoresis
    • G01N27/28Electrolytic cell components
    • G01N27/30Electrodes, e.g. test electrodes; Half-cells
    • G01N27/302Electrodes, e.g. test electrodes; Half-cells pH sensitive, e.g. quinhydron, antimony or hydrogen electrodes
    • 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

Abstract

The invention discloses a kind of water quality monitoring system based on NB-IoT, the monitoring systems of STM32 platform development of the system based on ST Microelectronics.Three steps of the working-flow point: temperature sensor and pH sensor are put into equipped in solution to be measured first, pH value temperature transmitter can read the voltage value in sensor and convert it into decimal data, it again returns in STM32 main control chip, completes the collection of initial data;Secondly corresponding temperature pH value is obtained by STM32 main control chip, and enables BC28 radio communication mold group, be connected to network server, and server is upload the data to by BC28 mould group;End user's Website login checks the position for the real time data (temperature, pH value) and the node that the monitoring system obtains, and user also can choose the historical data checked in the node one month, and can graphically show user.Present invention can apply to monitor two indexs of the temperature of industrial wastewater and pH value.

Description

A kind of water quality monitoring system based on NB-IoT
Technical field
The present invention relates to narrowband Internet of Things and embedded hardware development field, especially a kind of water quality prison based on NB-IoT Examining system.
Background technique
Traditional water quality detection method mostly uses manual sampling, and method, such as Gao Liqiang of laboratory assay et al. are in " state Certain outer copper mine acid waste water Study on Treatment " in the water quality detection method mentioned, the paper publishing is in " China's mines work Journey " the 13-18 pages of 01 phase in 2018.Using the method for artificial detection, materials trouble is complicated for operation, and cannot achieve to water The long-time real-time monitoring of matter.
For the communication issue of probe node, Fan little Jiao et al. " is being supervised based on the pH Neutralization of Industrial Wastewater of cloud platform and LoRa Examining system " mode of LoRa communication is proposed, the issue of theses is in " technology of Internet of things " the 18-20+22 pages of 03 phase in 2019.It adopts It is communicated with LoRa, Outdoor Scene telecommunication may be implemented, but be limited to LoRa networking mode, need to voluntarily build LoRa net It closes, and LoRa gateway deployment status requirement is higher, factor in need of consideration is more.
Summary of the invention
The purpose of this section is to summarize some aspects of the embodiment of the present invention and briefly introduce some preferable implementations Example.It may do a little simplified or be omitted to avoid our department is made in this section and the description of the application and the title of the invention Point, the purpose of abstract of description and denomination of invention it is fuzzy, and this simplification or omit and cannot be used for limiting the scope of the invention.
The problem of in view of above-mentioned and/or existing walk helper, propose the present invention.
Therefore, the one of purpose of the present invention is to provide a kind of water quality monitoring system based on NB-IoT, can solve Materials trouble, the problem complicated for operation of certainly traditional water quality detection method, and energy consumption is very low.
In order to solve the above technical problems, the invention provides the following technical scheme: a kind of water quality monitoring system based on NB-IoT System comprising main control unit and the detection unit being attached respectively with the main control unit and communication unit;The detection Unit can obtain monitoring data, and transmit it to main control unit, and the main control unit will be described by the communication unit Monitoring data are uploaded.
A kind of preferred embodiment as the water quality monitoring system of the present invention based on NB-IoT, in which: the detection is single Member includes measurement module and read module, and the measurement module is connect by the read module with the main control unit;It is described Read module reads the initial data that the measurement module is monitored, and be translated into after the monitoring data be transmitted to it is described Main control unit.
A kind of preferred embodiment as the water quality monitoring system of the present invention based on NB-IoT, in which: the measurement mould Block includes temperature sensor and PH sensor, and the two is attached with the read module respectively.
A kind of preferred embodiment as the water quality monitoring system of the present invention based on NB-IoT, in which: the reading mould Block uses Modbus-RTU communications protocol, and passes through Modbus-RTU communications protocol for measurement module voltage value obtained Data are converted to corresponding positive and negative temperature value and pH value, form the monitoring data, and are sent to the main control unit.
A kind of preferred embodiment as the water quality monitoring system of the present invention based on NB-IoT, in which: the communication is single Member includes NB-IoT module and level switch module, and the NB-IoT module passes through the level switch module and the master control list Member connection.
A kind of preferred embodiment as the water quality monitoring system of the present invention based on NB-IoT, in which: the level turns Mold changing block is connect by contact pin connector with the main control unit.
A kind of preferred embodiment as the water quality monitoring system of the present invention based on NB-IoT, in which: further include first Power supply unit, the first power source unit include power supply module;The power supply module is single with the main control unit and communication respectively Member connection, and be powered for it.
A kind of preferred embodiment as the water quality monitoring system of the present invention based on NB-IoT, in which: further include second Power supply unit connect with the measurement module, read module respectively, and is powered for it.
A kind of preferred embodiment as the water quality monitoring system of the present invention based on NB-IoT, in which: first electricity Source unit further includes electricity quantity display module, and the electricity quantity display module includes four-operational amplifier and LED connected to it digital Pipe, the LED charactrons are connect by the four-operational amplifier with the main control unit;The power supply module and the electricity Display module is connected, and can be powered for it, and the electricity quantity display module can be shown by the LED charactrons The remaining capacity of the connect battery of power supply module.
A kind of preferred embodiment as the water quality monitoring system of the present invention based on NB-IoT, in which: further include cloud Server;The monitoring data are uploaded to the cloud server by the communication unit and protected by the main control unit It deposits, and can access and download the monitoring data saved in the cloud server by controlling terminal.
Compared with prior art, beneficial effects of the present invention: the present invention can be worked with super low-power consumption, stand-by time It is longer;The higher sensor component of precision is integrated, in conjunction with MODBUS-RTU485 transport protocol, so that measurement data is relatively reliable And it can be as accurate as one decimal place;In conjunction with cloud server platform, making staff indoors be can be completed to target water The real-time monitoring in domain alleviates its work load;All data can be shown in graphical form, it is more simple and clear, It can also check historical data, staff is facilitated to be compared.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill of field, without any creative labor, it can also be obtained according to these attached drawings other Attached drawing.Wherein:
Fig. 1 is the circuit diagram of main control unit and its schematic diagram that connect with other modules.
The pin detail drawing of the respectively main control unit two sides of Fig. 2,3.
Fig. 4 is connection and the power supply line's figure of detection unit.
Fig. 5 is power supply line's figure of NB-IoT module and level switch module.
Fig. 6 is contact pin connector and main control unit connection schematic diagram.
Connection figure of the Fig. 7 between power supply module and electricity quantity display module.
Circuit diagram of the Fig. 8 between each circuit of electricity quantity display module.
Fig. 9 is the overall system view of the water quality monitoring system based on NB-IoT.
Figure 10 is website end temperature data figure.
Figure 11 is website end pH value datagram.
Figure 12 is web station interface figure.
Figure 13 is the work flow diagram of NB-IoT module.
Figure 14 is the schematic diagram of DS18B20.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, right with reference to the accompanying drawings of the specification A specific embodiment of the invention is described in detail.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, but the present invention can be with Implemented using other than the one described here other way, those skilled in the art can be without prejudice to intension of the present invention In the case of do similar popularization, therefore the present invention is not limited by the specific embodiments disclosed below.
Secondly, " one embodiment " or " embodiment " referred to herein, which refers to, may be included at least one realization side of the invention A particular feature, structure, or characteristic in formula." in one embodiment " that different places occur in the present specification not refers both to The same embodiment, nor the individual or selective embodiment mutually exclusive with other embodiments.
It referring to Fig.1~14, is one embodiment of the present of invention, this embodiment offers a kind of, and the water quality based on NB-IoT is supervised Examining system, main task are that the temperature and pH value of the water sample of fixed location are monitored by water quality probe node.It is passed by temperature Sensor and pH sensor collection water quality data, and regularly sent node data to cloud by NB-IoT technology, which can To realize that probe node transmits data with low power, with meet sensor node it is long when continuation of the journey require.User can be beyond the clouds Real time inspection node water quality data, to reach monitoring purpose.NB-IoT water quality monitoring system can be applied to discharge of wastewater monitoring, Aquaculture field replaces artificial detection in a manner of sensor node detection, to reduce the burden of practitioner.
The water quality monitoring system based on NB-IoT includes main control unit 100 and carries out respectively with main control unit 100 The detection unit 200 and communication unit 300 of connection.
Wherein, main control unit 100 is micro- place that instruction control action can be communicated and played with each functional unit It manages device (single-chip microcontroller), if the present invention can use STM32 main control chip, component part is STM32L151 microprocessor developing Plate.
Detection unit 200 can carry out water quality detection to target water, and can obtain monitoring data.Monitoring obtained Data are transmitted to main control unit 100 by detection unit 200, last main control unit 100 by communication unit 300 by monitoring data into Row uploads.
Communication unit 300 is used to the monitoring data from main control unit 100 being uploaded to cloud, so as to client access and Real time monitoring is realized in downloading.
Specifically, detection unit 200 includes the measurement module 201 and read module 202 interconnected, measurement module 201 It is connect by read module 202 with main control unit 100.Measurement module 201 is inserted into water, and directly measures the original of water quality Data, read module 202 can read the initial data that measurement module 201 is monitored, and convert monitoring number for initial data Main control unit 100 is transmitted to after.
Further, measurement module 201 includes temperature sensor 201a and PH sensor 201b, and the two can measure respectively The temperature and pH value of water, and be attached respectively with read module 202.In the present embodiment, temperature sensor 201a is using sense Temperature probe DS18B20;PH sensor 201b uses pH electrode probe;And read module 202 then uses pH value temperature transmitter, Core is SP3485 chip.PH electrode probe is the sensor that makes based on primary battery system, can pass through detection measured object Hydrogen ion concentration and be converted into corresponding electric signal to complete the detection of pH value;DS18B20 temperature-sensing probe is then based on temperature-sensitive The temperature sensor of resistance.
If temperature-sensing probe DS18B20 and pH electrode probe is respectively put into liquid to be detected, the electricity of variation can be obtained Pressure value is as initial data.Read module 202 uses Modbus-RTU communications protocol, can read temperature-sensing probe and pH respectively The voltage value of electrode probe, and by Modbus-RTU communications protocol by voltage value data be converted to corresponding positive and negative temperature value and PH value forms monitoring data, and returns to main control unit 100, completes the collection of monitoring data.User need to only make according to the agreement The inquiry and setting of monitoring data can be realized with Serial Port Communication Software.
Such as Fig. 4, read module 202 includes pin 6 (485_A) and pin 7 (485_B), wherein the pin of read module 202 It 6 is connect with the pin 2 (485_A) of PH sensor 201b, the pin 2 of the pin 7 of read module 202 and temperature sensor 201a (485_B) connection.
Read module 202 further includes three pins: pin 1~3 (STM32_PB11_USART3_RX, STM32_PC4_ 485_EN, STM32_PB10_USART3_TX), and be attached by three pins with main control unit 100.Main control unit Also there is corresponding three connections pin: pin 30 (STM32_PB11_USART3_RX), 24 (STM32_PC4_ of pin on 100 485_EN), pin 29 (STM32_PC4_485_EN), the pin 30 of main control unit 100 connect with the pin 1 of read module 202, The pin 24 of main control unit 100 connect with the pin 2 of read module 202, the pin 29 of main control unit 100 and read module 202 Pin 3 connect.
In the present invention, communication unit 300 includes NB-IoT module 301 and level switch module 302, NB-IoT module 301 are connect by level switch module 302 with main control unit 100.The NB core board of NB-IoT module 301 is BC28 wireless communication Mould group, the chip is by following four functional areas: radio frequency part, baseband portion, power management and peripheral interface, can take with cloud Business device carries out wireless communication.Level switch module 302 can use 8 bi-directional voltage level translator TXS0108E.
Further, level switch module 302 passes through contact pin connector 303 (Header12 in such as the present embodiment) and main Unit 100 is controlled to connect.Select two panels Header12 chip (respectively JP5 and JP6) to connect BC28 peripheral interface and master here Unit 100 is controlled, to realize that main control unit 100 exports the instruction output of NB-IoT module 301 and data, radio frequency part and base band Part then be responsible for correspondence with foreign country, TXS0108E also have there are two (respectively U10 and U11).Main control unit 100 passes through STM32_ Two pins of PA3_USART2_RX and STM32_PA2_USART2_TX control three kinds of operating modes of chip: 1, Active mould Formula, module is in active state at this time, and institute is functional good for use, can carry out data transmission and reception, module is in this mode Under can switch to Idle mode or PSM mode;2, Idle state, module is in sleeping state at this time, and network is in connection shape State, is subjected to paging message, and module can switch to Active mode or PSM mode in such a mode;3, PSM mode, only RTC work, network are in notconnect state, unacceptable paging message, when DTE (Data Terminal Equipment) is main After dynamic transmission data or timer T3412 time-out (related to periodically updating), module will be waken up.So far, connection is completed NB-IoT module 301.
Such as the pin circuitry figure that Fig. 5,6 are NB-IoT module 301, level switch module 302 and contact pin connector 303.Tool Body, the pin 1 (BC_1.8V_MISO) of NB-IoT module 301 and the pin 1 (BC_1.8V_MISO) of level switch module 302 It connects, the pin 3 (BC_1.8V_MOSI) of the pin 2 (BC_1.8V_MOSI) of NB-IoT module 301 and level switch module 302 It connects, the pin 4 (BC_1.8V_SCLK) of the pin 3 (BC_1.8V_SCLK) of NB-IoT module 301 and level switch module 302 The pin 5 (BC_1.8V_CS) of connection, the pin 4 (BC_1.8V_CS) of NB-IoT module 301 and level switch module 302 is even It connects ..., direct contrast circuit figure, identical two pins of title are attached, and are not repeated herein.
In addition, having pin STM32_PA3_USART2_RX and pin STM32_PA2_ on Header 12 (JP5) USART2_TX, the two respectively with the 16 (STM32_ of pin 17 (STM32_PA3_USART2_RX) and pin on main control unit 100 PA2_USART2_TX it) connects;There is pin STM32_PC7_BC26_POWER, the pin and master on Header 12 (JP6) Control pin 38 (STM32_PC7_BC26_POWER) connection on unit 100.Thus contact pin connector 303 and master control can be realized Connection between unit 100.
In the present invention, the water quality monitoring system based on NB-IoT further includes first power source unit 400, for master Control unit 100 and communication unit 300 are powered.First power source unit 400 include power supply module 401, respectively with master control list Member 100 and communication unit 300 connect, and are powered for it.
Specifically, power supply module 401 includes the first power voltage-drop chip 401a and second source pressure drop chip 401b, Using RT8059GJ5.Wherein, the lithium battery connection of the first power voltage-drop chip 401a and 5V, is responsible for the electric current by access by 5V Switch to 3.3V, and is directly that NB-IoT module 301, level switch module 302, contact pin connector 303 and main control unit 100 supply Electricity.In addition, the first power voltage-drop chip 401a is also attached with second source pressure drop chip 401b, the electricity of 3.3V is imported to it Stream.
Second source pressure drop chip 401b is responsible for the electric current of access switching to 1.8V by 3.3V, and for NB-IoT module 301, Level switch module 302 and contact pin connector 303 are powered.
Such as Fig. 8, first power source unit 400 further includes electricity quantity display module 402, and electricity quantity display module 402 includes four operations Amplifier 402a (LM2902) and LED charactrons 402b connected to it (4 common anode charactrons), LED charactrons 402b passes through Four-operational amplifier 402a is connect with main control unit 100.Main control unit 100 by its pin 55 (STM32_PB3_DL_POW) with Electricity quantity display module 402 connects.
Further, the first power voltage-drop chip 401a is connected with the LED charactrons 402b of electricity quantity display module 402, And it can be powered for it, and electricity quantity display module 402 can show that power supply module 401 is connect by LED charactrons 402b The remaining capacity of lithium battery.
Such as Fig. 7, there are two the input pin VCC_5V of 5V voltage (to respectively correspond lithium electricity for the first power voltage-drop chip 401a tool The positive and negative anodes in pond) and a 3.3V voltage output pin VCC_3.3V.Second source pressure drop chip 401b has one The output pin VCC_1.8 of the input pin VCC_3.3V of 3.3V voltage and a 1.8V voltage.
5V voltage from lithium battery, two-way introduce the first power voltage-drop chip 401a, power for it;All the way with NB-IoT The pin 13 (VCC_5V) of module 301 connects;It is connect all the way with the pin 12 (VCC_5V) of contact pin connector 303.
The pin VCC_3.3V of first power voltage-drop chip 401a can it is in parallel go out a plurality of branch be used for other external modules And carry out the power supply of 3.3V voltage: wherein the first and second tunnel respectively with the pin 19 (VCC_3.3V) of two level switch modules 302 Connection;Third road is connect with the pin 11 (VCC_3.3V) of NB-IoT module 301;Fourth, fifth tunnel respectively with LED charactrons 402b Two pin VCC_3.3V connections;6th tunnel is connect with the pin VCC_3.3V of second source pressure drop chip 401b;7th tunnel It is connect with the pin VCC_3.3V of contact pin connector 303;In addition, all pin VCC_3.3V on main control unit 100 are with The pin VCC_3.3V connection of one power voltage-drop chip 401a.
The pin VCC_1.8 of second source pressure drop chip 401b can it is in parallel go out a plurality of branch for other external modules simultaneously Carry out the power supply of 1.8V voltage: wherein one to four tunnel is connect with four pin VCC_1.8 of level switch module 302 respectively;The Five tunnels are connect with the pin 12 (VCC_1.8) of NB-IoT module 301;The pin VCC_1.8 of 6th tunnel and contact pin connector 303 connects It connects.
The water quality monitoring system based on NB-IoT further includes second power source unit 500, respectively with measurement module 201, read module 202 connects, and is powered for it.Second power source unit 500 is a reduction voltage circuit comprising two are drawn Foot, respectively pin VCC_485 and pin VCC_3.3V.Wherein, the pin VCC_485 of second power source unit 500 is for external The power supply of 12V, and input second power source unit 500;The pin VCC_3.3V of second power source unit 500 is used to export the electricity of 3.3V Pressure, and connect respectively with the pin 3 (VCC_3.3V) of the pin 3 (VCC_3.3V) of PH sensor 201b, temperature sensor 201a, It powers for it.Second power source unit 500 further includes pin STM32_PA1_485_POW, passes through the pin 1 and main control unit 100 pin 15 (STM32_PA1_485_POW) is attached.In addition, external 12V voltage is also connected directly to read module On 202 two pin VCC_485, power for it.
The water quality monitoring system based on NB-IoT further includes cloud server 600.Main control unit 100 is single by communication Monitoring data can be uploaded to cloud server 600 and save by member 300, and can be accessed by controlling terminal 700 and under Carry the monitoring data saved in cloud server 600.This controlling terminal 700 can be computer.
After all hardware pin successful connection, software program design is next just completed, including master control program It writes and is write with the driver of each module, and the program write is passed through into keil (a hardware program composing software) and is compiled It translates and downloads in respective modules, check errorless rear unlatching development board power supply, each module works normally indicator light and lights, indicates The hardware system works normally.
After hardware system normal work, water quality detection can be carried out by detection unit 200, carry out practical application ring Section, first use need to be corrected pH sensor:
Correcting fluid is deployed first:
1, with no CO2Distilled water by two 250ml measuring cup wash cleans, marked respectively on the outside of two measuring cups PH4.00 and PH9.18;
2, PH4.00 buffer powder step 1 is placed in be labeled as in the measuring cup of PH4.00 label;
3, on a small quantity without CO2Then distilled water flushing polybag inner wall pours into corresponding measuring cup with no CO2Distilled water is diluted to 250ml scale shakes up spare;
4, PH9.18 buffer powder step 1 is placed in be labeled as in the measuring cup of PH9.18 label;
5, on a small quantity without CO2Then distilled water flushing polybag inner wall pours into corresponding measuring cup with no CO2Distilled water is diluted to 250ml scale shakes up spare.
Then sensor calibration is carried out:
1, electrode and temperature sensor are cleaned up and wiped with soft paper handkerchief dry with clear water;
2, transmitter power supply, PH electrode, temperature sensor are correctly connected;
3, electrode and temperature sensor are immersed in ready PH4.00 calibration solution simultaneously;
4, then long-pressing calibration key unclamps key until calibrating indicator light glassy yellow;
5, quickly pressing calibration key is twice until calibration indicator light red flashing, and transmitter enters calibration PH4.00 at this time (this process duration is 30 seconds) in the process, calibration indicator light red is always on after having calibrated;
6, by PH electrode and temperature sensor, Jue goes out from PH4.00 calibration solution after calibration indicator light red is always on, and then uses Electrode and temperature sensor are cleaned up and wipe that dry (this process Ji need to be by electrode and temperature sensor from change with soft paper handkerchief by clear water It send and is removed on device);
7, electrode and temperature sensor are immersed in ready PH9.18 calibration solution simultaneously;
8, quickly once calibration indicator light green flashing at this time, transmitter enter calibration PH9.18 process to pressing calibration key In (this process duration be 30 seconds), calibration indicator light green is always on 20 seconds after calibrate, and then prompting within blinking yellow illumination 20 seconds will Carry out calibration data preservation.
So far sensor calibration work is completed, can start to measure water sample to be measured.
Temperature sensor 201a and PH sensor 201b are put into solution to be measured, the reset for pressing NB-IoT module is opened It closes, is started, data can be uploaded by communication unit 300 by cellular mobile network and store onenet by hardware platform Platform (cloud), then user logs in onenet platform of internet of things by controlling terminal 700, and inputting account and password can pass through Onenet checks website and handles sensor node data.Specifically, can check this by checking " list of devices " (Figure 12) Node data, temperature data are shown in Figure 10, and pH value data are shown in Figure 11.
Figure 10 is the datagram for measuring temperature, and waters real time temperature is 24.8 DEG C at this time for display, time 2019-04-23 18:38:58, we carry out warming operation to tested water quality in the process, and sensor system senses have arrived temperature change, website Temperature after variation tendency and heating also is illustrated out by end.
Figure 11 is the datagram of pH value determination, and waters real-time pH value is 8.1 at this time for display, and the time is 2019-04-23 18: 38:58, in the process we to acid adding step, sensor system senses have arrived the variation of pH value, and upload the data to cloud End, illustrates its trend chart by website.
All experiments realize in STM32L151 development platform, the parameter Cortex-M3CPU (32) of microprocessor, Frequency is 32kHz-32MHz;It is stored as 128k Flash, 16k RAM, 4k EEPROM, 80B Register.Data are shown in Website end can substantially accomplish data delay in 5 minutes or so, that is, after hardware system end measures, after five minutes It can check data, and if hardware platform does not power off in the process, continuously display corresponding data.
In conclusion the present invention for convenience of being monitored on a large scale to water quality, provide it is a kind of new based on NB-IoT's Low-power consumption, can large-scale application, the sensor network nodes system of cloud real time inspection, both can efficiently collect water quality number According to, and cloud can be upload the data to super low-power consumption for real time inspection, it uses manpower and material resources sparingly, realizes the scale to water quality Change monitoring.
The present invention selects NB-IoT module BC28 chip to apply, and BC28 is the NB-IoT of a high-performance, low-power consumption Module supports up to six frequency ranges.By NB-IoT radio communication protocol (3GPP Rel.14), BC28 module can be with network The infrastructure device of operator establishes communication.The module use power conservation techniques, current power dissipation at battery saving mode (PSM), down to 5uA, power consumption are extremely low.The chip emission power is 23dBm ± 2dB, wide coverage;It is abundant to connect serial ports, supports outside 1.8V/3.0V Portion's Class B usim card, main serial ports can be used for AT command communication and data transmission, baud rate 9600bps, it can also be used to soft Part upgrading, baud rate are that 115200bps debugging serial ports can be used for software debugging, only support baud rate 921600bps.When receiving When the data that microprocessor is sent, BC28 chip enters active state, and sends cloud by udp protocol for data, Workflow is as shown in figure 13.
Figure 13 can be described as when there is data to need to upload, then powers on to BC28 mould group, and BC28 setting networks manually, enter Active state opens maximum function mode, closes eDRX function, and trigger network attachment, after network attachment success, checks itself Whether network, if networking successfully, begin to carry out data transmission business, Idle mode is entered after data transmission success, later If not needing to power off, PSM mode is entered, is if desired powered off, with regard to power-off shutdown;If data upload failure, mould group is restarted, Minimum functional mode is opened, removes priori frequency point, and again attempt to network.If failing networking, mould group is restarted, open Minimum functional mode removes priori frequency point, and again attempts to network.
Temperature sensor 201a in the present invention uses DS18B20, the type sensor temperature-measurement principle such as Figure 14.
Wherein low-temperature coefficient crystal oscillator gives subtraction count device 1, high-temperature coefficient crystal oscillator for generating fixed pulse signal Pulse input of the produced signal as subtraction count device 2, when counting door and opening, DS18B20 is just to low-temperature coefficient oscillator It is counted after the clock pulses of generation, and then completes temperature measurement.The opening time of door is counted by high-temperature coefficient oscillator It determines, every time before measurement, radix corresponding to -55 DEG C is respectively implanted in subtraction count device 1 and temperature register first, is subtracted Method counter 1 and temperature register be preset at -55 DEG C corresponding to a base value;Subtraction count device 1 is to low-temperature coefficient The pulse signal that crystal oscillator generates carries out subtraction count, and when the preset value of subtraction count device 1 reduces to 0, the value of temperature register will add 1, the preset of subtraction count device 1 will be loaded into again, and subtraction count device 1 restarts the pulse generated to low-temperature coefficient crystal oscillator Signal is counted, and so circulation stops the cumulative of temperature register value, at this time temperature when subtraction count device 2 count down to 0 Numerical value in register is measured temperature;Slope accumulator is used to compensate and correct non-linear, the output during thermometric For correcting the preset value of subtraction count device, repeated the above process as long as counting door and being still not turned off, until temperature register value Reach measured angle value, just obtains measured temperature.The type temperature transducer only needs an interface line, temperature-measuring range wide (- 55 DEG C -125 DEG C), precision is high, strong antijamming capability.
Preferably, the application of the pH electrode probe, specifically: one kind by detection measured object in hydrogen ion concentration simultaneously It is converted into the sensor of corresponding electric signal, is made of chemical part and segment signal output.The sensor belongs to primary battery system, Its effect is that chemical energy is made to be converted into electric energy, and the end voltage of this battery is referred to as electrode potential;This current potential is by two half-cells It constitutes, one of them is known as measuring electrode, another is known as reference electrode;This current potential follows Nernst equation:
For metal electrode, activity is set as constant 1:
In formula: E-electrode potential, E0- electrode normal voltage, R-gas constant, T-kelvin absolute scale, F-farad Constant, n-are tested ion combination valence,- ionic activity.
For PH electrode.It is the glass tube for the glass-film for pH sensitivity that blister is blown out in an end.Casing pack There are the 3mol/lkcl buffer solution of the AgCl containing saturation, pH value 7.The potential difference for the reflection pH value for being present in two face of glass-film is used Ag/AgCl conducting system, the current potential of internal reference electrode be it is invariable, it is unrelated with H+ activity (pH) in test solution, Why pH glass electrode can be embodied on glass-film as the indicator electrode of H+, main function.When glass electrode immerses quilt When surveying solution, glass-film is in internal solutionWith solution to be measuredBetween, at this moment one is generated across glass-film Potential difference Δ EM(this potential difference is known as film potential, lower section discussion), its relationship between hydrogen ion activity meets can this be special Formula:
WhenWhen, Δ E=0.But actually Δ E ≠ 0 still has certain potential difference across glass-film, this Potential difference is known as asymmetrical potential (Δ E asymmetric), it is not exactly the same by glass-film surfaces externally and internally situation and generates.This Formula shows glass electrode Δ EMIt is directly proportional to pH.Therefore, the indicator electrode that can be used as measurement pH, to obtain corresponding pH value. The type pH sensor service life is long, and precision is high, and resistance to corrosion is strong.
Preferably, the application of the temperature pH value transmitter based on MODBUS-RTU485 agreement.By the agreement, Between controller and controller, controller is by may be implemented serial communication between network (Ethernet) and other equipment.RTU is Remote-terminal unit, every 8 include two hexadecimal characters in message.Under identical baud rate, this method ratio ASCII The data volume that mode transmits is big.Itself and microprocessor communication process are as follows: when microprocessor requests data communication, in CRC check In errorless situation, transmitter address receives communication instruction, and executes corresponding task according to function code and related request processing information, Then data are retransmited back microprocessor, returning information includes the data and CRC check after address code, function code, execution Code.Transmitter does not return to any information if CRC check error.The technology can further decrease the power consumption of sensor module, and Improve data transfer reliability.
It should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although referring to preferable Embodiment describes the invention in detail, those skilled in the art should understand that, it can be to technology of the invention Scheme is modified or replaced equivalently, and without departing from the spirit and scope of the technical solution of the present invention, should all be covered in this hair In bright scope of the claims.

Claims (10)

1. a kind of water quality monitoring system based on NB-IoT, it is characterised in that: including main control unit (100) and with the master control The detection unit (200) and communication unit (300) that unit (100) is attached respectively;
The detection unit (200) can obtain monitoring data, and transmit it to main control unit (100), the main control unit (100) monitoring data are uploaded by the communication unit (300).
2. as described in claim 1 based on the water quality monitoring system of NB-IoT, it is characterised in that: the detection unit (200) Including measurement module (201) and read module (202), the measurement module (201) by the read module (202) with it is described Main control unit (100) connection;
The read module (202) reads the initial data that the measurement module (201) is monitored, and is translated into the prison The main control unit (100) are transmitted to after measured data.
3. as claimed in claim 2 based on the water quality monitoring system of NB-IoT, it is characterised in that: the measurement module (201) Including temperature sensor (201a) and PH sensor (201b), the two is attached with the read module (202) respectively.
4. as claimed in claim 2 or claim 3 based on the water quality monitoring system of NB-IoT, it is characterised in that: the read module (202) Modbus-RTU communications protocol is used, and is obtained the measurement module (201) by Modbus-RTU communications protocol Voltage value data be converted to corresponding positive and negative temperature value and pH value, form the monitoring data, and be sent to the master control list First (100).
5. as claimed in claim 4 based on the water quality monitoring system of NB-IoT, it is characterised in that: the communication unit (300) Including NB-IoT module (301) and level switch module (302), the NB-IoT module (301) passes through the level conversion mould Block (302) is connect with the main control unit (100).
6. as claimed in claim 5 based on the water quality monitoring system of NB-IoT, it is characterised in that: the level switch module (302) it is connect by contact pin connector (303) with the main control unit (100).
7. the water quality monitoring system based on NB-IoT as described in claims 1 to 3,5 or 6 are any, it is characterised in that: further include First power source unit (400), the first power source unit (400) include power supply module (401);
The power supply module (401) connect with the main control unit (100) and communication unit (300) respectively, and is supplied for it Electricity.
8. as claimed in claim 7 based on the water quality monitoring system of NB-IoT, it is characterised in that: further include second power source unit (500), it connect with the measurement module (201), read module (202) respectively, and is powered for it.
9. as claimed in claim 8 based on the water quality monitoring system of NB-IoT, it is characterised in that: the first power source unit (400) further include electricity quantity display module (402), the electricity quantity display module (402) include four-operational amplifier (402a) and with Its LED charactrons (402b) connected, the LED charactrons (402b) pass through the four-operational amplifier (402a) and the master Control unit (100) connection;
The power supply module (401) is connected with the electricity quantity display module (402), and can be powered for it, and described Electricity quantity display module (402) can show the surplus of the power supply module (401) connect battery by the LED charactrons (402b) Remaining electricity.
10. the water quality monitoring system based on NB-IoT as described in claims 1 to 3,5,6,8 or 9 are any, it is characterised in that: It further include cloud server (600);
The monitoring data are uploaded to the cloud server by the communication unit (300) by the main control unit (100) (600) it is saved, and can access and download the institute saved in the cloud server (600) by controlling terminal (700) State monitoring data.
CN201910389911.0A 2019-05-10 2019-05-10 Water quality monitoring system based on NB-IoT Expired - Fee Related CN110174179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910389911.0A CN110174179B (en) 2019-05-10 2019-05-10 Water quality monitoring system based on NB-IoT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910389911.0A CN110174179B (en) 2019-05-10 2019-05-10 Water quality monitoring system based on NB-IoT

Publications (2)

Publication Number Publication Date
CN110174179A true CN110174179A (en) 2019-08-27
CN110174179B CN110174179B (en) 2021-05-04

Family

ID=67690912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910389911.0A Expired - Fee Related CN110174179B (en) 2019-05-10 2019-05-10 Water quality monitoring system based on NB-IoT

Country Status (1)

Country Link
CN (1) CN110174179B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112410864A (en) * 2020-11-20 2021-02-26 安徽理工大学 Electroplating solution parameter monitoring and control system design based on NB-IoT technology
CN113189173A (en) * 2021-04-16 2021-07-30 杭州电子科技大学 PH value transmitting circuit for carrying out automatic temperature compensation based on temperature sensing chip

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203366150U (en) * 2013-06-20 2013-12-25 上海大学 Remote temperature monitoring device
CN106645330A (en) * 2016-11-29 2017-05-10 福州微启迪物联科技有限公司 Portable NB-IoT water quality detecting device and parameter correcting method thereof
CN107727819A (en) * 2017-11-06 2018-02-23 汉威科技集团股份有限公司 Self-powered multi-parameter water quality monitor based on NB IOT
EP3226444B1 (en) * 2016-04-01 2018-06-13 Rohde & Schwarz GmbH & Co. KG Device and method for testing a narrow band internet of things communication
CN109507265A (en) * 2019-01-08 2019-03-22 武汉新烽光电股份有限公司 Throw-in type ammonia nitrogen water quality sensor
CN109612606A (en) * 2018-03-26 2019-04-12 河北工业大学 A kind of driving temperature measuring equipment certainly based on pipeline fluid power generation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203366150U (en) * 2013-06-20 2013-12-25 上海大学 Remote temperature monitoring device
EP3226444B1 (en) * 2016-04-01 2018-06-13 Rohde & Schwarz GmbH & Co. KG Device and method for testing a narrow band internet of things communication
CN106645330A (en) * 2016-11-29 2017-05-10 福州微启迪物联科技有限公司 Portable NB-IoT water quality detecting device and parameter correcting method thereof
CN107727819A (en) * 2017-11-06 2018-02-23 汉威科技集团股份有限公司 Self-powered multi-parameter water quality monitor based on NB IOT
CN109612606A (en) * 2018-03-26 2019-04-12 河北工业大学 A kind of driving temperature measuring equipment certainly based on pipeline fluid power generation
CN109507265A (en) * 2019-01-08 2019-03-22 武汉新烽光电股份有限公司 Throw-in type ammonia nitrogen water quality sensor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112410864A (en) * 2020-11-20 2021-02-26 安徽理工大学 Electroplating solution parameter monitoring and control system design based on NB-IoT technology
CN113189173A (en) * 2021-04-16 2021-07-30 杭州电子科技大学 PH value transmitting circuit for carrying out automatic temperature compensation based on temperature sensing chip
CN113189173B (en) * 2021-04-16 2022-07-22 杭州电子科技大学 PH value transmitting circuit for carrying out automatic temperature compensation based on temperature sensing chip

Also Published As

Publication number Publication date
CN110174179B (en) 2021-05-04

Similar Documents

Publication Publication Date Title
Simitha et al. IoT and WSN based water quality monitoring system
Mois et al. A cyber-physical system for environmental monitoring
CN104181280B (en) A kind of water quality monitoring node based on WSN
Zennaro et al. On the design of a water quality wireless sensor network (wqwsn): An application to water quality monitoring in malawi
CN110174179A (en) A kind of water quality monitoring system based on NB-IoT
Anjana et al. An IoT based 6LoWPAN enabled experiment for water management
CN106442678A (en) GSM water quality monitoring system
Lin et al. Design of monitoring system for rural drinking water source based on WSN
CN103298087B (en) Based on the wireless sensor network node low power consumption method of state machine
Xu et al. Wireless sensors in farmland environmental monitoring
CN206146917U (en) Water quality monitoring system based on zigBee wireless technology
Visconti et al. Solar Powered WSN for monitoring environment and soil parameters by specific app for mobile devices usable for early flood prediction or water savings
Jin-feng et al. A Low-cost Wireless Water Quality Auto-monitoring System.
CN206431124U (en) Water quality intellectual monitoring transmitter based on Internet of Things
CN101532835A (en) Wireless sensing multifunctional high-precision horizontal measuring instrument
Nguyen et al. A reliable and efficient wireless sensor network system for water quality monitoring
CN201589614U (en) Multiple-carrier channel accessed wireless communication network hydrographic multiparameter metering instrument
CN204044143U (en) A kind of water quality monitoring node based on WSN
Zennaro et al. Design of a flexible and robust gateway to collect sensor data in intermittent power environments
CN108762468B (en) Low-power consumption control method and device
Rodriquez et al. Network monitoring environmental quality in agriculture and pisciculture with low power sensor nodes based on zigbee and gprs technology
Meli et al. A novel low power and low cost IoT wireless sensor node for air quality monitoring
CN106209281B (en) Wireless sensor network RSSI attenuation models calibrating installation and method on the spot
CN104581907B (en) Wireless communication device, meter inquiry unit and meter inquiry system
Patnode et al. WISENET-TinyOS based wireless network of sensors

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200108

Address after: 518000 room 1129, land and property exchange, 8007 Hongli West Road, Xiangmi Lake street, Shenzhen, Guangdong, Futian District

Applicant after: SHENZHEN RESEARCH CENTER OF DIGITAL CITY ENGINEERING

Applicant after: Jiangnan University

Address before: No. 1800 road 214122 Jiangsu Lihu Binhu District City of Wuxi Province

Applicant before: Jiangnan University

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210504