基于Android的电子智能锁APP的设计与实现

 2022-04-15 07:04

论文总字数:30237字

摘 要

中国学校的传统宿舍由于多人共处一室、宿舍应用场景差异大,一直以来都存在着互相干扰和隐私问题。情况严重时甚至会导致舍友间的关系不和谐甚至暴力冲突。为此,我们课题组提出了一种基于区块链技术“去中心化”思想的“共享宿舍”模式。通过将宿舍区房间按照睡眠区、学习区、娱乐区等功能重新划分,可将复杂的生活场景解耦, 实现按功能分配空间的全新宿舍模式。而要实现这一模式,需要本文所设计的电子智能锁使用软件。

本文首先介绍了课题相关的共享模式,之后介绍了项目中应用到的主要技术,包括无线技术和Android开发技术。接着对电子智能锁软件进行了有深度的深度分析并且分模块的给出了具体的设计和解决方案。本设计在app端与服务器端的数据通信格式上选择了轻量级的JSON格式,采用了开源HTTP库帮助实现和服务器的通讯;在整体软件架构上采用了分层设计的思想,方便后续迭代和扩展。最后经过测试和使用表明,电子蓝牙锁的管理端app可以与服务器和终端进行稳健的数据交换。该系统具有实时和高效的特点,未来可用于智能电子锁的管理。

关键词:共享模式;蓝牙锁;安卓开发;蓝牙通信;

ABSTRACT

The traditional dormitory of Chinese schools has always had mutual interference and privacy problems due to the large difference in the use of multiple rooms and dormitory applications. In serious cases, it may even lead to discordant and even violent conflicts between roommates. To this end, our research group proposed a "shared dormitory" model based on the idea of ​​"decentralization" of blockchain technology. By re-dividing the dormitory room according to the functions of sleeping area, learning area and entertainment area, the complex life scene can be decoupled to realize the new dormitory mode according to the function allocation space. To achieve this model, you need the electronic smart lock software designed in this article.

This article first introduces the sharing model related to the topic, and then introduces the main technologies applied in the project, including wireless technology and Android development technology. Then the in-depth analysis of the electronic smart lock software is carried out and the specific design and solution are given by the sub-module. This design selects the lightweight JSON format on the data communication format between the app and the server. It uses the open source HTTP library to help communicate with the server. The idea of ​​layered design is adopted in the overall software architecture to facilitate subsequent iterations. Expansion. Finally, the test and use shows that the management terminal of the electronic Bluetooth lock can exchange data with the server and the terminal. The system is real-time and efficient, and can be used for the management of intelligent electronic locks in the future.

Keywords:Sharing mode; Bluetooth lock; Android development; Bluetooth communication;

目 录

摘要………………………………………………………………………………………………………………I

ABSTRACT II

第一章 绪论 1

1.1 研究背景和意义 1

1.2国内外研究现状 2

1.2.1 共享模式的发展和特点 2

1.2.2 无线技术的发展和特性 3

1.2.3 Android的发展和特点 4

1.3 本文主要研究内容和组织结构 4

第二章 设计难点及关键技术 6

2.1 Android相关技术 6

2.1.1 Android应用平台概述 6

2.1.2 Android的架构设计 7

2.1.3 Android开发的四大组件 8

2.2 http通信和JSON数据格式 10

2.2.1 http通信 10

2.2.2 JSON数据格式 11

2.3 蓝牙 12

2.4 本章小结 14

第三章 电子智能锁软件的需求分析与总体设计 15

3.1 电子智能锁软件的需求分析 15

3.1.1 电子智能锁软件功能分析 15

3.1.2 电子智能锁软件的性能需求分析 16

3.2 电子智能锁软件的总体设计 17

3.2.1 电子智能锁软件的功能结构设计 17

3.2.2 电子智能锁软件的数据结构设计 17

3.2.3 电子智能锁软件的总体架构设计 23

3.3 本章小结 24

第四章 电子智能锁软件的设计与实现 25

4.1 用户管理模块的设计与实现 25

4.2 信息查询模块的设计与实现 26

4.3 信息修改模块的设计与实现 27

4.4 蓝牙通信模块的设计与实现 28

4.5 电子智能锁软件的模块整合 29

4.6 本章小结 29

第五章 电子智能锁软件的测试及分析 30

5.1 电子智能锁软件的测试环境与测试工具 30

5.2 电子智能锁软件功能测试 30

5.2.1 用户管理模块的功能测试 30

5.2.2 信息查询模块的功能测试 32

5.2.3 信息修改模块的功能测试 32

5.2.4 蓝牙通信模块的功能测试 33

5.3 本章小结 34

结 论 35

参考文献 36

致谢……………………………………………………………………………………………………………..37

第一章 绪论

1.1 课题研究背景及意义

这几年随着共享单车、共享雨伞、共享汽车等商业模式的风靡,共享经济、共享模式等互联网时代的新名词进入了人们的视野[1]

何为共享模式?共享模式是一种将闲置的资源进行统一管理、灵活配置的经济模式。从商品的产权方面来讨论的话,可以说共享模式将商品的所有权和使用权直接解耦,强制的把商品的所有权集中到共享系统中,便于资金投入和管理[2]。同时使用权经过授权后可以作用于广阔的市场。从共享模式的总体结构来分析,主要包括供给商、共享系统、消费端三大组成部分。换言之,即将商品持有者手中闲置的资源通过有偿的方式提供给有此需求的消费者并在其消费之后重新获得商品的所有权,通过这种方式就可以激活商品闲置价值,让商品持有者取得额外的收益,就达到了提高闲置资源利用率的目的。

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

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

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