【正文】
理工大學(xué)學(xué)士學(xué)位論文 I 摘 要 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ù)據(jù)包傳送到遠(yuǎn)端的 TCP/IP 或 。 GPRS 網(wǎng)不但具有覆蓋范圍廣、數(shù)據(jù)傳輸速度快、通信質(zhì)量高、永遠(yuǎn)在線和按流量計(jì)費(fèi)等優(yōu)點(diǎn),而且其本身就是一個(gè)分組型數(shù)據(jù)網(wǎng),支持 TCP/IP 協(xié)議,可以直接與 Inter互通。因此, CPRS 在無(wú)線上網(wǎng)、環(huán)境監(jiān)測(cè)便攜型、交通監(jiān)控、移動(dòng)辦公等行業(yè)中具有無(wú)可比擬的性價(jià)比優(yōu)勢(shì)。 系統(tǒng)軟件采用 C 語(yǔ)言編寫(xiě),在 VB 環(huán)境下編譯。由于本系統(tǒng)是遠(yuǎn)程管理終端的一個(gè)模塊,因此在程序的編寫(xiě)中要遵守一定的協(xié)議,這樣才能保證正確通信 。程序的主體是如何控制 GR47 的 AT 命令對(duì) GR47 進(jìn)行初始設(shè)置和對(duì)信息數(shù)據(jù)的處理。程序總體上可以分為以下幾個(gè)塊: CPRS 連接的初始設(shè)置、短消息的判斷處理、無(wú)數(shù)據(jù)傳輸時(shí)的心跳處理、數(shù)據(jù)判斷轉(zhuǎn)發(fā)等。主程序是把這些程序塊有機(jī)結(jié)合到一起,相互控制,無(wú)限循環(huán) 。 關(guān)鍵詞: 數(shù)據(jù)傳輸與接收 。 單片機(jī) 。 GPRS 通信系統(tǒng) 理工大學(xué)學(xué)士學(xué)位論文 II Abstract GPRS (general packet radio service) is the use of packet switching, the concept of the development of a set of wireless transmission mode. GPRS work is based on the existing GSM (global system for mobile munications) work. Need to add some nodes in the existing GSM work, such as the GGSN (GPRS gateway support node) and SGSN service (GPRS support node). SGSN39。s main function is to record the current position of mobile terminals, and mobile packet data between mobile terminal and the GGSN in sending and receiving. GGSN main gateway role, with a variety of data work connection, such as ISDN (integrated services digital work), PSPDN (packet switching public data work) and LAN (local area work (LAN), etc. GGSN can put GSM GPRS packet in the packet, protocol conversion, thus the packet packets to the remote TCP/IP or x. 25 work. GPRS work not only has wide coverage, data transmission speed, high munication quality, always online and charged according to traffic advantages, and its type is itself a packet data work, support TCP/IP protocol, can be directly exchanged with the Inter. As a result, the CPRS in portable wireless Inter access, environmental monitoring, traffic monitoring, mobile office, etc have an unparalleled price advantage. System software using C language to write, pile under VB environment. Because this system is a remote terminal management module, so in the writing of the program must adhere to certain protocols, in order to ensure correct munication. The body of the program is how to control the AT mand of GR47 of GR47 initial setup and handling of information data. Program in general can be divided into the following blocks: CPRS connection of initial setup, the judgment of the short message, no data transmission when the heartbeat process, data forwarding, etc. The main program is the program block anic bination together, mutual control, the infinite loop. Keywords: Data transmission and reception Singlechip。 microputer。 GPRS munication system 理工大學(xué)學(xué)士學(xué)位論文 III 目 錄 1 緒 論 .................................................................................................................................... 5 課題的背景和意義 ...................................................................................................... 5 國(guó)內(nèi)外研究現(xiàn)狀 ........................................................................................................ 5 2 GPRS 通信無(wú)線網(wǎng)絡(luò)的介紹 ................................................................................................. 7 什么是 GPRS 無(wú)線通訊網(wǎng)絡(luò) ...................................................................................... 7 為什么要有 GPRS ............................................................................................. 7 GPRS 的承載業(yè)務(wù) ...................................................................................................... 7 GPRS 的網(wǎng)絡(luò) 結(jié)構(gòu) ...................................................................................................... 9 GPRS 協(xié)議棧 ................................................................................................... 10 基于 GPRS 的 TCP/IP 協(xié)議 ............................................................................ 10 GPRS 究竟是什么 ........................................................................................... 11 GPRS 有什么優(yōu)點(diǎn) ........................................................................................... 12 中國(guó)移動(dòng)發(fā)展 GPRS 的市場(chǎng)定位是什么 ................................................................ 13 G 先鋒 — GPRS ................................................................................................ 13 3 GPRS 通信系統(tǒng)的整體設(shè)計(jì)方案 ....................................................................................... 14 GPRS 通信系統(tǒng)的方案論證 ..................................................................................... 14 GPRS 通信系統(tǒng)的硬件設(shè)計(jì)方案 ............................................................................. 15 系統(tǒng)總體功能概述 .......................................................................................... 15 單片機(jī)的用途和使用 ...................................................................................... 16 單片機(jī) STC89C51 簡(jiǎn)介 .................................................................................. 17 CTM900CGPRS 模塊簡(jiǎn)介 ............................................................................. 18 GPRS 通信系統(tǒng)的軟件設(shè)計(jì)方案 ............................................................................. 19 連接的建立 ...................................................................................................... 19 數(shù)據(jù)處理 ........................................................................................................ 28 主程序流程 ...................................................................................................... 28 系統(tǒng)程序 ........................................................................................................ 30 電路原理圖 .................................................................................................... 38 結(jié) 論 ......