基于云服务的城市供暖节点监控系统的研发
发布时间:2018-07-01 13:42
本文选题:Android + 城市供暖监控 ; 参考:《吉林大学》2017年硕士论文
【摘要】:小区集中供热作为我国北方城市主要采用的供暖方案[1],在冬季日常生活保暖和降低环境污染等方面扮演着重要的角色。但是往往会因为供暖设备运行与维护不善,造成了“供热不足”、“过量供热”等现象,造成热能的不合理使用,并影响到人民群众的冬日生活质量。针对以上问题,在多数情况下都是凭借运行管理人员的现场操作来解决,这样占用了更多的人力资源并且有着操作的非便捷性,为了解决以上问题,本课题中设计了基于云服务的城市供暖节点监控系统。该系统主要以Android客户端作为监控终端,借助于云服务器的数据存储与转发功能,从而实现了与底层嵌入式Linux设备之间的数据交换,模拟实现了对城市供暖节点的水温、管道水压等信息的监测与控制。该系统能替代传统的现场操作,操作人员通过Android客户端程序,在任何网络可访问范围之内,均可以实现对供暖节点的监控。客户端程序不仅能实时显示当前节点数据,还提供了历史数据查询功能。同时,如果供暖节点数据不符合正常工作范围内,还可以通过Android客户端进行调控,最终达到预期的效果。另外增加对供暖节点的视频监控功能,在Android客户端上能实时显示对供暖节点仪器仪表数据的监测。在设计验证实现上,Android客户端采用MVP架构实现,高度解耦,代码功能层次清晰,不仅完成了本课题中需求的功能,还多处使用自定义View,提升了应用程序界面的美观性和操作的便捷性,同时遵循软件开发规范,使用git版本控制工具进行管理等。云服务器硬件层次使用阿里云,在其中配置LAMP环境。服务器开发语言使用PHP,开发框架为ThinkPHP,以MySQL数据库作为数据存储的介质,对Android客户端程序和嵌入式Linux设备提供API接口,实现了Android客户端与嵌入式Linux设备之间的数据存储与交换功能。嵌入式Linux设备以Mini2440开发板为硬件基础,外接温度传感器、继电器、直流电机、AD转换电路、USB摄像头等,提供了该系统的模拟数据来源和模拟控制外设。同时在嵌入式Linux设备中移植mjpg-streamer实现了与Android客户端之间的视频传输。本文从整个系统的需求背景为出发点,详细地介绍了实现过程所需要的基础知识与软硬件平台的选取、系统各个模块架构的选取以及具体的实现方法。从Android客户端设计到云服务器设计最后再到底层嵌入式Linux设备设计,不仅涵盖了功能模块和界面交互部分,同时也涉及到软件开发的可扩展性、可维护性、安全性等方面。最后经过对系统的测试与优化,验证了本课题中计划实现的内容,同时该系统具有良好的实时性与安全性,很大程序上能满足实际的需求。
[Abstract]:District central heating, as the main heating scheme in northern cities of China, plays an important role in keeping the daily life warm in winter and reducing environmental pollution. However, due to poor operation and maintenance of heating equipment, such phenomena as "insufficient heating" and "excessive heating" often result in unreasonable use of heat energy and affect the quality of winter life of the people. In order to solve the above problems, most of the problems are solved by the on-site operation of the operation manager, which takes up more human resources and has the non-convenience of operation. In order to solve the above problems, In this paper, the urban heating node monitoring system based on cloud service is designed. The system mainly uses the Android client as the monitoring terminal, with the help of the data storage and forwarding function of the cloud server, realizes the data exchange with the underlying embedded Android device, and simulates the water temperature of the heating node in the city. Monitoring and control of pipeline water pressure and other information. The system can replace the traditional field operation. The operator can monitor and control the heating nodes within any network accessible range through the Android client program. Client program can not only display the current node data in real time, but also provide historical data query function. At the same time, if the heating node data does not conform to the normal working range, it can also be adjusted through Android client, and finally achieve the desired results. In addition, the video monitoring function of heating node is added, and the instrument data of heating node can be displayed in real time on Android client. In the design verification and implementation, Android client is implemented with MVP architecture, highly decoupled, and the code function level is clear, which not only completes the function required in this project, It also uses custom view in many places, which improves the beauty of application interface and convenience of operation. At the same time, it follows the software development specification and uses git version control tools to manage and so on. The cloud server hardware hierarchy uses the Ali cloud, in which the lamp environment is configured. The server development language uses PHP, and the development framework is think PHP, which takes MySQL database as the data storage medium, and provides API interface to Android client program and embedded Linux device. The function of data storage and exchange between Android client and embedded Linux device is realized. The embedded Linux device is based on the Mini2440 development board. It is connected with temperature sensor, relay, DC motor AD converter circuit and USB camera. It provides the analog data source and analog control peripheral of the system. At the same time, the video transmission between Android client and mjpg-streamer is realized by transplanting mjpg-streamer into embedded Linux device. Starting from the requirement background of the whole system, this paper introduces in detail the basic knowledge and the selection of hardware and software platform, the selection of each module architecture and the concrete implementation method. From the design of Android client to the design of cloud server and then to the design of embedded device, it not only covers the function module and interface interaction, but also relates to the extensibility, maintainability and security of software development. Finally, through the test and optimization of the system, the content of the project is verified. At the same time, the system has good real-time and security, and can meet the actual needs in a large extent.
【学位授予单位】:吉林大学
【学位级别】:硕士
【学位授予年份】:2017
【分类号】:TP277
【参考文献】
相关期刊论文 前5条
1 任华新;;数据加密算法的综述[J];电子世界;2016年18期
2 王俊芳;李隐峰;王池;;基于MVC模式的ThinkPHP框架研究[J];电子科技;2014年04期
3 陈书益;黄永慧;;开源视频服务器软件MJPG-streamer的研究和应用[J];电子设计工程;2012年05期
4 张曦煌,孙先虎;一种基于Linux的嵌入式HTTP的设计和实现[J];江南大学学报;2003年05期
5 刘艳菊,张宏烈;基于TCP/IP协议关于SOCKET通信程序的研究[J];齐齐哈尔大学学报;2003年03期
,本文编号:2087971
本文链接:https://www.wllwen.com/kejilunwen/zidonghuakongzhilunwen/2087971.html