中国计量学院本科毕业设计(论文)
图 5.22相关代码截图
图 5.23 地图标注效果图
28
中国计量学院本科毕业设计(论文)
6总结与展望
6.1总结
Android是当今主流的移动终端的操作系统,因为其开源免费,可以为被各个厂商定制,已经占领较大部分智能终端的市场。由于Android系统相比其他手机操作系统的优越性,本文介绍了一个基于该操作系统的软件,并且加入了基站定位的优化算法,实现了不通过GPS卫星进行定位手机。
同时这也是一款涉及LBS的软件,融合了百度地图的显示标注功能,是LBS再开发的一个基础。现如今国内外的LBS应用正处于迅速增长时期,本项目是对LBS概念的一个尝试。
由于基站信息包括其所处经纬度信息归属向运营商所有,属于国家安全一部分。为了保护国家通信安全,有关部门制定了一些保护性措施来防止这些信息泄露,所以在项目实践过程中,实际与基站信息和与其相匹配经纬度数据由手动采集存储在程序数组中备用。由于实测地点选在中国计量学院,我校Wi-Fi数据较新,网络上尚无与其匹配的经纬度数据,故也由手动采集存储在程序数组中备用。
对于性能方面,经过实地测试,软件开启、更新数据以及去地图标注均无延时现象。在室外测试,精度在50~500m左右,实际情况视服务基站分布情况而定;在室内无Wi-Fi辅助,精度在200~1000m左右,实际情况视服务基站分布情况而定。由于实测手机搭载的是Android 4.1.1操作系统,开发环境为Android 2.1版本,偶尔出现无邻区基站的情况,需进行重启尚可恢复。而当邻区基站无数据,或者打开Wi-Fi情况下获取的BSSID不在程序数组中时,点击“去地图标注”按钮会出现闪退现象。
6.2展望
位置服务已经越来越多得融入我们的生活中,随着国内3G网络的建设,以及马上到来的4G网络的布局 [30],位置服务会越来越便捷。同时,人们现在已经不满足于仅仅知道我当前所处位置这么简单,更希望知道我所处位置的周围有些什么人,什么设施,我能在附件干什么,我需要多久能够到达最近的我需要去的场所等等 [31]。不仅如此,位置服务可以渗透到生活的各个方面,包括交通以及商业。由此可见,位置服务具有巨大的市场应用潜力,伴随着大数据时代和物联网时代的推进,基于位置的服务将发挥更大的作用。
29
中国计量学院本科毕业设计(论文)
参考文献
[1] 刘宇; 朱仲英. 位置信息服务(LBS)体系结构及其关键技术[J]. 微型电脑应用, 2003,
19(5):5-7.
[2] 王文政. 移动定位应用系统[D]. 电子科技大学, 2003.
[3] Bharat Rao; Louis Minakakis. Evolution of Mobile Location-based Services[M]. 46.
Communication of the ACM, 2003 :63-65.
[4] 百度百科. 基于位置服务[EB/OL]. [2013-04-27]. http://baike.http://www.wodefanwen.com//view/152851.htm. [5] 任齐. 基于Android的LBS应用研究[D]. 华东师范大学, 2012.
[6] Sun, Q, Al E. An integrated system based on wireless communication technology and mobile
GIS[C]. //International Geoscience and Remote Sensing Symposium (IGARSS), IEEE, 2005:963-966.
[7] Eastwood E J. Good Housekeeping Drop 5LBS: The Small Changes, Big Results Diet[J].
LIBRARY JOURNAL , 2011, 136(2):80-80.
[8] 杨丰盛. Android应用开发揭秘[M]. 2010年第1版. 机械工业出版社, 2010 :10-13.
[9] Gandhewar N, Sheikh R. Google Android An Emerging Software Platform For Mobile
Devices[C]. //NCICT 2010 Special Issue, International Journal on Computer Science and Engineering (IJCSE), 2010.
[10] Maia C, Luis Miguel Nogueira & Luis Miguel Pinho. Evaluating Android OS for Embedded
Real-Time Systems[R]. CISTER Research Centre:Instituto Politécnico do Porto, 2010.
[11] Cnblog. Android四大组件:Activity、Service、BroadCast Recevicer、Content provider
[EB/OL]. [2013-4-23]. http://www.cnblogs.com/keely/archive/2012/04/26/2470744.html. [12] Bimal Gadhavi & Khushbu Shah. Analysis of the Emerging Android Market[R]. San José
State University:In Partial Fulfillment of the Requirements for the Degree Master of Science in Engineering, 2010.
[13] Shabtai, Fledel A, Y. ; Kanonov. Google Android: A Comprehensive Security Assessment[J].
IEEE Computer Society, 2010, 8(2):35-44.
[14] 李臣杰. 基于蜂窝网的手机基站定位算法研究[D]. 郑州大学, 2012. [15] 金彩萍. PHS短信多基站定位系统研究与测试[D]. 复旦大学, 2007.
[16] Trevisani, Vitaletti E, A. Cell-ID location technique, limits and benefits: an experimental
study[C]. //Mobile Computing Systems and Applications, 2004. WMCSA 2004. Sixth IEEE Workshop on, IEEE Workshop, 2004:51-60.
[17] 黄俊英. 手机定位技术的分析与研究[J]. 福建电脑, 2009(11):63-64.
[18] 张中华. 基于RSSI校正的无线传感器网络质心定位算法[D]. 山东大学, 2011.
[19] D. Culla, D. Estrin, M. Strvastava. Overview of sensor networks [J]. IEEE Computer, 2004,
37(8):41-49
[20] Moore D, Leonard J, Rus D, et al. Robust Distributed Network Localization with Noisy
Range Measurements[J]. In: Proc of the 2nd International Conference on Embedded Networked Sensor Systems. Baltimore, USA, 2004, 50-61
[21] Tufan C. Karalar, Shunzo Yama shita, Miehael Sheets, Jan Rabaey. A Low Power
Localization architecture and System for Wireless sensor Networks[C]. Signal Proeessing Systems, 2004. SIPS 2004. IEEE Workshop on 2004, 89-94.
30
中国计量学院本科毕业设计(论文)
[22] Jeffrey Hightower, Gaetano Boriello, Roy Want. Spot-On: An indoor 3D Location Sensing
Technology Based on RF Signal Strength[R]. University of Washington, Department of Computer Science and Engineering, Seattle, WA, USA 2000.2
[23] 王振强, 朱义胜. 改进的基于RSSI差值的定位算法[J]. 通信技术, 2011, 44(7):78-80. [24] L. Doherty. Algorithms for Position and Data Recovery in Wireless Sensor Networks[D].
Master’s Thesis, University of California Berkeley, 2000, 6.
[25] Priyantha N, Balakrishnam H, Demaine E, Teller S. Anchor-free distributed localization in
sensor networks[R]. MIT Lab for Computer Science, April 2003.
[26] 陈维克,李文锋,首珩,等.基于RSSI的无线传感器网络加权质心定位算法[J].武汉理
工大学学报:交通科学与工程版,2006,30(2):265-268.
[27] 张洁颖; 孙懋珩; 王侠. 基于RSSI和LQI的动态距离估计算法[J]. 电子测量技术, 2007,
30(2):143-145.
[28] IEEEStd.802.15.4-2003. Standard for telecommunications and information exchange between system-local area medium access control(MAC)and physical layer(PHY)specifications for low rate wireless personal area networks(WPAN) [Z]. http://www.ieee802.org/15/pub/TG4 html. [29] 聚合数据. 开发手册[EB/OL]. [2012-3-27]. http://www.juhe.cn/.
[30] 杨娟; 颜彪; 陈万培. 4G中的新技术及其与3G的比较[J]. 信息技术, 2004, 28(6):98-101. [31] 陈飞翔; 杨崇俊; 申胜利; 于文洋; 杨建宇. 基于LBS的移动GIS研究[J]. 计算机工程
与应用, 2006(2):200-202.
31
中国计量学院本科毕业设计(论文)
附录 A:
public class BaseStationLocation extends Activity { //获取邻区基站信息 mTelManNbr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); List
temarray=new int[neighborinfos.size()+1][3];
String strNB = \邻区基站总数 : \ String strarray=\数组数据:\\n\ int i=1;
for (NeighboringCellInfo info1:neighborinfos){ //根据邻区总数进行循环 neighbourcid = info1.getCid(); neighbourlac = info1.getLac(); neighbourssi = (-113+2*info1.getRssi()); temarray[i][0]=neighbourlac;//将list数据放入数组中 temarray[i][1]=neighbourcid; temarray[i][2]=neighbourssi; i++;
strNB +=\位置区域码(LAC) : \+ neighbourlac+\ 基站编号(CID) : \+ neighbourcid+\ 信号强度(RSSI) : \
TextView neighbourText = (TextView) findViewById(R.id.neighbourText); neighbourText.setText(strNB); } //获取wifi mac地址 WifiManager wifiMgr = (WifiManager)getSystemService(Context.WIFI_SERVICE); WifiInfo info = (null == wifiMgr ? null : wifiMgr.getConnectionInfo()); if (null != info) { macAddress = info.getBSSID(); ip = info.getIpAddress(); } //显示wifi mac地址 TextView macText = (TextView) findViewById(R.id.macText); macText.setText(\地址:\ } catch (Exception e) {
32
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库基于Android系统的基站定位实现毕业论文(8)在线全文阅读。
相关推荐: