摘要
针对现存农业物联网的各项问题,如前期开发和后期维护成本高、系统复杂农业生产人员难以在实际生产中使用,设计了基于Lora的智慧农业移动端系统;依托于Android系统,农业生产人员或研究人员只需在Andorid手机或其他Android终端安装软件,即可实现远程对农业物联网的查看与控制;移动终端以功能进行模块划分,分别为用户管理、数据监控、设备控制和系统设置4个模块;软件使用MVP架构,将数据与界面交互进行分离;使用WebSocket协议建立云服务与移动终端的全双工通信,实现云服务对移动终端的消息推送,使得用户可以实时取得环境信息以及底层设备的故障状态;通过Retrofit2发送HTTP请求实现用户管理和对底层设备的运行控制;使用HLS协议传输监控视频;测试联调表明移动终端运行稳定可靠,易于扩展。
Aiming at the existing problems of agricultural internet of things,such as high cost in the prophase development and maintenance,and difficult for the complex agricultural production personnel in practical production,the intelligent agriculture mobile terminal based on Lora is designed..With Android,agricultural producers or researchers can view and control the Internet of Things remotely by installing software on their Andorid phones or other Android terminals.The function of mobile terminal is divided into user management module,data monitoring module,device control module and system setting module.The software uses MVP architecture to separate data from interface interaction.The full duplex communication between cloud service and mobile terminal is established by WebSocket protocol.The message of the cloud service to mobile terminal is pushed.The environment information and fault status of the underlying equipment are acquired in real time by mobile terminal.The user management and operation control of the underlying device are realized by sending HTTP requests through Retrofit2.Use the HLS protocol to transmit surveillance video.The test results show that the mobile terminal is stable and reliable and easy to expand.
作者
周怡文
张伟
沈琼霞
王雪璁
程中启
Zhou Yiwen;Zhang Wei;Shen Qiongxia;Wang Xuecong;Cheng Zhongqi(School of Computer Science and Information Engineering,Hubei University,Wuhan 430062,China;Service and CPE Business Unit,Fiberhome Telecommunication Technologies Co.,Ltd.,Wuhan 430073,China)
出处
《计算机测量与控制》
2019年第12期239-243,248,共6页
Computer Measurement &Control
基金
国家自然科学基金(61301144,61601175)
关键词
安卓系统
智慧农业
移动终端
Lora
Android system
intelligent agriculture
mobile termina
Lora