CN108426647A - A kind of regional temperature distribution estimating and measuring method based on wireless sensor network node - Google Patents
A kind of regional temperature distribution estimating and measuring method based on wireless sensor network node Download PDFInfo
- Publication number
- CN108426647A CN108426647A CN201810206648.2A CN201810206648A CN108426647A CN 108426647 A CN108426647 A CN 108426647A CN 201810206648 A CN201810206648 A CN 201810206648A CN 108426647 A CN108426647 A CN 108426647A
- Authority
- CN
- China
- Prior art keywords
- temperature
- measuring method
- network node
- sensor network
- wireless sensor
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01K—MEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
- G01K7/00—Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/38—Services specially adapted for particular environments, situations or purposes for collecting sensor information
Abstract
The present invention relates to a kind of, and the regional temperature based on wireless sensor network node is distributed estimating and measuring method.The present invention uses STM32f103 as main control chip, and temperature in use sensor DS18B20 collects some areas temperature to be measured, then data packet is passed to host computer and is realized by USB interface and is refreshed in real time;Program is write by upper layer software (applications) QT Creator, the computer display of connection is recycled to show the thermodynamic chart drawn according to data.By design, experiment, making and debugging, the data acquisition in setting area, the function of synchronous control and Temperature Distribution estimation are realized.
Description
Technical field
The present invention relates to a kind of, and the regional temperature based on wireless sensor network node is distributed estimating and measuring method, belongs to wireless biography
The technical field of sensor network.
Background technology
Wireless sensor network technology is valued by more and more academic department, military service and industrial department.With section
Technology is constantly progressive, and nowadays people are not limited to study known space, however certain space environment badly even pollutes
Seriously the mankind are not appropriate for set foot in;And wireless sensor network technology can accurately measure required data instead of the mankind, it can be effective
Solution above-mentioned difficulties.
Temperature is the physical quantity of the cold and hot degree of characterization individual in the category of cognition of the mankind, either chemical in nature
It is industrial or agricultural that reaction or physical reactions or other kinds of reaction all have indivisible relationship, temperature with the variation of temperature
Manufacture a measurement data extremely important and that demand is especially huge in process.This factor of observing and controlling temperature can
To bring many benefits to human being's production life, such as when food industries produce product, real time monitoring temperature can be in bigger
It ensures food safety in degree;Real-time control temperature upper limit can be greatly energy saving in forging industry.Therefore people couple
Also increasingly extensively in being in great demand of measuring of monitoring temperature and range to be measured, but as people open up frontier
Also occur some simultaneously and be not suitable for artificial regions measured in person or situation, and the validity of radio temperature sensor and can grasp
Allow it that people is helped to solve the problems, such as this as property.
Invention content
In view of the deficiencies of the prior art, the present invention provides a kind of regional temperature distribution based on wireless sensor network node
Estimating and measuring method.
Summary of the invention:
Use STM32f103 as main control chip in the present invention, temperature in use sensor DS18B20 collects to be measured
Some areas temperature, then data packet is passed to host computer and realized by USB interface and is refreshed in real time;Pass through upper layer software (applications) QT
Creator writes program, and the computer display of connection is recycled to show the thermodynamic chart drawn according to data.By setting
Meter, experiment make and debug, and realize the data acquisition in setting area, the function that synchronous control and Temperature Distribution are estimated.
The technical scheme is that:
A kind of regional temperature distribution estimating and measuring method based on wireless sensor network node, implementation are as follows:
1) temperature sensor node is set in setting regions;The temperature sensor node collecting temperature sensing data;
2) temperature sensing data is transmitted to PC machine in the form of data packet, and the drafting system in PC machine is based on the temperature
Degree sensing data draws the two-dimensional temperature thermodynamic chart of the setting regions;
3) temperature sensing data and two-dimensional temperature thermodynamic chart are shown by the main window of PC machine.
According to currently preferred, the temperature sensor node in the step 1) is connect with microcontroller;The microcontroller
It is connect with the PC machine by USB interface;The main control chip of the microcontroller is STM32f103;The temperature sensor node
For DS18B20.Temperature sensor DS18B20 has the advantages such as higher, the reasonable, small volume of temperature-measuring range of measurement accuracy.
According to currently preferred, the drafting system includes unpacking module and correction verification module;In the step 2), draw
Before two-dimensional temperature thermodynamic chart, the unpacking module and correction verification module temperature sensing data packet is carried out successively de-packaging operation and
Verification operation.
According to currently preferred, QTimer events are added in the main window;The QTimer event timings refresh
The temperature sensing data shown in the main window.The temperature sensing data shown in main window described in periodic refreshing, with real-time
Show latest data.
According to currently preferred, QT technology realization of the drafting system based on C Plus Plus in the step 2);It is described to paint
The construction platform of drawing system is Qt Creator;Qt Creator include QWight events, QLabel events and QPainter
Event.The Qt Creator environment is concise, easy to use, powerful.Since class most in Qt has been compiled by C Plus Plus
Writing complete can directly invoke, so drafting system can directly invoke QWight, QLabel, QPainter when writing, save significantly
About time.
It is further preferred that the two-dimensional temperature thermodynamic chart in the step 2) is by QPalette elements, Canvas members
Element and QMouseEvent mouse click events are completed;It is as follows:
A, in Canvas painting canvas, the position of measurement point draw a radius freely set, Fill Color effect radially gradually
The circle of change;The center of circle of the circle is the two-dimensional position coordinate of measurement point, and the color in the center of circle is than other positions color depth;
B, Label identical with the number of measurement point, the temperature for showing measurement in main window defined in main window
Degrees of data;
C, after mouse clicks Canvas painting canvas, the value in the two-dimensional coordinate array of corresponding position point adds 1;Further triggering
QPainter events change the color of corresponding main window.
Canvas elements provide a bitmap painting canvas according to resolution ratio, can draw straight line and curve or easy
With complicated figure, image etc., text, color, gradual change and figure can also be added, and carry out pixel operation.It may be implemented
It can dynamically show that local temperature changes according to mouse click to change the depth of graphic color.
According to currently preferred, the regional temperature distribution estimation side of the present invention based on wireless sensor network node
Method, the QT5.2.0 environment constructions based on windows platform.
Beneficial effects of the present invention are:
1. the regional temperature of the present invention based on wireless sensor network node is distributed estimating and measuring method, realize in the window
Complete to receive unpack after data processing, by the mode of data point thermal map show a certain measured zone temperature height and
In the position of the point mainly measured dynamically the temperature value measured in real time is shown with label;It is effective to obtain environment
The severe or even seriously polluted Temperature Distribution and situation of change for being not appropriate for the mankind and setting foot in region.
Description of the drawings
Fig. 1 is the schematic diagram of two-dimensional temperature thermodynamic chart in embodiment 1;
Fig. 2 is that the regional temperature of the present invention based on wireless sensor network node is distributed estimating and measuring method flow chart.
Specific implementation mode
With reference to embodiment and Figure of description, the present invention will be further described, but not limited to this.
Embodiment 1
As shown in Figs. 1-2.
A kind of regional temperature distribution estimating and measuring method based on wireless sensor network node, implementation are as follows:
1) temperature sensor node is set in setting regions;The temperature sensor node collecting temperature sensing data;
2) temperature sensing data is transmitted to PC machine in the form of data packet, and the drafting system in PC machine is based on the temperature
Degree sensing data draws the two-dimensional temperature thermodynamic chart of the setting regions;
3) temperature sensing data and two-dimensional temperature thermodynamic chart are shown by the main window of PC machine.
According to currently preferred, the temperature sensor node in the step 1) is connect with microcontroller;The microcontroller
It is connect with the PC machine by USB interface;The main control chip of the microcontroller is STM32f103;The temperature sensor node
For DS18B20.Temperature sensor DS18B20 has the advantages such as higher, the reasonable, small volume of temperature-measuring range of measurement accuracy.
The drafting system includes unpacking module and correction verification module;In the step 2), two-dimensional temperature heating power is drawn
Before figure, the unpacking module and correction verification module carry out de-packaging operation and verification operation successively to temperature sensing data packet.
Regional temperature of the present invention based on wireless sensor network node is distributed estimating and measuring method, flat based on Windows
The QT5.2.0 environment constructions of platform.
Embodiment 2
The regional temperature based on wireless sensor network node is distributed estimating and measuring method as described in Example 1, different
It is that QTimer events are added in the main window;The QTimer event timings refresh the temperature shown in the main window
Sensing data.The temperature sensing data shown in main window described in periodic refreshing, with real-time display latest data.
Embodiment 3
The regional temperature based on wireless sensor network node is distributed estimating and measuring method as described in Example 1, different
It is that QT technology of the drafting system in the step 2) based on C Plus Plus is realized;The construction platform of the drafting system is Qt
Creator;Qt Creator include QWight events, QLabel events and QPainter events.The Qt Creator environment
It is concise, it is easy to use, powerful.Writing completion by C Plus Plus due to class most in Qt can directly invoke, institute
QWight, QLabel, QPainter can be directly invoked when being write with drafting system, and the time is greatly saved.
Two-dimensional temperature thermodynamic chart in the step 2) by QPalette elements, Canvas elements and
QMouseEvent mouse click events are completed;It is as follows:
A, in Canvas painting canvas, the position of measurement point draw a radius freely set, Fill Color effect radially gradually
The circle of change;The center of circle of the circle is the two-dimensional position coordinate of measurement point, and the color in the center of circle is than other positions color depth;
B, Label identical with the number of measurement point, the temperature for showing measurement in main window defined in main window
Degrees of data;Eight Label are defined in the present embodiment.
C, after mouse clicks Canvas painting canvas, the value in the two-dimensional coordinate array of corresponding position point adds 1;Further triggering
QPainter events change the color of corresponding main window.
Canvas elements provide a bitmap painting canvas according to resolution ratio, can draw straight line and curve or easy
With complicated figure, image etc., text, color, gradual change and figure can also be added, and carry out pixel operation.It may be implemented
It can dynamically show that local temperature changes according to mouse click to change the depth of graphic color.
Claims (7)
1. a kind of regional temperature based on wireless sensor network node is distributed estimating and measuring method, which is characterized in that implementation is such as
Under:
1) temperature sensor node is set in setting regions;The temperature sensor node collecting temperature sensing data;
2) temperature sensing data is transmitted to PC machine in the form of data packet, and the drafting system in PC machine is passed based on the temperature
Sense data draw the two-dimensional temperature thermodynamic chart of the setting regions;
3) temperature sensing data and two-dimensional temperature thermodynamic chart are shown by the main window of PC machine.
2. the regional temperature according to claim 1 based on wireless sensor network node is distributed estimating and measuring method, feature
It is, the temperature sensor node in the step 1) is connect with microcontroller;The microcontroller passes through USB interface and the PC machine
Connection;The main control chip of the microcontroller is STM32f103;The temperature sensor node is DS18B20.
3. the regional temperature according to claim 1 based on wireless sensor network node is distributed estimating and measuring method, feature
It is, the drafting system includes unpacking module and correction verification module;In the step 2), two-dimensional temperature thermodynamic chart is drawn
Before, the unpacking module and correction verification module carry out de-packaging operation and verification operation successively to temperature sensing data packet.
4. the regional temperature according to claim 1 based on wireless sensor network node is distributed estimating and measuring method, feature
It is, QTimer events is added in the main window;The QTimer event timings refresh the temperature shown in the main window
Spend sensing data.
5. the regional temperature according to claim 1 based on wireless sensor network node is distributed estimating and measuring method, feature
It is, QT technology of the drafting system in the step 2) based on C Plus Plus is realized;The construction platform of the drafting system is Qt
Creator;Qt Creator include QWight events, QLabel events and QPainter events.
6. the regional temperature according to claim 5 based on wireless sensor network node is distributed estimating and measuring method, feature
It is, the two-dimensional temperature thermodynamic chart in the step 2) is by QPalette elements, Canvas elements and QMouseEvent mouse
Punctuate hits event completion;It is as follows:
A, in Canvas painting canvas, the position of measurement point draw a radius freely set, Fill Color effect radial gradual
Circle;The center of circle of the circle is the two-dimensional position coordinate of measurement point, and the color in the center of circle is than other positions color depth;
B, the Label identical with the number of measurement point defined in main window, the temperature number for showing measurement in main window
According to;
C, after mouse clicks Canvas painting canvas, the value in the two-dimensional coordinate array of corresponding position point adds 1;Further triggering
QPainter events change the color of corresponding main window.
7. the regional temperature according to claim 1 based on wireless sensor network node is distributed estimating and measuring method, feature
It is, the regional temperature of the present invention based on wireless sensor network node is distributed estimating and measuring method, based on windows platform
QT5.2.0 environment constructions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810206648.2A CN108426647A (en) | 2018-03-13 | 2018-03-13 | A kind of regional temperature distribution estimating and measuring method based on wireless sensor network node |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810206648.2A CN108426647A (en) | 2018-03-13 | 2018-03-13 | A kind of regional temperature distribution estimating and measuring method based on wireless sensor network node |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108426647A true CN108426647A (en) | 2018-08-21 |
Family
ID=63157940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810206648.2A Pending CN108426647A (en) | 2018-03-13 | 2018-03-13 | A kind of regional temperature distribution estimating and measuring method based on wireless sensor network node |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108426647A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202092799U (en) * | 2011-06-21 | 2011-12-28 | 桂林电子科技大学 | Wireless temperature testing system |
US20150103707A1 (en) * | 2013-10-10 | 2015-04-16 | At&T Intellectual Property I. L.P. | Method and apparatus for reducing energy consumption of radio communications in a wireless sensor network |
CN105628241A (en) * | 2014-11-07 | 2016-06-01 | 沈阳市东陵区真宬商务信息咨询事务所 | Aquatic product transportation monitoring system and method based on wireless sensor network |
-
2018
- 2018-03-13 CN CN201810206648.2A patent/CN108426647A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202092799U (en) * | 2011-06-21 | 2011-12-28 | 桂林电子科技大学 | Wireless temperature testing system |
US20150103707A1 (en) * | 2013-10-10 | 2015-04-16 | At&T Intellectual Property I. L.P. | Method and apparatus for reducing energy consumption of radio communications in a wireless sensor network |
CN105628241A (en) * | 2014-11-07 | 2016-06-01 | 沈阳市东陵区真宬商务信息咨询事务所 | Aquatic product transportation monitoring system and method based on wireless sensor network |
Non-Patent Citations (2)
Title |
---|
冯荣华等: "蔬菜大棚分布式多点温度监控系统的设计", 《鸡西大学学报》 * |
鲁资等: "基于无线传感器网络的温度场绘制", 《传感器与微系统》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105259215B (en) | The method of testing of semiconductor gas sensor | |
CN103366045B (en) | Based on the flow shear stress emulation mode of LATTICE BOLTZMANN | |
CN103994788A (en) | Indoor thermal comfort detection system | |
CN203561596U (en) | Buried pipe rock thermal response tester | |
Si et al. | Visualization programming for batch processing of contour maps based on VB and Surfer software | |
CN108426647A (en) | A kind of regional temperature distribution estimating and measuring method based on wireless sensor network node | |
Liu et al. | Controls of climate and land-use change on terrestrial net primary productivity variation in a subtropical humid basin | |
Dai et al. | LAI-based phenological changes and climate sensitivity analysis in the Three-River headwaters region | |
CN104637075A (en) | Automatic rapid mapping method for sand body | |
Wang et al. | Spatiotemporal Evolution and Attribution Analysis of Water Yield in the Xiangjiang River Basin (XRB) Based on the InVEST Model | |
CN106290782A (en) | Based on double-paraboloid line style NDVI Tsthe Soil Moisture Inspection by Remote Sensing method of feature space | |
Liu et al. | Local temperature responses to actual land cover changes present significant latitudinal variability and asymmetry | |
CN105004429A (en) | Temperature measurement method, measurement module and measurement module-based temperature measurement device | |
CN109064036A (en) | Ecosystems services supply and demand index variation detection method towards management domain | |
CN211121345U (en) | Double-temperature compensation system of intelligent environment detection panel sensing equipment | |
CN104091236A (en) | Network-based management method for chemical product quality analysis and inspection | |
CN205229730U (en) | Novel wireless dynamic data vasculum | |
CN201569501U (en) | Digital thermometer | |
CN202533184U (en) | Detection device for measuring temperature of solid-state leavening in fermentation pit | |
CN102706232B (en) | Method for designing bumper injection molding piece checking fixture | |
CN203323893U (en) | Shell temperature measuring device used by multiple persons synchronously | |
CN105433907A (en) | Wearable baby milk regurgitation alarming device and method | |
CN103308554A (en) | Method for detecting internal thermodynamic defects of wall enclosure structure for building | |
CN216246878U (en) | Multi-point temperature tester | |
Zhang | Digital Development Strategy of Agricultural Planting and Breeding Enterprises Based on Intelligent 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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180821 |
|
WD01 | Invention patent application deemed withdrawn after publication |