wi-fip2p协议分析及多屏应用实现

摘要
摘要
随着移动互联网技术和智能终端的发展,PC(个人电脑)在家庭中的地位越来越边缘化,但是我们不能否认PC强大的计算处理能力。为了综合利用PC的计算处理能力和智能终端的方便显示特性,本文提出并实现了多屏应用系统,该系统采用Wi-Fi P2P协议,使PC与智能终端在不需要传统网络的情况下,实现设备间的无线直连。P2P网络容易受到距离和信号干扰的限制。本文基于Xuggler开源项目,通过无线接入点的协助,实现了设备间的中转连接。使得PC屏幕可以同步到使用Wi-Fi P2P协议的智能设备以及普通智能设备上。
系统采用两种方式实现设备连接:基于Wi-Fi P2P协议的无线直连方式、基于无线接入点的无线中转连接方式。无线直连方式的优点是连接方便,设备间的数据传输不依赖传统网络坏境,它的缺点是信号受到设备间距离以及信号干扰的限制。相对地,无线中转连接方式的优点是不易受到传输距离和信号干扰的限制,但是它需要传统网络的支持。无线直连方式和无线中转连接方式各有优缺点,但二者优势互补,拓展了多屏应用系统的使用场景。
系统支持PC到多个智能设备的屏幕同步。本文采用划分子系统的方式,将系统划分成三个子系统:用户控制子系统、终端显示子系统、服务端子系统。对于每个子系统,采用模块化思想将不同的功能模块化,
电视制作一一实现每个模块,最终实现整个系统。
垃圾篓
本文首先对Wi-Fi P2P协议以及相关的无线传输技术进行了比较,分析了Wi-Fi P2P 协议在进行设备间数据传输的优势,并对Wi-Fi P2P协议的相关原理和运行机制、Android平台、Xuggler开源项目进行了介绍。随后,对系统进行需求分析,明确每个子系统的作用,进而确定子系统中应该包含的功能模块。在详细设计阶段,首先规划系统总体框架,明确每个子系统中各模块的关系和作用,确定系统主要业务流程。在实现阶段,详细介绍每个功能的主要代码,以及相关业务的算法。最后进行功能性测试和非功能性测试,同时对系统进行总结和展望经测试,系统实现了上述功能,达到整体设计目标,同时具有较好的稳定性。
关键词:多屏应用,Wi-Fi P2P,智能设备,Android
ABSTRACT
With the development of mobile Internet technology and intelligent terminals, PC (personal computer) in family's position becomes more and more marginalized, but we can not deny that PC has a strong computing power. In order to fully utilize the computing power of PC and the convenient display characteristics of intelligent terminal, this thesis presents and implements a multi-screen application system, which uses Wi-Fi P2P protocol, so that PC and intelligent terminal can make a wi
reless network connection without the support of traditional network. P2P network is susceptible to distance and signal interference. Based on the Xuggler open source project, this thesis makes a transit connection between devices through the assistance of wireless access point. So that PC’s screen can be synchronized to intelligent devices which use the Wi-Fi P2P protocol and ordinary intelligent devices.
The system implements device connection in two ways: wireless direct connection based on Wi-Fi P2P protocol, wireless transit connection based on wireless access point. The advantage of wireless direct connection is that the connection is convenient and the data transmission between devices does not depend on the traditional network environment. On the contrary, the disadvantage is that the signal is limited by the distance between the devices and the signal interference. On the other hand, the advantages of wireless transit connections are less susceptible to transmission distance and signal interference, but it requires the support of traditional networks. Wireless direct connection and wireless transit connection have their own advantages and disadvantages, but we can use their advantages to expand the availability of multi-screen application system.
The system supports PC-to-screen synchronization of multiple intelligent devices. In this thesis, the system is divided into three subsystems: user control subsystem, terminal display subsystem, servic
e terminal system. For each subsystem, according to the modular thinking, different functions belong to different modules, and we achieve each module until the completion of the entire system.
First of all, this thesis compares Wi-Fi P2P protocol and related wireless transmission technology, analyzes the advantages of Wi-Fi P2P protocol in data
transmission between devices. Then, this thesis introduces the relevant principles and operating mechanism of Wi-Fi P2P protocol, Android platform, and Xuggler open source project. Subsequently, this thesis analyzes the system requirements, and determines which functional module should be included in corresponding subsystem by defining the role of the subsystem. In the detailed design phase, first of all, this thesis plans the overall framework of the system, clears the relationship between each module in the subsystem, then this thesis determines the main business processes of the system. In the implementation phase, the thesis introduces the details of the main code for each function, as well as related algorithms of business. Finally, this thesis makes functional test and non-functional test. In the same time, this thesis summarizes and prospects the system.
After testing, the system achieves the above functions, and completes the overall design goals. In the same time, the system has a good stability.
改锥头
Keywords: multi-screen applications, Wi-Fi P2P, intelligent devices, Android
目录
第一章绪论 (1)
1.1课题背景和意义 (1)
1.2国内外研究现状 (2)
1.3课题研究目标 (3)
1.4 课题主要工作 (4)
植物蛋白提取1.5论文章节安排 (5)
第二章相关技术原理和实现机制 (6)
2.1 Android开发平台 (6)
2.1.1 Android系统架构 (6)
2.2.2 Android应用基本组件 (7)
2.2 Xuggler开源项目简介 (8)
2.2.1 Xuggler实现原理 (8)
2.2.2 Xuggler主要功能 (9)
2.3 Wi-Fi P2P协议分析 (9)
2.3.1 Wi-Fi P2P协议架构 (10)
2.3.2 P2P Discovery (12)志愿预测
2.3.3 P2P Group Operation (16)
2.4本章小结 (18)
第三章无线多屏应用需求分析 (19)
3.1系统设计目标和主要功能 (19)
3.2服务端子系统需求分析 (20)
3.3终端显示子系统需求分析 (21)
3.4用户控制子系统需求分析 (22)
3.5本章小结 (23)
第四章无线多屏应用系统详细设计 (24)
4.1系统总体架构 (24)
4.2业务处理流程 (25)
4.2.1设备发现流程设计 (25)
4.2.2设备连接流程设计 (27)
4.2.2无线直连传屏设计 (28)
4.2.3无线中转传屏设计 (29)
4.3系统功能模块设计 (30)
4.3.1用户控制子系统模块设计 (30)
4.3.2终端显示子系统模块设计 (33)
4.3.3服务端子系统模块设计 (36)
4.4 本章小结 (39)
第五章无线多屏应用的实现 (40)
5.1公共模块的实现 (40)
5.1.1 UI模块 (40)
5.1.2 数据存储模块 (42)
5.1.3网络通信模块 (43)
5.2用户控制子系统模块实现 (44)
5.3终端显示子系统模块实现 (47)
5.3.1数据解析模块 (47)
5.3.2设备信息管理模块 (49)
5.3.3数据缓存模块 (50)
5.4服务端子系统模块实现 (51)
5.4.1设备发现模块 (51)
5.4.2连接控制模块 (57)
5.4.3采集和编码模块 (66)
5.4.4数据传输模块 (67)
5.5本章小结 (68)
第六章无线多屏应用系统测试 (69)
6.1测试环境与工具 (69)
6.2 功能性测试 (70)冷凝水回收装置
6.2.1设备发现功能测试 (70)
6.2.2基于无线直连的屏幕同步功能测试 (70)
6.2.3基于无线中转的屏幕同步功能测试 (72)
6.2.4 PC屏幕实时同步到多个屏幕功能测试 (74)
6.3非功能测试 (76)
6.3.1系统稳定性测试 (76)
6.3.2系统性能测试 (77)
6.4本章小结 (78)

本文发布于:2024-09-24 23:24:22,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/3/200985.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:子系统   无线   系统   模块
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议