基于Android终端的Wi-Fi中继功能的研究和实现 电子质量 (2016第1期)
基于 Android终端的wi—Fi中继功能的研究和实现
Researchand ImplementationofW i—FiRelayFunctionBasedonAndroidTerminal
毛澄宇(重庆邮电大学海信多媒体研发部移动平台所,重庆400065)
MaoCheng-yu(ChongqingUniversity0fPostandCommunications.Hisen~MultimediaR&
Dmobileplaffomls,Chongqing400065)
摘 要 :如今Android手机逐渐成为市场智能终端主导,同时由于生产周期的不断缩短,导致大量闲置
Android手机出现。为了对闲置Android终端加以利用,现提出一种技术手段,对闲置Android终端的WIFI
底层进行技术改造,实现强制开启GROUP,并利用JNI技术实现AH接口,最后通过下发路由表的配置,使
其具有AP功能,并可以和其他STA设备进行连接、通信,实现了WIFI中继功能。这样不仅能够对闲置
Android终端加以利用,又灵活解决了无线网络信号衰减所带来的困扰。
关键词:Android终端;Wi—FiP2P;Wi—FisTA
中图分类号:TN948.6 文献标识码:A 文章编号:1003—0107(2016)01—0044—05
Abstract:Nowadays,Androidphonegraduallydominatethemarketofintelligentterminal,Atthesametime,
numerousoftheidleAndroidphonesappearwhichduetotheshorteningoftheproductioncycle.Now pro—
poseatechnicalmethodtoreform theunderlyingoftheidleAndroidphones’W IFtfunction,Forcedopen
GROUP,anduseJNItechnicaltomakeanAPIinterface,atlast。changetheconfigurationofRoutingTable.
maketheAndroidterminalanAPwhichcanconnectand communicatewithotherSTA equipmentInthis
way,peoplecannotonlyreusetheIdleAndroidphonebutalsosolvetheproblem which causedbythe
Signal~tenuationofwirelessnetwork.
Keywords:Androidterminal;Wi—FiP2P;W i-FiSTA
CLCnumber:TN948.6 Documentcode:A ArticleID:1OO3—0107(2016ll0l—O044—05
0引言 1WIFISTA和WIFIDirect功能简介
随着 WIFI技术的发展 ,如今 WIH 已经成为 SOHO
1.1STA功能
fSmallofficeHomeoffice)环境的首选,但由于 SOHO环境
STA即Station,是WLAN网络 中不可缺少的一部
中钢筋水泥结构复杂,造成了WIFI信号严重衰减。现有