畢業(yè)設(shè)計開題報告-85_第1頁
畢業(yè)設(shè)計開題報告-85_第2頁
畢業(yè)設(shè)計開題報告-85_第3頁
畢業(yè)設(shè)計開題報告-85_第4頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論