資源描述:
《基于GPRS模塊的應(yīng)用設(shè)計(jì).doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、摘要GPRS(通用分組無(wú)線電業(yè)務(wù))是利用包交換的概念發(fā)展的一套無(wú)線傳輸方式。GPRS網(wǎng)絡(luò)是基于現(xiàn)有的GSM(全球移動(dòng)通信系統(tǒng))網(wǎng)絡(luò)實(shí)現(xiàn)的。在現(xiàn)有的GSM網(wǎng)絡(luò)中需要增加一些節(jié)點(diǎn),如GGSN(GPRS網(wǎng)關(guān)支持節(jié)點(diǎn))和SGSN(GPRS服務(wù)支持節(jié)點(diǎn))。SGSN的主要作用是記錄移動(dòng)終端的當(dāng)前位置信息,并且在移動(dòng)終端與GGSN之間完成移動(dòng)分組數(shù)據(jù)的發(fā)送和接收。GGSN主要起網(wǎng)關(guān)作用,可以與多種不同的數(shù)據(jù)網(wǎng)絡(luò)連接,如ISDN(綜合業(yè)務(wù)數(shù)字網(wǎng))、PSPDN(包交換公用數(shù)據(jù)網(wǎng))和LAN(局域網(wǎng))等。GGSN可以把GSM網(wǎng)中的GPRS分組數(shù)據(jù)包進(jìn)行協(xié)議轉(zhuǎn)換,從而把這些分組數(shù)
2、據(jù)包傳送到遠(yuǎn)端的TCP/IP或X.25網(wǎng)絡(luò)。GPRS網(wǎng)不但具有覆蓋范圍廣、數(shù)據(jù)傳輸速度快、通信質(zhì)量高、永遠(yuǎn)在線和按流量計(jì)費(fèi)等優(yōu)點(diǎn),而且其本身就是一個(gè)分組型數(shù)據(jù)網(wǎng),支持TCP/IP協(xié)議,可以直接與Internet互通。因此,CPRS在無(wú)線上網(wǎng)、環(huán)境監(jiān)測(cè)便攜型、交通監(jiān)控、移動(dòng)辦公等行業(yè)中具有無(wú)可比擬的性價(jià)比優(yōu)勢(shì)。系統(tǒng)軟件采用C語(yǔ)言編寫,在VB環(huán)境下編譯。由于本系統(tǒng)是遠(yuǎn)程管理終端的一個(gè)模塊,因此在程序的編寫中要遵守一定的協(xié)議,這樣才能保證正確通信。程序的主體是如何控制GR47的AT命令對(duì)GR47進(jìn)行初始設(shè)置和對(duì)信息數(shù)據(jù)的處理。程序總體上可以分為以下幾個(gè)塊:CPR
3、S連接的初始設(shè)置、短消息的判斷處理、無(wú)數(shù)據(jù)傳輸時(shí)的心跳處理、數(shù)據(jù)判斷轉(zhuǎn)發(fā)等。主程序是把這些程序塊有機(jī)結(jié)合到一起,相互控制,無(wú)限循環(huán)。關(guān)鍵詞:數(shù)據(jù)傳輸與接收;單片機(jī);GPRS通信系統(tǒng)AbstractGPRS(generalpacketradioservice)istheuseofpacketswitching,theconceptofthedevelopmentofasetofwirelesstransmissionmode.GPRSnetworkisbasedontheexistingGSM(globalsystemformobilecommunicati
4、ons)network.NeedtoaddsomenodesintheexistingGSMnetwork,suchastheGGSN(GPRSgatewaysupportnode)andSGSNservice(GPRSsupportnode).SGSN'smainfunctionistorecordthecurrentpositionofmobileterminals,andmobilepacketdatabetweenmobileterminalandtheGGSNinsendingandreceiving.GGSNmaingatewayrole,wi
5、thavarietyofdatanetworkconnection,suchasISDN(integratedservicesdigitalnetwork),PSPDN(packetswitchingpublicdatanetwork)andLAN(localareanetwork(LAN),etc.GGSNcanputGSMGPRSpacketinthepacket,protocolconversion,thusthepacketpacketstotheremoteTCP/IPorx.25network.GPRSnetworknotonlyhaswide
6、coverage,datatransmissionspeed,highcommunicationquality,alwaysonlineandchargedaccordingtotrafficadvantages,anditstypeisitselfapacketdatanetwork,supportTCP/IPprotocol,canbedirectlyexchangedwiththeInternet.Asaresult,theCPRSinportablewirelessInternetaccess,environmentalmonitoring,tra
7、fficmonitoring,mobileoffice,etchaveanunparalleledpriceadvantage.SystemsoftwareusingClanguagetowrite,compileunderVBenvironment.Becausethissystemisaremoteterminalmanagementmodule,sointhewritingoftheprogrammustadheretocertainprotocols,inordertoensurecorrectcommunication.Thebodyofthep
8、rogramishowtocontroltheATcommando