摘 要
随着软件的快速发展与人们对健康的关注度不断的提高,智能手环应用而生。当然,智能手环只是众多智能可穿戴设备中的一款,因为其价格便宜,实用性较强,迅速成为智能可穿戴设备中的最流行的产品。
针对人们对人体运动状态监测的需求,设计了基于手环的Android系统手机应用程序(APP)。本文首先对人体测量手环的蓝牙模块、加速度传感器、心率传感器等硬件电路和软件流程算法进行重点研究,了解了该手环用传感器ADXL345采集人体行走时的加速度信息,利用矢量求和算法实现计步功能,并估算行走过程中的热量消耗,重点突破了手环通过蓝牙方式与Android手机通信的技术难关,从而在手机上实现了三大主要功能:一类是获取多种实时数据并显示,包括手环电量,当前心率,今日已走步数,今日已走路程,今日消耗的卡路里等,第二类为各种提醒服务,包括防丢提醒,来电提醒,短信提醒,QQ消息提醒,微信消息提醒,久坐提醒,第三类为分析处理功能,包括心率预警,疲劳度测试,查看历史运动数据等。
测试结果表明,该系统运行可靠,计步算法适应性良好,具有体积小、功耗低、工作稳定、计步准确、人机交互友好等特点。
关键词:Android手机APP;Android应用软件;智能手环;智能可穿戴设备
ABSTRACT
With the rapid development of software and people's attention to health continues to improve, smart bracelet appears.Of course, the smart bracelet is only one of many intelligent wearable equipment, because of its cheap, practical, and quickly become intelligent wearable equipment in the most popular products.
As we all know, a person and then strong, he can not do without social, smart bracelet is the same, although its hardware is very powerful, but it also requires software support.You can only view the data, but if you have a powerful software, you can not only see real-time data, you can also view the historical data, and then to analyze the data, so that the function of this product Become more powerful.Thus, the author based on his own technology, developed a ring product based on the android , the product uses Bluetooth to communicate with smart bracelet. The specific functions of the product are as follows:Access to the bracelet power, access to real-time data (access to the content: the current heart rate, today has been walking, today has gone, today's consumption of calories), hand ring to remind, mobile phone reminder, SMS reminder, QQ Message reminder, WeChat Message reminder, sedentary reminder, heart rate warning, fatigue test, view historical sports data, view historical sleep data (not yet implemented).
Through the use that, the product is simple to use, and easy to carry, safe, with a high value.
Key Words: smart bracelet; intelligent wearable equipment; based on the bracelet android products;
目 录
1 绪论........................................................................................................................... 1
1.1 项目背景及意义..............................................................................................1
1.2 国内外研究现状..............................................................................................1
1.3 论文组织结构..................................................................................................1
2 技术简介与环境搭建................................................................................................1
2.1技术简介...........................................................................................................1
2.1.1Java简介.................................................................................................1
2.1.2Android简介...........................................................................................1
2.2 Android环境搭建...........................................................................................1
3 可行性分析................................................................................................................1
3.1经济可行性.......................................................................................................1
3.2技术可行性.......................................................................................................1
3.3操作可行性.......................................................................................................1
4 需求分析....................................................................................................................1
4.1功能需求...........................................................................................................1
4.2性能需求...........................................................................................................1
4.3可靠性和可用性需求.......................................................................................1
4.4出错处理需求...................................................................................................1
4.5接口需求...........................................................................................................1
4.6约束...................................................................................................................1
4.7将来可能提出的需求.......................................................................................1
5 概要设计....................................................................................................................1
5.1系统的层次结构...............................................................................................1
5.2系统各模块流程图...........................................................................................1
5.3数据库概要设计...............................................................................................1
6 详细设计....................................................................................................................1
6.1蓝牙连接模块...................................................................................................1
6.2获取电量模块...................................................................................................1
6.3获取实时数据模块...........................................................................................1
6.4获取心率模块...................................................................................................1
6.4.1打开心率测试.......................................................................................1
6.4.2关闭心率测试.......................................................................................1
6.5防丢提醒模块...................................................................................................1
6.6来电提醒模块...................................................................................................1
6.6.1设置来电提醒.........................................................................................1
6.6.2来电提醒参数.........................................................................................1
6.7短信提醒模块...................................................................................................1
6.7.1设置短信提醒.........................................................................................1
6.7.2短信提醒参数.........................................................................................1
6.8QQ消息提醒模块...............................................................................................1
6.8.1设置QQ提醒.........................................................................................1
6.8.2QQ提醒参数...........................................................................................1
6.9WeChat消息提醒模块.......................................................................................1
6.9.1设置WeChat提醒..................................................................................1
6.9.2WeChat提醒参数.....................................................................................1
6.10抬手亮屏模块.................................................................................................1
6.11疲劳度测试模块..............................................................................................1
6.12久坐提醒模块.................................................................................................1
6.13查看历史运动数据模块.................................................................................1
6.14数据库详细设计.............................................................................................1
7 项目编码和项目测试................................................................................................1
7.1编码...................................................................................................................1
7.2测试...................................................................................................................1
7.2.1单元测试.................................................................................................1
7.2.2集成测试.................................................................................................1
8 项目运行结果............................................................................................................1
9 结束语........................................................................................................................1
致谢................................................................................................................................1
参考文献......................................................................................................1