节点文献

基于安卓手机的电脑鼠标的设计与实现

Design and Implementation of Computer Mouse Based on Android Mobile Phone

【作者】 蒋毅;

【导师】 曹永盛; 王小兵;

【作者基本信息】 电子科技大学 , 工程硕士(专业学位), 2021, 硕士

【摘要】 随着移动通信技术的进步与发展,智能手机现在已被广泛地应用于现代人的生活和日常工作中,已经逐渐地成为了其必不可少的部分。人们能够通过智能手机进行相互沟通交流,如打电话、可视聊天、文件互传、地图导航、网上购物等。2020年四季度申请入网的4G、5G手机中有91.6%为智能机,其中Android系统的比例依然位居首位。基于Android平台的智能手机已经是智能手机市场中的重要力量。因此利用基于Android平台智能手机的应用来实现对计算机电脑等其他设备的远程遥控成为技术发展的趋势。在公司会议室汇报工作时经常遇到演讲者忘记带鼠标或者在演讲过程中必须暂时地停下来,转到自己的讲台上,点击鼠标,然后对幻灯片进行更换操作,继续演讲下去,这样的情况对于听众以及演讲者都不友好。因此本文提出了开发一款智能手机应用实现远程控制电脑达到替代鼠标相关功能目的,从而解决相关实际问题。本文研究了在安卓客户端和PC服务器端处于同一个WIFI局域网环境时,系统如何通过WIFI网络建立Socket网络连接,通过安卓手机识别手指在屏幕上的滑动与点击等多点触控操作后,以TCP协议方式向服务器发送控制信息,服务器端接收到控制信息代码读取并解码后即向电脑Windows系统发送相对应的控制信息来控制电脑端鼠标或键盘的操作。具体包括以下两方面研究:一是电脑端方面,利用C#编程开发服务器端应用程序。这主要包括对C#语言基本语法的应用,C#语言对于Windows窗口程序的实现,Socket网络编程的基于TCP数据传输协议的应用,以及Windows系统中关于鼠标控制和键盘控制API的应用。二是手机端方面,利用安卓编程开发客户端应用程序。这主要包括安卓应用程序的界面布局,基本控件的使用,Handler处理多线程消息传递,控件监听器的实现,手势识别Gesture Detector的设计与实现。通过本系统的设计与实现,不仅能远程控制电脑,还能体验良好的人机交互,也为后续更深入的智能物联网控制延伸奠定基础。

【Abstract】 With the progress and development of mobile communication technology,smart phones have now been widely used in modern people’s lives and daily work,and have gradually become an indispensable part of it.People can communicate with each other through smart phones,such as phone calls,visual chat,file transfer,map navigation,online shopping,etc.In the fourth quarter of 2020,91.6% of the 4G and 5G mobile phones that applied for access to the network were smartphones,of which the Android system still ranked first.Smart phones based on the Android platform are already an important force in the smart phone market.Therefore,the use of smart phone applications based on the Android platform to realize remote control of computers and other devices has become a technological development trend.When reporting work in the company conference room,it is often encountered that the speaker forgets to bring the mouse or has to stop temporarily during the speech,turn to his podium,click the mouse,and then change the slides to continue the speech.The situation is not friendly to the audience and the speaker.Therefore,this article proposes to develop a smart phone application to remotely control the computer to replace the mouse-related functions,thereby solving related practical problems.This paper studies how the system establishes a Socket network connection through the WIFI network when the Android client and the PC server are in the same WIFI LAN environment.After the Android phone recognizes the sliding and clicking of the finger on the screen and other multi-touch operations,The TCP protocol method sends control information to the server.After the server receives the control information code,reads and decodes it,it sends the corresponding control information to the computer Windows system to control the operation of the computer mouse or keyboard.Specifically,it includes the following two aspects of research:One is on the computer side,using C# programming to develop server-side applications.This mainly includes the application of the basic grammar of the C#language,the implementation of the C# language for the Windows window program,the application of the Socket network programming based on the TCP data transmission protocol,and the application of the mouse control and keyboard control API in the Windows system.The second is on the mobile phone side,using Android programming to develop client applications.This mainly includes the interface layout of the Android application,the use of basic controls,the Handler handles multi-threaded messaging,the implementation of the control listener,and the design and implementation of Gesture Detector for gesture recognition.Through the design and implementation of this system,not only remotely control the computer,but also experience good human-computer interaction,and also lay the foundation for the follow-up,more in-depth intelligent Internet of Things control extension.

  • 【分类号】TP311.56
  • 【下载频次】176
节点文献中: 

本文链接的文献网络图示:

本文的引文网络