污沼液分级浓缩设备监控系统手机APP设计与实现

 2022-07-11 08:07

论文总字数:27738字

摘 要

当今社会处于一个信息全球化的时代,在这个时代中,手机已经变成人人必备的一个基础设备。目前手机市场主流平台有Android和IOS系统,作为比较古老的一个移动操作系统,Android系统在目前市场上仍然保持最高的占有率,安卓的未来也会随着自身不断地更新换代,不断地优化而欣欣向荣。

企业在实际的生产处理流程中,要能够实时掌握各个部件的信息,才能知道当前整个设备,整个流程运行是否处于正常状态。在操作过程中,我们需要观测的信息较多,比如多个阀门的开关状态,多种检测装置读取的数值。如果将这些数据全部在电脑前端显示出来,则平时巡视机器组工作状态的时候都要带上电脑,极其不便。考虑到安卓手机的便携性,将数据显示在手机上,能让管理员以及相关用户很方便地实时查看设备运行信息。

本毕业设计的目标是开发在安卓平台上的设备监控系统客户端,要求搭建远程服务器,将PLC传送过来的污沼液分级浓缩设备数据记录在数据库中,并且将服务器上存储的各项数据展示在手机上,使得管理员可以远程获取设备运行状态和历史运行概况。本文中,首先阐述了项目的研究背景以及本课题的目标和意义,接着分模块介绍毕设中实际完成的各项工作。主要包括PLC与服务器通信模块,服务器与数据库的搭建模块,前端APP的开发模块。在各个模块介绍之后,也进行了一些相关工作的展示,对与用户直接交互的APP前端进行了功能性测试与容错性测试,以验证项目的可靠性。在本文的末尾,提出了本次工作中的总结与展望。

关键词:Android、Android Studio、数据库、MySQL、信息查询

Abstract

Nowadays, the society is in an age of information globalization. In this era, mobile phones have become a basic equipment for everyone. At present, the mainstream platform of the mobile phone market contains Android and IOS system. Acted as an old mobile operating system, the market share of the Android system remains the highest in the world, and the future of Android will also be constantly updated with its own continuous optimization and prosperity.

In the actual production process, in order to know whether the current whole equipment and the whole process is in a normal state, the enterprise should be able to master the information of each component in real time. In the process of operation, we need to observe more information, such as the switching states of multiple valves, and the values of various inspection devices. If all these data are displayed on the front end of the computer, it is extremely inconvenient to bring the computer to the machine group when making an inspection tour. Taking into account the portability of Android's mobile phones, displaying data on mobile phones can enable administrators and users to view real-time operation information of devices conveniently.

The goal of this graduation design is to develop the client of the equipment monitoring system on the Android platform. It requires a remote server to set up the data of the concentration equipment of the polluted biogas slurry in the database, and the data stored on the server is displayed on the mobile phone. The administrator can get the running status and running history of the equipment remotely. This article first describes the background of the project and the objectives and significance of this topic, and then introduces the various works completed in the design. It mainly includes PLC and server communication module, server and database building module, and front-end APP development module. After the introduction of each module, some related work shows. Functional tests and fault tolerance tests are conducted on the APP front-end that interact directly with users to verify the reliability of the project. At the end of this paper, the conclusion and prospect of this work are presented.

KEY WORDS: Android, Android Studio, database, MySQL, Information inquiry

目 录

摘 要 I

Abstract II

第一章 绪论 1

1.1 项目背景 1

1.2 课题目标 2

1.3 研究现状 2

1.4 课题关键问题 2

1.4.1 PLC与服务器通信 2

1.4.2 服务器端设计 2

1.4.3 数据库设计 3

1.4.4 APP设计 3

1.5 测试环境 3

1.6 论文主要研究内容 4

第二章 技术介绍 5

2.1 安卓系统简介 5

2.1.1 安卓的系统架构 5

2.1.2 安卓启动过程 5

2.2 开发工具 6

2.2.1 Android studio 6

2.2.2 IntelliJ IDEA 8

2.2.3 MySQL 8

2.2.4 phpMyAdmin 9

2.3 安卓开发环境搭建 10

2.3.1 安装JDK 10

2.3.2 安装Android Studio 10

2.3.3 安装其他插件 11

第三章 系统需求分析 13

3.1 APP需求分析 13

3.1.1 普通用户 13

3.1.2 特殊用户 13

3.1.3 管理员 14

3.2 服务器需求分析 14

3.3 数据库需求分析 14

3.4 性能需求分析 15

第四章 系统设计 16

4.1 系统总体设计 16

4.2 服务器设计 16

4.2.1 服务器与PLC通信 16

4.2.2 服务器与APP通信 17

4.2.3 服务器与数据库连接 18

4.2.4 Spring boot 19

4.3 数据库设计 19

4.3.1 需求分析 20

4.3.2 概念设计 20

4.3.3 逻辑设计 20

4.3.4 物理设计 22

4.4 APP设计 22

第五章 系统功能实现 24

5.1 项目结构 24

5.1.1 客户端项目结构 24

5.1.2 服务器项目结构 26

5.2 服务器端与客户端的连接 27

5.3 服务器端与PLC端的连接 27

5.4 系统主要模块设计及实现 28

5.4.1 登录模块 28

5.4.2 用户选择模块 29

5.4.3 管理员模块 31

5.4.4 特殊用户模块 32

第六章 系统功能测试 34

6.1 软件测试概述 34

6.2 软件功能性测试 35

6.2.1 服务器与APP交互测试 35

6.2.2 服务器与PLC通信测试 36

6.2.3 服务器与数据库通信测试 36

6.2.4 APP客户端测试 37

6.2.5 兼容性测试 38

6.2.6 并发登录测试 39

6.3 软件容错性测试 39

第七章 总结与展望 40

7.1 工作总结 40

7.1.1 准备工作 40

7.1.2 需求分析 40

7.1.3 项目开发 40

7.1.4 论文撰写 40

7.2 不足与展望 41

7.2.1 不足之处 41

7.2.2 前景展望 41

7.3 心得体会 41

致 谢 42

参考文献 43

绪论

项目背景

本次的APP开发基于企业项目,该企业是位于盐城大丰的江苏苏港和顺生物科技有限公司。该公司属于环保型公司,致力于沼气,肥料的相关处理与生产工作。同时,作为一个环保型企业,减少生产成本,提高效率,该企业还进行了蔬菜、水果的种植,蛋鸡及水产品的养殖。图1-1为该企业概览图。

剩余内容已隐藏,请支付后下载全文,论文总字数:27738字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;