移动跨平台网络互动应用的研究与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
伴随移动技术的快速发展,人们对于移动终端的要求不再仅仅是语音短信,更是通过移动网络获得更好的生活品质。这样的需求也使得移动网络互动应用成为无线应用开发的热点。目前移动终端领域有包括苹果1OS、谷歌Android以及高通BREW等各种类型手机终端,但是缺乏一个统一的跨平台网络互动应用的框架,使得各种类型手机终端用户能够通过相同的服务器来获得同样的用户体验,因此对于跨平台互动应用的研究很有现实意义。
     在本课题中,首先探讨了移动跨平台网络互动应用的系统架构。在此基础上研究设计并实现了满足跨平台要求的网络互动应用服务器,给出了包括通信模块、线程池逻辑处理模块、数据管理模块、服务器管理模块四大模块在内的服务器架构和各个模块的具体实现,详述了其中用到的异步连接、完成端口、I/O内存池、逻辑线程池、线程安全、客户端连接管理以及多线程并发数据库管理等关键技术的实现,并根据跨平台要求设计了合理的应用通信协议。
     其次,研究设计了跨平台网络互动应用客户端的统一架构,并且在BREW平台和Android平台上完成了具体的实现,根据平台特性对于客户端的各个模块采用了不同的实现方法,并着重说明了两种平台下的网络通信、图形图像绘制以及事件响应等关键技术。
     最后,在研发的移动跨平台网络互动应用基础上,分别针对服务器和客户端进行了测试和优化。对服务器的测试,自行设计了测试工具,并根据结果证明了服务器在并发性、响应速度和系统资源使用上的优异性能,同时提出了死链接处理、WSAENOBUFS错误解决、逻辑线程池参数微调等的多项优化措施;客户端通过了UI、功能和兼容性等多项严格测试,达到了适配数量和用户体验的要求。
     本课题研发的移动跨平台网络互动应用拥有了良好的复用性,据此开发的多款商用应用程序已经上线并且运行稳定。
Along with the fast development of moible techniques, people do not only require calls or SMS, but also hope to get a better life through the mobile network. That's why interactive applications of mobile network become the hot spot for the development of wireless applications. Nowadays, the field of mobile terminal can be divided into several parts like IOS, Android, BREW and so on. But there is a lack of a framework for cross-platform interactive applications of mobile network to let BREW and Android end users interact via the the same server and get similar user experience. So it is meaningful to research on it and make it real.
     First, this paper has made a research on the system architecture of cross-platform interactive applications of mobile network. Based on it, a server that meets the requirements of cross-platform and interaction is designed and implemented. The server mainly contains four modules includig communication, threadpool logical handle, data management and server management. Also this paper introduces the key techniques in detail. The key techniques include asynchronous connection, IOCP, IO memory pool, threadpool, thread-safe insurance and so on. As well, to realize the communication between different platforms, this paper has designed an application-level communication protocal.
     Second, this paper designs and implements the framework of the client of cross-platform interactive applications of mobile network. This paper implements the clients on BREW and Android platform. According to the the difference between these two platforms, this paper uses different implementation methods, and focuses on communicaton, grahpic rendering and event response technology on these two platforms.
     Finally, this paper provides ways to test and optimize the cross-platform interactive applications of mobile network. This paper designs a testing tool to test the server in aspects of concurrency, response speed and usage of the system resource. And the server has an outstanding performance during the test. According to the test result, the paper provides three optimize suggestions. As well, the clients both under BREW and Android platform pass the UI test, functional test and compatibility test, and meet the requirements of the terminal number and user experience.The cross-platform interactive application of mobile network has achieved the desired goal and has been put in use in commercial with a good performance.
引文
[1]杨娟.移动通信系统中位置管理技术研究与分析.[学位论文],西南交通大学,2011
    [2]BREW API Reference,QUALCOMM.2007
    [3]杨春阳.基于BREW技术开发手机应用.电脑编程技巧与维护,2004(7):18-20
    [4]徐波.手机电子书阅读器设计与开发.[学位论文],长安大学,2010
    [5]许江伟,陈平BREW平台上的手机软件开发.计算机应用,2003,23(10):89-92
    [6]邓凡平.深入理解Android机械工业出版社,2011
    [7]姚昱旻,刘卫国.Android的架构与应用开发研究.计算机系统应用,2008(11):110-112
    [8]胡振.C/S与B/S计算模式之比较研究.知识经济:康健,2007(12):133
    [9]张晓明.计算机网络编程技术.中国铁道出版社.2009
    [10]Douglas E.Comer,David L.Stevens著,赵刚,林瑶,蒋慧等译.用TCP/IP进行网际互联.电子工业出版社,2011
    [11]孙海民.精通、VindOWSSockets网络开发-基于VisualC++实现.人民邮电出版社,2008
    [12]BREW SDK User's Guide,QUALCOMM.2007
    [13]陈和平,周静宁,顾晋广等.IOCP机制与网络代理服务器实现方法.计算机应用,2003,23(4):109-110
    [14]王瑞彪,李凤岐,施玉勋等.基于IOCP机制的网络游戏服务器通信层的实现.计算机工程与应用,2009,45(7):75-78
    [15]亚历山大.R,本斯林.G著,王峰,史金虎译.C++高效编程:内存与性能优化.中国电力出版社,2003
    [16]W.Richard Stevens著,范建华,胥光辉,张涛等译TCP/IP详解卷1:协议.机械工业出版社,2012
    [17]唐磊,金连甫.不同计算机平台数据的存储机制与控制方法.计算机工程与应用,2003,39(30):126-127
    [18]王华,马亮,顾明.线程池技术研究与应用.计算机应用研究,2005,22(11):141-142
    [19]Andreas Brandt.O the stability the muli-queue multi-server processor sharing with limited service.Queueing Systems,2007,56(1):1-8
    [20]Douglas C.Schmidt,Stephen D.Hustn著,叶斌译.C++网络编程.科学出版社,2012
    [21]Mark Allen Weiss著,冯舜玺译.数据结构与算法分析-C语言描述.机械工业出版社,2011
    [22]Parick ONeil著DataBase Principles,Programming and Performance.(?)高等教育出版社,2001
    [23]王宝祥.基于ADO.NET的数据库访问技术研究.计算机应用与软件,2004,21(2):120-122
    [24]陈耀.基于PC的实时系统中关键技术的研究与应用.[学位论文],同济大学,2006
    [25]Jeffrey Richter, Christophe Nasarre著,葛子昂,周靖,廖敏译Windows核心编程.清华大学出版社,2008
    [26]于秀山,包晓路.客户机/服务器系统软件测试方法.计算机工程与应用,2001,37(9):80-83
    [27]胡志坤,何多昌,桂伟华等.基于改进心跳包机制的整流远程监控系统.计算机应用.2008,28(2):363-366
    [28]鄢锋,桂卫华,胡志坤等.一种网络节点通信控制的心跳模型.信息与控制,2008,37(5):524-528
    [29]熊飞.基于移动梦网项目的软件测试方法研究及应用.[学位论文],西安电子科技大学,2011
    [30]Meier.Reto. Professional Android 4 application development. Wrox,2012
    [31]Eittenberger, Philipp M., Matthias Herbst, et al. RapidStream:P2P streaming on android. Packet Video Workshop (PV),2012 19th International. IEEE,2012