第
38
卷第
5
期
2019
年
5
月
Vol.
38
No.
5
May
2019
ISSN
1006
-7167
CN
31
-
1707/E
RESEARCH
AND
EXPLORATION
IN
LABORATORY
MicroPyteon
应用和实现温室环境监测
王立华
,
孙少通
,
倪雪
,
胡月
(
山东
科技大学
电
与物理学院
,
山东
青
岛
266590
%
摘要
:
实现温室内环境参与
数监测
,
提高生产效率
,
基于
RTThread
嵌入式
操作系统和
MicroPython
编
温室环境检测系统的语言设计
。
在
STM32F4
硬件平
台上移植了
RTThread
操作系统
,
采用多种传感器收集环境参数
,
采集节
'
将环境
将数据汇总到网关节
'
,
通过网关节
TCP
协议使用
NBDOT
模块传输至
Onenet
物
联网平台
,
温室内温室内的温湿度
、
光照强度
、
CO
2
浓度的监测
,
在
PC
端和移动
查看设备上的数据,实现超阈值报警功能
。
实验表明
,
该系统可以实时显示温室
内部环境参数
,
有助于提高农业数据化水平
;
MicroPython
语言在嵌入式应用开发中
具
实用性强
,
为物联网快速应用提供能力
开
发工
具
。
关键词
:
温室大棚
;
环境检测
;
窄带物联网
;
RT
热
head
操作系统
;
云平台
中图分类号
:
S
625.3
;
N
39
文献标志码
:
A
文章编号
:
1006
-7167
(
2019
%
05
-0116
-05
Applicatinn
and
Implementatinn
of
MicroPyteon
in
Groenhouse
Environment
Monitoring
W"NG
Liua
,
SUN
Shaotong
,
NI
Xue,
HU
Yue
(
School
of
Electronic
Communication
&
Physics
,
Shandong
University
of
Science
&
Technolooy
,
Qingdao
266590
,
Shandong
,
China
%
Abstrace
:
In
order
to
reglize
the
monitoring
of
environmental
parameterr
in
greenhouses
and
improve
production
efficNncy
,
a
greenhouse
environment
detection
system
was
designed
based
on
—
1-7111
x
4
embedded
operating
system
and
MicroPython
programming
language.
The
RT-Lhrexd
operating
system
was
transplanted
on
the
STM32F4
hardware
platform
,
and
vvrious
sensorr
were
used
to
collect
environmental
parameters.
The
collection
node
aggrexated
the
environmental
data
to
the
gateway
node.
The
gateway
node
transmitted
data
to
the
Onenet
toT
platform
through
the
TCP
protocol
using
the
NB-IOT
module
to
achieve
the
mon/oring
of
temperature
,
humid/y
,
light
intensity
and
CO
2
concentration
in
greenhouses
,
workers
can
view
data
on
the
PC
side
and
mobile
devices
,
and
rexlize
the
super-threshold
alarm
function.
Experiments
show
that
the
system
can
display
the
environmental
parameters
in
the
greenhouse
in
time
,
it
helps
to
improve
the
agricultural
datalization
level.
This
application
shows
that
the
MicroPython
language
has
label
practicybilito
in
embedded
application
development
,
and
the
exemple
provides
reference
vvlue
for
the
rapid
development
of
IoT
applications.
Key
word#
:
greenhouse
shed
;
environmental
detection
;
narrowband
Internet
of
Things
(
NB-IOT
%
;
RT-Lhrexd
operating
system
;
cloud
platform
收稿日期
:
2018-10-28
基金项目
:
山东省自然科学基金
(
ZR2018MF005
%
;
山东科技大学教
育教学研究
(
QX2018M38
%
作者简介
:
王
立华
(
1971
-
%,
男
,
山东潍坊人
,
博士
,
副教授
。
主要
研究嵌入式应用及电
源技术
。
Tel.
:
137********
;
:
wanglihua7141
@
126.
com
0
在
资
源较为有
限
的嵌入式
硬
件平台上的传统开发
语言是
C/C
++
,
存在
代
,
开发
周
期长
、
维护
高等缺点
。
伴
入式硬件平