摘要
针对户外实训基地分布分散、有线网络铺设困难等问题,设计一套监控系统。将树莓派4B+作为数据采集端主控核心,用以采集摄像头、DTH11温湿度传感器、MQ-2烟雾传感器、YL-38火焰传感器等模块的数据,并通过MW600GQ工业级5G模块传输数据至后台服务器。系统基于Python编程语言,使用OpenCV、RPi.GPIO、Adafruit_DHT、Socket等库函数和Flask轻量级应用框架开发数据采集端程序和后台服务器程序,在客户端可以通过网页实时监控实训基地状况,当发生异常状况时,以邮件方式主动发送报警信息。
Aiming at the problems of the outdoor practical training bases are distributed and the difficulty in laying the wired network,a monitoring system is designed.The Raspberry Pi 4B+is used as the main control core of the data acquisition terminal to collect data from the camera,DTH11 temperature and humidity sensor,MQ-2 smoke sensor,and YL-38 flame sensor,and the MW600GQ industrial-grade 5G module is used to transmit the data to the background server.Based on Python programming language,using OpenCV,RPi.GPIO,Adafruit_DHT,Socket and other library functions,the Flask lightweight application framework to develop data collection end programs and background server programs.The client can monitor the status of the practical training base in real time through the web page,and actively send the alarm information by email when abnormal conditions occur.
作者
杨骏
梁念渝
邓力夫
YANG Jun;LIANG Nianyu;DENG Lifu(Qiandongnan Nationalities Polytechnic,Kaili 556000,China;Qiandongnan Technician College,Kaili 556099,China)
出处
《现代信息科技》
2023年第17期164-167,共4页
Modern Information Technology
基金
黔东南州科技计划项目(黔东南科合J字〔2021〕63号)。