摘要
针对养猪场中传统人工测量种猪体温数据方式成本高、灵活性差、时效性低、工作量大等问题,设计了基于LoRa的低功耗种猪体温测量及监测系统。详细介绍了监测节点、数据通信方案和云平台网页端的软硬件设计。监测节点选用国产LP5100低功耗芯片为主控处理器,通过SPI通信方式获取ADT7320温度传感器采集的种猪体温数据并由集成的LoRa模块发送至网关。LoRa网关采用TCP/IP通信协议将汇总的体温数据存储在云端服务器并应用MySQL数据库进行数据管理。通过设计网页端作为云平台进行数据监测,利用Highchart库进行数据可视化分析并显示每头种猪的体温变化曲线。为了尽可能地降低系统功耗,设计了一套工作流程算法,该算法可以合理安排各个模块的工作顺序和时间。在某养猪场进行系统组装和应用,经过长期测试表明,该系统能够准确测量种猪一天内体温的变化及趋势,休眠时平均电流为55.92μA,稳定通信距离可达150 m,满足长期远程精准监测种猪体温的要求。
Aiming at the problems of high cost,poor flexibility,low timeliness,and large workload of traditional manual measurement of pig body temperature data in pig farms,a low-power breeding pig body temperature measurement and monitoring system based on LoRa was designed.We introduce the monitoring node,data communication scheme and software and hardware design of the cloud platform web page in detail.The monitoring node selects the domestic LP5100 low-power chip as the main control processor,obtains the pig body temperature data collected by the ADT7320 temperature sensor through SPI communication,and sends it to the gateway by the integrated LoRa module.The LoRa gateway uses the TCP/IP communication protocol to store the aggregated body temperature data in the cloud server and uses the MySQL database for data management.By designing the web terminal as a cloud platform for data monitoring,the Highchart library is used for data visualization analysis and displaying the body temperature change curve of each breeding pig.In order to reduce the power consumption of the system as much as possible,a set of workflow algorithm is designed,which can reasonably arrange the working order and time of each module.The system was assembled and applied in a pig farm,and long-term tests showed that the system can accurately measure the changes and trends of the body temperature of breeding pigs in one day.The average current is 55.92μA during sleep,and the stable communication distance can reach 150 m.It can meet the requirements of long-term remote and accurate monitoring of the body temperature of breeding pigs.
作者
颜玉松
王元靖
何少鹏
肖建
YAN Yu-song;WANG Yuan-Jing;HE Shao-peng;XIAO Jian(School of Automation&School of Artificial Intelligence,Nanjing University of Posts and Telecommunications,Nanjing 210023,China;School of Integrated Circuit Science and Engineering,Nanjing University of Posts and Telecommunications,Nanjing 210023,China)
出处
《计算机技术与发展》
2023年第5期202-207,共6页
Computer Technology and Development
基金
国家自然科学基金(61974073)。