登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 信息工程 > 正文

基于安卓的蓝牙鼠标设计毕业论文

 2021-04-21 10:04  

摘 要

随着科学技术的不断发展,各种电子产品层出不穷,功能也日益强大,巨大的市场为传统控制技术的发展提供了平台。蓝牙技术作为一种短距离无线通讯技术,它可以取代各种设备之间的有线数据传输,代替了传统电缆连接,极大的提高了灵活性。蓝牙集方便、灵活、安全及低功耗等优点于一身,得到了广泛的应用,相关蓝牙产品也在不断的涌入市场。

从鼠标的诞生至今,这一控制设备已经更新了数代,为我们对计算机设备的操控提供了极大的便利。本课题研发了一款基于安卓的蓝牙鼠标,设计实现的功能有:能够在安卓设备上进行上下左右以及按键的控制,在鼠标移动时,设备上的鼠标箭头能够随之移动;按下按键时,设备能做出相应的反应;还有在滚轮滚动时,页面也能随之滚动。本文研究了系统工作原理和蓝牙协议的相关内容,完成了蓝牙鼠标的整体方案设计。

关键词:蓝牙协议;安卓;鼠标

Abstract

With the development of science and technology, a variety of electronic products emerge in endlessly, and their functions are increasingly powerful. The huge market provides a platform for the development of traditional control technology. As a short-range wireless communication technology, Bluetooth technology can replace the wired data transmission between various devices, replace the traditional cable connection, and greatly improve the flexibility. Bluetooth has many advantages, such as convenience, flexibility, security and low power consumption, so it has been widely used, and the related Bluetooth products are pouring into the market.

Since the birth of the mouse, this control device has been updated for several generations, which provides us with great convenience for the control of computer equipment. This subject has developed a Bluetooth mouse based on Android, designed and realized the functions: can be up and down on the Android device and button control, when the mouse moves, the mouse arrow on the device can move with it; when pressing the button, the mouse arrow on the device can move along; when pressing the button, the mouse arrow on the device can move with it. The device reacts accordingly, and the page scrolls along with the wheel as it scrolls. In this paper, the working principle of the system and the related contents of Bluetooth protocol are studied, and the overall design of Bluetooth mouse is completed.

Key Words:Bluetooth protocol; Android; mouse

目录

第1章 绪论 1

1.1蓝牙技术研究背景 1

1.2 国内外研究现状 1

1.3 研究目的 2

1.4 本课题研究内容 2

第2章 系统总体方案设计 3

2.1 系统工作原理 3

2.2 蓝牙协议与HID协议 4

2.2.1 蓝牙4.0 4

2.2.2 HID协议 6

2.3 nRF51平台 6

第3章 基于安卓的蓝牙鼠标硬件系统设计 7

3.1 硬件系统设计方案 7

3.2 蓝牙鼠标原理及鼠标电路图 7

3.3 选用元器件介绍 8

第4章 软件设计及调试 9

4.1 软件设计 9

4.1.1 程序流程 9

4.1.2 鼠标的初始化 10

4.1.3 鼠标扫描码和按键处理流程 10

4.2 系统初始化 12

4.2.1 初始化函数 12

4.2.2 鼠标描述符 14

4.2.3 蓝牙鼠标代码 16

4.3 调试 17

第5章 总结与展望 19

参考文献 20

致 谢 21

第1章 绪论

1.1蓝牙技术研究背景

蓝牙设备,由于它自身具备的通信能力,它可以让不同设备之间能够进行短距离的信息传递,诸如文件传输等。我们能够通过蓝牙在电脑、手机、无线耳机甚至打印机等设备之间进行数据的传输以及信息的传递。为了简化设备之间,比如移动通信终端等的信息传递,便可以使用蓝牙这一技术[1,2]。利用这一技术,可以让数据传输能够更加高效、快捷的进行,对无线通信道路的拓宽也提供了支持[3,4]。近几十年来,科技保持着高速发展。最直接的体现就是各种电子产品的出现以及更新换代。在功能也日益强大的背后,人们对操作体验有了更加高需求。因此,在使用各种繁杂的功能时,如何让操作变得更加简单成为一个问题。

在我们的日常生活、工作和学习中,经常会用到如PC电脑、平板电脑、手机等等电子产品。由于要在这些设备之间进行数据传输时,大部分都需要通过电缆(如USB数据线)才能进行,在灵活性上存在着极大的不足,使用起来很不方便。正因为这样,人们迫切的希望出现一种新型的数据传输技术,能够取代传统电缆并能在不同设备之间进行短距离无线通讯[5],在这一背景下,“蓝牙”这一产品便应运而生了。蓝牙技术的出现使各种设备之间的数据传输变得更加简单、灵活,无论是在我们的生活上还是工作上都带来了极大的便利。另一方面,我们在工作学习中经常不可避免的需要用到使用到鼠标这一设备,尤其在我们使用电脑的时候,没有鼠标会使我们操作变得相当复杂,即使现在大部分笔记本电脑都已经加上了触摸屏,但是仍然不及鼠标操作来的简便、灵活。

1.2 国内外研究现状

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

企业微信

Copyright © 2010-2022 毕业论文网 站点地图