【正文】
基于 GPRS 的分布式油田原油計(jì)量和防盜系統(tǒng)設(shè)計(jì) I XXXXXXX 畢業(yè)設(shè)計(jì) 題 目 基于 GPRS 的分布式油田原油計(jì)量和防盜系統(tǒng)設(shè)計(jì) 姓 名 xxx 學(xué) 號(hào) xxx 專業(yè)班級(jí) xxx 分 院 xxx 指導(dǎo)教師 xxx xxxx 年 xxx 月 xxx 日 II 基于 GPRS 的分布式油田原油計(jì)量和防盜系統(tǒng)設(shè)計(jì) 摘 要 本課題針對(duì) 分布式油田的原油計(jì)量和丟盜油問題,研究開發(fā)了一套基于 GPRS 的原油計(jì)量和防盜系統(tǒng) 。系統(tǒng)通過 對(duì) 原油的實(shí)時(shí)計(jì)量,解決長期以來 分布式 油田存在的計(jì)量方式簡陋,實(shí)時(shí)性差,人為誤差大的問題;通過 盜油報(bào)警系統(tǒng), 打擊盜油犯罪分子, 減少或杜絕偷盜油 現(xiàn)象 。整個(gè)系統(tǒng) 旨在提高分布式油田的信息化管理水平。 整個(gè)系統(tǒng) 包括兩個(gè)部分: 遠(yuǎn)程監(jiān)測(cè)終端和計(jì)算機(jī)監(jiān)控中心。 監(jiān)測(cè)終端 完成儲(chǔ)油罐中原油 油位 、 儲(chǔ)油 罐 閥門狀態(tài) 、 以及 當(dāng)防盜報(bào)警設(shè)備被觸發(fā)時(shí)井場(chǎng)周邊圖片數(shù)據(jù) 的采集 , 實(shí)現(xiàn) 數(shù)據(jù) 通過 GPRS 網(wǎng)絡(luò)的 發(fā)送和接收 ; 計(jì)算機(jī)監(jiān)控中心通過固定的 IP 地址登陸 Inter 網(wǎng)絡(luò) ,完成數(shù)據(jù) 接收 、保存和分析, 實(shí)時(shí) 顯示 各 儲(chǔ)油罐 油位 高度、當(dāng)前閥門狀態(tài),并提供報(bào)表 打印等功能。 在遠(yuǎn)程監(jiān)測(cè)終端的硬件開發(fā)中,為了保證整個(gè)硬件配置靈活、易于調(diào)試、升級(jí)和維護(hù),采用了模塊化的設(shè)計(jì)方法,即依據(jù)系統(tǒng)功能自頂向下的把硬件分成了五個(gè)模塊,分別是數(shù)據(jù)采集模塊、 GPRS通信模塊、圖像采集模塊、鍵盤與顯示模塊和系統(tǒng)供電模塊。 數(shù)據(jù)采集模塊以 ARM 公司最新的 CortexM3 內(nèi)核處理器STM32F103C6T6 為核心, 負(fù)責(zé)監(jiān)測(cè)終端總體控制功能; GPRS 通信模塊 由 BenQ 公司的 M23A GSM/GPRS 模塊及相關(guān)外圍電路組成,負(fù)責(zé) 數(shù)據(jù) 的 發(fā)送和接收 ;圖像采集模塊負(fù)責(zé) 將視頻信號(hào)轉(zhuǎn)換成數(shù)字信號(hào) ; 鍵盤與 顯示模塊 負(fù)責(zé)終端的顯示和操作 ;供電模塊負(fù)責(zé)對(duì)整個(gè)監(jiān)測(cè)終端設(shè)備提供工作電源。 論文中對(duì)數(shù)據(jù)采集模塊、 GPRS 通信模塊和鍵盤顯示模塊的電路 進(jìn)行了 詳細(xì)說明。 在遠(yuǎn)程監(jiān)測(cè)終端的軟件開發(fā)中, 借鑒于實(shí)時(shí)操作系統(tǒng)進(jìn)行軟件開發(fā) 的層次化設(shè)計(jì) 方法 , 在遠(yuǎn)程監(jiān)測(cè)終端的軟件設(shè)計(jì)中也采用了層次化的軟件設(shè)計(jì) 結(jié)構(gòu) 。 總的來說, 整個(gè)監(jiān)測(cè)終端軟件 采用的是先軟件分層, 再 結(jié)合有限狀態(tài)機(jī)、利用事件驅(qū)動(dòng)的方法來設(shè)計(jì)的 。 論文 基于 GPRS 的分布式油田原油計(jì)量和防盜系統(tǒng)設(shè)計(jì) III 中首先對(duì) 遠(yuǎn)程監(jiān)測(cè)終端軟件開發(fā) 中應(yīng)用 的 編程 方法 進(jìn)行了介紹,然后 對(duì) 遠(yuǎn)程 監(jiān)測(cè)終端的部分底層驅(qū)動(dòng)程序以及應(yīng)用層程序的設(shè)計(jì)進(jìn)行了詳細(xì)說明。 論文 最后對(duì)計(jì)算機(jī)監(jiān)控中心的軟件開發(fā)作了簡要說明。 關(guān) 鍵 詞 : GPRS , 分 布 式 油 田 , 計(jì) 量 和 防 盜 , CortexM3 內(nèi)核,STM32F103C6T6 IV THE SYSTEM DESIGN OF MEASUREMENT AND ANTITHEFT FOR CRUDE OIL OF DISTRIBUTED OILFIELD BASED ON GPRS NETWORKS ABSTRACT To solve problems of crude oil measurement and loss in distributed oilfield, a crude oil measuring and antitheft system is designed based on GPRS wireless work in the paper. In the system, a lot of problems existing in distributed oilfield for a long time can be solved, such as rough measuring method, poor realtime performance and high manmade errors. With the help of alarming system, oiltheft criminals will be reduced. The aim of the whole system is to improve the informatization management level of distributed oilfield. The system contains two parts: remotemonitoring terminal and putermonitoring center. Remotemonitoring terminal collects data of crude oil level in oil tank, valve’s status and images surrounding the oil tank when the burglar alarm equipment is triggered. Finally data are sent and received via GPRS wireless work. Computermonitoring center achieves logging on Inter website through fixed IP to plete some functions such as data receiving, saving and analysis, the realtime display of crude oil level in oil tank, current valve’s status and report forms printing. In order to ensure flexible configurations of the whole hardware and make it debug easily and maintenance simply, modularization design method is adopted in hardware design of remotemonitoring terminals. According to system function, hardware is divided into such five modules as data acquisitions module, GPRS munication module, image acquisition module, keyboard and display and power supply modules. The core of data acquisition module is ARM39。s latest CortexM3 processor STM32F103C6T6, which is in charge of the whole 基于 GPRS 的分布式油田原油計(jì)量和防盜系統(tǒng)設(shè)計(jì) V control of monitoring terminals. GPRS module is posed of BenQ39。s M23A GSM/GPRS modules and related peripheral circuits, which is responsible for sending and receiving data. Image acquisition module transforms the video signal into digital signal. Keyboard and display module implement display and operation of the terminal. And power supply module achieves power provision of the whole terminal equipment. In the paper circuits of data acquisition module, GPRS munication module and keyboard module are described in detail. During the remotemonitoring terminal software design, software design is built in the hierarchical design way which have been using in realtime operating system software develop ed. Generally speaking, the whole remotemonitoring terminal software design uses hierarchical software design, and then bines with finitestate machine and takes advantage of casedriven last. System software programming idea is introduced firstly, and then driver program and application layer programs of monitoring terminal are described in detail. Finally, a brief description of software design of puter monitoring center is given in the paper. KEYWORDS: GPRS, distributed oilfield, measurement and antitheft, CortexM3 core, STM32F103C6T6 基于 GPRS 的分布式油田原油計(jì)量和防盜系統(tǒng)設(shè)計(jì) I 目 錄 摘 要 .................................................................................................................. II ABSTRACT........................................................................................................ IV 目 錄 ................................................................................................................... I 1 緒論 ................................................................................................................ 1 項(xiàng)目背景及研究的目的和意義 .............................................................. 1 項(xiàng)目的國內(nèi)外研究現(xiàn)狀 ......................................................................... 1 論文的主要研究內(nèi)容 ............................................................................. 2 論文的組織結(jié)構(gòu) .................................................................................... 3 2 需求分析 ......................................................................................................... 5 系統(tǒng)要解決的問題 ................................................................................ 5 遠(yuǎn)程 監(jiān)測(cè)終端的要求 ................................................................... 5 計(jì)算機(jī)監(jiān)控中心的要求 ............................................................... 5 遠(yuǎn)程 監(jiān)測(cè)終端功能分析 ......................................................................... 6 計(jì)算機(jī) 監(jiān)控中心軟件功能分析 .............