下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
ReportforGraduationDesign
ofNanjingUniversityofPostsandTelecommunications
Subject
IntractiveOnlineGamesBasedonWi-fiintheAndroidSystem
——ImplementtheInterfaceandPlanning
StudentName
WeihanZhou
StudentID
H07000308
Major
ElectronicEngineering
=1\*ROMAN
I
.LearningandComprehension
Withthedevelopmentofmobileandpersonaltelecommunicationtechnology,peoplebecomeincreasinglydemandformobiledatacommunications.Variousmobiletelecommunicatingterminals,suchaslaptop,PDA,PC.Atthemeantime,plentyofmobilephoneshavebeendesignedwiththeInternetfunction.Thenewgenerationofmobileterminalplatformbecomingmoreandmorehumanizedsodoesthefunction.GooglecompanylaunchedtheAndroidsystemin2007,whichispopularallovertheworld.Android,runningbasedonLinuxkernel,ownsdiversityofapplicationsandwi-fiwhichmakethevalue-addedservicesmoreexcellent.
ThissubjectrequiresadeepcomprehensionandacknowlegmentforAndroindSyste,sothat本beablettoimprovetheWi-FifunctioninthissystemtoacquiretheAd-hocapplication.Inadditon,thesubjectwillbedesigntoplaytheInternationalChessBattleontwocellphonesatthesametime.Thesubjectcloselyconnecttothedailylife,willbewidelyusedamongpeople,namely,ithasasignificanteffectonthepracticingandmarketing.Asforme,IamresponsibleforimplementingtheAd-hoc.
=2\*ROMAN
II
.InvestmentandStudy
TheThepreparationofthesubjectistostudythetheory,toknowthebasicsituationofAndroidsystemandtheworkingprincipleofwi-fiasthemainprocessoftheimplementofAd-hoc.Inwhich,IfocusontheWi-fitechnology.
1.IntroductiontotheAndroidSystem
Android,referstothe“Rebort”,alsoisanominationforopensourceoperationsystemusedoncellphones,whichisbasedontheLinuxKernelpublishedbyGoogleCompanyonNovember5th,2007.Linux,knownasthefirstopenandintergralmobilesoftwareformobileterminals,isaplatformconsistsofoperatingsystem,middleware,users’interfaceandapplicationsofeware.Sofar,thelatestversionisAndroid2.4GingerbreadandAndroid3.0Honeycom.
AndroidwasdevelopedbyGoogleintheearlytime,andthenbyOpenHandsetAlliance.Itusesthesoftwarestackframework,anddividesintothreecomponents.ThebottomofLinuxKernelonlyprovidesthebasicalfunctions,whileotherapplicationsoftwares,writteninJavalanguagepartly,aredevelopedbydifferententerprisesindividually.
DuetotheJavalanguage,androidhasvariouschanges,rangingfrominterfacestofunctions,Forinstance,ActivityequalstoMIDletinJ2ME,aActivityclasscanbeusedtosetupwindow,aworkingActivityisabackgroundoperationprogramcalledService,runningundertheforegroundmodel.BothforegroundandbackgroundarecombinedbyServiceConnectionandAIDL,inordertoachievetheeffectofrunningincomplexprocedures.WhentherunningActivityreplacedbyotherones,itwillbestopped,evenkilledbysystem
What’smore,ViewequalstotheDisplayableinJ2ME.ProgrammerscanputUIonthewindowsthroughViewclassand“XMLlayout”file.Androind1.5buildtheWidgetsbyView,anddesignlayoutbyxmlforthefactthatWidgetisoneoftheViewclass.Forexample,HTC’sAndroidHerohasplentyofWidgets.AsfortheViewGroup,itisaabstractclassinformofkindsoflayout,evenitconcludesitself.Besides,thereisnoneedforView’sconstructionfunctionstobecalledintheActivityclass,however,Displayableisundiposable.IntheActivity,acquiringViewfromXMLshouldbythemeansoffindViewByld(),soistheViewclassinAndroidsystem.Viewandeventdependuponeachother,andconnecttogetherthroughListener,sothateachViewisabletoregisteraeventlistener.Forinstance,whenViewisgoingtodealwiththeusers’touchevent,itshouldregisteraView.OnClickListenerinAndroidframework.AlsoasImageequalstoBitMapinJ2ME.
2、IntroductiontoWi-Fi
Wi-FiisshortforwirelessfidelityinwirelessLAN.ItisawirelessnetworkconsistsofAP(AccessPoint)andwirelessNIC.AP,socallednetworkbridgeoraccesspoint,isregaredasabridgebetweentraditionalwireLAN.Asaresult,anyPCwithNICcansharetheresourceofwireLAN,evenInternetthroughAP.ItislikeaHUBhasawirelesstransmitterinside,ontheotherhand,NICisaCLIENTequipmentforreceivingthesignalssendbyAP.
Inthepasttwoyears,themarketstartedtosupportUMA(UmlicensedMobileAccess),etc.TheremergesmoreandmoresmartphoneshavingWLAN,whichcansharethePCtoInternetorVoIPtocallwiththeWi-Ficovering,apartfromthemobiletelecommunicationnetworkcallsundertheGSM/CDMA.Nowadays,anincreasingnumberofpeoplechoosetosurfonInternetbywirelessrouteorwirelessAP.Bythemeansofmentionedmethods,PCcaneasilyconnecttotheInternetusingADSL,Cable,FTTX,etc.
Wi-Fiownsalargescalecovering,fasttransferspeedandeasytoimplement.Nevertheless,italsohasitslimitation.WhenweneedtomakeaconnectionbetweenPCandcellphone,ortwomobilephones,itisnecessaytoacquireatransferringpointlikeAPorHUB,etc.Luckily,Ad-hocmakesithappen.
TypicalconstructionofWi-fi
3、IntroductiontoAd-hoc
Ad-hoc(pointtopoint)Model,thesamewiththeStraightTwistedPair,isP2Panditfailstocommunicatewithothernetworks.Thatistosay,buildingaspecialwirelessnetworkwithoutAPsothatPCscouldconnecttotheNICandsharetheresources.
Usually,wirelessterminalequipments,suchasPMP,PSP,DMA,areusingAd-hoc.InthefamilywirelessLAN,itisknowntoallthattwoPCssharingtheInternetwhentheyachievetheconnectionbyNIC.Ad-hocisasymmetrynetworkframeworkwithoutwirelessAP.WheneverinstallaNIC,PCscanimmediatelyconnecttogether.
4、AddtheAd-hoctoWi-FiintheAndroidSystem
Recently,AndroidsystemdoesnotsupporttheAd-hoc,thatiswhywehavetoaddAd-hoctoWi-Fiservicesmanually,sodoestheChannelsupport.
Atthefirstplace,weshouldgetthesuperuser(su)loginthroughtheHyperTerminalinthePC.Next,modifyingtheWi-FiAd-hocavailblemeanschangingtheWi-FiAd-hoc=0toWi-FiAd-hoc=1,underthepathof/system/etc/wifi/tiwlan.ini.Atthemeantime,addingthefunctiondescribe:dot11DesiredSSID=AndroidMobile;dot11DesiredBSSType=0.
Then,manuallyaddAd-hocpoint,modify/data/misc/wifi/wpa_supplicant.conf
network={
ssid="AndroidAdhoc"
key_mgmt=NONE
mode=1
}
PS:'mode=1'referstoAd-hocnetwork
=3\*ROMAN
III
.Plan
week1~week2:Readingtherelevantarticlessoastobefamiliarwiththet
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 職業(yè)中介服務(wù)的績效考核與激勵機制考核試卷
- 伊斯蘭金融風(fēng)險管理體系-洞察分析
- 天王補心丹治療心悸療效分析-洞察分析
- 醫(yī)藥電商發(fā)展動態(tài)-洞察分析
- 南陽市科目三中山考場考試流程
- 生態(tài)園項目可行性報告范文
- 藥酒與傳統(tǒng)療法比較-洞察分析
- 油田綠色開采技術(shù)-洞察分析
- 2024-2025學(xué)年陜西省部分學(xué)校高三上學(xué)期11月期中統(tǒng)測物理試題(解析版)
- 水資源節(jié)約型灌溉技術(shù)-洞察分析
- 球磨機安全檢查表分析(SCL)+評價記錄
- 學(xué)習(xí)會計基礎(chǔ)工作規(guī)范課件
- 雙面埋弧焊螺旋鋼管公稱外公壁厚和每米理論重量
- 富士施樂VC2265打印機使用說明SPO
- 醫(yī)院工會經(jīng)費使用與管理辦法、制度規(guī)則
- 服務(wù)態(tài)度決定客戶滿意度試題含答案
- 中學(xué)歷史教育中的德育狀況調(diào)查問卷
- 教科版四年級科學(xué)上冊全冊復(fù)習(xí)教學(xué)設(shè)計及知識點整理
- 重慶萬科渠道制度管理辦法2022
- 上海黃金交易所貴金屬交易員題庫
- 蒸汽管道設(shè)計表(1)
評論
0/150
提交評論